/* ==========================================================================
   Infinite Books Publishing — stylesheet
   ========================================================================== */

:root {
  /* Palette */
  --bg: #12151e;
  --bg-alt: #171b26;
  --bg-card: #1c2130;
  --bg-card-hover: #232939;
  --border: rgba(255, 255, 255, 0.1);
  --fg: #f6f2ea;
  --fg-muted: #9aa2b2;
  --primary: #dc9a5f;
  --primary-dark: #c17f4a;
  --primary-fg: #201409;

  /* Type */
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --header-h: 76px;
  --radius: 0.9rem;
  --radius-sm: 0.6rem;
  --container-w: 1200px;
  --shadow-soft: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: hidden; }
/* Belt-and-suspenders: the page should never itself scroll sideways — any
   horizontal scrolling happens inside deliberately-scrollable regions like
   .scroller, which set their own overflow-x/-y and are unaffected by this.
   This guards against any stray element (a fixed-width image, a long
   unbroken string, a third-party embed) pushing the whole document wider
   than the viewport on a real device. */
body { overflow-x: hidden; }
body, h1, h2, h3, p, figure, ul, form { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

.accent { color: var(--primary); }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--primary); color: var(--primary-fg);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--primary-fg);
  box-shadow: 0 10px 30px -10px rgba(220, 154, 95, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(220, 154, 95, 0.65); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(18, 21, 30, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(18, 21, 30, 0.92);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.logo-icon-img { height: 46px; width: auto; display: block; }
.logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--fg); line-height: 1; }

.main-nav > ul { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a, .nav-dropdown-toggle {
  font-size: 0.92rem; font-weight: 500; color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: color 0.2s ease;
}
.main-nav a:hover, .nav-dropdown-toggle:hover { color: var(--fg); }
.chevron { width: 14px; height: 14px; transition: transform 0.2s ease; }
.has-dropdown { position: relative; }
.has-dropdown[data-open="true"] .chevron { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  width: 640px; max-width: calc(100vw - 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.has-dropdown[data-open="true"] .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem;
}
.dropdown-grid li a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem;
  height: 100%; padding: 0.9rem 0.7rem; border-radius: var(--radius-sm);
  color: var(--fg);
}
.dropdown-grid li a:hover { background: var(--bg-card-hover); }
.dd-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: rgba(220, 154, 95, 0.14); color: var(--primary);
}
.dd-icon svg { width: 17px; height: 17px; }
.dd-title { font-weight: 600; font-size: 0.85rem; line-height: 1.35; }
.dd-desc { font-size: 0.78rem; color: var(--fg-muted); line-height: 1.45; }
.dropdown-menu > .dd-all {
  display: flex; align-items: center; justify-content: center;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  color: var(--primary); font-weight: 600; font-size: 0.85rem;
}
.dropdown-menu > .dd-all:hover { color: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.phone-link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 600; color: var(--fg); }
.phone-link svg { width: 17px; height: 17px; color: var(--primary); }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

