/* ==========================================================================
   MIAMI PRO GROUP INC. — BESPOKE ARCHITECTURAL TRADE WEBSITE STYLESHEET
   Mobile-First Viewport Lock · Zero Horizontal Overflow · Desktop 12-Col Craft
   ========================================================================== */

:root {
  --navy-950: #080D1A;
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --stone-50: #F8FAFC;
  --white: #FFFFFF;

  --copper-600: #D94E1F;
  --copper-700: #B83D14;
  --copper-500: #EA580C;
  --copper-light: #FFF4F0;
  --amber-500: #F59E0B;
  --emerald-600: #059669;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 48px -8px rgba(8, 13, 26, 0.28);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--navy-900);
  background-color: var(--white);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Prevent any grid or flex child from forcing horizontal overflow on mobile */
section, header, footer, main, div, article, form, nav {
  min-width: 0;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* ==========================================================================
   1. TOP UTILITY BAR (Desktop Only — Hidden on Mobile)
   ========================================================================== */
.top-utility-bar {
  display: none;
  background-color: var(--navy-950);
  color: #CBD5E1;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .top-utility-bar {
    display: block;
  }
}

.top-utility-inner {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
}

.utility-item strong {
  color: var(--white);
  font-weight: 600;
}

.utility-badge {
  background: rgba(217, 78, 31, 0.2);
  color: #FF8A65;
  border: 1px solid rgba(217, 78, 31, 0.4);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ==========================================================================
   2. STICKY SITE HEADER (Ultra-Compact 54px on Mobile, 74px on Desktop)
   Guaranteed to fit 320px–430px screens with zero overflow
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.header-inner {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (min-width: 1024px) {
  .header-inner {
    height: 74px;
    gap: 24px;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .brand-logo {
    flex: 0 0 auto;
    gap: 10px;
  }
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 400px) {
  .brand-title {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .brand-title {
    font-size: 1.125rem;
  }
}

.brand-tagline {
  display: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand-tagline {
    display: block;
  }
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-item {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-700);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--copper-600);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--copper-600);
  transition: width 0.25s ease;
}

.nav-item:hover::after {
  width: 100%;
}

/* Header Action Buttons */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-cta-group {
    gap: 10px;
  }
}

.header-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--navy-900);
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.header-phone-btn:hover {
  background-color: var(--slate-200);
}

@media (min-width: 1024px) {
  .header-phone-btn {
    font-size: 0.9375rem;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background-color: transparent;
  }
}

.header-quote-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--copper-600);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(217, 78, 31, 0.25);
  white-space: nowrap;
}

.header-quote-btn:hover {
  background-color: var(--copper-700);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .header-quote-btn {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--navy-900);
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Slide-Down Menu */
.mobile-menu-drawer {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 12px 16px 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.mobile-menu-drawer.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.mobile-nav-links a {
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
}

.mobile-nav-links a:hover {
  background-color: var(--slate-100);
  color: var(--copper-600);
}

.mobile-drawer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-200);
}

/* ==========================================================================
   3. BUTTON SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  max-width: 100%;
}

.btn-primary {
  background-color: var(--copper-600);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(217, 78, 31, 0.32);
}

.btn-primary:hover {
  background-color: var(--copper-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(217, 78, 31, 0.42);
}

.btn-secondary-light {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-secondary-light:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
}

.btn-outline-slate {
  background-color: var(--white);
  color: var(--navy-900);
  border-color: var(--slate-200);
}

.btn-outline-slate:hover {
  border-color: var(--navy-900);
  background-color: var(--stone-50);
}

/* ==========================================================================
   4. HERO SECTION WITH REAL ROOF PHOTOGRAPHY & INTEGRATED ESTIMATE FORM
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--navy-950);
  color: var(--white);
  padding: 28px 0 44px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 68px 0 84px;
  }
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: contrast(1.06) brightness(0.82);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 13, 26, 0.88) 0%,
    rgba(8, 13, 26, 0.92) 100%
  );
}

@media (min-width: 1024px) {
  .hero-bg-overlay {
    background: linear-gradient(
      102deg,
      rgba(8, 13, 26, 0.94) 0%,
      rgba(11, 18, 35, 0.86) 52%,
      rgba(11, 18, 35, 0.58) 100%
    );
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 14px;
  max-width: 100%;
}

@media (min-width: 768px) {
  .hero-badge {
    font-size: 0.8125rem;
    padding: 6px 14px;
    margin-bottom: 18px;
  }
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 14px;
  word-wrap: break-word;
}

.hero-title span {
  color: #FF7A4D;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #E2E8F0;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 24px;
  }
}

.hero-rate-highlight {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--copper-600);
  backdrop-filter: blur(10px);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  max-width: 600px;
}

@media (min-width: 560px) {
  .hero-rate-highlight {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    margin-bottom: 26px;
  }
}

.hero-rate-price {
  flex-shrink: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 560px) {
  .hero-rate-price {
    padding-bottom: 0;
    padding-right: 18px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }
}

.hero-rate-amount {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #FF8A65;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-rate-amount {
    font-size: 1.65rem;
  }
}

.hero-rate-unit {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #CBD5E1;
}

.hero-rate-copy {
  font-size: 0.85rem;
  color: #E2E8F0;
  line-height: 1.45;
}

.hero-rate-copy strong {
  color: var(--white);
  display: block;
  margin-bottom: 2px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  width: 100%;
}

.hero-actions .btn {
  width: 100%;
}

@media (min-width: 540px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-actions .btn {
    width: auto;
  }
}

/* Real Field Photo Strip inside Hero */
.hero-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 560px;
}

