/* ============================================================
   Kim Mendes Designs — Stylesheet
   Palette: Ivory · Navy · Gold · Charcoal
   Fonts: Cormorant Garamond (serif) · Raleway (sans)
   ============================================================ */

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

:root {
  --ivory:       #f7f3ec;
  --ivory-dark:  #ede8de;
  --navy:        #1c2b4a;
  --navy-light:  #2b3f6b;
  --gold:        #c9a96e;
  --gold-light:  #dfc08e;
  --gold-pale:   #f0e6cf;
  --charcoal:    #2d2d2d;
  --mid-gray:    #6b6b6b;
  --light-gray:  #d8d4cc;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Raleway', 'Helvetica Neue', Arial, sans-serif;

  --nav-h:       72px;
  --section-pad: 100px;
  --max-w:       1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ── Shared Utilities ─────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) 40px;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--navy-light);
}

.gold-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}

.gold-rule.centered {
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1.5px solid var(--gold);
  padding: 14px 36px;
  transition: background 0.25s, color 0.25s;
}

.btn-primary:hover {
  background: var(--gold);
  color: #fff;
}

.btn-large {
  font-size: 0.85rem;
  padding: 18px 48px;
}

/* ── Fade-in animation ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  border-color: var(--light-gray);
  box-shadow: 0 2px 24px rgba(28, 43, 74, 0.07);
}

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

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.nav-logo-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-links .nav-cta {
  border: 1.5px solid var(--gold);
  padding: 9px 22px;
  color: var(--navy);
  transition: background 0.25s, color 0.25s;
}

.nav-links .nav-cta:hover {
  background: var(--gold);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}

/* Decorative background motif */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 520px;
  height: 520px;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 380px;
  height: 380px;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 480px;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  display: block;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 300;
  font-style: italic;
  color: var(--navy-light);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 0.85rem;
  color: var(--mid-gray);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* Hero image */
.hero-image-wrap {
  position: relative;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: calc(100% + 50px);
  margin-top: -50px;
  object-fit: cover;
  object-position: center top;
}

.hero-image-accent {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border: 1.5px solid var(--gold);
  z-index: 0;
  pointer-events: none;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
}

.hero-scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--navy);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}

/* ── About ────────────────────────────────────────────────── */
.about {
  background: #fff;
}

.about .section-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.about-portrait {
  padding-right: 18px;
  padding-bottom: 18px;
}

.portrait-frame {
  border: 1px solid var(--light-gray);
  position: relative;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  border: 1.5px solid var(--gold);
  z-index: -1;
}

.portrait-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

.portrait-caption {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--mid-gray);
  line-height: 1.6;
  text-align: center;
}

.portrait-caption em {
  color: var(--gold);
}

.about-text p {
  font-size: 1.02rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--light-gray);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-plus {
  font-size: 1.8rem;
  color: var(--gold);
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--light-gray);
}

/* ── Services ─────────────────────────────────────────────── */
.services {
  background: var(--navy);
}

.services .section-inner {
  padding-bottom: calc(var(--section-pad) + 20px);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services .section-eyebrow { color: var(--gold-light); }

.services .section-title {
  color: #fff;
}

.services .section-title em { color: var(--gold-light); }

.services .gold-rule { background: var(--gold-light); }

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

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.25);
  padding: 44px 40px;
  transition: border-color 0.3s, background 0.3s;
}

.service-card:hover {
  border-color: rgba(201, 169, 110, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.service-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.25rem;
}

.service-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.service-list li {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.55rem;
}

/* ── Clients ──────────────────────────────────────────────── */
.clients {
  background: var(--ivory-dark);
}

.clients-header {
  text-align: center;
  margin-bottom: 60px;
}

.clients-intro {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--mid-gray);
  line-height: 1.8;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.client-card {
  background: #fff;
  padding: 36px 28px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 1px 4px rgba(28, 43, 74, 0.06);
}

.client-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(28, 43, 74, 0.1);
  transform: translateY(-4px);
}

.client-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.client-rule {
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 0.9rem;
}

.client-desc {
  font-size: 0.82rem;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.client-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-pale);
  padding: 4px 10px;
  display: inline-block;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact {
  background: var(--ivory);
  text-align: center;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--gold-pale) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.contact-inner {
  position: relative;
}

.contact-sub {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  color: var(--mid-gray);
  line-height: 1.85;
}

.contact-location {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-gray);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(201, 169, 110, 0.2);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 16px 40px;
  align-items: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ============================================================
   Responsive — Tablet (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
  :root { --section-pad: 80px; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 60px 40px;
    text-align: center;
  }

  .hero-image-wrap {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero::before, .hero::after { display: none; }

  .hero-scroll-hint { display: none; }

  .gold-rule { margin-left: auto; margin-right: auto; }

  .about .section-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-portrait {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .stat-divider { display: none; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ============================================================
   Responsive — Mobile (≤ 620px)
   ============================================================ */
@media (max-width: 620px) {
  :root { --section-pad: 64px; }

  .section-inner { padding-left: 24px; padding-right: 24px; }

  /* Mobile Nav */
  .nav-inner { padding: 0 24px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(247, 243, 236, 0.98);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--light-gray);
    box-shadow: 0 8px 24px rgba(28, 43, 74, 0.1);
    padding: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--ivory-dark);
    width: 100%;
    text-align: center;
  }

  .nav-links .nav-cta {
    border: none;
    background: var(--navy);
    color: #fff;
    padding: 16px 24px;
    border-radius: 0;
  }

  .nav-links .nav-cta:hover { background: var(--gold); }

  /* Hero */
  .hero-content { padding: 40px 24px 60px; }

  .hero-name { font-size: clamp(2.8rem, 10vw, 4rem); }

  .hero-image-wrap { max-width: 260px; }

  /* Clients */
  .clients-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding: 40px 24px;
  }

  .footer-links { justify-content: center; }

  .footer-copy { text-align: center; }
}