.mobile-nav-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 10, 15, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(84vw, 340px);
  max-height: 100vh;
  overflow-y: auto;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  padding: 1.25rem 1.25rem 2rem;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.32s ease;
  z-index: 210;
  box-shadow: -24px 0 60px -24px rgba(0, 0, 0, 0.6);
}
.mobile-nav.is-open { transform: translateX(0); pointer-events: auto; }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border);
}
.mobile-nav-head .logo-icon-img { height: 30px; }
.mobile-nav-head .logo-text { font-size: 1.05rem; }
.mobile-nav-close {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg); transition: background-color 0.2s ease;
}
.mobile-nav-close:hover { background: var(--bg-card-hover); }
.mobile-nav-close svg { width: 18px; height: 18px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-nav > ul > li > a, .mobile-nav .nav-dropdown-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0.25rem; font-weight: 500; border-bottom: 1px solid var(--border);
  width: 100%; text-align: left;
}
.mobile-nav .dropdown-menu {
  position: static; transform: none; width: auto; opacity: 1; visibility: visible; pointer-events: auto;
  box-shadow: none; border: none; background: transparent; padding: 0 0 0 0.75rem;
  display: none;
}
.mobile-nav .has-dropdown[data-open="true"] .dropdown-menu {
  display: block;
  /* Beats .has-dropdown[data-open="true"] .dropdown-menu (the desktop
     mega-menu's open-state rule), which would otherwise re-apply its
     translateX(-50%) centering transform here and shift this list off
     to the left. */
  transform: none;
}
.mobile-nav .dropdown-menu li a { padding: 0.65rem 0.25rem; color: var(--fg-muted); border-bottom: 1px dashed var(--border); }
.mobile-nav .btn { margin-top: 1rem; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 3.5rem) 0 5rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 15%, rgba(220, 154, 95, 0.18), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(220, 154, 95, 0.08), transparent 60%),
    linear-gradient(180deg, #14182389, var(--bg) 65%);
  background-color: var(--bg);
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(60% 60% at 70% 20%, black, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--primary); font-weight: 500; margin-bottom: 1.1rem;
}
.eyebrow.center { justify-content: center; }
.eyebrow-line { width: 28px; height: 1px; background: var(--primary); }
.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-lede { font-size: 1.08rem; color: var(--fg-muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--border); aspect-ratio: 16/9; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  position: sticky; top: calc(var(--header-h) + 1.5rem);
}
.hero-form-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.hero-form-card > p { color: var(--fg-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--fg-muted); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); background: var(--bg-card-hover);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.hero-form-card > p.form-success {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
}

/* ---------- Trusted strip ---------- */
.trusted-strip { border-block: 1px solid var(--border); padding: 1.6rem 0; overflow: hidden; background: var(--bg-alt); }
.marquee { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee-track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track li {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem;
  color: var(--fg-muted); letter-spacing: 0.02em; white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { display: flex; }
.section-lede { color: var(--fg-muted); margin-top: 0.9rem; font-size: 1.02rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
.about-copy p { color: var(--fg-muted); margin: 1.1rem 0 1.6rem; }
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
.check-list li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.95rem; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(220, 154, 95, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc9a5f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem;
}
.stat-num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Card grids / scroller ---------- */
.scroller { width: 100%; }
.card-grid { display: grid; gap: 1.5rem; }
.services-grid, .why-grid { grid-template-columns: repeat(3, 1fr); }
.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.process-grid { grid-template-columns: repeat(4, 1fr); }
.packages-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.reviews-grid { grid-template-columns: repeat(3, 1fr); }
.swipe-hint { display: none; text-align: center; font-size: 0.8rem; color: var(--fg-muted); margin-top: 1rem; font-family: var(--font-mono); }

/* ---------- Feature card ---------- */
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem; transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(220,154,95,0.35); background: var(--bg-card-hover); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: rgba(220, 154, 95, 0.14); color: var(--primary);
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 0.55rem; }
.feature-card p { color: var(--fg-muted); font-size: 0.93rem; }

/* ---------- Portfolio ---------- */
.portfolio-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-card); position: relative;
}
.portfolio-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; transition: transform 0.4s ease; }
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-card figcaption {
  padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.portfolio-card .tag { font-weight: 700; font-family: var(--font-serif); font-size: 1.05rem; }
.portfolio-card .sub { font-size: 0.82rem; color: var(--fg-muted); }

/* ---------- Process ---------- */
.process-card { padding: 0.5rem 0.25rem; position: relative; }
.process-num {
  display: inline-block; font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px rgba(220,154,95,0.55); margin-bottom: 0.75rem;
}
.process-card h3 { margin-bottom: 0.55rem; }
.process-card p { color: var(--fg-muted); font-size: 0.93rem; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem 1.9rem; display: flex; flex-direction: column; position: relative;
}
.price-card-featured {
  background: linear-gradient(180deg, var(--bg-card-hover), var(--bg-card));
  border-color: rgba(220, 154, 95, 0.5);
  box-shadow: var(--shadow-soft);
  transform: scale(1.03);
}
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--primary-fg); font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 0.35rem 0.9rem; border-radius: 999px;
}
.price-card h3 { margin-bottom: 0.4rem; }
.price-desc { color: var(--fg-muted); font-size: 0.9rem; margin-bottom: 1.2rem; min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.5rem; }
.price-now { font-family: var(--font-serif); font-size: 2.3rem; font-weight: 700; }
.price-was { font-size: 1rem; color: var(--fg-muted); text-decoration: line-through; }
.price-card .check-list { margin-bottom: 1.8rem; flex-grow: 1; }
.price-card .check-list li { font-size: 0.9rem; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem; display: flex; flex-direction: column; gap: 1.1rem;
}
.review-card h3 { font-size: 1.05rem; }
.review-card > p { color: var(--fg-muted); font-size: 0.93rem; flex-grow: 1; }
.review-card footer { display: flex; align-items: center; gap: 0.8rem; }
.review-card footer > span:last-child { display: flex; flex-direction: column; font-size: 0.85rem; }
.review-card footer time { color: var(--fg-muted); font-size: 0.78rem; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(220, 154, 95, 0.18); color: var(--primary);
  font-family: var(--font-serif); font-weight: 700; font-size: 0.85rem;
}

