/* =========================================================
   Gwaltney Tax & Advisory — shared stylesheet
   Palette pulled from the original Squarespace site:
     charcoal text/buttons, gold accent, warm off-white background
   ========================================================= */

:root {
  --charcoal: #342e2e;
  --charcoal-dark: #241f1f;
  --gold: #b6872f;
  --gold-light: #d0ab51;
  --cream: #faf8f5;
  --panel: #efece6;
  --white: #ffffff;
  --border: #e2ddd3;
  --text-muted: #6b6260;

  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(52, 46, 46, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--charcoal);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 10px;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
}
.btn-primary:hover { background: var(--charcoal-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #a1782a; transform: translateY(-1px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--charcoal);
}
.brand img { height: 72px; width: auto; }
.brand-text { line-height: 1.3; white-space: nowrap; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav.primary-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav.primary-nav a:hover,
nav.primary-nav a.active {
  border-bottom-color: var(--gold);
}
nav.primary-nav a.btn {
  margin-left: 6px;
  padding: 10px 20px;
  border-bottom: none;
  color: var(--white);
}
nav.primary-nav a.btn:hover { color: var(--white); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  display: block;
}

@media (max-width: 1100px) {
  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    gap: 14px;
    display: none;
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav .btn { margin-left: 0; margin-top: 6px; }
  .menu-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero.no-image .hero-inner { grid-template-columns: 1fr; max-width: 760px; }
.hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.hero-badges span {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner img { order: -1; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--panel); }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid {
  display: grid;
  gap: 28px;
}
.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: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { color: var(--charcoal); margin-bottom: 10px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-muted); }
.card ul li { margin-bottom: 6px; }

.icon-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 14px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.pill-list li {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.testimonial p.quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--charcoal);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.testimonial .attribution {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--gold-light); }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
form.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}
input, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--charcoal);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-inner .brand { font-size: 1rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.subtitle { color: var(--text-muted); font-size: 1.02rem; }
