/* ==========================================================================
   Wolfe Software LLC — stylesheet
   Design-system tokens + component classes + page layout.
   Plain CSS, no build step. Respects the OS light/dark preference via
   prefers-color-scheme — no toggle, no JS required.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,600;0,700;0,900;1,500&family=Karla:ital,wght@0,400;0,500;0,600;1,400&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Design tokens (light theme — default) ───────────────────────────── */
:root {
  --color-bg: #f8f4ea;
  --color-surface: #fffdf7;
  --color-text: #23241c;
  --color-accent: #2f5f4e;
  --color-accent-2: #c07d2d;
  --color-divider: color-mix(in srgb, #23241c 14%, transparent);

  /* Tonal ramps — one shared lightness scale so the same step of any role
     matches the others in visual value. */
  --color-neutral-100: #fbf9f2;
  --color-neutral-200: #f0ece0;
  --color-neutral-300: #e1dbc9;
  --color-neutral-400: #c8bfa5;
  --color-neutral-500: #a89d7d;
  --color-neutral-600: #857a5c;
  --color-neutral-700: #635a42;
  --color-neutral-800: #453f2e;
  --color-neutral-900: #2b2720;

  --color-accent-100: #e7f0ea;
  --color-accent-200: #c9ddd0;
  --color-accent-300: #a2c4ae;
  --color-accent-400: #6f9c81;
  --color-accent-500: #437a5c;
  --color-accent-600: #2f5f4e;
  --color-accent-700: #234a3d;
  --color-accent-800: #1a3830;
  --color-accent-900: #112722;

  --color-accent-2-100: #fbeedb;
  --color-accent-2-200: #f5d9ac;
  --color-accent-2-300: #ecbd72;
  --color-accent-2-400: #dda044;
  --color-accent-2-500: #c07d2d;
  --color-accent-2-600: #9c6220;
  --color-accent-2-700: #7a4c19;
  --color-accent-2-800: #593714;
  --color-accent-2-900: #3d260f;

  /* Semantic — an accent tone tuned for small emphasis text (eyebrows,
     kickers). Darker than the base accent in light mode for contrast on a
     light background; flipped lighter under dark mode below. */
  --color-accent-emphasis: var(--color-accent-2-600);

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-heading-weight: 700;
  /* Body copy uses Karla — a plain grotesque paired against the serif
     display face used for headings/labels. */
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --space-1: 4.0px;
  --space-2: 8.0px;
  --space-3: 12.0px;
  --space-4: 16.0px;
  --space-6: 24.0px;
  --space-8: 32.0px;

  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Elevation — soft ink-tinted shadows on a light theme, a hairline edge
     + ambient darkness on a dark one (redefined below). */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2720 12%, transparent);
  --shadow-md: 0 4px 14px color-mix(in srgb, #2b2720 14%, transparent);
  --shadow-lg: 0 14px 36px color-mix(in srgb, #2b2720 20%, transparent);
}

/* ── Dark theme — follows the OS setting automatically ───────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1d17;
    --color-surface: #23271f;
    --color-text: #f2efe4;
    --color-accent: #7fb094;
    --color-accent-2: #e0a24f;
    --color-divider: color-mix(in srgb, #f2efe4 16%, transparent);

    --color-neutral-100: #2b2720;
    --color-neutral-200: #453f2e;
    --color-neutral-300: #635a42;
    --color-neutral-400: #857a5c;
    --color-neutral-500: #a89d7d;
    --color-neutral-600: #c8bfa5;
    --color-neutral-700: #e1dbc9;
    --color-neutral-800: #f0ece0;
    --color-neutral-900: #fbf9f2;

    --color-accent-100: #112722;
    --color-accent-200: #1a3830;
    --color-accent-300: #234a3d;
    --color-accent-400: #2f5f4e;
    --color-accent-500: #437a5c;
    --color-accent-600: #6f9c81;
    --color-accent-700: #a2c4ae;
    --color-accent-800: #c9ddd0;
    --color-accent-900: #e7f0ea;

    --color-accent-2-100: #3d260f;
    --color-accent-2-200: #593714;
    --color-accent-2-300: #7a4c19;
    --color-accent-2-400: #9c6220;
    --color-accent-2-500: #c07d2d;
    --color-accent-2-600: #dda044;
    --color-accent-2-700: #ecbd72;
    --color-accent-2-800: #f5d9ac;
    --color-accent-2-900: #fbeedb;

    --color-accent-emphasis: #e0a24f;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.55);
  }
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
}

.grayscale { filter: grayscale(1) contrast(1.08); }

/* ══════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS on plain HTML.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 72%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent-2); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent-2) 35%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-neutral-100); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-700); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--color-accent-800); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 6%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 12%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: var(--radius-sm);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-emphasis);
}

/* — link color override (site-wide anchors) — */
a { color: var(--color-accent-700); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--color-accent-700) 35%, transparent); }
a:hover { color: var(--color-accent-2-600); border-bottom-color: color-mix(in srgb, var(--color-accent-2-600) 45%, transparent); }

/* ══════════════════════════════════════════════════════════════════════
   Layout — site chrome and page sections
   ══════════════════════════════════════════════════════════════════════ */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, svg { max-width: 100%; }

.site-root { background: var(--color-bg); min-height: 100vh; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--color-divider);
}
.brand-wrap { display: flex; align-items: center; gap: 10px; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: none;
}
.nav-links a.btn {
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-neutral-100);
  padding: 9px 18px;
  border-radius: var(--radius-md);
}
.nav-links a.btn:hover { background: var(--color-accent-700); }

