/* ============================================================
   Ash Construction — Main Stylesheet
   Extracted directly from approved homepage design
   ============================================================ */

/* Size-adjusted fallback fonts to prevent CLS during font swap */
@font-face {
  font-family: 'DM Serif Display Fallback';
  src: local('Georgia');
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Outfit Fallback';
  src: local('system-ui');
  size-adjust: 100%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --charcoal: #1A1A1A;
  --warm-dark: #2B2520;
  --ash: #3D3833;
  --stone: #6B6560;
  --sand: #B5A99A;
  --cream: #F0EBE4;
  --white: #FAF8F5;
  --accent: #C8935F;
  --accent-dark: #A87740;
  --accent-text: #8B6230;
  --font-display: 'DM Serif Display', 'DM Serif Display Fallback', Georgia, serif;
  --font-body: 'Outfit', 'Outfit Fallback', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; overflow-x: hidden; }
html { overflow-x: clip; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Typography */
.label { font-family: var(--font-body); font-weight: 600; font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; display: inline-block; }
.heading-lg { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 20px; }
.heading-sm { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 14px; }
.body-text { font-size: 1.05rem; line-height: 1.7; color: var(--stone); font-weight: 300; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; border: none; cursor: pointer; transition: all 0.4s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 30px rgba(200,147,95,0.3); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--warm-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 14px 0; transition: all 0.4s ease; background: rgba(26,26,26,0.97); backdrop-filter: blur(20px); box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.nav.nav-transparent { background: transparent; backdrop-filter: none; box-shadow: none; padding: 20px 0; }
.nav.scrolled { background: rgba(26,26,26,0.95); backdrop-filter: blur(20px); padding: 14px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1.6rem; color: #fff; display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 40px; height: 40px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a { color: rgba(255,255,255,0.75); font-size: 0.82rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 8px 18px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent-dark) !important; color: #fff !important; padding: 10px 24px !important; border-radius: 4px; font-weight: 600 !important; font-size: 0.82rem !important; letter-spacing: 0.5px; transition: background 0.3s !important; }
.nav-cta:hover { background: var(--accent-dark) !important; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.mobile-toggle span { width: 24px; height: 2px; background: #fff; display: block; transition: transform 0.32s ease, opacity 0.22s ease; transform-origin: center; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--charcoal); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #2b2520 0%, #1a1a1a 50%, #0d0d0d 100%); }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 80%, rgba(200,147,95,0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(200,147,95,0.05) 0%, transparent 50%); }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 160px 0 100px; }
.hero-label { font-weight: 600; font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; display: flex; align-items: center; gap: 16px; }
.hero-label::before { content: ''; width: 60px; height: 1px; background: var(--accent); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1.08; color: #fff; margin-bottom: 28px; }
.hero h1 span { color: var(--accent); }
.hero-desc { font-size: 1.15rem; line-height: 1.75; color: rgba(255,255,255,0.55); margin-bottom: 44px; max-width: 540px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; min-height: 80px; }
.hero-stat { min-height: 60px; }
.hero-stat h3, .hero-stat-num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; color: var(--accent); margin-bottom: 4px; min-height: 2.64rem; display: block; }
.hero-stat p { font-size: 0.8rem; line-height: 1.3; color: rgba(255,255,255,0.4); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; min-height: 1.04rem; }

/* Trust */
.trust { padding: 32px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); display: flex; align-items: center; gap: 10px; }

/* Service Cards */
.service-card { background: var(--cream); padding: 48px 36px; position: relative; overflow: hidden; transition: all 0.4s ease; border: 1px solid transparent; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(200,147,95,0.2); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; background: var(--warm-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; font-size: 1.4rem; color: var(--accent); }
.service-card p { color: var(--stone); font-size: 0.95rem; line-height: 1.7; font-weight: 300; }
.service-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); transition: gap 0.3s; }
.service-link:hover { gap: 14px; }

/* Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* About */
.about-img { position: relative; }
.about-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-float { position: absolute; bottom: -30px; right: -30px; width: 180px; padding: 28px; background: var(--accent); color: #fff; text-align: center; }
.about-float h3 { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; margin-bottom: 4px; }
.about-float p { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; opacity: 0.85; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; font-size: 0.95rem; line-height: 1.6; }
.check-list .ck { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

/* Portfolio */
.port-item { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--ash); }
.port-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.port-item:hover img { transform: scale(1.05); }
.port-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.9) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; opacity: 0; transition: opacity 0.4s ease; }
.port-item:hover .port-overlay { opacity: 1; }
.port-overlay h3 { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 4px; }
.port-overlay p { font-size: 0.8rem; color: var(--sand); letter-spacing: 1px; text-transform: uppercase; }

/* Process */
.step { text-align: center; }
.step-num { width: 80px; height: 80px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); margin: 0 auto 28px; transition: all 0.4s ease; }
.step:hover .step-num { background: var(--accent); color: #fff; transform: scale(1.1); }
.step p { font-size: 0.9rem; color: var(--stone); line-height: 1.6; font-weight: 300; max-width: 240px; margin: 0 auto; }

/* Testimonials */
.test-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); padding: 44px 36px; transition: all 0.4s ease; }
.test-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(200,147,95,0.2); transform: translateY(-4px); }
.test-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 20px; }
.test-card blockquote { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.65); font-weight: 300; font-style: italic; margin: 0 0 28px; padding: 0; border: none; }
.test-author { display: flex; align-items: center; gap: 14px; }
.test-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: #fff; }
.test-name { font-weight: 600; color: #fff; font-size: 0.95rem; }
.test-loc { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); }
.faq-q { display: flex; align-items: center; justify-content: space-between; cursor: pointer; gap: 16px; padding: 24px 0; background: none; border: none; width: 100%; text-align: left; font-family: var(--font-body); }
.faq-q h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin: 0; }
.faq-toggle { width: 32px; height: 32px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; color: var(--accent); transition: all 0.3s; }
.faq-item.open .faq-toggle { background: var(--accent); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 24px; }
.faq-a p { font-size: 0.95rem; line-height: 1.7; color: var(--stone); font-weight: 300; }

