/* ==========================================================================
   J&S Division — site styles
   One stylesheet for every page. Sections are labeled so they're easy to find.
   Brand colors and fonts follow the crest logo (Nov 2026).
   ========================================================================== */

/* ---------- 1. Brand tokens (change a color here, it changes everywhere) --- */
:root {
  /* Colors match the J&S Division crest logo (Nov 2026) */
  --forest: #1D4A35;      /* deep green from the crest: header, hero, dark bands */
  --forest-deep: #163A2A; /* darker green: footer */
  --copper: #A35D2E;      /* copper accent: buttons, links (dark enough for white text) */
  --copper-dark: #84481F; /* button hover */
  --copper-light: #B26B3C;/* the logo's ring color, for decoration */
  --gold: #D2AE6C;        /* gold from the crown mark: highlights on dark green */
  --linen: #FAF6EE;       /* cream page background */
  --sand: #F2EBDD;        /* alternate section background */
  --sage: #E3ECE2;        /* image frames / soft panels */
  --ink: #1C2A22;         /* body text */
  --muted: #56655C;       /* secondary text */
  --line: #E4DCCB;        /* subtle borders */
  --white: #FFFFFF;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 42, 34, 0.08);
  --container: 1140px;
}

/* ---------- 2. Reset-ish basics ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--linen);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.6rem;
}
.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--copper); color: #fff;
  padding: 0.5rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- 3. Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--sand); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- 4. Header / navigation --------------------------------------- */
.site-header {
  background: var(--forest);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  border-bottom: 3px solid var(--copper-light);
}
.topbar {
  background: rgba(0,0,0,0.18);
  font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 1rem; }
.topbar a { color: #fff; font-weight: 700; }
.topbar span { color: rgba(255,255,255,0.8); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none !important; }
.brand-mark { width: 60px; height: 36px; flex: none; }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-text small { display: block; margin-top: 3px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #fff; font-weight: 600; opacity: 0.9; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.nav-links .btn { margin-left: 0.5rem; padding: 0.6rem 1.2rem; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 0.5rem;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .topbar span { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--forest); padding: 0.5rem 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li a { display: block; padding: 0.85rem 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links a[aria-current="page"] { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0.85rem; color: var(--gold); }
  .nav-links .btn { margin: 0.75rem 0 0; }
}

/* ---------- 5. Hero ------------------------------------------------------- */
.hero {
  background: var(--forest);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 8vw, 5.5rem);
  position: relative; overflow: hidden;
}
.hero::after { /* soft decorative glow */
  content: ""; position: absolute; right: -10%; top: -30%; width: 55%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(210,174,108,0.22), transparent 70%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 36rem; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.92rem; color: rgba(255,255,255,0.8); margin: 0; padding: 0; list-style: none; }
.hero-trust li::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.4rem; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--forest); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.85); max-width: 42rem; }
.page-hero .eyebrow { color: var(--gold); }

/* ---------- 6. Sections & cards ----------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: 0 1px 0 rgba(28,42,34,0.03);
}
.card h3 { margin-top: 0.75rem; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--sage); color: var(--forest);
  display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; }

/* Two-column text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse > :first-child { grid-template-columns: 1fr; order: initial; } }

/* Photo frame — used until Jared sends real photos */
.photo {
  background: var(--sage);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: var(--forest);
  text-align: center;
  padding: 1.5rem;
  background-image:
    linear-gradient(135deg, rgba(29,74,53,0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(29,74,53,0.06) 25%, transparent 25%),
    linear-gradient(45deg, rgba(29,74,53,0.06) 25%, transparent 25%),
    linear-gradient(315deg, rgba(29,74,53,0.06) 25%, transparent 25%);
  background-size: 28px 28px;
  background-position: 14px 0, 14px 0, 0 0, 0 0;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo span { font-size: 0.9rem; opacity: 0.8; }
.photo.tall { aspect-ratio: 3 / 4; }
.photo.wide { aspect-ratio: 16 / 9; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--copper); }
.stat span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Steps (how it works) */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--copper); color: #fff; font-weight: 800; display: grid; place-items: center;
  font-family: var(--font-head);
}

/* Testimonials */
.quote { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.quote blockquote { margin: 0 0 1rem; font-size: 1.05rem; font-style: italic; color: var(--ink); }
.quote cite { font-style: normal; font-weight: 700; color: var(--forest); font-size: 0.95rem; }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* Service list on services page */
.service { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; align-items: start; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.service p:last-child { margin: 0; }
.service .icon { width: 56px; height: 56px; }

/* Values list */
.value { display: flex; gap: 1rem; align-items: flex-start; }
.value .icon { flex: none; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
summary { cursor: pointer; font-weight: 700; color: var(--forest); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--copper); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0.75rem 0 0; color: var(--muted); }

/* Call-to-action band */
.cta {
  background: var(--copper); color: #fff; text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.9); max-width: 36rem; margin-inline: auto; }
.cta .btn-light { color: var(--copper); }
.cta .actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Notice (used for placeholders only — remove when real content arrives) */
.placeholder-note {
  font-size: 0.8rem; color: var(--muted); background: #FFF6E8; border: 1px dashed #E7C79A;
  padding: 0.4rem 0.7rem; border-radius: 8px; display: inline-block;
}

/* ---------- 7. Contact page & forms ------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item .icon { flex: none; }
.contact-item strong { display: block; color: var(--forest); }
.contact-item a { font-size: 1.15rem; font-weight: 700; }
.contact-item small { color: var(--muted); display: block; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; color: var(--forest); }
.field { margin-bottom: 1.1rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1px solid #CFC8BB; border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(163,93,46,0.25); border-color: var(--copper); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.hidden { display: none; }

/* ---------- 8. Footer ---------------------------------------------------- */
.site-footer { background: var(--forest-deep); border-top: 4px solid var(--copper-light); color: rgba(255,255,255,0.8); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--gold); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-crest { display: inline-block; }
.footer-crest img { width: 120px; height: 120px; }
.footer-brand p { margin-top: 1rem; max-width: 28rem; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.7); margin-left: 1rem; }

/* Sticky call button on phones */
.call-fab {
  display: none; position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  background: var(--copper); color: #fff; border-radius: 999px; padding: 0.85rem 1.2rem;
  font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,0.25); text-decoration: none !important;
  align-items: center; gap: 0.5rem;
}
.call-fab svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .call-fab { display: inline-flex; } body { padding-bottom: 4.5rem; } }

/* ---------- 9. Legal / long text pages ---------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