.hero { padding: 110px 56px 96px; max-width: 900px; }
.hero h1 { font-size: clamp(32px, 8vw, 56px); margin: 14px 0 0; max-width: 820px; font-style: normal; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--color-text); max-width: 620px; margin: 20px 0 0; opacity: 0.82; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; }
.hero-actions a { font-family: var(--font-heading); font-weight: 600; font-size: 14px; padding: 14px 28px; border-radius: var(--radius-md); border-bottom: none; }
.hero-actions a.btn-fill { background: var(--color-accent); color: var(--color-neutral-100); box-shadow: var(--shadow-sm); }
.hero-actions a.btn-fill:hover { background: var(--color-accent-700); box-shadow: var(--shadow-md); }
.hero-actions a.btn-outline { border: 1.5px solid var(--color-divider); color: var(--color-text); padding: 12.5px 26px; }
.hero-actions a.btn-outline:hover { border-color: var(--color-accent-2); color: var(--color-accent-2-700); }

.section-pad { padding: 0 56px 100px; }
.section-kicker { margin-top: 24px; }
.section-title { font-size: clamp(24px, 6vw, 32px); margin: 8px 0 40px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feature-col { padding: 0 28px; }
.feature-col:first-child { padding-left: 0; }
.feature-col:last-child { padding-right: 0; }
.feature-col:not(:last-child) { border-right: 1px solid var(--color-divider); }
.feature-col-title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--color-text); }
.feature-col p { font-size: 15px; line-height: 1.6; color: var(--color-text); margin-top: 10px; opacity: 0.78; }

/* — About (company) — */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 24px; }
.about-grid .section-title { margin: 8px 0 0; }
.about-grid p { font-size: 16px; line-height: 1.7; color: var(--color-text); opacity: 0.85; }
.about-grid p + p { margin-top: 16px; }

/* — Owner section — */
.about.owner-section { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; margin-top: 24px; }
.about-text p { font-size: 16px; line-height: 1.7; color: var(--color-text); margin-top: 16px; opacity: 0.85; }
.about-text .section-title { margin: 8px 0 0; }
.about-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.about-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.5; color: var(--color-text);
}
.about-list .check {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-top: 1px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700;
  color: var(--color-neutral-100); background: var(--color-accent-2);
}
.lang-line {
  font-size: 13px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--color-divider);
  border: 1px solid var(--color-divider);
  align-self: stretch;
}
.about-stats > div {
  padding: 24px 20px;
  background: var(--color-surface);
}
.stat-num {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 26px; color: var(--color-accent-2-600);
  line-height: 1.1;
}
.stat-label { font-size: 13px; color: var(--color-text); opacity: 0.72; margin-top: 6px; line-height: 1.4; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--color-divider); }
.pricing-col { padding: 28px; }
.pricing-col:first-child { padding-left: 0; }
.pricing-col:last-child { padding-right: 0; }
.pricing-col:not(:last-child) { border-right: 1px solid var(--color-divider); }
.pricing-col-title { font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text); }
.pricing-col p { font-size: 14px; color: var(--color-text); opacity: 0.75; margin-top: 8px; }
.quote-btn { display: inline-flex; font-family: var(--font-heading); font-weight: 600; font-size: 14px; background: var(--color-accent-2); color: var(--color-neutral-100); padding: 14px 28px; margin-top: 32px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.quote-btn:hover { background: var(--color-accent-2-700); }

.contact-section { background: var(--color-accent); padding: 80px 56px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.contact-row h2 { font-size: clamp(26px, 7vw, 36px); color: var(--color-neutral-100); margin: 0; max-width: 560px; font-style: italic; font-weight: 600; }
.contact-row a { font-family: var(--font-heading); font-weight: 600; font-size: 15px; background: var(--color-accent-2); color: var(--color-neutral-100); padding: 16px 32px; flex: none; border-radius: var(--radius-md); }
.contact-row a:hover { background: var(--color-accent-2-700); }

.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 32px 56px; border-top: 1px solid var(--color-divider); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-note { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--color-text); opacity: 0.7; }
.footer-note a { color: inherit; text-decoration: underline; border-bottom: none; }

/* — hamburger menu (checkbox toggle, no JS required) — */
.nav-toggle-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 24px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle-checkbox:focus-visible + .nav-toggle-label {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 3px;
}

/* — responsive — */
@media (max-width: 900px) {
  .site-nav, .hero, .section-pad, .site-footer {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
  .feature-grid, .pricing-grid, .about-grid, .owner-section {
    grid-template-columns: 1fr !important;
    row-gap: 32px !important;
  }
  .feature-col, .pricing-col {
    border-right: none !important;
    padding: 0 0 24px !important;
    border-bottom: 1px solid var(--color-divider);
  }
  .feature-col:last-child, .pricing-col:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
  }
}

/* Tighten the still-expanded desktop nav just above the hamburger
   breakpoint so the full link row keeps fitting on one line down to
   805px, where it hands off to the mobile menu below. */
@media (max-width: 900px) and (min-width: 806px) {
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 12.5px; }
}

@media (max-width: 805px) {
  .site-nav {
    position: relative;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }
  .nav-toggle-label {
    display: flex;
  }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-md);
    padding: 4px 20px 16px;
    z-index: 50;
  }
  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex !important;
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-divider);
    white-space: nowrap;
  }
  .nav-links a.btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin: 10px 0 2px;
    border-bottom: none;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .site-nav, .hero, .section-pad, .site-footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .hero {
    padding-top: 64px !important;
    padding-bottom: 48px !important;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch !important;
  }
  .hero-actions a {
    text-align: center;
  }
  .quote-btn {
    width: 100%;
    text-align: center;
    justify-content: center !important;
  }
  .contact-row {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .contact-row a {
    width: 100%;
    text-align: center;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px !important;
  }
}

@media (max-width: 360px) {
  .brand-name {
    display: none;
  }
}