.hero-thumb-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  aspect-ratio: 16 / 10;
  cursor: pointer;
}

.hero-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-thumb-card:hover img {
  transform: scale(1.06);
}

.hero-thumb-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(8, 13, 26, 0.94), rgba(8, 13, 26, 0));
  padding: 12px 6px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .hero-thumb-caption {
    font-size: 0.72rem;
    padding: 14px 8px 6px;
  }
}

/* Integrated Hero Lead Capture Form Card */
.hero-form-card {
  background-color: var(--white);
  color: var(--navy-900);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--copper-600);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .hero-form-card {
    border-radius: var(--radius-lg);
    padding: 32px 28px;
  }
}

.form-card-header {
  margin-bottom: 16px;
}

.form-card-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
  margin-bottom: 4px;
}

@media (min-width: 640px) {
  .form-card-title {
    font-size: 1.35rem;
  }
}

.form-card-sub {
  font-size: 0.8125rem;
  color: var(--slate-600);
}

/* Mini Live Roof Estimator inside Form */
.mini-estimator-box {
  background-color: var(--stone-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.mini-est-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-800);
}

.mini-est-price {
  color: var(--copper-600);
  font-weight: 800;
  font-size: 0.92rem;
}

.range-slider {
  width: 100%;
  accent-color: var(--copper-600);
  cursor: pointer;
  height: 6px;
}

/* Form Layout — Strictly Aligned on Mobile & Desktop */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.form-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

@media (min-width: 560px) {
  .form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-800);
}

.form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--navy-900);
  font-size: 16px;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--copper-600);
  box-shadow: 0 0 0 3px rgba(217, 78, 31, 0.15);
}

.form-submit-btn {
  width: 100%;
  height: 48px;
  margin-top: 2px;
  font-size: 0.95rem;
}

.form-direct-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px solid var(--slate-200);
  font-size: 0.78rem;
  color: var(--slate-600);
}

.form-direct-footer a {
  font-weight: 700;
  color: var(--copper-600);
}

/* ==========================================================================
   5. CREDENTIALS & TRUST STRIP
   ========================================================================== */
.trust-strip {
  background-color: var(--stone-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 20px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--copper-light);
  color: var(--copper-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.85rem;
}

.trust-item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-900);
  line-height: 1.25;
}

.trust-item-sub {
  font-size: 0.78rem;
  color: var(--slate-600);
  margin-top: 2px;
}

/* ==========================================================================
   6. COMMON SECTION TYPOGRAPHY & SPACING
   ========================================================================== */
.section {
  padding: 48px 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 88px 0;
  }
}

.section-stone {
  background-color: var(--stone-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-dark {
  background-color: var(--navy-900);
  color: var(--white);
}

.section-header {
  max-width: 720px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 40px;
  }
}

.section-header-split {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .section-header-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper-600);
  margin-bottom: 6px;
}

.section-dark .eyebrow {
  color: #FF8A65;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.5vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.section-dark .section-title {
  color: var(--white);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin-top: 10px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-desc {
    font-size: 1.05rem;
  }
}

.section-dark .section-desc {
  color: #CBD5E1;
}

/* ==========================================================================
   7. SERVICES SECTION — 3 EQUAL-HEIGHT PHOTOGRAPHIC CARDS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
  }
}

.service-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-rate-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 13, 26, 0.88);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.service-card-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .service-card-body {
    padding: 24px;
  }
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-card-text {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 14px;
}

.service-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--navy-800);
}

.service-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-check-list li::before {
  content: '✓';
  color: var(--copper-600);
  font-weight: 800;
  flex-shrink: 0;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--slate-200);
}

/* ==========================================================================
   8. PORTFOLIO / RECENT WORK SECTION
   ========================================================================== */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
}

