/* =========================================================
   JJ Smith Taxation & Advisory — Shared Stylesheet
   Palette: Deep Navy / Off-White / Charcoal / Muted Blue
   ========================================================= */

:root {
  --ink:         #0F2A44;
  --ink-soft:    #1E4067;
  --ink-darker:  #0A1E33;
  --off-white:   #F7F9FB;
  --off-white-2: #EEF1F5;
  --white:       #FFFFFF;
  --text:        #2B2F33;
  --muted:       #5C6675;
  --border:      #E2E6EC;
  --accent:      #3A7CA5;
  --accent-deep: #2E6A8F;
  --accent-soft: #EAF2F7;
  --green:       #2D6A4F;

  --radius:     10px;
  --radius-lg:  18px;
  --maxw:       1180px;

  --shadow-sm:  0 1px 2px rgba(15, 42, 68, 0.05);
  --shadow-md:  0 8px 24px rgba(15, 42, 68, 0.08);
  --shadow-lg:  0 20px 50px rgba(15, 42, 68, 0.12);

  /* Plain sans-serif typography across the site (Fraunces dropped 2 May 2026
     for a cleaner, more modern feel). The --font-serif variable is kept
     pointing at Inter so all existing references resolve consistently
     without rewriting every rule. */
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }

p { color: var(--text); }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.55; max-width: 38em; }
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 1rem;
  display: inline-block;
}

/* ---------- Layout ---------- */

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

section { padding: 90px 0; }
section.tight { padding: 60px 0; }
section.deep { padding: 120px 0; }

.bg-white { background: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-off-white-2 { background: var(--off-white-2); }
.bg-ink { background: var(--ink); color: #E8EEF6; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--white); }

/* legacy aliases kept for safety */
.bg-cream { background: var(--off-white); }
.bg-cream-deep { background: var(--off-white-2); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0; /* never let the logo get squeezed by a long nav row */
}
.brand img {
  height: 68px;
  width: auto;
  display: block;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  position: relative;
  white-space: nowrap; /* prevent labels like "Who we help" from wrapping */
}
/* Narrow desktop: tighten nav gap and font so the 7-link row fits without
   shrinking the logo. Logo height stays at 68px across all desktop widths. */
@media (max-width: 1180px) and (min-width: 961px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.88rem; }
  .nav-inner { gap: 16px; padding: 12px 20px; }
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* YouTube landing nav CTA: show the long label by default, swap to the
   short label on phones so the button never overflows the bar. */
.nav-cta-link .cta-short { display: none; }
@media (max-width: 600px) {
  .nav-cta-link .cta-long { display: none; }
  .nav-cta-link .cta-short { display: inline; }
}

.menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 4px;
}
.btn-ghost::after {
  content: " →";
  transition: transform 0.2s ease;
  display: inline-block;
}
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--accent-deep); }

/* ---------- Hero ---------- */

