/* ============================================================
   John Roberts Services LLC — Site Stylesheet
   Vertical: Handyman | Pensacola, FL
   Palette: Warm earth — terracotta #C26B3A + dark charcoal-brown #3D2B1A + cream #F5EDE0
   Hero: Pattern A (photographic dim overlay)
   Font: Outfit (display) + Lato (body) — Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --paper:     #F5EDE0;  /* warm cream — page background */
  --ink:       #3D2B1A;  /* dark charcoal-brown — primary text */
  --ink-mid:   #6B4E35;  /* medium brown — secondary text */
  --accent:    #C26B3A;  /* terracotta — buttons, highlights */
  --accent-dk: #9E4E22;  /* darker terracotta — hover */
  --band:      #3D2B1A;  /* dark band sections */
  --band-text: #F5EDE0;
  --card-bg:   #FFFFFF;
  --border:    rgba(61,43,26,0.12);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Lato', sans-serif;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 2px 8px rgba(61,43,26,0.12), 0 8px 24px rgba(61,43,26,0.08);
  --shadow-lg: 0 4px 16px rgba(61,43,26,0.16), 0 12px 40px rgba(61,43,26,0.12);
  --transition: 0.25s cubic-bezier(0.16,1,0.3,1);
}

/* ── Painting order — bg on html, body transparent ─────────── */
html {
  background-color: var(--paper);
  scroll-behavior: smooth;
}

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  padding: 0;
}

/* Warm radial overlays (top sunlight + bottom vignette) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,220,170,0.25), transparent 55%),
    radial-gradient(ellipse at 50% 105%, rgba(61,43,26,0.20), transparent 55%);
}

main, nav, footer, header {
  position: relative;
  z-index: 1;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }
ul { list-style: none; margin: 0; padding: 0; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1rem; max-width: 68ch; color: var(--ink-mid); }

/* ── Layout containers ──────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,237,224,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--accent-dk) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--ink);
}

/* ── Hero — Pattern A (photo dim overlay) ───────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/photos/photo-01.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.70) brightness(0.75);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 15% 30%, rgba(61,43,26,0.55), transparent 60%),
    linear-gradient(160deg, rgba(61,43,26,0.75) 0%, rgba(194,107,58,0.30) 50%, rgba(61,43,26,0.50) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem 4rem;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(194,107,58,0.18);
  border: 1px solid rgba(194,107,58,0.45);
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: #fff;
  max-width: 700px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-sub {
  color: rgba(245,237,224,0.88);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  color: rgba(245,237,224,0.80);
  font-size: 0.88rem;
}

.hero-stars {
  display: flex;
  gap: 3px;
}

.star { color: #F4A830; font-size: 1rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
  text-align: center;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.90);
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-dark:hover {
  background: #2A1D0E;
  border-color: #2A1D0E;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
  background: transparent;
}

.section--band {
  background: var(--band);
  color: var(--band-text);
  padding: 5rem 0;
}

.section--band h2,
.section--band h3,
.section--band h4 { color: var(--band-text); }

.section--band p { color: rgba(245,237,224,0.78); }

.section--light {
  background: rgba(194,107,58,0.07);
  padding: 5rem 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title { margin-bottom: 0.75rem; }
.section-sub { font-size: 1.05rem; margin-bottom: 2.5rem; max-width: 56ch; }

/* ── Service grid (asymmetric 2-col bento-style) ────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 1.4rem 1.5rem 1.75rem;
}

.service-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.service-card-body p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  color: var(--ink-mid);
}

.service-card-body a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
}

.service-card-body a:hover { gap: 0.6rem; }

/* ── Photo section (large image blocks) ─────────────────────── */
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.photo-row.three { grid-template-columns: 1fr 1fr 1fr; }

.photo-block {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.photo-block img,
.photo-block-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-block:hover img,
.photo-block-tall:hover img { transform: scale(1.03); }

.photo-block-tall {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

/* ── Work split section (text + big image side-by-side) ─────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.split-text { }

/* ── Social proof / reviews ─────────────────────────────────── */
.review-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}

.review-stars { display: flex; gap: 4px; margin-bottom: 0.75rem; }
.review-text { font-style: italic; color: var(--ink-mid); margin-bottom: 0.75rem; font-size: 1rem; }
.reviewer { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.review-source { font-size: 0.78rem; color: var(--ink-mid); margin-top: 0.25rem; }

.trust-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.trust-label {
  font-size: 0.82rem;
  color: rgba(245,237,224,0.75);
  margin-top: 0.25rem;
}

/* ── CTA banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--accent);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-banner p { color: rgba(255,255,255,0.88); max-width: 55ch; margin: 0 auto 1.75rem; }

/* ── Service detail hero (inner pages) ──────────────────────── */
.page-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.65) brightness(0.70);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,43,26,0.30) 0%, rgba(61,43,26,0.75) 100%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.page-hero-content h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero-content p { color: rgba(245,237,224,0.85); font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(245,237,224,0.65);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.4rem;
}
.breadcrumb a { color: rgba(194,107,58,0.9); }

/* ── Inline photo strip ─────────────────────────────────────── */
.photo-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 2rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.photo-strip-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Before/After comparison ────────────────────────────────── */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.ba-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(61,43,26,0.80);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* ── Process steps ───────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  padding: 1.5rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-card h4 { margin-bottom: 0.4rem; }
.step-card p { font-size: 0.92rem; margin: 0; }

/* ── FAQ accordion ───────────────────────────────────────────── */
.faq-list { margin-top: 1.5rem; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  gap: 1rem;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: var(--accent);
  transition: transform var(--transition);
}

.faq-a {
  display: none;
  padding-bottom: 1rem;
  color: var(--ink-mid);
  font-size: 0.95rem;
  max-width: none;
}

.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── Contact / estimate form ─────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--card-bg);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194,107,58,0.15);
}

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

.needs-input {
  display: inline-block;
  background: #FFF8E6;
  border: 1.5px solid #F4A830;
  color: #8B6400;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-family: var(--font-display);
}

/* ── Info cards / icon blocks ────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.info-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(194,107,58,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.info-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card h4 { margin-bottom: 0.4rem; font-size: 1rem; }
.info-card p { font-size: 0.9rem; margin: 0; }

/* Band variant info cards */
.section--band .info-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
.section--band .info-card h4 { color: var(--band-text); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand { }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 0.6rem;
}

.footer-brand-name span { color: var(--accent); }
.footer-tagline { font-size: 0.88rem; color: rgba(245,237,224,0.65); max-width: 28ch; }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col a {
  color: rgba(245,237,224,0.70);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  border-top: 1px solid rgba(245,237,224,0.10);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(245,237,224,0.45);
  margin: 0;
  max-width: none;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: rgba(194,107,58,0.12);
  color: var(--accent);
  border: 1px solid rgba(194,107,58,0.25);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Phone link */
a[href^="tel"] {
  color: inherit;
  white-space: nowrap;
}

/* ── Schema / structured data helpers ───────────────────────── */
.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;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-section.reverse { direction: ltr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .before-after { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245,237,224,0.97);
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(61,43,26,0.12);
  }

  .hero-content { padding: 5rem 1.25rem 3rem; }

  .photo-row { grid-template-columns: 1fr; }
  .photo-row.three { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .trust-bar { gap: 1.25rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Skip link ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus { top: 1rem; }

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