/* ---------- FAQ ---------- */
.accordion { display: flex; flex-direction: column; gap: 0.9rem; }
.accordion-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; text-align: left; font-weight: 600; font-size: 1rem;
}
.accordion-icon { font-size: 1.3rem; color: var(--primary); flex-shrink: 0; transition: transform 0.25s ease; line-height: 1; }
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease;
}
.accordion-panel > p {
  overflow: hidden; padding: 0 1.5rem; color: var(--fg-muted); font-size: 0.94rem;
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-item.is-open .accordion-panel > p { padding: 0 1.5rem 1.35rem; }
.accordion-panel { min-height: 0; }
.accordion-panel > p { min-height: 0; }

/* ---------- Final contact ---------- */
.contact-section { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-copy > p { color: var(--fg-muted); margin: 1.1rem 0 1.6rem; }
.contact-copy .check-list { margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-method {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem; transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-method:hover { border-color: rgba(220,154,95,0.4); transform: translateY(-2px); }
.contact-method .feature-icon { margin-bottom: 0; }
.contact-method strong { display: block; font-size: 0.85rem; color: var(--fg-muted); font-weight: 500; }
.contact-method span > span:last-child { font-size: 1rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-columns {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--fg-muted); font-size: 0.9rem; margin: 1rem 0 0; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.78rem; color: var(--fg-muted); font-weight: 500; margin-bottom: 1.1rem;
}
.footer-col { display: flex; flex-direction: column; }
.footer-col a { font-size: 0.9rem; color: var(--fg-muted); padding: 0.3rem 0; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.75rem; font-size: 0.85rem; color: var(--fg-muted);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { font-size: 0.9rem; color: var(--fg-muted); }
.footer-nav a:hover { color: var(--fg); }
.footer-copy { font-size: 0.85rem; color: var(--fg-muted); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 3.5rem) 0 3.5rem; overflow: hidden;
  text-align: center;
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { margin-bottom: 0.9rem; }
.page-hero p { color: var(--fg-muted); max-width: 60ch; margin: 0 auto; font-size: 1.05rem; }
.page-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Active nav ---------- */
.main-nav a.is-active, .mobile-nav a.is-active { color: var(--fg); }

/* ---------- Section intro (used on inner pages instead of full section-head) ---------- */
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .eyebrow { justify-content: flex-start; }

/* ---------- Blog ---------- */
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(220,154,95,0.35); }
.blog-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex-grow: 1; }
.blog-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card h3 { font-size: 1.15rem; }
.blog-card p { color: var(--fg-muted); font-size: 0.9rem; flex-grow: 1; }
.blog-readmore { font-size: 0.88rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem; }

/* ---------- Prose (blog posts / legal pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 1rem; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 0.75rem; }
.prose p { color: var(--fg-muted); margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.75; }
.prose ul, .prose ol { color: var(--fg-muted); margin: 0 0 1.1rem; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose li { font-size: 1rem; line-height: 1.6; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.75rem 0; padding: 1.1rem 1.5rem; border-left: 3px solid var(--primary);
  background: var(--bg-card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--fg); font-style: italic;
}
.post-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--fg-muted); font-size: 0.85rem; font-family: var(--font-mono); margin-bottom: 2rem; }
.post-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; border: 1px solid var(--border); }
.post-cover img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--fg-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--primary); }

/* ---------- Portfolio filters ---------- */
.filter-bar { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.55rem 1.2rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--fg-muted); font-size: 0.85rem; font-weight: 600; background: var(--bg-card);
  transition: all 0.2s ease;
}
.filter-btn:hover { color: var(--fg); border-color: rgba(220,154,95,0.4); }
.filter-btn.is-active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.portfolio-card[hidden] { display: none; }

/* ---------- Service / info page blocks ---------- */
.info-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.info-grid img, .info-grid .info-image { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-soft); }
.info-grid .info-image img { width: 100%; height: 100%; object-fit: cover; }
.step-list { display: flex; flex-direction: column; gap: 1.5rem; }
.step-list li { display: flex; gap: 1.1rem; }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(220,154,95,0.14); color: var(--primary); font-family: var(--font-serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-list h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.step-list p { color: var(--fg-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Contact page ---------- */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Mobile sticky bar ---------- */
.mobile-sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  gap: 0.8rem; padding: 0.85rem 1rem; background: rgba(18,21,30,0.95);
  backdrop-filter: blur(10px); border-top: 1px solid var(--border);
}
.mobile-sticky-bar .btn {
  flex: 1;
  /* .btn sets white-space:nowrap, which combined with the flex item's default
     min-width:auto stops flex-shrink from working — on narrow phones
     (~340px and below) "Call Now" + "Free Consultation" don't both fit and
     were overflowing the fixed bar (and the page) instead of shrinking.
     min-width:0 lets them shrink properly; the ellipsis is the graceful
     fallback if a screen is narrow enough that text still doesn't fit. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid, .why-grid, .portfolio-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-form-card { position: static; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .phone-link { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }
  .mobile-nav-backdrop { display: block; }
  .header-cta { display: none; }
  .site-header .logo-text { font-size: 1.05rem; }
  .site-header .logo-icon-img { height: 36px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .check-list.two-col { grid-template-columns: 1fr; }

  /* Horizontal "swipe to explore" scroller on small screens — only for
     card-grids actually wrapped in a .scroller (the home page preview
     sections). A bare .card-grid on a full listing page (services index,
     about, testimonials, portfolio) has no .scroller ancestor to provide
     overflow-x, so forcing it into a flex row here made its cards run off
     the right edge of the screen with no way to reach them. */
  .scroller { overflow-x: auto; margin-inline: -1.5rem; padding-inline: 1.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller .card-grid { display: flex; gap: 1.1rem; }
  .scroller .services-grid > *, .scroller .why-grid > *, .scroller .process-grid > *, .scroller .reviews-grid > * { min-width: 78%; scroll-snap-align: start; }
  .scroller .portfolio-grid > * { min-width: 62%; scroll-snap-align: start; }
  .scroller .packages-grid > * { min-width: 86%; scroll-snap-align: start; }

  /* Full listing pages (not wrapped in .scroller) just stack to one
     column instead. */
  .services-grid, .why-grid, .portfolio-grid, .reviews-grid, .process-grid, .packages-grid {
    grid-template-columns: 1fr;
  }
  .scroller .services-grid, .scroller .why-grid, .scroller .portfolio-grid,
  .scroller .reviews-grid, .scroller .process-grid, .scroller .packages-grid {
    grid-template-columns: none;
  }

  .price-card-featured { transform: none; }
  .swipe-hint { display: block; }

  .mobile-sticky-bar { display: flex; }
  .site-footer { padding-bottom: 6.5rem; }

  /* Cards inside horizontal scrollers get clipped by overflow-x, so they
     never register as intersecting for the scroll-reveal observer — show
     them immediately instead of relying on IntersectionObserver here. */
  .scroller .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 560px) {
  .section { padding: 4rem 0; }
  .hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-methods { gap: 0.7rem; }
}

@media (max-width: 360px) {
  .mobile-sticky-bar { gap: 0.5rem; padding: 0.7rem 0.75rem; }
  .mobile-sticky-bar .btn { padding: 0.7rem 0.5rem; font-size: 0.82rem; }
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid, .contact-page-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand .logo-icon-img { height: 36px; }
  .footer-brand .logo-text { font-size: 1.05rem; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero { padding-top: calc(var(--header-h) + 2rem); }
}

@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