.hero {
  padding: 100px 0 90px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(58, 124, 165, 0.13), transparent 60%),
    linear-gradient(180deg, var(--off-white) 0%, var(--off-white) 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; font-size: 1.25rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(45, 106, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0); }
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -10px; left: 28px;
  width: 44px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.hero-card h4 { margin-bottom: 18px; font-family: var(--font-serif); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.hero-stat-row { display: flex; gap: 24px; margin-bottom: 18px; }
.hero-stat {
  flex: 1;
  padding: 14px;
  background: var(--off-white);
  border-radius: var(--radius);
}
.hero-stat .value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-card ul { list-style: none; }
.hero-card li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-card li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Simple hero for inner pages */
.hero-simple {
  padding: 80px 0 60px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.hero-simple .lead { margin-top: 20px; }

/* ---------- Grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.section-header {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-header.left { text-align: left; margin-left: 0; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #CFD7E0;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.benefit {
  padding: 4px 0;
}
.benefit h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 10px;
  position: relative;
  padding-left: 28px;
}
.benefit h4::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 18px; height: 2px;
  background: var(--accent);
}
.benefit p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Service blocks (Services page) ---------- */

.service-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.service-block:last-child { border-bottom: none; }
.service-block .service-meta .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  font-weight: 400;
}
.service-block .service-meta h3 { font-size: 1.7rem; margin-bottom: 14px; }
.service-block .service-meta .who {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  display: inline-block;
}
.service-block .service-detail h4 { margin: 22px 0 10px; }
.service-block .service-detail p { color: var(--text); margin-bottom: 14px; }
.service-block .service-detail ul { list-style: none; margin-bottom: 20px; }
.service-block .service-detail li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text);
}
.service-block .service-detail li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.testimonial .quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 18px;
}
.testimonial .attribution {
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.testimonial .attribution strong { color: var(--ink); display: block; }

/* ---------- Pricing table ---------- */

.pricing-table-wrap {
  /* Allow the table to scroll horizontally on narrow screens
     instead of crushing or overflowing the page */
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 540px; /* keeps columns from collapsing too narrow on phones */
}
.pricing-table th, .pricing-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.pricing-table th {
  background: var(--off-white-2);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table td.price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
  white-space: nowrap;
}

.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.package {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
}
.package.featured {
  background: var(--ink);
  color: #E8EEF6;
  border-color: var(--ink);
  transform: scale(1.02);
}
.package.featured h3,
.package.featured .package-price { color: var(--white); }
.package.featured .package-label { color: #9FC4DC; }
.package:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.package.featured:hover { transform: scale(1.02) translateY(-3px); }

.package-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.package h3 { margin-bottom: 10px; }
.package .package-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; min-height: 44px; }
.package.featured .package-desc { color: #B6C5D5; }
.package-price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.package-price .from { font-size: 0.95rem; color: var(--muted); font-family: var(--font-sans); }
.package.featured .package-price .from { color: #B6C5D5; }
.package-period { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }
.package ul { list-style: none; }
.package li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}
.package.featured li { border-top: 1px solid #1E4067; }
.package li:first-child { border-top: none; }
.package li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.package.featured li::before { color: #9FC4DC; }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; padding: 24px; }
.step .step-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.step h4 { margin-bottom: 10px; font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.step p { color: var(--muted); }

/* ---------- Forms ---------- */

.form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--off-white);
  transition: border 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.15);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- CTA block ---------- */

.cta-block {
  background: var(--ink);
  color: #E8EEF6;
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: var(--accent);
  opacity: 0.15;
  border-radius: 50%;
}
.cta-block h2 { color: var(--white); margin-bottom: 16px; }
.cta-block p { color: #B6C5D5; max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-block .hero-ctas { justify-content: center; }

/* ---------- Credentials strip ---------- */

.credentials {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}
.credentials-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
}
.credential-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  filter: grayscale(0%);
  transition: transform 0.2s ease;
}
.credential-badge img {
  max-height: 58px;
  width: auto;
  display: block;
}
.credential-badge.tpb img  { max-height: 112px; }
.credential-badge.caanz img { max-height: 66px; }
.credential-badge.xero img { max-height: 74px; }

/* Card-style credentials on about page */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 14px;
}
.credentials-grid .credential-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  transition: border-color 0.2s ease;
}
.credentials-grid .credential-card:hover { border-color: var(--accent-soft, #7BA8C9); }
.credentials-grid .credential-card img {
  max-height: 82px;
  width: auto;
  display: block;
}
.credentials-grid .credential-card.caanz img { max-height: 66px; }
.credentials-grid .credential-card.xero img  { max-height: 74px; }
.credentials-grid .credential-card.tpb img   { max-height: 118px; }
.credentials-grid .credential-card .label {
  margin-top: 12px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.credentials-grid .credential-card.pss {
  text-align: center;
}
.credentials-grid .credential-card.pss .mono-mark {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 6px;
}
.credentials-grid .credential-card.pss .label {
  margin-top: 8px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #B6C5D5;
  padding: 72px 0 28px;
}
.footer-brand img {
  height: 52px;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer p { font-size: 0.95rem; line-height: 1.6; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: #B6C5D5; font-size: 0.95rem; transition: color 0.2s ease; }
.footer a:hover { color: #9FC4DC; }
.footer-bottom {
  border-top: 1px solid #1E4067;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #8A9BB0;
}
.footer-fineprint { max-width: 760px; }

/* ---------- Split + values + stats ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.value-list { list-style: none; }
.value-list li {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.value-list li:last-child { border-bottom: 1px solid var(--border); }
.value-list h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.value-list p { color: var(--muted); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.about-stat {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.about-stat .value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.about-stat .label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Industries / Verticals ---------- */

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.vertical {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s ease;
}
.vertical:hover {
  border-color: #CFD7E0;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.vertical-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.vertical h3 { font-size: 1.35rem; }
.vertical p { color: var(--muted); font-size: 0.98rem; }
.vertical ul { list-style: none; padding-top: 6px; }
.vertical ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.93rem;
  color: var(--text);
}
.vertical ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 10px; height: 1px;
  background: var(--accent);
}

.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pain-item {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.pain-item h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 10px;
  font-style: italic;
}
.pain-item p { color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  section { padding: 64px 0; }

  .hero { padding: 60px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }

  .grid-2, .grid-3, .grid-4, .testimonial-grid, .steps, .package-grid,
  .split, .pain-list, .about-stats, .vertical-grid {
    grid-template-columns: 1fr;
  }

  .service-block { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  /* On mobile, hide the primary CTA in the nav bar — it's still
     accessible from the hamburger menu items. Keeps the bar clean
     and lets the logo + burger breathe. */
  .nav-cta .btn-primary { display: none; }

  /* Polished hamburger button — square, brand-styled, proper tap target */
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .menu-toggle:hover { border-color: var(--accent); color: var(--accent-deep); }
  .menu-toggle:active { background: var(--off-white); }

  .cta-block { padding: 40px 24px; }
  .package.featured { transform: none; }

  /* Bigger logo on mobile so it pops */
  .brand img { height: 60px; }

  /* YouTube landing page nav has no menu — keep CTA but make it smaller
     so it doesn't dominate the bar. */
  .nav-landing .nav-cta .btn-primary {
    display: inline-flex;
    padding: 9px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stat-row { flex-direction: column; gap: 10px; }
  .nav-cta .btn-secondary { display: none; }
  .brand img { height: 56px; } /* keep logo prominent on phone */
  .menu-toggle { width: 42px; height: 42px; font-size: 1.3rem; }

  /* YouTube landing nav: the CTA stays visible (no hamburger menu on this
     page) so we make room for it by shrinking the logo and tightening the
     bar padding/gap. The short button label kicks in via .cta-short. */
  .nav-landing .nav-inner { padding: 12px 14px; gap: 8px; }
  .nav-landing .brand img { height: 44px; }
  .nav-landing .nav-cta .btn-primary {
    padding: 8px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Tighten section padding on phones so content gets more screen */
  section { padding: 48px 0; }
  .container { padding: 0 18px; }

  /* Hero typography scales down further to avoid awkward wrapping */
  .hero h1, .hero-landing h1, .hero-simple h1 { font-size: clamp(1.85rem, 6vw, 2.4rem); }
  .hero .lead, .hero-landing .lead, .hero-simple .lead { font-size: 1.05rem; }

  /* Hero stack: card sits below text instead of side-by-side */
  .hero-card { padding: 24px; }
  .hero-card h4 { font-size: 1.05rem; margin-bottom: 14px; }

  /* CTAs stack and stretch full-width so they're easy to tap */
  .hero-ctas { flex-direction: column; gap: 12px; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Form section: tighter padding so fields don't get cramped against edges */
  .form { padding: 22px; border-radius: var(--radius); }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    padding: 12px 12px;
  }
  .form-field label { font-size: 0.92rem; }
  .form-row { gap: 12px; margin-bottom: 12px; }
  .form-field { margin-bottom: 14px; }

  /* CTA blocks (dark navy panels) get tighter padding so the box doesn't dominate */
  .cta-block { padding: 32px 20px; }
  .cta-block h2 { font-size: 1.6rem; }
  .cta-block p { font-size: 0.98rem; }

  /* Cards: less internal padding to maximise text width */
  .card { padding: 24px; }

  /* Section header: smaller bottom margin on phones */
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.55rem; }

  /* Pricing tables: scrollable horizontally if needed */
  .pricing-table { font-size: 0.9rem; }

  /* Credentials strip: tighter spacing */
  .credentials-inner { gap: 18px; }
}

/* Dedicated form-section split — used on contact + youtube landing.
   Collapses to single column on tablet/mobile so the form is never
   squashed alongside the info column. */
@media (max-width: 900px) {
  .form-split { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ---------- Calculators / Resources ---------- */

/* Resources hub — grid of branded tool cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.resource-card .res-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}
.resource-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0;
}
.resource-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  flex-grow: 1;
}
.resource-card .res-link {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  align-self: flex-start;
}
.resource-card .res-link::after {
  content: " →";
  transition: transform 0.2s ease;
  display: inline-block;
}
.resource-card:hover .res-link::after { transform: translateX(4px); }

/* Resource section dividers — eyebrow + bold Georgia title */
.resource-section-header {
  margin: 0 0 32px;
  max-width: 720px;
}
.resource-section-header .eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-deep);
  display: inline-block;
  margin-bottom: 10px;
}
.resource-section-header h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.resource-section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

/* Backwards-compat: keep old class working but boosted */
.resource-section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 26px;
  letter-spacing: -0.005em;
}

/* Individual calculator layout: form left, dark navy result panel right */
.calculator {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.calc-inputs h3,
.calc-result h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  font-weight: 600;
}
.calc-inputs h3 { color: var(--accent-deep); }
.calc-result h3 { color: #B6C5D5; }

.calc-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 175px;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  min-height: 44px;
}
.calc-field label {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.35;
}
.calc-field .input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.calc-field .prefix,
.calc-field .suffix {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.calc-field input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--off-white);
  text-align: right;
  transition: all 0.18s ease;
}
.calc-field input:hover { border-color: #CFD7E0; }
.calc-field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.15);
}

/* Branded native dropdown — custom arrow chevron, rounded, brand styling */
.calc-field select {
  width: 100%;
  min-width: 0;
  padding: 11px 38px 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--off-white);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233A7CA5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}
.calc-field select:hover {
  border-color: var(--accent);
  background-color: var(--white);
}
.calc-field select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.15);
}

/* Toggle switch — replaces yes/no radio rows.
   Sits in the right column of the .calc-field grid, aligned right.
   Track flips navy when checked (=Yes); circle slides right.
   "No" / "Yes" labels sit either side of the track. */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  user-select: none;
}
.toggle-switch .toggle-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s ease;
  min-width: 24px;
  text-align: center;
}
.toggle-switch .toggle-text.left { text-align: right; }
.toggle-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-switch .toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: #D8DEE7;
  border-radius: 999px;
  transition: background 0.22s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-switch .toggle-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.22s ease;
}
.toggle-switch input[type="checkbox"]:checked ~ .toggle-track {
  background: var(--ink);
}
.toggle-switch input[type="checkbox"]:checked ~ .toggle-track::before {
  transform: translateX(20px);
}
.toggle-switch input[type="checkbox"]:focus-visible ~ .toggle-track {
  box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.3);
}
/* When checked, "Yes" (right) becomes ink, "No" (left) fades */
.toggle-switch input[type="checkbox"]:checked ~ .toggle-text.right { color: var(--ink); }
.toggle-switch input[type="checkbox"]:not(:checked) ~ .toggle-text.left { color: var(--ink); }

