/* G Saville & Son — site stylesheet
   Dignified-traditional. Cream + charcoal + muted heritage gold. */

:root {
  --serif: 'Cormorant Garamond', 'Adobe Garamond Pro', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ink: #2a2620;
  --ink-soft: #4a4640;
  --muted: #6b6258;
  --dim: #9a9089;
  --paper: #faf6ef;
  --paper-warm: #f3ece0;
  --card: #ffffff;
  --border: rgba(42, 38, 32, 0.1);
  --border-strong: rgba(42, 38, 32, 0.18);
  --gold: #8a7a52;
  --gold-soft: #b8a87f;
  --gold-pale: #ede4cf;
  --shadow-sm: 0 2px 8px rgba(42, 38, 32, 0.04);
  --shadow: 0 4px 20px rgba(42, 38, 32, 0.08);
  --shadow-lg: 0 12px 40px rgba(42, 38, 32, 0.12);
  --radius: 6px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ink); }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.2; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
  display: inline-block;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* ─── Top bar ─── */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--ink); }
.topbar .tb-24 { color: var(--ink); font-weight: 600; }
.topbar .tb-24 a { color: var(--gold); }

/* ─── Header ─── */
.header { background: var(--card); border-bottom: 1px solid var(--border); padding: 24px 0; box-shadow: var(--shadow-sm); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.header-logo { display: inline-block; text-align: center; }
.header-logo img { height: 72px; width: auto; max-width: 100%; display: block; }
.header-logo .since { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 0.78rem; margin-top: 4px; letter-spacing: 2px; }
nav.main-nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
/* Text-link styling — explicitly excludes .btn so the Contact pill keeps its
   own button styles (was: button text disappeared on hover because the nav
   :hover overrode the button's paper color, AND a 2px transparent
   border-bottom was clipping the button at the bottom edge). */
nav.main-nav a:not(.btn) { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
nav.main-nav a:not(.btn):hover, nav.main-nav a:not(.btn).active { color: var(--ink); border-bottom-color: var(--gold); }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
}
.hero::before { top: 36px; }
.hero::after { bottom: 36px; }
.hero h1 { color: var(--ink); margin-bottom: 18px; font-weight: 500; }
.hero .lead { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-soft); max-width: 640px; margin: 0 auto 28px; line-height: 1.55; font-style: italic; }
.hero .ornament { font-family: var(--serif); color: var(--gold); font-size: 1.2rem; letter-spacing: 6px; margin-bottom: 18px; }

/* ─── Sections ─── */
section { padding: 80px 0; }
section.alt { background: var(--paper-warm); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); max-width: 580px; margin: 0 auto; font-size: 1.02rem; }
.section-rule { width: 60px; height: 1px; background: var(--gold); margin: 16px auto 0; }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 99px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─── Cards ─── */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card .card-icon { color: var(--gold); margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.card .card-meta { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 0.9rem; margin-top: 14px; display: block; }

/* ─── Branch cards ─── */
.branch-card { padding: 36px 32px; }
.branch-card h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin-bottom: 6px; font-weight: 500; }
.branch-card .branch-sub { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 0.9rem; margin-bottom: 20px; }
.branch-card .branch-line { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.branch-card .branch-line:first-of-type { border-top: none; padding-top: 0; }
.branch-card .branch-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.branch-card .branch-line strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--dim); font-weight: 600; margin-bottom: 2px; }
.branch-card .branch-line span { color: var(--ink-soft); font-size: 0.95rem; }
.branch-card .branch-line a { color: var(--ink-soft); }
.branch-card .branch-line a:hover { color: var(--gold); }

/* ─── Hero photo (matted/framed) ─── */
.hero-photo {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
}
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
.hero-photo-caption { text-align: center; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 0.95rem; margin-top: 18px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.55; }

/* ─── Heritage / story timeline ─── */
.story-prose { font-family: var(--serif); font-size: 1.2rem; line-height: 1.85; color: var(--ink-soft); }
.story-prose p { margin-bottom: 22px; }
.story-prose p:first-of-type::first-letter { font-size: 3.2rem; float: left; line-height: 0.9; padding: 6px 12px 2px 0; color: var(--gold); font-weight: 500; }
.story-pull { font-family: var(--serif); font-size: 1.6rem; font-style: italic; color: var(--gold); text-align: center; line-height: 1.45; padding: 36px 24px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); margin: 48px 0; }

.timeline { max-width: 720px; margin: 0 auto; }
.timeline-row { display: grid; grid-template-columns: 100px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.timeline-row:last-child { border-bottom: none; }
.timeline-year { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); font-weight: 600; }
.timeline-text { color: var(--ink-soft); line-height: 1.65; }
.timeline-text strong { color: var(--ink); font-weight: 600; }

/* ─── Service accordion ─── */
.svc-list { max-width: 760px; margin: 0 auto; }
.svc-item { border-bottom: 1px solid var(--border); }
.svc-item:first-child { border-top: 1px solid var(--border); }
.svc-item summary {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  padding: 22px 8px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.svc-item summary:hover { color: var(--gold); }
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item summary::after {
  content: '+';
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.6rem;
  transition: transform 0.25s;
}
.svc-item[open] summary::after { content: '−'; }
.svc-item .svc-body { padding: 0 8px 24px; color: var(--ink-soft); line-height: 1.7; font-size: 1rem; }

/* ─── CTA strip ─── */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
  text-align: center;
}
.cta h2 { color: var(--paper); margin-bottom: 14px; }
.cta p { color: var(--gold-pale); max-width: 580px; margin: 0 auto 28px; font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.cta .btn-primary { background: var(--gold); color: var(--ink); }
.cta .btn-primary:hover { background: var(--paper); color: var(--ink); }

/* ─── Footer ─── */
footer { background: var(--paper-warm); padding: 56px 0 36px; color: var(--muted); border-top: 1px solid var(--border); }
footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer .foot-col h4 { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; font-weight: 600; }
footer .foot-col p, footer .foot-col li { font-size: 0.9rem; line-height: 1.65; color: var(--muted); margin-bottom: 6px; list-style: none; }
footer .foot-col a { color: var(--muted); }
footer .foot-col a:hover { color: var(--gold); }
footer .foot-bottom { padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--dim); }

@media (max-width: 760px) {
  .header .wrap { justify-content: center; text-align: center; }
  .header-logo img { height: 48px; }
  nav.main-nav { gap: 18px; justify-content: center; }
  nav.main-nav a { font-size: 0.88rem; }
  section { padding: 60px 0; }
  .timeline-row { grid-template-columns: 80px 1fr; gap: 20px; padding: 18px 0; }
  .timeline-year { font-size: 1.3rem; }
  footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .branch-card { padding: 28px 24px; }
}
