/* ==========================================================================
   Hoong Fatt Heng Renovation Pte Ltd — Rebuild Stylesheet
   Variant B: Clean Premium Trade (Trades Playbook)
   Strict WCAG AA Compliance, Zero CLS, Mobile-First
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Exact Design Brief Palette */
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --surface-card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #f4ac1c;
  --primary-text: #0f172a;
  --primary-hover: #e59e0d;
  --primary-light: #fef7ea;
  --accent: #0369a1;
  --accent-hover: #0284c7;
  --accent-light: #e0f2fe;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --dark-text: #ffffff;
  --border: #e2e8f0;
  --border-focus: #0369a1;

  /* Typography */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid Spacing Scale */
  --space-2xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
  --space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.625rem);
  --space-sm: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --space-md: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  --space-lg: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --space-xl: clamp(2rem, 1.75rem + 1.25vw, 3rem);
  --space-2xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);
  --space-3xl: clamp(4rem, 3.2rem + 4vw, 7rem);

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);

  /* Container & Layout */
  --container-max: 1240px;
  --header-height: 72px;
  --transition-fast: 0.18s ease-in-out;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Modern Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip; /* Prevents horizontal overflow without breaking position: sticky */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* Focus Visibility for WCAG AA SC 2.4.7 */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6,
.hero-headline,
.section-title,
.page-title {
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Layout Containers & Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.8rem + 1vw, 2rem);
}

.skip-to-content {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--dark);
  color: var(--dark-text);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 1rem;
}

.section {
  padding-block: var(--space-2xl);
  position: relative;
}

.section-surface {
  background-color: var(--surface);
}

