/* ============================================================
   LEGACY STANDARD SOLUTIONS — global.css
   Shared across all pages: reset, tokens, nav, footer, buttons
   Design language: warm, handcrafted, editorial, calm.
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Colors — soft, nature-inspired */
  --color-parchment:  #FBF6E9;   /* page background */
  --color-cream:      #FFFDF8;   /* cards */
  --color-green:      #5D8A52;   /* primary */
  --color-green-dk:   #487140;   /* hover */
  --color-green-soft: #EAF1E3;   /* tinted chips / icon backgrounds */
  --color-forest:     #3B5233;   /* deep warm green for dark panels */
  --color-forest-dk:  #2C4126;   /* darker still — the footer, page's full stop */
  --color-gold:       #D8B75A;   /* accent — decorative use */
  --color-gold-text:  #D9B95E;   /* gold as text on forest — 4.53:1 (WCAG AA) */
  --color-gold-ink:   #856419;   /* gold as small text on cream/parchment — 5.39:1 */
  --color-gold-soft:  #F4E9C9;   /* pale gold wash */
  --color-sky:        #DCECF8;   /* sky accent */
  --color-ink:        #2E2A24;   /* primary text — warm, never black */
  --color-muted:      #767068;   /* secondary text — 4.54:1 on parchment (WCAG AA) */
  --color-border:     #EDE4D2;   /* subtle warm beige */

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', 'Helvetica Neue', sans-serif;

  /* Spacing scale (8px base) */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   40px;
  --space-xl:   64px;
  --space-2xl:  112px;

  /* Border radius — soft and generous */
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* Shadows — warm and diffuse, never harsh */
  --shadow-sm: 0 2px 12px rgba(76, 66, 45, 0.05);
  --shadow-md: 0 12px 32px rgba(76, 66, 45, 0.09);
  --shadow-lg: 0 24px 56px rgba(59, 82, 51, 0.14);

  /* Transitions */
  --transition: 0.25s ease;

  /* Nav height */
  --nav-height: 76px;

  /* Subtle paper grain (data-URL, ~2% visible) */
  --texture-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");

  /* Slightly coarser grain with a faint fibre weave — for the deep
     green panels, where a flat fill otherwise reads as printed plastic. */
  --texture-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23f)' opacity='0.09'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-parchment);
  background-image: var(--texture-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: var(--color-gold-soft);
  color: var(--color-ink);
}

/* ── TYPOGRAPHY UTILITIES ── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-green-dk);   /* 5.24:1 on parchment; plain green fails AA */
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-sm);
}

/* small hand-drawn-feeling rule beside every eyebrow */
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.body-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 620px;
}

/* ── LAYOUT UTILITIES ── */
.container {
  max-width: 1020px;
  margin: 0 auto;
}

.section-pad {
  padding: var(--space-2xl) var(--space-xl);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-green-dk);   /* 5.57:1 with cream text (WCAG AA) */
  color: #FFFDF8;
  box-shadow: 0 4px 16px rgba(72, 113, 64, 0.3);
}

.btn--primary:hover {
  background: var(--color-forest);
  box-shadow: 0 6px 20px rgba(59, 82, 51, 0.34);
  transform: translateY(-1px);
}

/* secondary — a quiet text link */
.btn--ghost {
  color: var(--color-green-dk);
  background: none;
  border-radius: 0;
  padding: 0 0 3px;
  font-weight: 500;
  border-bottom: 1px solid rgba(93, 138, 82, 0.35);
}

.btn--ghost:hover {
  color: var(--color-green-dk);
  border-color: var(--color-green-dk);
}

.btn--white {
  background: var(--color-cream);
  color: var(--color-forest);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  background: var(--color-ink);
  color: var(--color-cream);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 246, 233, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(237, 228, 210, 0.8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.nav__icon {
  width: 40px;
  height: 40px;
  background: var(--color-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(93, 138, 82, 0.25);
}

.nav__icon-letter {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  color: #FFFDF8;
  line-height: 1;
  position: relative;
  top: 1px;
}

.nav__icon-dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

.nav__dot--1 { background: rgba(255, 253, 248, 0.95); }
.nav__dot--2 { background: var(--color-gold); }
.nav__dot--3 { background: rgba(255, 253, 248, 0.4); }

.nav__divider {
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  opacity: 0.5;
}

.nav__name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}

/* SVG logo image (replaces CSS-built logo when used) */
.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer__logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 4px;
  transition: color var(--transition);
}

/* leaf-green underline that grows out from the centre on hover */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-green-dk);
}

.nav__link--active::after {
  background: var(--color-gold);
  transform: scaleX(1);
}

.nav__link--cta {
  background: var(--color-green-dk);
  color: #FFFDF8;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 12px rgba(93, 138, 82, 0.22);
}

.nav__link--cta::after,
.nav__link--cta.nav__link--active::after {
  display: none;
}

