:root {
  --cream: #f8f2ea;
  --warm-white: #fffdf9;
  --navy: #102b4a;
  --navy-deep: #0b2038;
  --mulberry: #71314f;
  --plum: #4e203d;
  --mauve: #b78391;
  --rose: #d9a8ad;
  --sand: #baa48c;
  --gold: #c89a2b;
  --ink: #222531;
  --muted: #5d5a60;
  --border: rgba(74,42,55,.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --shadow: 0 18px 42px rgba(37,23,31,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.62; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 20px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 78px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; transform: translateY(-180%); background: white; padding: 10px 14px; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,242,234,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(113,49,79,.11);
}
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { width: 252px; overflow: hidden; }
.brand img { width: 100%; height: 68px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 22px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.primary-nav a:not(.button) { padding: 34px 0 27px; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a.active { color: var(--mulberry); border-color: var(--mulberry); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--navy); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--mulberry);
  border-radius: 5px;
  background: var(--mulberry);
  color: #fff;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  transition: .2s ease;
}
.button:hover { transform: translateY(-2px); background: #57213d; box-shadow: 0 10px 24px rgba(111,45,80,.22); }
.button-small { padding: 13px 18px; }
.button-outline { background: transparent; color: var(--mulberry); }
.button-light { background: var(--warm-white); color: var(--mulberry); border-color: var(--warm-white); }

.services-hero { position: relative; min-height: 565px; overflow: hidden; display: flex; align-items: center; background: var(--cream); }
.hero-photo { position: absolute; inset: 0 0 0 50%; background: url("../assets/services/services-hero.jpg") center / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0%, rgba(248,242,234,.995) 43%, rgba(248,242,234,.84) 50%, rgba(248,242,234,.22) 66%, rgba(248,242,234,.04) 88%); }
.hero-content { position: relative; z-index: 2; padding: 78px 0 70px; }
.hero-text-column { width: 48%; max-width: 580px; min-width: 0; }
.hero-text-column h1,
.hero-text-column .hero-lead,
.hero-text-column .hero-copy { max-width: 100%; }
.hero-text-column .hero-actions { gap: 10px; max-width: 100%; }
.hero-text-column .button { padding-inline: 18px; font-size: 11px; letter-spacing: .055em; }
.eyebrow { margin: 0 0 8px; color: var(--mulberry); text-transform: uppercase; letter-spacing: .25em; font-size: 11px; font-weight: 700; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy-deep); line-height: 1.07; }
h1 { max-width: 600px; margin: 0; color: #542b42; font-size: clamp(58px, 6.6vw, 82px); font-weight: 600; }
h2 { margin: 0; font-size: clamp(38px, 4vw, 52px); font-weight: 600; }
h3 { margin: 0; font-size: 26px; font-weight: 600; }
.heading-rule { width: 48px; height: 3px; margin: 20px 0; background: var(--mauve); }
.heading-rule.centered { margin: 18px auto 0; }
.heading-rule.gold { background: var(--gold); }
.hero-lead { max-width: 600px; margin: 0 0 16px; color: #442738; font-family: var(--serif); font-size: 25px; line-height: 1.22; }
.hero-copy { max-width: 610px; margin: 0; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.section-heading { max-width: 900px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { color: #5a2d45; }
.section-heading.compact { margin-bottom: 28px; }

.core-services { background: var(--warm-white); }
.service-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { min-height: 355px; padding: 30px 24px 26px; text-align: center; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.52); }
.service-card.featured { border-color: rgba(16,43,74,.45); box-shadow: inset 0 0 0 1px rgba(16,43,74,.08); }
.service-icon, .reason-icon, .detail-icon {
  width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: #fff; font-size: 29px;
}
.service-icon.navy { background: var(--navy); }
.service-icon.mulberry { background: var(--mulberry); }
.service-icon.rose { background: #c68187; }
.service-icon.sand { background: var(--sand); }
.service-card h3 { font-size: 25px; }
.service-card p { margin: 14px 0 22px; font-size: 13px; line-height: 1.55; }
.service-card a { color: var(--mulberry); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.detail-services { padding-top: 54px; background: #fbf7f1; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.44); }
.detail-grid article { padding: 28px 25px 32px; border-right: 1px solid var(--border); }
.detail-grid article:last-child { border-right: 0; }
.detail-icon { width: auto; height: auto; margin-bottom: 10px; border-radius: 0; color: var(--mulberry); font-size: 38px; }
.detail-icon-image { min-height: 42px; }
.detail-icon-image img { width: 42px; height: 42px; object-fit: contain; }
.detail-grid h3 { text-align: center; font-size: 23px; margin-bottom: 18px; }
.detail-grid li { margin: 7px 0; font-size: 12px; line-height: 1.45; }

.why-lexvico { background: var(--warm-white); }
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.reason-grid article { min-height: 235px; padding: 20px 34px; text-align: center; border-right: 1px solid var(--border); }
.reason-grid article:last-child { border-right: 0; }
.reason-icon { color: var(--mulberry); background: transparent; border: 2px solid var(--mulberry); }
.reason-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.reason-icon-image img { width: 34px; height: 34px; object-fit: contain; }
.reason-grid h3 { font-size: 24px; }
.reason-grid p { margin: 10px 0 0; font-size: 12px; }

.process-section { padding: 56px 0 62px; color: #fff; background: linear-gradient(112deg, var(--navy-deep), #173957); }
.section-heading.inverse h2, .section-heading.inverse .eyebrow { color: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process-grid article { position: relative; text-align: center; }
.process-grid article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 43px;
  left: calc(50% + 42px);
  width: calc(100% - 66px);
  border-top: 1px dashed rgba(255,255,255,.45);
}
.process-icon { width: 78px; height: 78px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--navy); font-size: 30px; }
.process-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-number { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--rose); color: #fff; font-size: 11px; font-weight: 700; z-index: 2; }
.process-grid h3 { margin-top: 30px; color: #fff; font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.process-grid p { margin: 9px auto 0; max-width: 190px; color: rgba(255,255,255,.84); font-size: 11px; line-height: 1.5; }

.cta { position: relative; overflow: hidden; color: #fff; background: url("../assets/services/mauve-botanical.jpg") center / cover no-repeat; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(84,32,60,.93), rgba(110,43,76,.85)); }
.cta-content { position: relative; z-index: 2; padding: 50px 0; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(34px, 4vw, 47px); }
.cta p { margin: 10px 0 22px; }

.site-footer { padding: 50px 0 20px; color: rgba(255,255,255,.86); background: #171c24; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .65fr 1.15fr .8fr; gap: 42px; }
.footer-brand img { width: 260px; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a, .site-footer p { display: block; margin: 5px 0; font-size: 11px; }
.site-footer a:hover { color: var(--rose); }
.social-links { display: flex !important; gap: 15px; font-weight: 700; font-size: 15px !important; }
.license-note { margin-top: 18px !important; color: #e1b24c; }
.footer-bottom { margin-top: 32px; padding-top: 17px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 1050px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 88px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch;
    gap: 0; padding: 18px 20px 25px; background: var(--cream); box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a:not(.button) { padding: 12px 4px; }
  .primary-nav .button { margin-top: 10px; }
  .service-card-grid, .detail-grid, .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid article:nth-child(2), .reason-grid article:nth-child(2) { border-right: 0; }
  .detail-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .process-grid article::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand { width: 205px; }
  .services-hero { min-height: 760px; align-items: flex-start; }
  .hero-photo { inset: 54% 0 0; }
  .hero-overlay { background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 51%, rgba(248,242,234,.72) 67%, rgba(248,242,234,.08) 100%); }
  .hero-content { padding-top: 54px; }
  .hero-text-column { width: 100%; max-width: 100%; }
  .hero-text-column .button { width: 100%; }
  h1 { font-size: 51px; }
  .hero-lead { font-size: 22px; }
  .service-card-grid, .detail-grid, .reason-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .detail-grid article, .reason-grid article { border-right: 0; border-bottom: 1px solid var(--border); }
  .detail-grid article:last-child, .reason-grid article:last-child { border-bottom: 0; }
  .footer-bottom { flex-direction: column; }
}
