/* styles.css — shared across index.html, about.html, services.html,
   small-business-help.html, and audit.html. Extracted from what was
   previously duplicated inline in every page's <style> block: CSS
   variables, reset, base typography, nav (incl. dropdown + mobile
   toggle), and the shared footer layout. Page-specific styling stays
   in each page's own <style> block. */

/* ── Reset & Base ─────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
      --sage:  #9BB19B;
      --rust:  #B85C38;
      --blush: #E4A49C;
      --cream: #F4EFE6;
      --deep:  #1E1510;
      --white: #FFFFFF;
      --sage-dark: #7A9B7A;
      --cream-dark: #EAE2D6;
    }

html { scroll-behavior: smooth; }

body {
      font-family: 'Jost', sans-serif;
      font-weight: 400;
      color: var(--deep);
      background: var(--cream);
      font-size: 17px;
      line-height: 1.7;
    }

h1, h2, h3, h4 {
      font-family: 'Literata', serif;
      font-weight: 400;
      font-optical-sizing: auto;
      line-height: 1.2;
    }

a { color: inherit; text-decoration: none; }

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

/* ── Announcement bar ─────────────────────────────────────── */
    .announce-bar {
      background: var(--sage-dark);
      color: var(--cream);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      padding: 10px 20px;
      text-align: center;
    }

.announce-arrow {
      background: none;
      border: none;
      color: var(--cream);
      font-family: 'Jost', sans-serif;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      padding: 2px 4px;
      opacity: 0.7;
      flex-shrink: 0;
    }

.announce-arrow:hover { opacity: 1; }

.announce-text {
      font-family: 'Jost', sans-serif;
      font-size: 13px;
      font-weight: 400;
      color: var(--cream);
      max-width: 720px;
    }

.announce-link {
      color: var(--cream);
      font-weight: 700;
      text-decoration: underline;
    }

.announce-link:hover { opacity: 0.85; }

@media (max-width: 640px) {
      .announce-bar { padding: 8px 14px; gap: 8px; }
      .announce-text { font-size: 12px; }
    }

/* ── Navigation ───────────────────────────────────────────── */
    nav:not(.footer-nav) {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--cream);
      border-bottom: 1px solid rgba(30,21,16,0.1);
      padding: 0 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }

.nav-logo {
      display: flex;
      flex-direction: column;
      line-height: 1;
    }

.nav-logo-primary {
      font-family: 'Literata', serif;
      font-size: 22px;
      font-weight: 500;
      color: var(--deep);
      letter-spacing: 0.01em;
    }

.nav-logo-sub {
      font-family: 'Jost', sans-serif;
      font-size: 9px;
      font-weight: 400;
      letter-spacing: 0.25em;
      color: var(--rust);
      text-transform: uppercase;
      margin-top: 2px;
    }

.nav-links {
      display: flex;
      gap: 40px;
      list-style: none;
    }

.nav-links a {
      font-family: 'Jost', sans-serif;
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--deep);
      opacity: 0.7;
      transition: opacity 0.2s;
    }

.nav-links a:hover { opacity: 1; }

.nav-cta {
      background: var(--rust);
      color: var(--cream) !important;
      opacity: 1 !important;
      padding: 10px 24px;
      border-radius: 2px;
      white-space: nowrap;
      flex-shrink: 0;
      transition: background 0.2s !important;
    }

.nav-cta:hover { background: #9A4A2B !important; }

/* ── Nav Dropdown ─────────────────────────────────────────── */
    .nav-dropdown { position: relative; }

.nav-dropdown-trigger {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: 'Jost', sans-serif;
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--deep);
      opacity: 0.7;
      cursor: default;
      transition: opacity 0.2s;
    }

.nav-dropdown-trigger::after {
      content: '';
      width: 5px;
      height: 5px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg);
      margin-top: -3px;
      opacity: 0.7;
    }

.nav-dropdown:hover .nav-dropdown-trigger,
    .nav-dropdown.active .nav-dropdown-trigger,
    .nav-dropdown:focus-within .nav-dropdown-trigger { opacity: 1; }

.nav-dropdown-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: var(--cream);
      border: 1px solid rgba(30,21,16,0.1);
      border-radius: 2px;
      box-shadow: 0 12px 32px rgba(30,21,16,0.12);
      list-style: none;
      min-width: 170px;
      padding: 20px 8px 8px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    }

@media (min-width: 1025px) {
      .nav-dropdown:hover .nav-dropdown-menu,
      .nav-dropdown:focus-within .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
      }
    }

.nav-dropdown-menu li a {
      display: block;
      padding: 10px 14px;
      border-radius: 2px;
      font-size: 12px;
      opacity: 0.75;
      white-space: nowrap;
    }

.nav-dropdown-menu li a:hover,
    .nav-dropdown-menu li a.active {
      opacity: 1;
      background: rgba(30,21,16,0.05);
    }

/* ── Mobile Nav Toggle ────────────────────────────────────── */
    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 32px;
      height: 32px;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      z-index: 101;
    }

.nav-toggle span {
      display: block;
      width: 100%;
      height: 2px;
      background: var(--deep);
      transition: transform 0.25s ease, opacity 0.2s ease;
    }

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.nav-toggle.open span:nth-child(2) { opacity: 0; }