.section-dark {
  background-color: var(--dark);
  color: var(--dark-text);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-block-end: var(--space-xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--primary-light);
  color: var(--dark);
  border: 1px solid rgba(244, 172, 28, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-block-end: 0.75rem;
}

.section-badge-dark {
  background-color: rgba(244, 172, 28, 0.15);
  color: var(--primary);
  border-color: rgba(244, 172, 28, 0.3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.75vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-block-end: 0.75rem;
}

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

.section-subtitle {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  color: var(--muted);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Top Utility Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--dark);
  color: #cbd5e1;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 0.45rem;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-credentials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-bar-credentials span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.top-bar-badge {
  background: rgba(244, 172, 28, 0.2);
  color: var(--primary);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e2e8f0;
  font-weight: 500;
}

.top-bar-contact a:hover {
  color: var(--primary);
}

@media (max-width: 860px) {
  .top-bar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Sticky Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

/* Brand Logo (Starts header & is Home Link) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.25rem 0;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

/* Desktop Navigation */
.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--transition-fast), background-color var(--transition-fast);
  }

  .nav-link:hover {
    color: var(--accent);
    background-color: var(--surface);
  }

  .nav-link.active {
    color: var(--accent);
    background-color: var(--accent-light);
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
  }
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(244, 172, 28, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(244, 172, 28, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  color: var(--dark);
  border-color: #cbd5e1;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--dark-text);
  border-color: var(--accent);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-whatsapp {
  background-color: #127c44;
  color: #ffffff;
  border-color: #127c44;
  box-shadow: 0 2px 6px rgba(18, 124, 68, 0.3);
}

.btn-whatsapp:hover {
  background-color: #0e6337;
  border-color: #0e6337;
  box-shadow: 0 4px 12px rgba(18, 124, 68, 0.45);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1.05rem;
}

/* Header Phone Button (Desktop) */
.header-phone-btn {
  display: none;
}

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

/* Mobile Header Refinement: hide header WhatsApp button on small screens because sticky bottom bar provides it, preventing horizontal overflow */
@media (max-width: 767px) {
  .header-actions .btn-whatsapp {
    display: none;
  }

  .header-container {
    gap: 0.75rem;
  }

  .brand-logo {
    min-width: 0;
  }

  .brand-logo img {
    height: 38px;
    max-width: calc(100vw - 85px);
  }
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  gap: 5px;
}

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

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

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset-block-start: var(--header-height);
  inset-inline: 0;
  inset-block-end: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.mobile-drawer.open {
  display: block;
  opacity: 1;
}

.mobile-drawer-content {
  background-color: var(--bg);
  width: min(85vw, 360px);
  height: 100%;
  margin-inline-start: auto;
  padding: 1.5rem 1.25rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.mobile-drawer-contacts {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Hero Section (Split Layout)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-block: clamp(2rem, 1.5rem + 2.5vw, 4.5rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--primary-light);
  color: var(--dark);
  border: 1px solid rgba(244, 172, 28, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 1.7rem + 2.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.025em;
}

.hero-subheadline {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
}

.hero-proof-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: fit-content;
  flex-wrap: wrap;
}

.hero-proof-stars {
  color: #b45309;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-proof-rating {
  font-weight: 800;
  color: var(--text);
}

.hero-proof-text {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-block-start: 0.5rem;
}

.hero-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-block-start: 0.5rem;
  padding-block-start: 1rem;
  border-top: 1px solid var(--border);
}

.hero-perk-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.hero-perk-item svg {
  color: #16a34a;
  flex-shrink: 0;
}

/* Hero Media Box */
.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background-color: #0f172a;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-media-wrapper:hover .hero-image {
  transform: scale(1.02);
}

.hero-floating-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background-color: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-badge-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-badge-label {
  font-size: 0.8125rem;
  line-height: 1.25;
  color: #cbd5e1;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Section 1: Trust Credentials (Statutory Licenses)
   -------------------------------------------------------------------------- */
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.credential-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

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

.credential-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.credential-license-no {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.credential-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.credential-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Section 2: Services Overview Grid
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

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

.service-card:hover::before {
  background-color: var(--primary);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.service-card-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.service-card-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.service-card-list li::before {
  content: '✓';
  color: #16a34a;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Section 3: Signature Transformation Slider (Variant B Signature Moment)
   -------------------------------------------------------------------------- */
.transformation-section {
  background-color: var(--surface);
  border-block: 1px solid var(--border);
}

.transformation-wrapper {
  max-width: 1040px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* The Interactive Slider Component */
.before-after-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  user-select: none;
  -webkit-user-select: none;
  background-color: #334155;
}

@media (max-width: 640px) {
  .before-after-container {
    aspect-ratio: 4 / 3;
  }
}

/* Layer 1: Before (Dated / Original HDB condition visual) */
.ba-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-before {
  background: #1e293b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-before-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(85%) contrast(110%) brightness(80%);
}

/* Layer 2: After (Finished modern HFH handover place-6.jpg) */
.ba-after {
  clip-path: polygon(0 0, var(--slider-pos, 50%) 0, var(--slider-pos, 50%) 100%, 0 100%);
  z-index: 2;
  transition: none;
}

.ba-after-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges for Before / After */
.ba-label {
  position: absolute;
  top: 1rem;
  z-index: 4;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ba-label-after {
  left: 1rem;
  background-color: #f4ac1c;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ba-label-before {
  right: 1rem;
  background-color: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Slider Divider Line & Draggable Handle */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos, 50%);
  width: 3px;
  background-color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  z-index: 5;
  pointer-events: none;
  transform: translateX(-50%);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  pointer-events: none;
}

/* Hidden Accessible Range Input Overlay */
.ba-slider-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

/* Slider Controls Hint */
.slider-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Signature Itemized Scope Breakdown Cards */
.scope-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.scope-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.scope-card-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.scope-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.scope-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Section 4: Featured Residential Portfolio
   -------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.portfolio-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #0f172a;
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.05);
}

.portfolio-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.portfolio-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.portfolio-location {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.portfolio-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Section 5: Direct Contractor Advantage (Comparison)
   -------------------------------------------------------------------------- */
.comparison-container {
  max-width: 980px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background-color: var(--surface-card);
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background-color: var(--surface);
  color: var(--text);
}

.comparison-table th.col-highlight {
  background-color: var(--primary-light);
  color: var(--dark);
  border-inline: 2px solid var(--primary);
  border-top: 4px solid var(--primary);
}

.comparison-table td.col-highlight {
  background-color: #fffcf5;
  border-inline: 2px solid var(--primary);
  font-weight: 600;
  color: var(--dark);
}

.comparison-feature-name {
  font-weight: 700;
  color: var(--text);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Section 6: 4-Step Renovation Process
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.process-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.process-step-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.process-step-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Section 7: Verified Google Reviews
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.review-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  justify-content: space-between;
}

.review-stars {
  color: #b45309;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.review-quote {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  font-style: normal;
  position: relative;
}

.review-author-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.review-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-author-details {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.review-source-tag {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.review-source-tag svg {
  color: #ea4335;
}

/* --------------------------------------------------------------------------
   Section 8: Showrooms & Islandwide Service
   -------------------------------------------------------------------------- */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .locations-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.offices-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.office-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.office-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.office-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.office-address {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
  font-style: normal;
}

.office-hours-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.office-notice {
  font-size: 0.8rem;
  color: #c2410c;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  min-height: 380px;
  position: relative;
  background-color: #f1f5f9;
}

.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
}

/* --------------------------------------------------------------------------
   Section 9: Consultation Quote Form
   -------------------------------------------------------------------------- */
.consultation-wrapper {
  max-width: 860px;
  margin-inline: auto;
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
  box-shadow: var(--shadow-lg);
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-required {
  color: #dc2626;
  font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
  outline: none;
}

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

.form-help-text {
  font-size: 0.75rem;
  color: var(--muted);
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .form-submit-row {
    flex-direction: row;
    align-items: center;
  }
}

.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--surface-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  gap: 1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   Page Header (for Inner Pages: About, Services, Projects, Contact)
   -------------------------------------------------------------------------- */
.page-banner {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 172, 28, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-block-end: 1rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: #cbd5e1;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-block-end: 0.75rem;
}

.page-subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem);
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Inner Page Components: Story, Team, Details
   -------------------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .story-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.story-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.story-text p strong {
  color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.team-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.team-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--dark);
  color: #cbd5e1;
  padding-block-start: clamp(3rem, 2.5rem + 2vw, 5rem);
  padding-block-end: clamp(4.5rem, 4rem + 1.5vw, 6rem); /* Space for mobile sticky bar */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .site-footer {
    padding-block-end: clamp(3rem, 2.5rem + 1vw, 4rem);
  }
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-brand-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-licenses {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-block-end: 1rem;
  letter-spacing: -0.01em;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list a {
  font-size: 0.9375rem;
  color: #94a3b8;
  transition: color var(--transition-fast), padding-inline-start var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--primary);
  padding-inline-start: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-credits {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Mobile Sticky Bottom Bar (Trades Playbook Must-Have)
   -------------------------------------------------------------------------- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 998;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  gap: 0.75rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-bar a {
  flex: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
}

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

/* --------------------------------------------------------------------------
   Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  inset-inline-end: 1.25rem;
  z-index: 990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--dark);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary);
  color: var(--primary-text);
}

@media (min-width: 768px) {
  .back-to-top {
    bottom: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Motion & Animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
