/* ==========================================================================
   Raccoun Vag — Design System
   ========================================================================== */

:root {
  --color-bg: #F5F0E8;
  --color-surface: #EDE4D6;
  --color-text: #2B2622;
  --color-muted: #8A7F70;
  --color-accent: #B5622D;
  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 200;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Eyebrow + signature rule ------------------------------------------------ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}
.eyebrow.center { text-align: center; }

.rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 0.9rem 0 1.4rem;
}
.rule.center { margin-inline: auto; }
.rule.small { margin: 0.6rem 0 1rem; width: 32px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(43, 38, 34, 0.08);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.wordmark.small { font-size: 1.05rem; margin: 0 0 0.3rem; }

.primary-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,38,34,0) 30%, rgba(43,38,34,0.55) 90%);
  z-index: -1;
}
.hero-content {
  color: #F5F0E8;
  padding: var(--gutter);
  max-width: 640px;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero-content .eyebrow { color: rgba(245,240,232,0.85); }
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: #F5F0E8;
}
.hero-content h1 em {
  font-style: italic;
  color: #F5F0E8;
}
.hero-lede {
  font-size: 1.05rem;
  max-width: 30em;
  color: rgba(245,240,232,0.92);
}

/* Generic section ---------------------------------------------------------- */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}
.text-frame {
  max-width: 760px;
  margin: 0 auto;
}
.text-frame.narrow { max-width: 560px; }
.lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.35;
}

.statement { background: var(--color-bg); }
.statement-alt { background: var(--color-surface); }
.process-teaser { padding-top: 0; }

/* Split / asymmetric editorial ---------------------------------------------*/
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
.split-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

/* Full-bleed ----------------------------------------------------------------*/
.fullbleed {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.fullbleed img {
  width: 100%;
  height: clamp(320px, 60vw, 640px);
  object-fit: cover;
}
.fullbleed-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 1.5rem;
  color: #F5F0E8;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  max-width: 26em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  margin: 0;
}

/* Gallery -------------------------------------------------------------------*/
.gallery-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
  text-align: center;
}
.gallery-frame {
  margin: 2rem auto 0;
  max-width: var(--max-width);
}
.gallery-frame img {
  width: 100%;
  height: clamp(280px, 46vw, 560px);
  object-fit: cover;
}
.gallery-frame figcaption {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* FAQ -------------------------------------------------------------------- */
.faq { background: var(--color-surface); }
.faq-list { margin: 0; }
.faq-item {
  border-top: 1px solid rgba(43,38,34,0.12);
  padding: 1.4rem 0;
}
.faq-item:first-of-type { border-top: none; }
.faq-item dt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.faq-item dd { margin: 0; color: var(--color-text); }

/* CTA ---------------------------------------------------------------------*/
.cta {
  position: relative;
  overflow: hidden;
}
.cta img {
  width: 100%;
  height: clamp(360px, 60vw, 620px);
  object-fit: cover;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43,38,34,0.65) 0%, rgba(43,38,34,0.1) 60%);
}
.cta-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  max-width: 480px;
  color: #F5F0E8;
}
.cta-content .eyebrow { color: rgba(245,240,232,0.85); }
.cta-content h2 { color: #F5F0E8; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.cta-contact { margin-top: 1.5rem; font-size: 0.92rem; opacity: 0.92; }
.cta-contact a { text-decoration: underline; text-decoration-color: rgba(245,240,232,0.5); }

/* Buttons ------------------------------------------------------------------*/
.btn-outline {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.75em 1.6em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-outline:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #F5F0E8;
}

/* Page banner (subpages) ---------------------------------------------------*/
.page-banner {
  position: relative;
  overflow: hidden;
}
.page-banner img {
  width: 100%;
  height: clamp(320px, 48vw, 520px);
  object-fit: cover;
}
.page-banner.short img { height: clamp(240px, 34vw, 400px); }
.page-banner-content {
  position: absolute;
  left: var(--gutter);
  bottom: 2rem;
  color: #F5F0E8;
  max-width: 640px;
}
.page-banner-content h1 { color: #F5F0E8; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,38,34,0) 40%, rgba(43,38,34,0.6) 100%);
}
.page-banner-content { z-index: 1; }

/* Category grid (services) -------------------------------------------------*/
.grid-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}
.cat p:last-child { color: var(--color-text); }

/* Steps (process) -----------------------------------------------------------*/
.step-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}
.step-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.2rem;
  border-top: 1px solid rgba(43,38,34,0.12);
  padding-top: 1.6rem;
}
.step-list li:first-child { border-top: none; padding-top: 0; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-accent);
}
.step-list h3 { margin-bottom: 0.35em; font-size: 1.2rem; }

/* Contact grid ---------------------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}
.contact-block a { text-decoration: underline; text-decoration-color: rgba(181,98,45,0.4); }

/* Footer ---------------------------------------------------------------------*/
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(43,38,34,0.1);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-tagline { color: var(--color-muted); max-width: 22em; }
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a { color: var(--color-text); }
.footer-nav a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(43,38,34,0.1);
  padding: 1.2rem var(--gutter);
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
}

/* Reveal animation ------------------------------------------------------------*/
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Responsive ------------------------------------------------------------------*/
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media,
  .split.reverse .split-text,
  .split-media, .split-text { order: initial; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(43,38,34,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.is-open { max-height: 400px; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .primary-nav li { padding: 0.6rem 0; border-top: 1px solid rgba(43,38,34,0.08); }
  .primary-nav li:first-child { border-top: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-content { max-width: 90%; }
}
/* Landing Factory generated brand lockup */
.lf-brand-lockup{display:inline-flex;align-items:center;text-decoration:none;flex:0 0 auto}.lf-brand-lockup img{display:block;width:auto;height:44px;max-width:min(260px,48vw);object-fit:contain}@media(max-width:700px){.lf-brand-lockup img{height:36px;max-width:54vw}}