/* Backwards-compat: keep .calc-radio-row in case anything still uses it */
.calc-radio-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}
.calc-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}
.calc-radio-row input[type="radio"],
.calc-radio-row input[type="checkbox"] { accent-color: var(--accent); }

.calc-section-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin: 24px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.calc-section-label:first-of-type { margin-top: 8px; padding-top: 0; border-top: none; }

/* Result panel — dark navy with bold figures */
.calc-result {
  background: var(--ink);
  color: #E8EEF6;
  border-radius: var(--radius);
  padding: 28px;
  align-self: stretch;
}
.calc-result .result-headline {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: #B6C5D5;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.calc-result .result-figure {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 6px;
}
.calc-result .result-sub {
  color: #B6C5D5;
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.calc-result .result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
}
.calc-result .result-row:first-of-type { border-top: none; }
.calc-result .result-row .label { color: #B6C5D5; }
.calc-result .result-row .value { color: var(--white); font-weight: 600; }
.calc-result .result-row .value.accent { color: var(--accent); }
.calc-result .result-block-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 18px 0 8px;
}

.calc-disclaimer {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--off-white-2);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.calc-disclaimer strong { color: var(--ink); }

/* Hero variant for calculator pages — tighter than main hero */
.calc-hero {
  padding: 70px 0 40px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(58, 124, 165, 0.10), transparent 55%),
    var(--off-white);
}
.calc-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.calc-hero .lead { font-size: 1.1rem; max-width: 640px; }
.calc-hero .crumb {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 12px;
}
.calc-hero .crumb a { color: var(--accent-deep); text-decoration: none; }

