:root {
  --bg: #ffffff;
  --bg-alt: #f2f2f2;
  --text: #111111;
  --text-muted: #555555;
  --accent: #e91e63;
  --accent-hover: #c2185b;
  --border: #e5e5e5;
  --dark: #0a0a0a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  --max: 1200px;
  --nav-fade: 260ms;
}

/* Cross-document view transitions (Chrome/Edge/Safari 18+). */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: pageFadeOut 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
::view-transition-new(root) {
  animation: pageFadeIn 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pageFadeOut {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Initial page-load fade-in (also acts as the fallback destination state). */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
body { animation: pageEnter 380ms cubic-bezier(0.16, 1, 0.3, 1) both; }

/* JS-triggered fade-out on link click for browsers without view transitions. */
body.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--nav-fade) ease, transform var(--nav-fade) ease;
}

@media (prefers-reduced-motion: reduce) {
  body, body.is-leaving { animation: none; transition: none; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 22px;
  color: #fff;
}
.logo span { color: var(--accent); }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: #ddd;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover, .nav a.active { color: #fff; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn-outline:hover { background: #fff; color: var(--dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.85)),
    url("https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat,
    #0a0a0a;
  color: #fff;
  padding: 120px 0 140px;
  text-align: center;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.15;
}
.hero p {
  max-width: 640px;
  margin: 0 auto 32px;
  color: #ddd;
  font-size: 17px;
}
.hero .btn { padding: 14px 28px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin: 0 0 16px;
}
.section-head p { color: var(--text-muted); font-size: 17px; }
.section-dark .section-head p { color: #bbb; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Benefit cards ---------- */
.benefit {
  text-align: center;
  padding: 24px;
}
.benefit .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--text);
}
.benefit h3 { font-size: 20px; margin: 0 0 10px; font-weight: 700; }
.benefit p { color: var(--text-muted); margin: 0; }

/* ---------- Service row ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.service-row:last-child { margin-bottom: 0; }
.service-row.reverse .service-media { order: 2; }
.service-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-copy h3 { font-size: 26px; margin: 0 0 16px; font-weight: 700; }
.service-copy p { color: var(--text-muted); margin: 0 0 12px; }

/* ---------- Partners ---------- */
.partner-list {
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.partner-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.partner-list li:last-child { border-bottom: none; }
.partner-list .partner-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ---------- Team ---------- */
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease;
}
.team-card:hover { transform: translateY(-4px); }
.team-card .avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ddd center/cover no-repeat;
}
.team-card .body { padding: 20px; }
.team-card h4 { margin: 0 0 4px; font-size: 17px; }
.team-card .role { color: var(--text-muted); font-size: 14px; }

/* ---------- Page hero ---------- */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin: 0 0 12px;
  font-weight: 800;
}
.page-hero p {
  color: #bbb;
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

/* ---------- Forms ---------- */
.form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; padding: 14px; font-size: 16px; }
.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}
.form-success {
  display: none;
  background: #e8f5e9;
  color: #1b5e20;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}
.form-success.show { display: block; }

/* ---------- Contact info ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { margin: 0 0 8px; font-size: 20px; }
.contact-info p { color: var(--text-muted); margin: 0 0 24px; }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-info li:last-child { border-bottom: none; }
.contact-info .label {
  font-weight: 600;
  min-width: 90px;
  color: var(--text);
}
.contact-info .value { color: var(--text-muted); }
.contact-info a.value:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #bbb;
  padding: 60px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-inner h5 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-inner p { margin: 0 0 12px; font-size: 14px; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li { margin-bottom: 8px; }
.footer-inner a { font-size: 14px; }
.footer-inner a:hover { color: #fff; }

.social-buttons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.social-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.contact-info .social-btn {
  background: var(--dark);
  color: #fff;
}
.contact-info .social-btn:hover { background: var(--accent); }

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 24px;
  font-size: 13px;
  text-align: center;
  color: #777;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 60px 24px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 16px; font-weight: 800; }
.cta-band p { margin: 0 0 24px; opacity: 0.95; }
.cta-band .btn { background: #fff; color: var(--accent); }
.cta-band .btn:hover { background: var(--dark); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .service-row.reverse .service-media { order: 0; }
  .service-media img { height: 240px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .form { padding: 24px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 12px;
    display: none;
    border-top: 1px solid #222;
  }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; }
  .nav .btn { text-align: center; }
  section { padding: 56px 0; }
  .hero { padding: 80px 0 100px; }
}