.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav mobile breakpoint (canonical) — was previously duplicated
   inline in every page's own <style> block instead of living here,
   which is exactly how the new download page ended up with a header
   that never collapsed into a hamburger: it never had this rule at
   all. Centralized so every page, including future ones, gets the
   same responsive nav for free. ─────────────────────────────────── */
@media (max-width: 1024px) {
      .nav-toggle { display: flex; }
      .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--cream);
        border-bottom: 1px solid rgba(30,21,16,0.1);
        padding: 8px 20px 20px;
        box-shadow: 0 12px 24px rgba(30,21,16,0.08);
      }
      .nav-links.open { display: flex; }
      .nav-links li { width: 100%; }
      .nav-links a { display: block; padding: 14px 2px; border-bottom: 1px solid rgba(30,21,16,0.08); opacity: 0.85; }
      .nav-links li:last-child a { border-bottom: none; }
      .nav-cta { display: block; text-align: center; margin-top: 12px; }
      .nav-dropdown-trigger { cursor: pointer; padding: 14px 2px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(30,21,16,0.08); }
      .nav-dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        min-width: 0 !important;
        padding: 0 0 0 12px !important;
        display: none;
      }
      .nav-dropdown.open .nav-dropdown-menu { display: block; }
      .nav-dropdown-menu li a {
        border-bottom: none;
        padding: 10px 2px;
        color: var(--deep) !important;
        opacity: 0.8 !important;
        white-space: normal !important;
        font-size: 13px !important;
      }
      .nav-dropdown-menu li a.active,
      .nav-dropdown-menu li a:hover { opacity: 1 !important; background: transparent !important; }
      nav:not(.footer-nav) { padding: 0 20px; }
    }

.footer-inner {
      max-width: 1080px;
      margin: 0 auto;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 40px;
    }

.footer-nav {
      display: flex;
      gap: 48px;
    }

.footer-nav-col {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

.footer-nav-heading {
      font-family: 'Jost', sans-serif;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--rust);
      margin-bottom: 2px;
    }

.footer-nav-col a {
      font-family: 'Jost', sans-serif;
      font-size: 13px;
      font-weight: 300;
      color: var(--cream);
      opacity: 0.6;
      transition: opacity 0.2s;
    }

.footer-nav-col a:hover { opacity: 1; }

/* ── Form (canonical — light background variant). Was previously
   duplicated across index/about/services/small-business-help/the new
   download page, each with small drift. This is the base look for a
   form sitting on a light (cream/white) section. Pages with a dark
   #contact section (currently services.html) add a small scoped
   override on top of this instead of redefining the whole block —
   see the "#contact dark-form override" comment in services.html. ── */
form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

.form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

.field {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

label {
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      font-weight: 400;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--deep);
      opacity: 0.6;
    }

input, textarea, select {
      font-family: 'Jost', sans-serif;
      font-size: 15px;
      font-weight: 300;
      color: var(--deep);
      background: var(--white);
      border: 1px solid rgba(30,21,16,0.15);
      border-radius: 2px;
      padding: 14px 16px;
      outline: none;
      transition: border-color 0.2s;
      width: 100%;
    }

input:focus, textarea:focus {
      border-color: var(--sage);
    }

textarea {
      resize: vertical;
      min-height: 140px;
    }

::placeholder {
      color: var(--deep);
      opacity: 0.3;
    }

.submit-btn {
      background: var(--rust);
      color: var(--cream);
      font-family: 'Jost', sans-serif;
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 18px 40px;
      border: none;
      border-radius: 2px;
      cursor: pointer;
      align-self: flex-start;
      transition: background 0.2s;
    }

.submit-btn:hover { background: #9A4A2B; }

.form-note {
      font-size: 13px;
      font-weight: 300;
      color: var(--deep);
      opacity: 0.45;
      margin-top: -8px;
    }

/* ── Footer (canonical — was previously duplicated with drift across
   every page's own <style> block: index/about had one version, services/
   small-business-help had another with a border-top and different
   .footer-right sizing, audit had a third with different padding. This
   is the index.html/about.html version, now the single source of truth
   for every page.) ──────────────────────────────────────────────── */
footer {
      background: var(--deep);
      padding: 40px 48px;
    }

.footer-logo-primary {
      font-family: 'Literata', serif;
      font-optical-sizing: auto;
      font-size: 24px;
      font-weight: 400;
      color: var(--cream);
      letter-spacing: 0.01em;
    }

.footer-logo-sub {
      font-family: 'Jost', sans-serif;
      font-size: 9px;
      font-weight: 300;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--rust);
      margin-top: 4px;
    }

.footer-right {
      font-family: 'Jost', sans-serif;
      font-size: 12px;
      font-weight: 300;
      color: rgba(244,239,230,0.3);
      text-align: right;
    }

.footer-social {
      display: flex;
      gap: 16px;
      margin-top: 16px;
    }

.footer-social a { display: inline-flex; }

.footer-social img {
      width: 20px;
      height: 20px;
      opacity: 0.6;
      transition: opacity 0.2s;
    }

.footer-social a:hover img { opacity: 1; }

@media (max-width: 900px) {
      .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
      .footer-right { text-align: center; }
      .footer-nav { flex-wrap: wrap; justify-content: center; gap: 32px; }
      .footer-nav-col { align-items: center; }
    }
