/* ============================================================
   Seek First Accounting — main.css
   Single source of truth for brand tokens. Values from the
   provided logo are marked /* from logo *​/; others are
   curated placeholders pending the Drive brand guidelines doc.
   ============================================================ */

:root {
  /* Brand palette — green & sienna sampled from the logo (Lm-Colorway1.png) */
  --color-primary:   #234230; /* from logo — deep forest green: headings, CTAs */
  --color-primary-d: #18301F; /* darker green for hover/active on dark CTAs */
  --color-sage:      #A7B8A3; /* soft sage tint — light sections/accents */
  --color-sage-l:    #DCE4D8; /* very light sage wash */
  --color-secondary: #BFA0A4; /* mauve — accents/highlights */
  --color-mauve-l:   #EFE6E6; /* light mauve wash */
  --color-neutral:   #F7F2E8; /* cream — page background */
  --color-cream-d:   #EFE7D6; /* deeper cream for contrast blocks */
  --color-accent:    #C4582E; /* from logo — sienna: decorative accents, borders, hover */
  --color-accent-d:  #A2461F; /* darker sienna for hover/active */
  --color-accent-text: #A2461F; /* AA-safe sienna for small text (labels, captions) — passes 4.5:1 on cream/sage/mauve/white */
  --color-text:      #2A2A26; /* body copy */
  --color-text-soft: #55564E; /* secondary text */
  --color-white:     #FFFDF9;

  /* Typography — PLACEHOLDER: confirm exact fonts from Drive brand doc */
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing & layout */
  --max-w: 1100px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --radius: 14px;
  --nav-h: 4.75rem;

  --shadow-none: none; /* PRD: no drop shadows — depth via borders/tints */
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-neutral);
  line-height: 1.65;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ----------------------------- Layout ----------------------------- */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--color-primary); color: var(--color-white);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.section-label {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.78rem; font-weight: 700;
  color: var(--color-accent-text); margin-bottom: 0.75rem;
}
.section-heading { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); color: var(--color-primary); }
.section-intro { max-width: 38rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-intro .section-heading { margin-top: 0.25rem; }

/* Decorative divider between sections */
.section-divider {
  height: 2px; width: 100%;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(90deg, transparent, var(--color-sage), transparent);
  opacity: 0.6;
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  padding: 0.7rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-accent); }
.btn--primary:active { background: var(--color-accent-d); transform: translateY(1px); }
.btn--lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* ----------------------------- Wordmark ----------------------------- */
.wordmark { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--color-primary); }
.wordmark__logo { flex: none; width: 40px; height: 40px; object-fit: contain; }
.wordmark__chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: var(--color-neutral);
}
.wordmark__chip img { width: 30px; height: 30px; object-fit: contain; }
.wordmark__text {
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem;
  line-height: 1; display: flex; flex-direction: column;
}
.wordmark__text small {
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-text-soft); margin-top: 0.2rem;
}
.wordmark--sm .wordmark__text { font-size: 1.15rem; }

/* ----------------------------- Nav ----------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: var(--color-neutral);
  border-bottom-color: var(--color-cream-d);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { text-decoration: none; }

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); list-style: none; }
.nav__links a {
  text-decoration: none; font-weight: 600; color: var(--color-text);
  padding: 0.35rem 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--color-accent); transition: width 0.2s ease;
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { width: 100%; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--color-primary); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.25rem;
    background: var(--color-neutral); padding: 1.5rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--color-cream-d);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav__cta { align-self: flex-start; }
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--color-neutral) 0%, var(--color-sage-l) 100%);
  min-height: 80vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero__texture {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.hero__plant {
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  height: 78%; width: auto;
}
@media (max-width: 760px) { .hero__plant { height: 55%; right: -4%; opacity: 0.6; } }
@media (max-width: 480px) { .hero__plant { display: none; } }
.hero__inner { position: relative; max-width: 52rem; text-align: left; }
.hero__logo { width: clamp(64px, 8vw, 88px); height: auto; margin-bottom: 1.5rem; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8rem;
  font-weight: 700; color: var(--color-accent-text); margin-bottom: 1.25rem;
}
.hero__heading { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 4rem); color: var(--color-primary); }
.hero__tagline {
  font-family: var(--font-head); font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  color: var(--color-accent-text); font-style: italic; margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--color-text-soft);
  max-width: 40rem; margin: 1.5rem 0 2.25rem;
}

/* ----------------------------- About ----------------------------- */
.about { padding-block: var(--section-y); }
.about__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--color-sage-l); }
.about__img { width: 100%; height: 100%; object-fit: cover; }
.about__img.is-missing { display: none; }
/* Show the styled placeholder only when the image fails to load (JS adds .is-missing) */
.about__img.is-missing ~ .about__photo-fallback { display: flex; }
.about__photo-fallback {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.4rem;
  background: repeating-linear-gradient(45deg, var(--color-sage-l), var(--color-sage-l) 14px, var(--color-cream-d) 14px, var(--color-cream-d) 28px);
  color: var(--color-primary); text-align: center; padding: 1rem;
}
.about__photo-fallback span { font-family: var(--font-head); font-size: 1.2rem; }
.about__photo-fallback small { color: var(--color-text-soft); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; }
.about__text p + p { margin-top: 1.1rem; }
.about__text p:first-of-type { margin-top: 1.25rem; }