/* CTA Phone */
.cta-phone { font-family: var(--font-display); font-size: 2rem; color: #fff; display: inline-block; margin-top: 24px; }
.cta-phone:hover { opacity: 0.8; }

/* City Tags */
.city-tag { display: inline-block; padding: 8px 20px; background: #fff; font-size: 0.85rem; color: var(--stone); font-weight: 500; border: 1px solid rgba(0,0,0,0.05); margin: 4px; cursor: pointer; font-family: var(--font-body); transition: all 0.3s; }
.city-tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(200,147,95,0.15); }

/* City Modal */
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 10000; justify-content: center; align-items: center; padding: 20px; }
.modal-bg.open { display: flex; }
.modal-box { background: #fff; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 12px; right: 16px; background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 1.5rem; width: 36px; height: 36px; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; }

/* Popup Form */
.form-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99999; justify-content: center; align-items: center; padding: 20px; }
.form-overlay.open { display: flex; }
.form-box { background: #fff; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; padding: 20px; }
.form-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--stone); z-index: 2; }

/* Footer */
.footer { padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.footer h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); font-weight: 300; }
.footer-links a:hover { color: var(--accent); }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; font-weight: 300; }
.footer-contact p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.8; font-weight: 300; margin: 0; }
.footer-bottom { margin-top: 60px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin: 0; }
.footer-bottom a { font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--accent); }

/* Section helpers */
.sec { padding: 100px 0; }
.sec-sm { padding: 60px 0; }
.bg-charcoal { background: var(--charcoal); color: #fff; }
.bg-warm { background: var(--warm-dark); color: #fff; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-accent { background: var(--accent-dark); color: #fff; }
.text-center { text-align: center; }

/* Animations */
.anim { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim.vis { opacity: 1; transform: translateY(0); }
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }

/* ============================================================
   INNER PAGE STYLES
   ============================================================ */

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}
.page-hero .hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* City page content typography spacing */
.content-grid > div h2 { margin-top: 48px; margin-bottom: 18px; line-height: 1.2; font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2rem); }
.content-grid > div h2:first-child { margin-top: 0; }
.content-grid > div h3 { margin-top: 36px; margin-bottom: 14px; font-family: var(--font-display); font-size: 1.2rem; }
.content-grid > div p { margin-bottom: 16px; line-height: 1.72; }

/* Content Grid (article + sidebar) */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

/* Sidebar */
.sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--cream);
  padding: 32px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* Sidebar link override — footer-links is white for dark footer, must be dark inside cream sidebar */
.sidebar-card .footer-links a { color: var(--stone); }
.sidebar-card .footer-links a:hover { color: var(--accent); }