@media (max-width: 900px) {
  .calculator { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .resource-grid { grid-template-columns: 1fr; }
  .calc-result .result-figure { font-size: 2.1rem; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  /* Tablet: keep two-col, but trim the input column so labels breathe */
  .calc-field { grid-template-columns: minmax(0, 1fr) 150px; }
}

/* ---------- Phone: stack calculator fields (label over input) ---------- */
@media (max-width: 600px) {
  .calculator { padding: 20px; gap: 20px; border-radius: 14px; }
  .calc-inputs h3, .calc-result h3 { font-size: 0.78rem; margin-bottom: 14px; }

  /* Stack: label on top, full-width input below. Cleaner on narrow screens. */
  .calc-field {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 0;
    align-items: stretch;
  }
  .calc-field label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
  }
  .calc-field .input-wrap { justify-content: flex-start; width: 100%; gap: 6px; }
  .calc-field input,
  .calc-field select {
    flex: 1;
    width: auto;
    min-width: 0;
    font-size: 16px; /* prevent iOS zoom on focus */
    text-align: left;
    padding: 12px 14px;
  }
  .calc-field select { padding-right: 38px; }

  /* Toggle switches: sit left-aligned below the label, full row */
  .toggle-switch { justify-self: start; }

  /* Section labels: tighter top spacing when fields are stacked */
  .calc-section-label { margin: 18px 0 10px; padding-top: 12px; font-size: 0.78rem; }

  /* Result panel: tighter padding + smaller hero figure on phone */
  .calc-result { padding: 22px; }
  .calc-result .result-figure { font-size: 1.95rem; }
  .calc-result .result-row { font-size: 0.92rem; padding: 9px 0; }
  .calc-result .result-row .value { font-size: 0.95rem; }

  /* Calc hero: less top padding so first field is closer to the fold */
  .calc-hero { padding: 48px 0 28px; }
  .calc-hero h1 { font-size: clamp(1.7rem, 6vw, 2.1rem); }
  .calc-hero .lead { font-size: 1rem; }

  /* Disclaimer: tighter padding */
  .calc-disclaimer { padding: 16px 18px; font-size: 0.82rem; }
}
