/* ==========================================================================
   refine.css — Eco Creational design refinement
   Loaded AFTER each page's inline <style>, so it overrides without editing it.
   Sections: 1 Tokens · 2 Type · 3 Surfaces & texture · 4 Buttons · 5 Cards
             6 Forms · 7 Removed effects · 8 Accessibility & motion
   ========================================================================== */

/* 1 ── TOKENS ─────────────────────────────────────────────────────────────
   Old variable names are remapped so every existing rule picks up the new
   palette: warm canvas, warm charcoal ink, forest green, terracotta accent. */
:root {
  --canvas:      #F9F8F6;   /* unbleached cotton */
  --ink:         #2B2724;   /* warm charcoal */
  --ink-soft:    #57514B;
  --ink-faint:   #7A736C;
  --line:        #E7E5E4;   /* stone-200 */
  --forest:      #2F4A3A;   /* primary */
  --forest-deep: #223629;
  --terracotta:  #B5573A;   /* accent: links, focus, small marks */
  --clay-pale:   #F3E7E1;

  /* legacy names used by the existing inline CSS */
  --cream: var(--canvas);        --warm-white: #FFFFFF;
  --text-dark: var(--ink);       --text-mid: var(--ink-soft);
  --text-soft: var(--ink-faint); --text-faint: #B5AEA6;
  --forest-mid: #3E5E4B;         --leaf: #4F6F5A;
  --sage: #7F9484;  --sage-light: #B7C4B9;  --sage-pale: #E4E9E3;  --sage-ultra: #F1F3EE;
  --gold: var(--terracotta);     --gold-light: #E2B8A6;  --gold-ultra: var(--clay-pale);
  --border: var(--line);         --border-gold: #E7D3CA;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 6px;                      /* one small radius, used everywhere */
}

/* 2 ── TYPE ───────────────────────────────────────────────────────────────
   Scale (1.250): 16 / 20 / 25 / 31 / 39 / 49. Headings Fraunces 500,
   body Public Sans 400 at 1.65 line-height, measure capped at 62ch.        */
html { font-size: 16px; }
body { font-family: var(--font-sans); font-size: 1rem; line-height: 1.65;
       color: var(--ink); background-color: var(--canvas); cursor: auto; }
h1, h2, h3, h4, .hero-title, .section-h, .logo-text, .footer-logo-text {
  font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.15; font-variation-settings: "opsz" 96; }