/* Content Images */
.content-img {
  width: 100%;
  margin: 40px 0;
  object-fit: cover;
}

/* Service Detail Cards */
.service-detail-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 32px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 20px;
  transition: all 0.3s;
}
.service-detail-card:hover {
  border-color: rgba(200,147,95,0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.service-detail-card h4 { font-weight: 600; margin-bottom: 8px; font-size: 1rem; }
.service-detail-card p { font-size: 0.95rem; color: var(--stone); line-height: 1.7; font-weight: 300; margin: 0; }
.detail-icon { width: 48px; height: 48px; background: var(--warm-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Cost Table */
.cost-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.cost-table th { background: var(--charcoal); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.cost-table td { padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.95rem; }
.cost-table tr:nth-child(even) td { background: var(--cream); }
.cost-table tr:last-child td { border-bottom: none; }

/* Timeline Steps */
.timeline-step { display: flex; gap: 24px; margin-bottom: 32px; align-items: flex-start; }
.timeline-num { width: 48px; height: 48px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.2rem; flex-shrink: 0; }
.timeline-content h4 { font-weight: 600; margin-bottom: 8px; font-size: 1rem; }
.timeline-content p { font-size: 0.95rem; color: var(--stone); line-height: 1.7; font-weight: 300; margin: 0; }

/* Blog Cards */
.blog-card { background: #fff; transition: all 0.4s; border: 1px solid rgba(0,0,0,0.05); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); border-color: rgba(200,147,95,0.2); }
.blog-card-img { overflow: hidden; }
.blog-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 28px; }
.blog-meta { font-size: 0.8rem; color: var(--stone); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }

/* City Cards (service-areas overview) */
.city-card { position: relative; overflow: hidden; aspect-ratio: 3/2; display: block; }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.city-card:hover img { transform: scale(1.08); }
.city-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.city-card h3 { color: #fff; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }
.city-card p { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* CTA Box (in articles) */
.cta-box { background: var(--cream); padding: 40px; border-left: 4px solid var(--accent); margin: 40px 0; }
.cta-box h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 12px; }
.cta-box p { font-size: 0.95rem; color: var(--stone); margin-bottom: 20px; font-weight: 300; line-height: 1.7; }

/* Portfolio Filter */
.portfolio-filter { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 8px 20px; background: transparent; border: 1px solid rgba(0,0,0,0.1); font-family: var(--font-body); font-size: 0.85rem; cursor: pointer; transition: all 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Contact Grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-icon { width: 48px; height: 48px; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ============================================================
   SERVICE PAGE CLASSES
   (used by services/*, different class names from agents)
   ============================================================ */

/* .hero-sub and .page-hero-sub — hero description on inner pages */
.hero-sub, .page-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
  margin-top: 12px;
}

/* section padding aliases */
.section-pad { padding: 80px 0; }
.section-pad.bg-white { background: var(--white); }
.section-pad.bg-cream { background: var(--cream); }
.section-pad.bg-charcoal { background: var(--charcoal); color: #fff; }

/* content + sidebar layout used by service pages */
.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.main-content { min-width: 0; }

/* Lead intro paragraph */
.lead-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--stone);
  font-weight: 300;
  margin-bottom: 28px;
}
.main-content p { font-size: 1rem; line-height: 1.8; color: var(--stone); font-weight: 300; margin-bottom: 20px; }
.main-content h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 48px 0 20px; line-height: 1.15; color: var(--charcoal); }
.main-content h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 32px 0 14px; color: var(--charcoal); }
.main-content ul { margin: 16px 0 20px; }
.main-content ul li { font-size: 1rem; line-height: 1.8; font-weight: 300; color: var(--stone); margin-bottom: 10px; padding-left: 20px; position: relative; }
.main-content ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; background: var(--accent); }

/* Content images (figure) */
.content-image { margin: 40px 0; }
.content-image img { width: 100%; max-height: 500px; object-fit: cover; }
.content-image figcaption { font-size: 0.85rem; color: var(--stone); margin-top: 10px; font-style: italic; line-height: 1.5; }

/* Service cards grid inside main content */
.service-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.service-card-detail {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 28px;
  transition: all 0.3s;
}
.service-card-detail:hover { border-color: rgba(200,147,95,0.3); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.service-card-detail h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; margin-top: 14px; color: var(--charcoal); }
.service-card-detail p { font-size: 0.9rem; color: var(--stone); line-height: 1.7; font-weight: 300; margin: 0; }
.service-card-icon {
  width: 48px; height: 48px;
  background: var(--warm-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

/* Cost table wrapper */
.cost-table-wrapper { overflow-x: auto; margin: 24px 0; }

/* Process timeline */
.process-timeline { margin: 28px 0; }
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.step-number {
  width: 48px; height: 48px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-content h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; color: var(--charcoal); }
.step-content p { font-size: 0.95rem; color: var(--stone); line-height: 1.7; font-weight: 300; margin: 0; }

/* Testimonial block */
.testimonial-block {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  padding: 32px 36px;
  margin: 40px 0;
}
.testimonial-block p { font-size: 1.05rem; line-height: 1.75; color: var(--stone); font-style: italic; font-weight: 300; margin-bottom: 16px; }
.testimonial-block cite { font-size: 0.85rem; font-weight: 600; color: var(--charcoal); font-style: normal; letter-spacing: 0.5px; }

/* FAQ list (non-accordion, simple expanded list) */
.faq-list { margin: 20px 0; }
.faq-list .faq-item { border-bottom: 1px solid rgba(0,0,0,0.07); padding: 24px 0; }
.faq-list .faq-item h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; }
.faq-list .faq-item p { font-size: 0.95rem; color: var(--stone); line-height: 1.7; font-weight: 300; margin: 0; }

/* Internal links section */
.internal-links-section {
  background: var(--cream);
  padding: 24px 28px;
  margin: 40px 0;
  border: 1px solid rgba(200,147,95,0.15);
}
.internal-links-section p { font-size: 0.95rem; color: var(--stone); line-height: 1.7; font-weight: 300; margin: 0; }
.internal-links-section a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(200,147,95,0.4); }
.internal-links-section a:hover { color: var(--accent-dark); }

/* Closing CTA block */
.closing-cta-block {
  background: var(--charcoal);
  padding: 48px;
  margin: 48px 0;
  text-align: center;
}
.closing-cta-block h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2rem); color: #fff; margin-bottom: 16px; }
.closing-cta-block p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.7; font-weight: 300; max-width: 600px; margin: 0 auto 24px; }
.closing-cta-block a { color: var(--accent); }

/* ============================================================
   CITY PAGE COMPONENTS
   ============================================================ */

/* City quick-facts bar (right below hero) */
.city-facts-bar {
  background: var(--charcoal);
  padding: 0;
  overflow-x: hidden;
}
.city-facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--accent);
}
.city-fact {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.city-fact:last-child { border-right: none; }
.city-fact-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.city-fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* Neighborhood pills grid */
.neighborhood-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 32px;
}
.neighborhood-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ash);
  transition: all 0.3s;
}
.neighborhood-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200,147,95,0.12);
}
.neighborhood-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Cost callout box */
.cost-callout {
  background: var(--cream);
  border: 1px solid rgba(200,147,95,0.2);
  padding: 36px;
  margin: 36px 0;
}
.cost-callout h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cost-callout h4::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent);
  flex-shrink: 0;
}
.cost-rows { display: flex; flex-direction: column; gap: 12px; }
.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-left: 3px solid transparent;
  transition: border-color 0.3s;
}
.cost-row:hover { border-left-color: var(--accent); }
.cost-row-label { font-size: 0.9rem; font-weight: 500; color: var(--ash); }
.cost-row-value { font-family: var(--font-display); font-size: 1rem; color: var(--accent); font-weight: 400; }