.filter-pill {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

@media (min-width: 640px) {
  .filter-pill {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
  }
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--copper-600);
  border-color: var(--copper-600);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 77, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
}

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-950);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-location-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 13, 26, 0.85);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.project-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .project-body {
    padding: 20px;
  }
}

.project-type-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #FF8A65;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.55;
  margin-bottom: 14px;
}

.project-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: #94A3B8;
}

.project-footer span:last-child {
  color: #FF8A65;
  font-weight: 600;
  flex-shrink: 0;
}

/* ==========================================================================
   9. 4-STAGE TORCH-ON SYSTEM & BEFORE/AFTER SLIDER
   ========================================================================== */
.system-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .system-split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }
}

.step-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--slate-400);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-card.active,
.step-card:hover {
  border-left-color: var(--copper-600);
  box-shadow: var(--shadow-sm);
  background: #FFFDFB;
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.step-num {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--copper-600);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-top: 4px;
}

/* Before / After Slider — Non-Overlapping Corner Tags on Mobile */
.ba-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  user-select: none;
}

.ba-img-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-img-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before-clip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid var(--copper-600);
}

.ba-tag {
  position: absolute;
  background: rgba(8, 13, 26, 0.86);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  z-index: 4;
  pointer-events: none;
}

/* Top-left and bottom-right on mobile so they never collide */
.ba-tag-left {
  top: 10px;
  left: 10px;
}

.ba-tag-right {
  bottom: 10px;
  right: 10px;
}

@media (min-width: 640px) {
  .ba-tag {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  .ba-tag-left {
    top: auto;
    bottom: 14px;
    left: 14px;
  }
  .ba-tag-right {
    bottom: 14px;
    right: 14px;
  }
}

.ba-divider-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--copper-600);
  color: var(--white);
  border: 3px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 5;
  pointer-events: none;
}

.ba-range-control {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}

/* ==========================================================================
   10. FULL INTERACTIVE ROOF COST CALCULATOR SECTION
   ========================================================================== */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .calc-grid {
    border-radius: var(--radius-lg);
    padding: 36px;
  }
}

@media (min-width: 1024px) {
  .calc-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
  }
}

.calc-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .calc-preset-grid {
    display: flex;
    flex-wrap: wrap;
  }
}

.calc-option-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

@media (min-width: 560px) {
  .calc-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.calc-choice-btn {
  text-align: left;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: var(--stone-50);
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

@media (min-width: 640px) {
  .calc-preset-grid .calc-choice-btn {
    width: auto;
  }
}

.calc-choice-btn.active {
  border-color: var(--copper-600);
  background: var(--copper-light);
}

.calc-choice-title {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-900);
}

.calc-choice-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--slate-600);
  margin-top: 2px;
}

.calc-summary-panel {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .calc-summary-panel {
    padding: 28px 24px;
  }
}

.calc-total-num {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #FF8A65;
  line-height: 1.1;
  margin: 6px 0;
}

.calc-breakdown-list {
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  color: #CBD5E1;
}

.calc-line strong {
  color: var(--white);
}

/* ==========================================================================
   11. GTA SERVICE AREAS & FAQ SECTION
   ========================================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .areas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.area-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}

@media (min-width: 768px) {
  .area-card {
    padding: 24px;
  }
}

.area-card h3 {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.area-card p {
  font-size: 0.88rem;
  color: var(--slate-600);
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  padding: 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .faq-btn {
    padding: 18px 20px;
    font-size: 1.02rem;
  }
}

.faq-answer {
  display: none;
  padding: 0 16px 16px;
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.65;
}

@media (min-width: 768px) {
  .faq-answer {
    padding: 0 20px 18px;
    font-size: 0.9375rem;
  }
}

.faq-box.open .faq-answer {
  display: block;
}

/* ==========================================================================
   12. FOOTER & MOBILE BOTTOM STICKY BAR
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: #94A3B8;
  padding: 48px 0 88px;
  font-size: 0.88rem;
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 72px 0 48px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 32px;
    margin-bottom: 40px;
  }
}

.footer-title {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  font-size: 0.78rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    font-size: 0.8125rem;
  }
}

/* Mobile Sticky Conversion Bar */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 990;
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
  .mobile-sticky-cta {
    display: none;
  }
}

.mobile-cta-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.mobile-cta-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--copper-600);
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  height: 42px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-modal {
  background: var(--white);
  color: var(--navy-900);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* Scroll Entrance Polish — Pure Vertical Translate on Mobile (No 3D Width Expansion), 3D Perspective on Desktop */
.reveal-3d {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  .reveal-3d {
    transform: perspective(1000px) translateY(22px) rotateX(3deg);
  }
}

.reveal-3d.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (min-width: 768px) {
  .reveal-3d.visible {
    transform: perspective(1000px) translateY(0) rotateX(0deg);
  }
}
