/* ============================================================
   KEYSTONE ACCOUNTANCY — MAIN STYLESHEET
   Palette: Navy #0d1b2a | Gold #c9a84c | Cream #f8f6f1 | Slate #8899aa
   Fonts: Playfair Display (display) | Inter (body)
============================================================ */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1a3a5c;
  --gold:       #c9a84c;
  --gold-light: #e8d28a;
  --gold-dark:  #a8873c;
  --cream:      #f8f6f1;
  --cream-dark: #ede9e0;
  --slate:      #8899aa;
  --text-dark:  #1a1a2e;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --white:      #ffffff;
  --error:      #e53e3e;
  --success:    #38a169;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(13,27,42,0.08);
  --shadow-md: 0 8px 32px rgba(13,27,42,0.12);
  --shadow-lg: 0 20px 60px rgba(13,27,42,0.18);

  --transition: 0.2s ease;
  --max-width: 1160px;
  --section-pad: 80px 0;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
}

/* ---- UTILITY CLASSES ---- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-full { width: 100%; }

/* ---- HEADER / NAV ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(13,27,42,0.4);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-svg { display: block; }

.logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
  line-height: 1;
}

.logo-accent {
  display: block;
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--slate);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  font-weight: 500;
}

.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--white);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 24px 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: center;
  padding-bottom: 72px;
}

.hero-text { flex: 1; min-width: 0; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-sub {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-actions .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.hero-actions .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
}

/* Hero credential card */
.hero-card {
  flex-shrink: 0;
  width: 220px;
}

.hero-card-inner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-stat { padding: 18px 0; text-align: center; }
.hero-stat:first-child { padding-top: 0; }
.hero-stat:last-child { padding-bottom: 0; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-plus { font-size: 24px; }
.acca-badge { font-size: 26px; letter-spacing: 2px; }

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--slate);
  line-height: 1.4;
}

.hero-card-divider {
  height: 1px;
  background: rgba(201,168,76,0.15);
}

/* Trust bar */
.trust-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.trust-bar-item {
  flex: 1;
  min-width: 160px;
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  border-right: 1px solid rgba(201,168,76,0.1);
}

.trust-bar-item:last-child { border-right: none; }

/* ---- WHO WE SERVE ---- */
.who-section {
  padding: var(--section-pad);
  background: var(--cream);
}

.trades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trade-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--cream-dark);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.trade-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.trade-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.trade-card h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.trade-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ---- SERVICES ---- */
.services-section {
  padding: var(--section-pad);
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border-top: 3px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.service-card:hover {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card--featured {
  border-top-color: var(--gold);
  background: var(--cream);
}

.service-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.service-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  display: block;
}

/* ---- HOW IT WORKS ---- */
.how-section {
  padding: var(--section-pad);
  background: var(--navy);
}

.how-section .section-eyebrow { color: var(--gold); }
.how-section .section-title { color: var(--white); }

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}

.step-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: rgba(201,168,76,0.25);
  margin-top: 23px;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(201,168,76,0.35);
  border-top: 2px solid rgba(201,168,76,0.35);
  transform: rotate(45deg);
}

/* ---- PRICING ---- */
.pricing-section {
  padding: var(--section-pad);
  background: var(--cream);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 14px;
}

.pricing-price span {
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-mid);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ebebeb;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-mid);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 28px;
}

.pricing-note a {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  padding: var(--section-pad);
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}

.testimonial-author strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-light);
}

/* ---- ABOUT ---- */
.about-section {
  padding: var(--section-pad);
  background: var(--navy);
}

.about-section .section-eyebrow { color: var(--gold); }
.about-section .section-title { color: var(--white); }