/* current page, when that page is also the CTA (Contact) */
.nav__link--current {
  box-shadow: 0 0 0 2px var(--color-gold), 0 3px 12px rgba(93, 138, 82, 0.22);
}

.nav__link--cta:hover {
  background: var(--color-forest);
  color: #FFFDF8;
}

/* hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  margin-right: -10px;   /* keeps the icon optically aligned to the edge */
  padding: 0;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: var(--transition);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-parchment);
  background-image: var(--texture-paper);
  z-index: 110;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

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

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.mobile-menu__link:hover {
  color: var(--color-green);
}

.mobile-menu__close {
  position: absolute;
  top: 14px;
  right: var(--space-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  color: var(--color-muted);
  background: none;
  border: none;
  font-family: var(--font-sans);
  line-height: 1;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.page-header__inner {
  max-width: 1020px;
  margin: 0 auto;
}

.page-header__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 640px;
}

.page-header__intro {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.8;
  margin-top: var(--space-sm);
}

/* ── FOOTER — warm deep green, like evening light ── */
.footer {
  background-color: var(--color-forest-dk);
  background-image:
    var(--texture-card),
    radial-gradient(ellipse 70% 90% at 90% -10%, rgba(216, 183, 90, 0.1) 0%, transparent 60%),
    var(--texture-paper);
  padding: var(--space-xl) var(--space-xl) var(--space-md);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(251, 246, 233, 0.12);
  margin-bottom: var(--space-md);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.footer__icon {
  width: 38px;
  height: 38px;
  background: rgba(251, 246, 233, 0.2);
  border: 1px solid rgba(251, 246, 233, 0.34);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.footer__icon-letter {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-parchment);
  line-height: 1;
  position: relative;
  top: 1px;
}

.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--color-parchment);
  font-weight: 500;
}

.footer__tagline {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 246, 233, 0.78);
  font-weight: 500;
  margin-top: 4px;
}

.footer__nav {
  display: flex;
  gap: var(--space-md);
}

.footer__nav-link {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(251, 246, 233, 0.78);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: var(--color-gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(251, 246, 233, 0.7);
  font-weight: 400;
}

.footer__email {
  font-size: 12.5px;
  color: rgba(251, 246, 233, 0.65);
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__email:hover {
  color: var(--color-gold);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root {
    --space-xl: 24px;
    --space-2xl: 72px;

    /* Mobile vertical rhythm: major sections breathe, strips stay tight.
       Without these, every section collapsed to the same 24px and the
       page lost its sense of pacing. */
    --section-y:      72px;   /* standard section */
    --section-y-lead: 84px;   /* first section after a dark band */
    --strip-y:        28px;   /* trust strip, dividers */
  }

  /* Invisible tap-area extension: keeps small text links visually
     unchanged while giving them a comfortable 44px target. */
  .service-card__link,
  .footer__nav-link,
  .footer__email,
  .btn--ghost,
  .contact__info-value a {
    position: relative;
  }

  .service-card__link::before,
  .footer__nav-link::before,
  .footer__email::before,
  .btn--ghost::before,
  .contact__info-value a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
  }

  .footer__nav {
    gap: var(--space-lg);
  }

  .nav__logo {
    min-height: 44px;
  }

  .nav {
    padding: 0 var(--space-md);
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .footer__top {
    gap: var(--space-md);
    padding-bottom: var(--space-md);
  }

  .page-header {
    padding-top: calc(var(--nav-height) + var(--space-md));
  }
}

/* ── SCROLL REVEAL ──────────────────────────────────────────
   .reveal is only ever applied by JavaScript, so content is
   never hidden from visitors without it. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── FOCUS VISIBILITY ──────────────────────────────────────
   Keyboard users need to see where they are. Mouse users
   don't get the ring, thanks to :focus-visible. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer a:focus-visible,
.trust-strip a:focus-visible,
.case-hero a:focus-visible,
.contact__left a:focus-visible,
.studio a:focus-visible {
  outline-color: var(--color-gold);
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -60px;
  z-index: 200;
  background: var(--color-green-dk);
  color: #FFFDF8;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ── FOOTER CONTACT PAIR ── */
.footer__contact {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__phone {
  font-size: 12.5px;
  color: rgba(251, 246, 233, 0.7);
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__phone:hover {
  color: var(--color-gold);
}

@media (max-width: 768px) {
  .footer__contact {
    justify-content: center;
    gap: var(--space-sm);
  }

  .footer__phone {
    position: relative;
  }

  .footer__phone::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
  }
}

/* ── TAP TO CALL (mobile menu) ── */
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--color-border);
  width: min(320px, 78%);
}

.mobile-menu__call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--color-green-dk);
  color: #FFFDF8;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(72, 113, 64, 0.28);
  transition: background var(--transition), transform var(--transition);
}

.mobile-menu__call:hover,
.mobile-menu__call:active {
  background: var(--color-forest);
  transform: translateY(-1px);
}

.mobile-menu__call svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.mobile-menu__hours {
  font-size: 12.5px;
  color: var(--color-muted);
  text-align: center;
}