/* City testimonial */
.city-testimonial {
  background: var(--warm-dark);
  padding: 40px 44px;
  margin: 40px 0;
  position: relative;
}
.city-testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.25;
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
}
.city-testimonial blockquote {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  font-weight: 300;
  margin: 0 0 20px;
  padding-left: 20px;
}
.city-testimonial cite {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding-left: 20px;
}

/* "Why build here" callout strip */
.why-here {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  padding: 28px 32px;
  margin: 32px 0;
}
.why-here p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--stone);
  font-weight: 300;
  margin: 0;
}
.why-here strong { color: var(--charcoal); font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .content-sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .process-step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .step-number {
    margin: 0 auto 12px;
  }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .container { padding: 0 28px; }
  /* remove backdrop-filter so position:fixed nav-links escapes nav's containing block */
  /* also clear nav background so the door-frame backdrop shows uniformly (no seam) */
  body.mobile-nav-open .nav,
  body.mobile-nav-closing .nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 10000 !important;
  }
  .hero-content { padding: 130px 28px 56px; }
  .hero-stats { gap: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .city-facts-inner { grid-template-columns: repeat(2, 1fr); }
  .city-fact { padding: 18px 16px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-inner { gap: 20px; }
  .sec { padding: 60px 0; }
  .about-float { position: relative; bottom: auto; right: auto; display: inline-block; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sidebar-card { padding: 24px; }
  .service-cards-grid { grid-template-columns: 1fr; }

  /* hamburger → X */
  body.mobile-nav-open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.mobile-nav-open .mobile-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  body.mobile-nav-open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  body.mobile-nav-open { overflow: hidden; }

  /* dim backdrop — sits behind the door so the gap on the right is dark */
  .door-frame {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(0,0,0,0.72);
    animation: frame-appear 0.3s ease forwards;
    cursor: pointer;
  }
  .mobile-nav-open .door-frame { display: block; }

  /* door panel — narrower than the screen so it reads as an actual door */
  .mobile-nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: min(90vw, 400px);
    background: #1d1a16;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform-origin: left center;
    border-right: 7px solid #5a3e22;
    backface-visibility: hidden;
    animation: door-open 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
  }
  body.mobile-nav-closing .nav-links {
    animation: door-close 0.5s cubic-bezier(0.55, 0, 0.45, 1) forwards !important;
  }
  body.mobile-nav-closing .door-frame {
    animation: frame-disappear 0.3s ease 0.25s both;
  }
  /* top + bottom door rails */
  .mobile-nav-open .nav-links::before {
    content: '';
    position: absolute;
    inset: 18px 16px;
    border: 1px solid rgba(200,147,95,0.1);
    pointer-events: none;
    opacity: 0;
    animation: link-appear 0.2s ease 0.5s both;
  }
  /* door knob — on the right edge of the panel */
  .mobile-nav-open .nav-links::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 38% 35%, #f0b87a, #8a5520);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 0 2px rgba(200,147,95,0.3);
    opacity: 0;
    animation: link-appear 0.2s ease 0.5s both;
  }
  .mobile-nav-open .nav-links a {
    font-size: 1.2rem;
    padding: 6px 0;
    color: rgba(255,255,255,0.88);
    letter-spacing: 2px;
    opacity: 0;
    animation: link-appear 0.3s ease both;
    animation-delay: 0.4s;
  }
  .mobile-nav-open .nav-links a:nth-child(2) { animation-delay: 0.45s; }
  .mobile-nav-open .nav-links a:nth-child(3) { animation-delay: 0.5s; }
  .mobile-nav-open .nav-links a:nth-child(4) { animation-delay: 0.55s; }
  .mobile-nav-open .nav-links a:nth-child(5) { animation-delay: 0.6s; }
  .mobile-nav-open .nav-links a:nth-child(6) { animation-delay: 0.65s; }
  .mobile-nav-open .nav-links a:nth-child(7) { animation-delay: 0.7s; }
  .mobile-nav-open .nav-links a:hover { color: var(--accent); }
  .mobile-nav-open .nav-links .nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 12px 36px !important;
    border-radius: 4px;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px;
    margin-top: 4px;
    opacity: 0;
    animation: link-appear 0.3s ease both;
    animation-delay: 0.75s;
  }
  .mobile-nav-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: link-appear 0.25s ease both;
    animation-delay: 0.5s;
    transition: background 0.2s;
  }
  .mobile-nav-close-btn:hover { background: rgba(255,255,255,0.14); }
  .mobile-nav-open .mobile-nav-close-btn { display: flex; }
}

@keyframes frame-appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes frame-disappear {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes door-open {
  0%   { transform: perspective(600px) rotateY(-90deg); }
  75%  { transform: perspective(600px) rotateY(6deg); }
  100% { transform: perspective(600px) rotateY(0deg); }
}
@keyframes door-close {
  0%   { transform: perspective(600px) rotateY(0deg); }
  12%  { transform: perspective(600px) rotateY(4deg); }
  100% { transform: perspective(600px) rotateY(-90deg); }
}
@keyframes link-appear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .container { padding: 0 28px; }
  .hero-content { padding: 110px 28px 44px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-desc { font-size: 0.98rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { display: flex; width: 100%; justify-content: center; }
  .hero-stats { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-stat h3, .hero-stat-num { font-size: 1.8rem; }
  .hero-label { font-size: 0.65rem; letter-spacing: 2px; }
}

