/* ================================================
   ESD MATCHMAKING THEME — Main Stylesheet
   Figma: Matchmaking Moodboard Final
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest:   #1B2014;
  --cream:    #FDFAF0;
  --orange:   #EC6921;
  --white:    #FFFFFF;
  --gray-light: rgba(255,255,255,0.65);
  --gray-dark:  #4A4A4A;
  --serif:    'Playfair Display', Georgia, serif;
  --sans:     'Poppins', Helvetica, sans-serif;
  --radius-btn: 60px;
  --container: 1200px;
  --nav-h:     80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--forest);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--sans); }

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

/* ── TYPOGRAPHY ───────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; }
em { font-style: italic; font-family: var(--serif); }
p  { margin-bottom: 1rem; }

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.6;
  display: block;
  margin-bottom: 12px;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-dark {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-sm { padding: 10px 24px; font-size: 13px; }

/* ── NAV ─────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .35s, box-shadow .35s;
}
#site-header.scrolled {
  background: rgba(27, 32, 20, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.nav-logo img,
.nav-logo svg {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-logo .logo-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 13.5px;
  font-weight: 400;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.current {
  color: var(--white);
}
.nav-links a.current::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* Dropdown */
.nav-links .has-dropdown { position: relative; }
.nav-links .dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(27,32,20,0.98);
  border-radius: 10px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  transform: translateX(-50%) translateY(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.nav-links .has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.8) !important;
}
.dropdown a:hover { color: var(--white) !important; background: rgba(255,255,255,0.05); }

.nav-phone {
  color: rgba(255,255,255,0.9);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.nav-phone svg { width: 16px; height: 16px; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--forest);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27,32,20,0.25) 0%,
    rgba(27,32,20,0.15) 40%,
    rgba(27,32,20,0.72) 75%,
    rgba(27,32,20,0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 72px;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
  display: block;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 700;
}
.hero h1 em {
  font-style: italic;
  font-weight: 700;
}

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  margin-bottom: 32px;
  font-weight: 300;
}

/* Media logos bar */
.hero-logos {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  overflow: hidden;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: scroll-logos 20s linear infinite;
  width: max-content;
  padding: 0 40px;
}
.logos-track img,
.logos-track span {
  height: 22px;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  object-fit: contain;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white);
  display: flex;
  align-items: center;
}

@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── HOW THE SERVICE WORKS ────────────────────── */
.section-how {
  background: var(--forest);
  padding: 100px 0 80px;
  color: var(--white);
}

.section-how .section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-how h2 {
  color: var(--white);
  margin-bottom: 12px;
}
.section-how .section-sub {
  color: var(--gray-light);
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 100px;
}

.step-num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
  font-family: var(--sans);
}
.step p {
  color: var(--gray-light);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

/* Who Are We section */
.section-who {
  background: var(--cream);
}

/* Who Are We split */
.who-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 520px;
}

.who-image {
  position: relative;
  overflow: hidden;
}
.who-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.who-text {
  padding: 72px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.who-text h2 {
  color: var(--forest);
  margin-bottom: 16px;
}
.who-text .who-italic {
  font-family: var(--serif);
  font-style: italic;
  color: var(--orange);
  font-size: 18px;
  margin-bottom: 28px;
  display: block;
  line-height: 1.5;
}
.who-text p {
  color: var(--gray-dark);
  font-size: 14px;
  line-height: 1.85;
}
.who-text .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 500;
  margin-top: 28px;
  transition: gap .2s;
}
.who-text .link-arrow:hover { gap: 14px; }

/* ── SUCCESS STORIES ─────────────────────────── */
.section-stories {
  background: var(--forest);
  padding: 80px 0;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stories-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.stories-header h2 { color: var(--white); }
.stories-header .sub {
  color: var(--gray-light);
  font-size: 13px;
  margin-top: 8px;
  display: block;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px;
}

.story-card .quote {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 28px;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.story-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}
.story-author .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.story-author .status {
  font-size: 12px;
  color: var(--orange);
  font-style: italic;
}
.story-author .location {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── OUR COMMITMENT ──────────────────────────── */
.section-commitment {
  background: var(--cream);
  padding: 100px 0;
  color: var(--forest);
}

.commitment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.commitment-left h2 {
  color: var(--forest);
  margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 38px);
}
.commitment-left .commitment-desc {
  color: var(--gray-dark);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 32px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--forest);
  line-height: 1.5;
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23EC6921'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
}

.guarantee-link {
  color: var(--forest);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(27,32,20,0.3);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.guarantee-link:hover { border-color: var(--forest); }

.commitment-right h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--forest);
  margin-bottom: 16px;
  line-height: 1.4;
}
.commitment-right p {
  color: var(--gray-dark);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 28px;
}

/* ── LOCATION MARQUEE ────────────────────────── */
.location-marquee {
  background: var(--forest);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.location-track {
  display: flex;
  gap: 0;
  animation: scroll-locs 25s linear infinite;
  width: max-content;
}
.location-track span {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
@keyframes scroll-locs {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-logo-text {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-col .contact-item {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  display: block;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--orange); color: var(--white); }

/* Footer watermark text */
.footer-watermark {
  position: absolute;
  right: -20px;
  bottom: 60px;
  font-family: var(--serif);
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  line-height: 1.05;
  text-align: right;
  pointer-events: none;
  user-select: none;
  letter-spacing: -2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ── MOBILE NAV DRAWER ───────────────────────── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s;
}
.mobile-drawer-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(85vw, 320px);
  background: var(--forest);
  transform: translateX(-100%);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer.open .mobile-drawer-overlay { opacity: 1; }
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drawer-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  padding: 24px;
  flex: 1;
}
.drawer-nav a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 400;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .2s;
}
.drawer-nav a:hover { color: var(--white); }

.drawer-footer {
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.drawer-phone {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  display: block;
  margin-bottom: 16px;
}

/* ── PAGE TEMPLATES ──────────────────────────── */

/* Page header */
.page-header {
  background: var(--forest);
  color: var(--white);
  padding: 160px 0 80px;
  text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p {
  color: var(--gray-light);
  font-size: 16px;
  margin-top: 12px;
}

/* Generic content page */
.page-content {
  padding: 80px 0;
  background: var(--cream);
}
.page-content .inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ── UTILITIES ───────────────────────────────── */
.text-white { color: var(--white); }
.text-orange { color: var(--orange); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }

  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }

  .hero-content { padding: 0 24px 56px; }

  .steps-grid { grid-template-columns: 1fr; gap: 40px; }

  .who-split { grid-template-columns: 1fr; }
  .who-image { height: 340px; }
  .who-text { padding: 48px 24px; }

  .commitment-grid { grid-template-columns: 1fr; gap: 48px; }

  .stories-grid { grid-template-columns: 1fr; gap: 16px; }
  .stories-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-watermark { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .container { padding: 0 24px; }
  .section-how { padding: 72px 0 56px; }
  .section-stories { padding: 56px 0; }
  .section-commitment { padding: 72px 0; }
  .site-footer { padding: 64px 0 0; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