.about-layout {
  display: flex;
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-image-col { flex-shrink: 0; }

.about-image-placeholder {
  width: 300px;
  height: 360px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.about-initials {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  color: rgba(201,168,76,0.3);
  line-height: 1;
}

.about-credential {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

.about-text-col { flex: 1; }

.about-lead {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 28px;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-point-icon {
  width: 28px;
  height: 28px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-point p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}

/* ---- BLOG PREVIEW ---- */
.blog-preview-section {
  padding: var(--section-pad);
  background: var(--cream);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-preview-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-preview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-preview-card a {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.blog-thumb {
  width: 100%;
  height: 180px;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-thumb-placeholder {
  font-size: 36px;
}

.blog-card-body {
  padding: 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--text-light);
}

.blog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--text-light);
  font-size: 14px;
}

/* ---- CONTACT ---- */
.contact-section {
  padding: var(--section-pad);
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mid);
}

.contact-detail-item a {
  color: var(--text-mid);
  transition: color var(--transition);
}

.contact-detail-item a:hover { color: var(--gold-dark); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--cream);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.form-group label span { color: var(--error); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid #d8d8d8;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238899aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
}

.form-error {
  font-size: 12px;
  color: var(--error);
  min-height: 16px;
}

.form-status {
  text-align: center;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(56,161,105,0.1);
  border: 1px solid rgba(56,161,105,0.3);
  color: var(--success);
}

.form-status.error {
  display: block;
  background: rgba(229,62,62,0.08);
  border: 1px solid rgba(229,62,62,0.25);
  color: var(--error);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: var(--slate);
}

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

.footer-top {
  display: flex;
  gap: 64px;
  padding: 60px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand { flex-shrink: 0; max-width: 260px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: var(--slate); margin-bottom: 8px; }
.footer-acca { font-size: 12px; color: rgba(201,168,76,0.6); letter-spacing: 1px; }

.footer-links { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 13px;
  color: var(--slate);
  transition: color var(--transition);
}
.footer-col li a:hover { color: var(--gold); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(136,153,170,0.6);
  line-height: 1.5;
}

/* ---- MODAL ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.75);
  z-index: 200;
  backdrop-filter: blur(3px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.modal-close:hover { color: var(--navy); }

.modal-title {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.booking-fallback {
  text-align: center;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.booking-fallback p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 8px;
}

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  :root { --section-pad: 64px 0; }

  .services-grid,
  .trades-grid { grid-template-columns: repeat(2, 1fr); }

  .about-layout { gap: 40px; }
  .about-image-placeholder { width: 240px; height: 290px; }

  .footer-top { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 52px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 12px 16px; display: block; border-radius: var(--radius-sm); }

  /* Hero */
  .hero { padding: 52px 24px 0; }
  .hero-inner { flex-direction: column; padding-bottom: 48px; gap: 36px; }
  .hero-card { width: 100%; }
  .hero-card-inner { flex-direction: row; justify-content: space-around; padding: 20px; }
  .hero-stat { padding: 8px 12px; }
  .stat-number { font-size: 28px; }

  .trust-bar { flex-wrap: wrap; }
  .trust-bar-item { flex-basis: 50%; border-right: none; border-bottom: 1px solid rgba(201,168,76,0.1); }

  /* Grids */
  .trades-grid,
  .services-grid,
  .pricing-grid,
  .testimonials-grid,
  .blog-preview-grid { grid-template-columns: 1fr; }

  .pricing-card--featured { transform: none; }

  /* Steps */
  .steps-row { flex-direction: column; align-items: center; gap: 0; }
  .step { padding: 24px 0; }
  .step-connector { width: 2px; height: 32px; margin: 0 auto; }
  .step-connector::after { display: none; }

  /* About */
  .about-layout { flex-direction: column; gap: 36px; }
  .about-image-placeholder { width: 100%; height: 200px; }
  .about-initials { font-size: 48px; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px 22px; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 36px; padding: 40px 0 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { max-width: 100%; }

  /* Modal */
  .modal-box { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 34px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust-bar-item { flex-basis: 100%; }
  .footer-links { grid-template-columns: 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}

/* ---- PRINT STYLES ---- */
@media print {
  .site-header, .modal-overlay, .modal-backdrop, .nav-toggle { display: none; }
  body { font-size: 12pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* ============================================================
   WHY SECTION (replaces old pricing section)
============================================================ */
.why-section {
  padding: var(--section-pad);
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.why-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: rgba(201,168,76,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.why-cta {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.why-cta p {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 480px;
}

/* ---- ACTIVE NAV LINK (Bug 3 fix) ---- */
.nav-links a.active {
  color: var(--gold);
}

@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TRUSTPILOT FALLBACK (shown until widget configured)
============================================================ */
.trustpilot-fallback {
  max-width: 640px;
  margin: 0 auto;
}

.tp-fallback-inner {
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
}

.tp-fallback-inner svg { margin: 0 auto 16px; }

.tp-fallback-inner h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.tp-fallback-inner p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.tp-fallback-inner a {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* When Trustpilot widget is active, hide the fallback.
   The widget iframe gets a height when it loads; if it stays empty,
   the fallback remains visible. To force-hide after setup, add
   class "configured" to the section or simply delete the fallback div. */
.trustpilot-widget:not(:empty) + .trustpilot-fallback {
  /* Once Trustpilot injects its iframe, you can uncomment this to hide fallback:
  display: none; */
}

/* ============================================================
   REVIEW TABS (Google + Trustpilot)
============================================================ */
.review-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.review-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-mid);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  cursor: pointer;
  transition: all 0.2s;
}

.review-tab:hover {
  border-color: var(--gold);
}

.review-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.review-panel {
  animation: fadeInReview 0.3s ease;
}

@keyframes fadeInReview {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Review fallback (shown until widget configured) */
.review-fallback {
  max-width: 640px;
  margin: 0 auto;
}

.review-fallback-inner {
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
}

.review-fallback-inner svg { margin: 0 auto 16px; }

.review-fallback-inner h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.review-fallback-inner p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

/* ============================================================
   CHOICE MODAL (Call Now / Book a Call)
============================================================ */
.modal-box--choice {
  max-width: 440px;
  text-align: center;
}

.choice-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  width: 100%;
  font-family: var(--font-body);
}

.choice-btn--call {
  background: var(--gold);
  color: var(--navy);
}

.choice-btn--call:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.choice-btn--book {
  background: var(--white);
  color: var(--navy);
  border-color: var(--cream-dark);
}

.choice-btn--book:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.choice-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.choice-btn--call .choice-btn-icon {
  background: rgba(13,27,42,0.12);
  color: var(--navy);
}

.choice-btn--book .choice-btn-icon {
  background: var(--cream);
  color: var(--gold-dark);
}

.choice-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.choice-btn-text strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.choice-btn-text small {
  font-size: 13px;
  opacity: 0.75;
}

/* ============================================================
   FLOATING CALL BUTTON (mobile only)
============================================================ */
.floating-call-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(13,27,42,0.35);
  cursor: pointer;
  animation: floatPulse 2.5s ease-in-out infinite;
}

.floating-call-btn:active {
  transform: scale(0.96);
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(13,27,42,0.35); }
  50% { box-shadow: 0 8px 32px rgba(201,168,76,0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-call-btn { animation: none; }
}

/* Show only on mobile/tablet */
@media (max-width: 768px) {
  .floating-call-btn { display: inline-flex; }
}

/* ============================================================
   FOOTER CREDIT (Belfer Agency)
============================================================ */
.footer-credit {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(136,153,170,0.55);
}

.footer-credit a {
  color: var(--gold);
  font-weight: 500;
  transition: color var(--transition);
}

.footer-credit a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}