@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 22rem; }
}

/* ----------------------------- Services ----------------------------- */
.services { padding-block: var(--section-y); background: var(--color-cream-d); }
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.card {
  background: var(--color-white); border: 1px solid var(--color-cream-d);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--color-sage); transform: translateY(-3px); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 12px;
  background: var(--color-sage-l); color: var(--color-primary); margin-bottom: 1.1rem;
}
.card__icon svg { width: 1.6rem; height: 1.6rem; }
.card__title { font-size: 1.3rem; color: var(--color-primary); margin-bottom: 0.6rem; }
.card p { color: var(--color-text-soft); }

@media (max-width: 760px) { .services__grid { grid-template-columns: 1fr; } }

/* ----------------------------- Who We Serve ----------------------------- */
.who { position: relative; padding-block: var(--section-y); background: var(--color-sage-l); }
.who__inner { max-width: 46rem; }
.who__body { margin-top: 1.25rem; }
.who__body p + p { margin-top: 1.1rem; }
.who__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.who__tags li {
  background: var(--color-white); border: 1px solid var(--color-sage);
  color: var(--color-primary); border-radius: 999px;
  padding: 0.4rem 0.95rem; font-size: 0.9rem; font-weight: 600;
}
.pull-quote {
  margin-top: 2.5rem; padding-left: 1.5rem;
  border-left: 4px solid var(--color-accent);
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem);
  color: var(--color-primary); line-height: 1.35;
}

/* ----------------------------- Testimonials ----------------------------- */
.testimonials { padding-block: var(--section-y); }
.testimonials__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.quote-card {
  background: var(--color-white); border: 1px solid var(--color-cream-d);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.quote-card blockquote { font-family: var(--font-head); font-size: 1.15rem; color: var(--color-text); line-height: 1.5; }
.quote-card figcaption { color: var(--color-accent-text); font-weight: 600; font-size: 0.95rem; }

@media (max-width: 880px) { .testimonials__grid { grid-template-columns: 1fr; max-width: 32rem; } }

/* ----------------------------- Contact ----------------------------- */
.contact { padding-block: var(--section-y); background: var(--color-cream-d); }
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.contact__sub { color: var(--color-text-soft); margin-top: 1rem; max-width: 30rem; }
.contact__info { list-style: none; margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; }
.contact__info li { display: flex; align-items: center; gap: 0.75rem; }
.contact__info a { color: var(--color-primary); font-weight: 600; }
.contact__info a:hover { color: var(--color-accent); }

.contact__booking {
  display: flex; align-items: center; justify-content: center;
}
.booking__card {
  background: var(--color-white); border: 1px solid var(--color-cream-d);
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
  width: 100%;
}
.booking__icon { color: var(--color-primary); }
.booking__title { font-family: var(--font-head); font-size: clamp(1.5rem, 2vw, 2rem); color: var(--color-primary); }
.booking__sub { color: var(--color-text-soft); max-width: 28rem; line-height: 1.6; }

@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } }

/* ----------------------------- Footer ----------------------------- */
.footer { background: var(--color-primary); color: var(--color-white); padding-block: clamp(2rem, 5vw, 3rem); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer .wordmark { color: var(--color-white); }
.footer .wordmark__text small { color: rgba(255,253,249,0.7); }
.footer__brand { text-decoration: none; }
.footer__copy { color: rgba(255,253,249,0.8); font-size: 0.95rem; }
.footer__links { display: flex; align-items: center; gap: 1.5rem; }
.footer__links a { color: var(--color-white); text-decoration: none; }
.footer__links a:hover { color: var(--color-sage); }
.footer__cta { font-weight: 600; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.footer__cta:hover { border-bottom-color: var(--color-sage); }

@media (max-width: 560px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ----------------------------- Scroll fade-in ----------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
