/* ==========================================================================
   Alvi Ecom Enterprise — theme styles
   1. Tokens   2. Base   3. Layout   4. Buttons   5. Header   6. Hero
   7. Sections 8. Cards  9. Pages   10. Forms    11. Footer  12. Motion
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --ink: #10201b;
  --ink-2: #35473f;
  --ink-3: #6a7b73;
  --paper: #ffffff;
  --cream: #fbf7f1;
  --cream-2: #f4ece1;
  --brand: #1e6f5c;
  --brand-dark: #14503f;
  --brand-tint: #e6f1ed;
  --accent: #e2a34a;
  --accent-tint: #fdf1de;
  --line: rgba(16, 32, 27, .10);
  --line-2: rgba(16, 32, 27, .06);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 27, .05), 0 4px 14px rgba(16, 32, 27, .05);
  --shadow: 0 10px 30px -12px rgba(16, 32, 27, .18), 0 2px 6px rgba(16, 32, 27, .05);
  --shadow-lg: 0 30px 60px -28px rgba(16, 32, 27, .32);

  --font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.15em; }
li { margin-bottom: .4em; }
strong { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--accent); color: #fff; }

.screen-reader-text {
  position: absolute !important;
  clip-path: inset(50%);
  width: 1px; height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 3. Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.76); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-3); font-size: 1.06rem; margin-bottom: 0; }
.section--ink .section-head p { color: rgba(255,255,255,.66); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-tint);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.section--ink .eyebrow { color: var(--accent); background: rgba(226,163,74,.14); }

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

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  pointer-events: none; z-index: 0;
}
.blob--brand { background: rgba(30,111,92,.24); }
.blob--accent { background: rgba(226,163,74,.28); }

/* 4. Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body); letter-spacing: .01em;
  cursor: pointer; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #2a1d09; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--sm { padding: 11px 20px; font-size: .875rem; }
.btn--wide { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .93rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 5. Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .3s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(251,247,241,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  opacity: 0; transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-stuck { --header-h: 68px; }
.site-header.is-stuck::before { opacity: 1; border-bottom-color: var(--line); }

.header-inner { position: relative; display: flex; align-items: center; gap: 22px; width: 100%; }

.scroll-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 95;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  width: 42px; height: 42px; flex: none; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff; font: 700 1rem/1 var(--font-body); letter-spacing: -.02em;
  box-shadow: 0 6px 16px -6px rgba(30,111,92,.6);
  transition: transform .35s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); letter-spacing: -.02em; }
.brand__tag { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.brand img.custom-logo { max-height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; position: relative; }
.nav a {
  display: block; padding: 9px 13px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(16,32,27,.05); }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav a.is-active { color: var(--brand); background: var(--brand-tint); }

.nav .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px;
  flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub-menu a { border-radius: 9px; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; display: block;
    background: var(--cream); padding: 20px var(--gutter) 40px;
    overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 14px 16px; border-radius: 12px; font-size: 1.02rem; border-bottom: 1px solid var(--line-2); }
  .nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
}

/* 6. Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 92px)) 0 clamp(64px, 9vw, 110px);
  background:
    radial-gradient(1000px 520px at 82% -10%, var(--accent-tint), transparent 62%),
    radial-gradient(760px 460px at 6% 8%, var(--brand-tint), transparent 60%),
    var(--cream);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(16,32,27,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; position: relative; color: var(--brand); z-index: 1; }
.hero h1 em::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .06em; height: .26em;
  background: var(--accent); opacity: .3; border-radius: 4px; z-index: -1;
  transform: scaleX(0); transform-origin: left;
  animation: underline-in .9s var(--ease) .6s forwards;
}
@keyframes underline-in { to { transform: scaleX(1); } }

.hero__lead { font-size: 1.1rem; color: var(--ink-3); max-width: 31em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__meta strong { display: block; font-family: var(--font-head); font-size: 1.55rem; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.hero__meta span { font-size: .8rem; color: var(--ink-3); }

.hero__art { position: relative; min-height: 460px; }
.tile {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; color: #fff;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile > * { position: relative; z-index: 2; }
.tile__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.tile:hover .tile__img { transform: scale(1.07); }
.tile__label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.tile__name { font-family: var(--font-head); font-size: 1.1rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.tile--a { top: 0; left: 0; width: 58%; height: 56%; background: #17594a; animation: float 7s ease-in-out infinite; }
.tile--a::before { background: linear-gradient(to top, rgba(7, 32, 26, .93) 0%, rgba(9, 38, 31, .45) 38%, rgba(9, 38, 31, .06) 72%); }
.tile--b { top: 10%; right: 0; width: 38%; height: 38%; background: #c98a3a; animation: float 8s ease-in-out infinite .8s; }
.tile--b::before { background: linear-gradient(to top, rgba(74, 44, 10, .9) 0%, rgba(120, 73, 20, .35) 42%, rgba(226, 163, 74, .05) 75%); }
.tile--c { bottom: 0; right: 4%; width: 54%; height: 44%; background: #1b2b25; animation: float 9s ease-in-out infinite 1.4s; }
.tile--c::before { background: linear-gradient(to top, rgba(6, 14, 12, .93) 0%, rgba(10, 22, 18, .45) 40%, rgba(10, 22, 18, .05) 74%); }
.tile--d {
  bottom: 10%; left: 0; width: 42%; padding: 16px 18px; height: auto;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
  animation: float 7.5s ease-in-out infinite .4s;
}
.tile--d::before { display: none; }
.tile--d .tile__label { color: var(--ink-3); }
.tile--d strong { font-family: var(--font-head); font-size: 1.35rem; display: block; line-height: 1.2; }
.tile__icon {
  position: absolute; top: 14px; left: 16px; width: 34px; height: 34px; z-index: 2;
  display: grid; place-items: center; border-radius: 11px;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 7px; opacity: 1;
}
.tile__icon svg { width: 100%; height: 100%; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-.6deg); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { min-height: 400px; order: -1; width: 100%; max-width: 460px; }
}
@media (max-width: 520px) {
  .hero__art { min-height: 320px; }
  .hero__meta { gap: 20px; }
}

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--paper); padding: 18px 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 46px; padding-right: 46px; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink-3); }
.marquee__item svg { width: 18px; height: 18px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 7. Cards -------------------------------------------------------------- */
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-3); font-size: .96rem; margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); margin-bottom: 20px;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.card__icon svg { width: 24px; height: 24px; }
.card:hover .card__icon { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card--num .card__icon { background: var(--accent-tint); color: #9a6413; font: 700 1.05rem/1 var(--font-body); }
.card:hover.card--num .card__icon { background: var(--accent); color: #2a1d09; }

/* Category cards */
.cat {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 210px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; isolation: isolate; border: 0;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cat::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(155deg, var(--c1, #2c7f6a), var(--c2, #143f34));
  transition: transform .6s var(--ease);
}
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.22), transparent 60%);
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat:hover::before { transform: scale(1.08); }
.cat__icon { width: 40px; height: 40px; margin-bottom: auto; opacity: .95; }
.cat__icon svg { width: 100%; height: 100%; }
.cat h3 { color: #fff; margin-bottom: 4px; font-size: 1.2rem; }
.cat p { color: rgba(255,255,255,.78); font-size: .88rem; margin: 0; }
.cat--1 { --c1: #2c7f6a; --c2: #123c31; }
.cat--2 { --c1: #e2a34a; --c2: #a85f21; }
.cat--3 { --c1: #4a6b8a; --c2: #1d3348; }
.cat--4 { --c1: #a05c62; --c2: #4b2429; }
.cat--5 { --c1: #567a5b; --c2: #223826; }
.cat--6 { --c1: #7a6ca0; --c2: #322a4d; }
.cat--7 { --c1: #3f8f8a; --c2: #14413f; }
.cat--8 { --c1: #b0803f; --c2: #4c3211; }

/* Split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: .97rem; }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 3px; }
.section--ink .checklist svg,
.media-card .checklist svg,
.cta-band .checklist svg { color: var(--accent); }
.media-card .checklist li,
.cta-band .checklist li { color: rgba(255,255,255,.82); }

.media-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 34px;
  background: linear-gradient(160deg, var(--brand), var(--brand-dark)); color: #fff;
  min-height: 340px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.media-card::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
}
.media-card > * { position: relative; z-index: 1; }
.media-card h3 { color: #fff; }
.media-card p { color: rgba(255,255,255,.78); }
.media-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); }
.media-card__stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; line-height: 1; }
.media-card__stats span { font-size: .74rem; color: rgba(255,255,255,.66); letter-spacing: .06em; text-transform: uppercase; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num {
  font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--accent);
  display: block; margin-bottom: 14px; opacity: .9;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .93rem; color: var(--ink-3); margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -14px; width: 8px; height: 8px;
  border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: rotate(45deg);
}
@media (max-width: 980px) { .step::after { display: none !important; } }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3rem); color: #fff; line-height: 1;
}
.stat span { font-size: .85rem; color: rgba(255,255,255,.6); letter-spacing: .04em; }

/* Testimonials */
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quote__stars { display: flex; gap: 3px; color: var(--accent); }
.quote__stars svg { width: 17px; height: 17px; }
.quote p { font-size: 1rem; color: var(--ink-2); margin: 0; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: .9rem;
}
.quote__who b { display: block; color: var(--ink); font-size: .93rem; }
.quote__who small { color: var(--ink-3); font-size: .82rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 64px);
  background: linear-gradient(140deg, #16352c, #0b1a16);
  color: rgba(255,255,255,.78); text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; max-width: 16em; margin-inline: auto; }
.cta-band p { max-width: 42em; margin-inline: auto; }
.cta-band .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.cta-band .blob { z-index: 0; }
.cta-band > * { position: relative; z-index: 1; }

/* Contact info tiles */
.info-tile {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.info-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-tile__icon {
  width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.info-tile__icon svg { width: 21px; height: 21px; }
.info-tile h4 { margin: 0 0 4px; font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.info-tile p { margin: 0; color: var(--ink); font-size: .98rem; }
.info-tile a { color: var(--ink); }
.info-tile a:hover { color: var(--brand); }

/* 8. Interior pages ----------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 6vw, 76px)) 0 clamp(44px, 6vw, 68px);
  background:
    radial-gradient(760px 420px at 88% -20%, var(--accent-tint), transparent 60%),
    radial-gradient(620px 380px at 4% 0%, var(--brand-tint), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(16,32,27,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: .3em; }
.page-hero p { color: var(--ink-3); font-size: 1.06rem; margin: 0; max-width: 46em; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: .5; }

.prose { font-size: 1.02rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2em 0 .6em; }
.prose h3 { margin: 1.7em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--accent);
  background: var(--accent-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2);
}
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--cream-2); color: var(--ink); font-weight: 700; }
.prose code { background: var(--cream-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 24px; }

/* Definition/detail table used on Business Details */
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table tr { border-bottom: 1px solid var(--line-2); }
.detail-table tr:last-child { border-bottom: 0; }
.detail-table th {
  text-align: left; padding: 14px 18px 14px 0; width: 38%; vertical-align: top;
  font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.detail-table td { padding: 14px 0; color: var(--ink); font-size: .99rem; }
@media (max-width: 620px) {
  .detail-table th, .detail-table td { display: block; width: 100%; padding: 10px 0 0; }
  .detail-table td { padding: 2px 0 12px; }
}

/* Sticky table of contents (legal pages) */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static !important; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc h4 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a { display: block; padding: 8px 12px; border-radius: 10px; font-size: .9rem; color: var(--ink-2); border-left: 2px solid var(--line); }
.toc a:hover, .toc a.is-active { background: var(--paper); color: var(--brand); border-left-color: var(--brand); }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); font-size: .84rem; color: var(--ink-2);
}
.badge svg { width: 15px; height: 15px; color: var(--brand); }

.notice {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--accent-tint); border: 1px solid rgba(226,163,74,.35); color: #6a4a12; font-size: .94rem;
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.notice p { margin: 0; }

/* 9. Forms -------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field label, .wpcf7 label {
  display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-2); margin-bottom: 7px;
}
.field .req { color: #b4442f; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="number"], select, textarea {
  width: 100%; padding: 13px 16px; font: 400 .97rem/1.5 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xs);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30,111,92,.12);
}
::placeholder { color: #9aa8a2; }
.hp-field { position: absolute; left: -9999px; }

.form-note { font-size: .85rem; color: var(--ink-3); margin: 14px 0 0; }

.alert { padding: 14px 18px; border-radius: var(--radius-xs); font-size: .94rem; margin-bottom: 22px; }
.alert--ok { background: var(--brand-tint); color: var(--brand-dark); border: 1px solid rgba(30,111,92,.25); }
.alert--err { background: #fdecea; color: #9a2a1a; border: 1px solid rgba(154,42,26,.22); }

/* 10. Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: clamp(54px, 7vw, 82px) 0 0; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: rgba(255,255,255,.45); }
.footer-about p { font-size: .94rem; margin: 18px 0 0; max-width: 34em; }
.footer-col h4 {
  color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col li { margin: 0; font-size: .94rem; }
.footer-col .menu { display: grid; gap: 9px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.10); font-size: .86rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-chip {
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px;
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65);
}

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); }
.to-top svg { width: 18px; height: 18px; }

/* Blog / archive / 404 */
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card__meta { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.post-card h3 { margin: 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.error-404 { text-align: center; padding: clamp(90px, 14vw, 160px) 0; }
.error-404 .code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 10rem); line-height: .9; color: var(--brand); opacity: .18; }

/* 11. Motion ------------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* WP admin bar offset */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .nav { inset: calc(var(--header-h) + 32px) 0 0; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* 12. Plugin compatibility ---------------------------------------------- */
.alvi-cf7 .wpcf7-form p { margin: 0 0 16px; }
.alvi-cf7 .wpcf7-form label { display: block; }
.alvi-cf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.alvi-cf7 input.wpcf7-submit {
  width: 100%; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff; font: 600 .95rem/1 var(--font-body);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.alvi-cf7 input.wpcf7-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.alvi-cf7 .wpcf7-not-valid-tip { color: #b4442f; font-size: .84rem; margin-top: 5px; }
.alvi-cf7 .wpcf7-response-output {
  margin: 18px 0 0 !important; padding: 14px 18px !important; border-radius: var(--radius-xs);
  border-width: 1px !important; font-size: .94rem;
}
.alvi-cf7 .wpcf7 form.sent .wpcf7-response-output { border-color: rgba(30,111,92,.35) !important; background: var(--brand-tint); color: var(--brand-dark); }

.comments-area { margin-top: 40px; }
.comment-list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.comment-list .comment-meta { font-size: .85rem; color: var(--ink-3); }
.comment-form .submit, .comment-form input[type="submit"] {
  padding: 14px 26px; border: 0; border-radius: 999px; background: var(--brand); color: #fff;
  font: 600 .95rem/1 var(--font-body); cursor: pointer;
}

/* Gutenberg alignment helpers inside .prose */
.prose .alignwide { width: min(100%, 1080px); margin-inline: auto; }
.prose .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.prose .alignleft { float: left; margin: 0 1.5em 1em 0; }
.prose .alignright { float: right; margin: 0 0 1em 1.5em; }
.prose .aligncenter { margin-inline: auto; }
.prose .wp-caption-text, .prose figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; }
