/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colours */
  --c-bg:             #F4F0E8; /* Warm Limestone, main page background */
  --c-bg-soft:        #E7DED1; /* Soft Clay, alternating section bands */
  --c-text:           #24211D; /* Deep Charcoal, primary text */
  --c-text-invert:    #FFF9EF; /* Warm Ivory, text on dark sections */
  --c-accent:         #B58A4A; /* Muted Oak Gold — on dark backgrounds */
  --c-accent-on-light: #7d5c1e; /* Darkened Oak Gold — on cream (≥5:1 contrast) */
  --c-dark:           #26392F; /* Heritage Oak Green, dark sections, footer */
  --c-border:         #CFC5B7; /* Stone Grey, hairlines */
  --c-overlay:        rgba(20, 18, 15, 0.60); /* Hero image overlay — raised for contrast */

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);

  /* Spacing */
  --section-padding:    clamp(4rem, 9vw, 7rem);
  --container-padding:  clamp(1.25rem, 4vw, 2.5rem);
  --header-height:      6.25rem; /* fallback; overridden by JS to exact px */
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

/* ============================================================
   FOCUS STATES
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

main:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--c-dark);
  color: var(--c-text-invert);
  font-family: var(--font-body);
  font-size: 0.875rem;
  z-index: 9999;
  border-radius: 2px;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--section-padding);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Eyebrow: darker gold on cream for AA contrast; overridden on dark sections */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-on-light);
  margin-bottom: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out-expo),
              border-color 200ms var(--ease-out-expo),
              color 200ms var(--ease-out-expo);
}

.btn .btn__chevron {
  flex-shrink: 0;
  transition: transform 200ms var(--ease-out-expo);
}

.btn:hover .btn__chevron {
  transform: translateX(4px);
}

.btn--primary {
  background-color: var(--c-accent);
  color: var(--c-text-invert);
}

.btn--primary:hover {
  background-color: #9E7A3F;
}

.btn--outline {
  background: transparent;
  color: var(--c-text-invert);
  border: 1px solid rgba(255, 249, 239, 0.70);
}

.btn--outline:hover {
  border-color: var(--c-text-invert);
  background: rgba(255, 249, 239, 0.08);
}

.btn--dark {
  background-color: var(--c-dark);
  color: var(--c-text-invert);
}

.btn--dark:hover {
  background-color: #1a2820;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background-color: transparent;
  transition: background-color 400ms var(--ease-out-expo),
              border-bottom-color 400ms var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}

/* Gradient scrim for legibility over any hero image */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 18, 15, 0.55) 0%, transparent 100%);
  transition: opacity 400ms var(--ease-out-expo);
  pointer-events: none;
  z-index: -1;
}

.site-header.is-scrolled {
  background-color: var(--c-bg);
  border-bottom-color: var(--c-border);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.header__brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.header__wordmark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-invert);
  white-space: nowrap;
  transition: color 400ms var(--ease-out-expo);
}

.site-header.is-scrolled .header__wordmark {
  color: var(--c-text);
}

.header__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  padding: 0.15em 0.5em;
  border-radius: 2px;
  width: fit-content;
  transition: color 400ms var(--ease-out-expo), border-color 400ms var(--ease-out-expo);
}

/* Darken badge to meet contrast on cream background after scroll */
.site-header.is-scrolled .header__badge {
  color: var(--c-accent-on-light);
  border-color: var(--c-accent-on-light);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__phone {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-invert);
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms var(--ease-out-expo);
}

.site-header.is-scrolled .header__phone {
  color: var(--c-text);
}

.header__phone:hover {
  color: var(--c-accent) !important;
}

.header__nav--mobile {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.header__email-mobile {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--c-accent-on-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767px) {
  .header__nav--desktop {
    display: none;
  }
  .header__nav--mobile {
    display: flex;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-height));
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--c-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-scale 1200ms var(--ease-out-expo) both;
}

@keyframes hero-scale {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--c-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: calc(var(--header-height) + clamp(3rem, 7vh, 5rem));
  padding-bottom: clamp(4rem, 8vh, 6rem);
  color: var(--c-text-invert);
}

/* Hero eyebrow uses standard gold (on dark overlay) */
.hero .eyebrow {
  color: var(--c-accent);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  color: var(--c-text-invert);
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 249, 239, 0.82);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero__call-alt {
  font-size: 0.9375rem;
  color: rgba(255, 249, 239, 0.72);
}