h1, .hero-title { font-size: clamp(2.25rem, 5vw, 3.6rem); }
h2, .section-h  { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3              { font-size: 1.25rem; line-height: 1.3; }
p, li           { max-width: 62ch; }
/* No single-word italic/colour accents in headlines */
h1 em, h2 em, h3 em, .hero-title em, .section-h em, .hero-title .stroke-text,
.footer-logo-text em { font-style: normal; color: inherit; -webkit-text-stroke: 0; }
.eyebrow, .hero-badge { text-transform: none; letter-spacing: 0; font-size: .9rem;
  font-weight: 500; color: var(--terracotta); }
a { text-underline-offset: 3px; }

/* 3 ── SURFACES & FABRIC TEXTURE ──────────────────────────────────────────
   Faint plain-weave grid (warp/weft) on the canvas; costs no image request. */
body {
  background-image:
    repeating-linear-gradient(0deg,  rgba(43,39,36,.022) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(43,39,36,.022) 0 1px, transparent 1px 4px);
}
.header, .header.scrolled { background: var(--canvas); backdrop-filter: none;
  -webkit-backdrop-filter: none; box-shadow: none; border-bottom: 1px solid var(--line); }
.nav-link { color: var(--ink-soft); }
.nav-link.active, .nav-link:hover { color: var(--forest); }
/* Product mockup frame: white mount + hairline border, like a swatch card */
.hero-img-frame, .about-img-main { background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 10px; box-shadow: none; }
.hero-img-frame img, .about-img-main img { border-radius: 2px; }
/* Stitched-hem cue on category cards */
.cat-card { outline: 1px dashed rgba(255,255,255,.55); outline-offset: -7px; }

/* 4 ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn-solid, .btn-ghost, .nav-cta, .submit-btn, .proj-btn {
  border-radius: var(--r); font-family: var(--font-sans); font-weight: 600;
  letter-spacing: 0; text-transform: none; box-shadow: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.btn-solid, .nav-cta, .submit-btn { background: var(--forest); color: #fff; border: 1px solid var(--forest); }
.btn-solid::after { display: none; }
.btn-solid:hover, .nav-cta:hover, .submit-btn:hover { background: var(--forest-deep);
  border-color: var(--forest-deep); color: #fff; transform: translateY(-1px); }
.btn-solid:active, .nav-cta:active, .submit-btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }

/* 5 ── CARDS & CONTAINERS ──────────────────────────────────────────────────
   Soft shadows → 1px stone borders. Asymmetric gaps on wide screens.        */
.cat-card, .proj-card, .faq-item, .faq-right-card, .feat, .contact-form,
.wa-btn, .up-btn { box-shadow: none; border: 1px solid var(--line); border-radius: var(--r); }
.proj-card, .faq-item, .feat, .contact-form { background: #fff; }
.proj-card:hover, .faq-item:hover, .feat:hover, .cat-card:hover {
  transform: none; border-color: var(--forest); box-shadow: none; }
.proj-tag, .proj-chip, .about-img-tag { border-radius: 3px; backdrop-filter: none;
  -webkit-backdrop-filter: none; box-shadow: none; }
@media (min-width: 900px) {
  .proj-grid { gap: 28px 20px; }
  .proj-grid > :nth-child(even) { margin-top: 28px; }
}

/* 6 ── FORMS ───────────────────────────────────────────────────────────── */
.fg input, .fg select, .fg textarea { border: 1px solid #D6D3D1; border-radius: 4px;
  background: #fff; font-family: var(--font-sans); box-shadow: none; }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: 2px solid var(--terracotta);
  outline-offset: 1px; border-color: var(--terracotta); }

/* 7 ── REMOVED EFFECTS (generic "vibe-coded" tells) ────────────────────────
   Custom cursor, particle leaves, giant watermark words, preloader,
   floating stat chips, grid wash, corner ornaments, "01 — Category" labels.
   The hero stat row is hidden until it shows numbers you can verify
   (remove `.hero-stats` from this list to bring it back).                  */
.cursor, .cursor-ring, #leafParticles, .bg-word, #eco-loader, .hero-grid,
.chip, .corner-deco, .cat-num, .about-img-deco, .hero-stats { display: none !important; }
.hero, .section, .footer { background-image: none; }

/* 8 ── ACCESSIBILITY & MOTION ──────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important;
    scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
}


/* 9 ── REVIEW FIXES ────────────────────────────────────────────────────────
   Headings, FAQ cards, CTA banners, buttons, footer, icons, smooth motion.  */

/* 9a Headings: Fraunces' tight space glyph made words run together */
h1, h2, h3, h4, .hero-title, .section-h, .faq-q h3, .faq-q, .cta-banner h3,
.faq-card-h, .footer-logo-text { word-spacing: .14em; }
.cta-banner h3, .faq-card-h { letter-spacing: -.01em; font-style: normal; font-weight: 500; }
.cta-banner h3 strong, .faq-card-h strong { font-weight: 600; }

/* 9b FAQ cards: question and answer text sat flush against the card edge */
.faq-item { overflow: hidden; margin-bottom: 12px; }
.faq-q { padding: 22px 24px; gap: 16px; }
.faq-q h3 { font-size: 1.05rem; margin: 0; }
.faq-item .faq-a { padding: 0 24px; max-width: none; }
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 420px; }
.faq-a p { max-width: none; }
.faq-toggle { font-size: 14px; }
.faq-toggle i { line-height: 1; }
.faq-item:first-child { border-top: 1px solid var(--line); }

/* 9c CTA banners: paragraph was left-aligned under a centred heading; the
   dark label on terracotta buttons was hard to read */
.cta-banner { border-radius: 20px; box-shadow: none; }
.cta-banner-inner { display: flex; flex-direction: column; align-items: center; }
.cta-banner h3 { text-align: center; }
.cta-banner p, .cta-banner-inner p { text-align: center; margin-left: auto; margin-right: auto;
  max-width: 52ch; opacity: .85; }
.cta-banner-inner > a { margin: 6px 6px 0; }
.btn-gold, .btn-gold-lg { background: var(--terracotta); color: #fff; border: 1px solid var(--terracotta);
  box-shadow: none; }
.btn-gold:hover, .btn-gold-lg:hover { background: #9C4630; border-color: #9C4630; color: #fff; }
.btn-ghost-white, .btn-ghost-white-lg { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-white:hover, .btn-ghost-white-lg:hover { background: rgba(255,255,255,.12); color: #fff; }
.faq-card-p { max-width: none; }
.cta-banner-inner > a + a { margin-left: 6px; }
@media (min-width: 560px) { .cta-banner-inner { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cta-banner-inner > h3, .cta-banner-inner > p { flex: 0 0 100%; } }

/* 9d Footer: the warm-charcoal footer clashed with the forest-green sections */
.footer { background: var(--forest-deep); color: #fff; }
.footer-top { border-bottom-color: rgba(255,255,255,.14); }
.footer-logo-text { color: #fff; }
.footer-tagline { color: rgba(255,255,255,.72); }
.footer-col-h { color: rgba(255,255,255,.55); }
.footer-link { color: rgba(255,255,255,.76); }
.footer-link:hover { color: #fff; }
.footer-hours i { color: var(--gold-light); margin-right: 6px; }
.fsoc { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.fsoc:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.footer-bottom { color: rgba(255,255,255,.65); }
.footer-bottom a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-bottom i { color: var(--gold-light); margin-left: 4px; }

/* 9e Font icons replace emoji and text glyphs */
.feat-icon i, .value-icon i, .card-icon i, .goal-dot i, .about-img-tag .big i,
.story-img-tag .big i { color: var(--forest); font-size: 1em; line-height: 1; }
.feat-icon, .value-icon, .card-icon { font-size: 22px; }
.story-img-tag .big i, .about-img-tag .big i { color: inherit; margin-right: 6px; }
.goal-dot { animation: none; font-size: 16px; }
.stars, .testi-stars, .rating-info .stars { display: inline-flex; gap: 3px; color: var(--terracotta);
  font-size: 15px; letter-spacing: 0; }
.contact-form-card h2 { font-weight: 500; }
.form-note i, .map-card p i { color: var(--forest); margin-right: 4px; }
.social-link { text-decoration: none; }

/* 9f Smooth scroll motion */
:root { --ease-smooth: cubic-bezier(.22, 1, .36, 1); }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  transition: opacity 1s var(--ease-smooth), transform 1.1s var(--ease-smooth);
  will-change: opacity, transform; backface-visibility: hidden; }
.reveal { transform: translate3d(0, 28px, 0); }
.reveal-left { transform: translate3d(-32px, 0, 0); }
.reveal-right { transform: translate3d(32px, 0, 0); }
.reveal-scale { transform: scale(.96); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1; transform: none; }
.reveal.is-done, .reveal-left.is-done, .reveal-right.is-done, .reveal-scale.is-done { will-change: auto; }
.faq-a { transition: max-height .55s var(--ease-smooth), padding .4s var(--ease-smooth); }
.faq-toggle { transition: transform .45s var(--ease-smooth), background-color .25s, color .25s, border-color .25s; }
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 9999;
  background: var(--terracotta); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.up-btn, .wa-btn { transition: transform .3s var(--ease-smooth), opacity .3s, border-color .2s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } #scrollProgress { display: none; } }
