/* ============================================================
   IVY SERVICES — PREMIUM STYLESHEET
   Upscale, minimal, editorial design
   v2.0 — Premium Refresh
============================================================ */

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

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

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #1a1a1a;
  background: #faf9f7;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

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

ul { list-style: none; }

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --green:          #1a3828;   /* deep forest green — primary brand      */
  --green-mid:      #244f38;   /* hover state                            */
  --green-light:    #376b52;   /* lighter accent                         */
  --green-pale:     #eef3ef;   /* soft section tint                      */
  --green-ultra:    #f5f8f6;   /* near-white green tint                  */
  --gold:           #b39260;   /* warm gold — secondary accent           */
  --cream:          #faf9f7;   /* warm off-white base                    */
  --dark:           #0d1a12;   /* near-black text                        */
  --mid:            #475244;   /* body text                              */
  --light:          #8a9186;   /* muted text / placeholders              */
  --border:         rgba(26, 56, 40, 0.11);
  --border-light:   rgba(26, 56, 40, 0.06);
  --white:          #ffffff;
  --section-pad:    140px;
  --font-serif:     'Cormorant Garamond', serif;
  --font-sans:      'Inter', sans-serif;
}

/* ── UTILITY ──────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1160px;
  margin-inline: auto;
}

.section {
  padding: var(--section-pad) 0;
}

/* ── SECTION HEADERS ──────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 84px;
}

/* Eyebrow with decorative lines on both sides */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.section-sub {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.95;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 16px 44px;
  border-radius: 0;            /* Square = more refined */
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ── HEADER ───────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 249, 247, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.35s ease;
}

#header.scrolled {
  box-shadow: 0 1px 28px rgba(13, 26, 18, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  color: var(--green);
  font-size: 1rem;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.04em;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

.nav-links .nav-cta {
  background: var(--green);
  color: var(--white);
  padding: 11px 26px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.nav-links .nav-cta:hover {
  background: var(--green-mid);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--dark);
  transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu.open { display: flex; }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.03em;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(148deg, #0f2219 0%, #1a3828 50%, #0e1f15 100%);
  overflow: hidden;
}

/* Subtle radial light + fine grain texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 12% 58%, rgba(179, 146, 96, 0.09) 0%, transparent 52%),
    radial-gradient(ellipse at 82% 18%, rgba(255, 255, 255, 0.025) 0%, transparent 42%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Decorative large circle — subtle depth */
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 580px;
  height: 580px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.hero-overlay { position: absolute; inset: 0; }

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 78px;
  max-width: 740px;
}

.hero-eyebrow {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 48px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.9rem, 7.5vw, 5.4rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.07;
  margin-bottom: 30px;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.68);
  max-width: 510px;
  line-height: 1.95;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: -16px;
  margin-left: -12px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 58%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.32), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.9;  }
}

/* ── SERVICES ─────────────────────────────────────────────── */
.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  outline: 1px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: 54px 44px;
  position: relative;
  transition: background 0.3s ease;
  overflow: hidden;
}

/* Animated top-border accent on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.45s ease;
}

.service-card:hover::before  { width: 100%; }
.service-card:hover           { background: var(--green-ultra); }

.service-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 28px;
  color: var(--green);
  flex-shrink: 0;
}

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

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.service-card p {
  font-size: 0.87rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.9;
}

/* ── BEFORE & AFTER ───────────────────────────────────────── */
.results-section { background: var(--green-pale); }

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

.ba-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}

.ba-images {
  display: flex;
  position: relative;
  height: 240px;
}

.ba-half {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(13, 26, 18, 0.62);
  color: #fff;
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
}

.ba-label-after { background: var(--green); }

.ba-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.75);
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.ba-placeholder {
  width: 100%;
  height: 100%;
  background: #e8eceb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.ba-placeholder-after { background: #cdddd4; }

.ba-placeholder p {
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--light);
  margin-bottom: 6px;
}

.placeholder-hint {
  font-size: 0.61rem;
  color: #bbc0ba;
  font-family: monospace;
}

.ba-caption {
  padding: 16px 20px;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  border-top: 1px solid var(--border);
  text-align: center;
}

.ba-note {
  text-align: center;
  margin-top: 48px;
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--light);
  font-style: italic;
}

/* ── ABOUT / TEAM ─────────────────────────────────────────── */
.about-section { background: var(--white); }

/* Group photo — full-width banner above individual cards */
.group-photo-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 72px;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.group-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.group-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--green-pale);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px;
  text-align: center;
  /* Hidden by default — shown only when the real photo is missing */
  display: none;
}

.group-photo-placeholder p {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--light);
  margin-bottom: 4px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 52px 36px;
}

.team-card { text-align: center; }

/* Circular photo containers */
.team-photo-wrap {
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-pale);
  margin: 0 auto 26px;
  border: 1px solid var(--border);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
}

.team-placeholder p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--light);
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.team-school {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 13px;
}

.team-bio {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.8;
}

/* ── REVIEWS ──────────────────────────────────────────────── */
.reviews-section { background: var(--green-pale); }

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

.review-card {
  background: var(--white);
  padding: 52px 40px 42px;
  position: relative;
  box-shadow:
    0 1px 2px rgba(13, 26, 18, 0.05),
    0 8px 32px rgba(13, 26, 18, 0.04);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.review-card:hover {
  box-shadow:
    0 2px 6px rgba(13, 26, 18, 0.07),
    0 20px 52px rgba(13, 26, 18, 0.09);
  transform: translateY(-4px);
}

/* Large decorative quotation mark */
.review-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: rgba(26, 56, 40, 0.1);
  position: absolute;
  top: 18px;
  left: 30px;
  font-weight: 500;
  pointer-events: none;
}

.review-stars {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  margin-bottom: 24px;
}

.review-text {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.95;
  font-style: italic;
  margin-bottom: 26px;
}

.review-author {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-section { background: var(--white); }

.contact-cta-banner {
  text-align: center;
  margin-bottom: 60px;
}

.contact-cta-text {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--mid);
  font-style: italic;
}

.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 920px;
  margin-inline: auto;
}

.contact-card-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--green-ultra);
  border: 1px solid var(--border);
  padding: 52px 32px 44px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

a.contact-card-big:hover {
  border-color: var(--green);
  box-shadow: 0 8px 36px rgba(26, 56, 40, 0.11);
  transform: translateY(-3px);
}

.contact-card-plain { cursor: default; }

.contact-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  color: var(--green);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 11px;
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.contact-action {
  font-size: 0.73rem;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--green);
  padding: 72px 0 48px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer .logo-text  { color: rgba(255, 255, 255, 0.9); }
.footer .logo-mark  { color: var(--gold); }

.footer-tagline {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 6px 0;
}

.footer-nav a {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-copy {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 4px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --section-pad: 96px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

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

  .ba-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 28px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .contact-cards-row {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 600px) {
  :root { --section-pad: 72px; }

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

  .hero-heading { line-height: 1.1; }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }

  .team-photo-wrap { width: 88%; }

  .review-card { padding: 44px 28px 36px; }

  .section-header { margin-bottom: 56px; }
}