.hero__call-link {
  color: var(--c-text-invert);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 249, 239, 0.45);
  transition: text-decoration-color 200ms;
}

.hero__call-link:hover {
  text-decoration-color: var(--c-text-invert);
}

/* ============================================================
   CREDIBILITY STRIP
   ============================================================ */
.credibility-strip {
  background-color: var(--c-bg-soft);
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--c-border);
}

.credibility-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 0;
}

.credibility-strip__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text);
}

.credibility-strip__dot {
  color: var(--c-accent-on-light);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.credibility-strip__item:first-child .credibility-strip__dot {
  display: none;
}

/* ============================================================
   WHAT WE DO
   ============================================================ */
.what-we-do {
  background-color: var(--c-bg);
}

.what-we-do__header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.what-we-do__lead {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: 0.8;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Flat editorial cards — no shadow, no border */
.card {
  display: flex;
  flex-direction: column;
}

.card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.card__image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--c-text);
}

.card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--c-text);
  opacity: 0.78;
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-accent-on-light);
  text-decoration: none;
  margin-top: 1rem;
  letter-spacing: 0.01em;
  transition: color 200ms var(--ease-out-expo);
}

.card__link:hover {
  color: var(--c-text);
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  background-color: var(--c-dark);
  color: var(--c-text-invert);
}

.why-us__header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

/* Why-us eyebrow on dark green — use standard gold */
.why-us .eyebrow {
  color: var(--c-accent);
}

.why-us h2 {
  color: var(--c-text-invert);
  margin-top: 0.25rem;
}

.why-us__points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .why-us__points {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.why-us__point {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-us__number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--c-accent);
  line-height: 1;
}

.why-us__point-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-text-invert);
  line-height: 1.35;
}

.why-us__point-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 249, 239, 0.72);
}

.why-us__quote {
  border-top: 1px solid rgba(207, 197, 183, 0.2);
  padding-top: 2.5rem;
  max-width: 680px;
}

.why-us__quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--c-accent);
  line-height: 1.45;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background-color: var(--c-bg);
  border-top: 1px solid var(--c-border);
}

.contact__header {
  max-width: 680px;
  margin-bottom: 0.5rem;
}

.contact__header h2 {
  margin-top: 0.25rem;
}

.contact__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: 0.82;
  max-width: 560px;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.contact__blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .contact__blocks {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.contact__block-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.contact__value {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.contact__value::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent-on-light);
  transition: width 300ms var(--ease-out-expo);
}

.contact__value:hover {
  color: var(--c-accent-on-light);
}

.contact__value:hover::after {
  width: 100%;
}

.contact__location {
  font-size: 0.9375rem;
  color: var(--c-text);
  opacity: 0.55;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--c-dark);
  color: var(--c-text-invert);
  padding-top: clamp(3rem, 7vw, 5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--c-text-invert);
  margin-bottom: 0.4rem;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 249, 239, 0.55);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__col a,
.footer__col p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 249, 239, 0.65);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--c-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(181, 138, 74, 0.3);
  padding-block: 1.5rem;
  text-align: center;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: rgba(255, 249, 239, 0.35);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.not-found__heading {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--c-dark);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.not-found__lead {
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.78;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.not-found__actions {
  display: flex;
  gap: 1rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

/* Only hide when JS is present — no flash without JS */
.js [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out-expo),
              transform 700ms var(--ease-out-expo);
}

.js [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 80ms; }
[data-animate-delay="2"] { transition-delay: 160ms; }
[data-animate-delay="3"] { transition-delay: 240ms; }

/* ============================================================
   HOLDING PAGE
   ============================================================ */
.holding {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--c-dark);
}

.holding__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.holding__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.holding__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.holding__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.35);
  z-index: 1;
}

.holding__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: var(--container-padding);
}

.holding__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--c-text-invert);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.holding__badge {
  color: var(--c-accent);
}

.holding__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--c-text-invert);
  opacity: 0.85;
  max-width: 36ch;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__media img {
    animation: none;
    transform: none;
  }

  .js [data-animate] {
    opacity: 0;
    transform: none;
    transition: opacity 400ms ease;
  }

  .js [data-animate].is-visible {
    opacity: 1;
  }
}
