@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Plus+Jakarta+Sans:ital,wght@0,400..800;1,400..800&display=swap');

/* ==========================================================================
   1. Base Reset & Globals
   ========================================================================== */
:root {
  /* Colors */
  --bg-linen: #faf9f6;
  --bg-white: #ffffff;
  --bg-warm: #f3f1ea;
  --bg-ink: #0f1115;
  --bg-ink-surface: #181b21;
  --bg-ink-card: #1e222a;
  
  --brass-50: #fdfaf3;
  --brass-100: #f9f1dc;
  --brass-200: #f0e0b4;
  --brass-300: #e5c988;
  --brass-400: #d4a94f;
  --brass-500: #c5a059;
  --brass-600: #a8823b;
  --brass-700: #7d5e23;
  --brass-gradient: linear-gradient(135deg, #dfc07a 0%, #c5a059 45%, #9b7631 100%);
  
  --text-ink: #0f1115;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;
  --text-light: #f9fafb;
  --text-light-muted: #9ca3af;
  
  --border: #e8e5dc;
  --border-subtle: #f0ede5;
  --border-dark: rgba(255,255,255,0.08);
  
  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 4px 12px rgba(15,17,21,0.06);
  --shadow-md: 0 8px 24px rgba(15,17,21,0.08);
  --shadow-lg: 0 20px 48px rgba(15,17,21,0.12);
  --shadow-brass: 0 8px 24px rgba(197,160,89,0.28);
  
  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  
  /* Layout */
  --header-h: 64px;
  --bar-h: 60px;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-linen);
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ==========================================================================
   2. Header (MOBILE FIRST)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background-color: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 36px;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text-ink);
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--brass-600);
  text-transform: uppercase;
}

.header-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-phone-btn,
.header-cta-btn,
.header-nav-desktop {
  display: none;
}

.mobile-menu-toggle {
  width: 38px;
  height: 38px;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-ink);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .header-phone-btn {
    display: flex;
    align-items: center;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-ink);
    font-weight: 700;
  }
  .header-cta-btn {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
  .header-nav-desktop {
    display: flex;
    gap: 2rem;
  }
  .header-nav-link {
    font-size: 0.875rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
  }
  .header-nav-link:hover,
  .header-nav-link.active {
    color: var(--text-ink);
  }
  .header-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brass-500);
  }
}

/* ==========================================================================
   3. Mobile Drawer
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 17, 21, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}


.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}


.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-ink);
  padding: 0.75rem 1rem;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background-color: var(--brass-50);
  border-left: 3px solid var(--brass-500);
}

.mobile-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mobile-drawer-footer a {
  display: block;
  color: var(--brass-600);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  cursor: pointer;
  color: var(--text-ink);
  transition: all 0.2s ease;
  z-index: 10;
}

.drawer-close:hover {
  background: var(--brass-100);
  border-color: var(--brass-400);
}

/* Drawer needs relative positioning for close button */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 340px);
  height: 100%;
  background-color: var(--bg-white);
  border-left: 1px solid var(--border);
  z-index: 999;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 4.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   4. Section Base
   ========================================================================== */
main {
  padding-bottom: var(--bar-h);
}

@media (min-width: 1024px) {
  main {
    padding-bottom: 0;
  }
}

.site-section {
  padding: 3rem 0;
  position: relative;
}

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

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

.section-white {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-warm {
  background-color: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-ink {
  background-color: var(--bg-ink);
  color: var(--text-light);
}

.section-ink .section-heading {
  color: var(--text-light);
}

.section-ink .editorial-eyebrow {
  color: var(--brass-300);
}

.section-ink .section-subtext {
  color: var(--text-light-muted);
}

/* ==========================================================================
   5. Typography
   ========================================================================== */
.editorial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-600);
}

.editorial-eyebrow::before {
  content: '';
  display: block;
  width: 12px;
  height: 2px;
  background-color: var(--brass-500);
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.65rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-ink);
}

.heading-brass {
  color: var(--brass-600);
}

.section-subtext {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
}

@media (min-width: 768px) {
  .section-subtext {
    font-size: clamp(0.925rem, 1.5vw, 1.05rem);
  }
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease;
  min-height: 44px;
}

.btn-brass {
  background: var(--brass-gradient);
  color: var(--text-ink);
  border-color: var(--brass-400);
  box-shadow: var(--shadow-brass);
}

.btn-brass:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-outline-ink {
  background-color: transparent;
  border-color: var(--text-ink);
  color: var(--text-ink);
}

.btn-outline-ink:hover {
  background-color: var(--text-ink);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--bg-white);
}

.btn-outline-light:hover {
  border-color: var(--brass-400);
  color: var(--brass-200);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.825rem;
  min-height: auto;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 4rem;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-text-col {
  order: -1;
}

.hero-h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-ink);
  margin-bottom: 1rem;
}

.hero-h1-accent {
  color: var(--brass-600);
}

.hero-subtext {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.commitment-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.commitment-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-xs);
  border-left: 3px solid var(--brass-500);
}

.commitment-item-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--brass-100);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.commitment-item-icon-wrap svg,
.commitment-item-icon-wrap img {
  width: 16px;
  height: 16px;
  color: var(--brass-600);
  fill: var(--brass-600);
}

.commitment-item-content {
  flex: 1;
}

.commitment-item-badge {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-700);
  background-color: var(--brass-100);
  border: 1px solid var(--brass-200);
  padding: 0.1rem 0.4rem;
  border-radius: var(--r-xs);
  width: fit-content;
  margin-bottom: 0.15rem;
  display: inline-block;
}

.commitment-item-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--text-ink);
}

.commitment-item-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  color: var(--text-ink);
}

.hero-stat-label {
  font-size: 0.675rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hero-image-col {
  width: 100%;
}

.hero-visual-frame {
  height: clamp(260px, 38vw, 420px);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
}

@media (min-width: 1024px) {
  .hero-visual-frame {
    height: 440px;
  }
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  background-color: rgba(15, 17, 21, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-xs);
  border: 1px solid var(--border-dark);
  color: var(--bg-white);
}

.caption-project {
  font-size: 0.825rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--bg-white);
}

.caption-materials {
  font-size: 0.7rem;
  color: var(--text-light-muted);
  margin-top: 0.15rem;
}

/* ==========================================================================
   8. Comparison Table
   ========================================================================== */
.comparison-section-intro {
  margin-bottom: 1.5rem;
}

.comparison-scroll-wrap {
  overflow-x: auto;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-ink);
  background-color: var(--bg-warm);
  font-size: 0.9rem;
}

.comparison-table .col-luit th,
.comparison-table .col-luit td {
  background-color: var(--brass-50);
  border-left: 2px solid var(--brass-500);
  border-right: 2px solid var(--brass-500);
  font-weight: 700;
}

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

.badge-neg {
  color: #dc2626; /* red-600 */
  font-weight: 600;
}

.badge-mid {
  color: #d97706; /* amber-600 */
  font-weight: 600;
}

.badge-pos {
  color: #15803d; /* emerald-700 */
  font-weight: 700;
}

/* ==========================================================================
   9. Materials
   ========================================================================== */
.materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

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

.material-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 250ms ease;
}

.material-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brass-300);
}

.material-card-tag {
  font-size: 0.675rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-600);
  margin-bottom: 0.35rem;
}

.material-card-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-ink);
  margin-bottom: 0.35rem;
}

.material-card-brand {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-ink);
  margin-bottom: 0.15rem;
}

.material-card-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.material-cert {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--brass-700);
  background-color: var(--brass-50);
  border: 1px solid var(--brass-200);
  border-radius: var(--r-xs);
  padding: 0.15rem 0.5rem;
}

/* ==========================================================================
   10. Services
   ========================================================================== */
.services-header {
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: all 250ms ease;
}

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

.service-icon-wrap {
  width: 44px;
  height: 44px;
  background-color: var(--brass-100);
  border-radius: var(--r-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.service-icon-wrap svg,
.service-icon-wrap img {
  width: 24px;
  height: 24px;
  color: var(--brass-600);
  fill: var(--brass-600);
}

.service-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-ink);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   11. Packages & Estimator
   ========================================================================== */
.packages-header {
  margin-bottom: 1.5rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 960px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 250ms ease;
}

.package-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brass-300);
}

.package-card.pkg-featured {
  border: 2px solid var(--brass-500);
  box-shadow: var(--shadow-brass);
}

@media (min-width: 960px) {
  .package-card.pkg-featured {
    transform: scale(1.02);
  }
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brass-gradient);
  color: var(--text-ink);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}

.package-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text-ink);
  margin-bottom: 0.35rem;
}

.package-rate {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.85rem;
  color: var(--brass-600);
  margin-bottom: 0.15rem;
}

.package-rate span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.package-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-body);
}

.package-features li::before {
  content: '✓';
  color: var(--brass-500);
  font-weight: 800;
}

.package-cta {
  margin-top: auto;
}

/* Estimator */
.estimator-card {
  background-color: var(--bg-ink);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.estimator-card-inner {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .estimator-card-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.estimator-controls {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-dark);
}

@media (min-width: 1024px) {
  .estimator-controls {
    border-bottom: none;
    border-right: 1px solid var(--border-dark);
  }
}

.estimator-summary {
  padding: 2rem 1.5rem;
  background-color: rgba(255,255,255,0.025);
}

.estimator-controls-title,
.estimator-summary-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 1rem;
}

.range-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.range-label {
  font-size: 0.875rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-light);
}

.range-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brass-400);
}

.area-slider {
  width: 100%;
  margin-bottom: 1rem;
  accent-color: var(--brass-500);
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  outline: none;
}

.area-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brass-gradient);
  border: 2px solid var(--bg-white);
  cursor: pointer;
  box-shadow: var(--shadow-brass);
}

.area-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brass-gradient);
  border: 2px solid var(--bg-white);
  cursor: pointer;
  box-shadow: var(--shadow-brass);
}

.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.preset-pill {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-light-muted);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-dark);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-pill.active {
  border-color: var(--brass-500);
  color: var(--brass-300);
  background-color: transparent;
}

.room-badge {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  font-style: italic;
  margin-bottom: 1rem;
  display: block;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
  display: block;
}

.type-grid,
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.type-btn,
.pkg-btn {
  font-size: 0.775rem;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xs);
  cursor: pointer;
  background: transparent;
  text-align: center;
  color: var(--text-light-muted);
  transition: all 0.2s ease;
}

.type-btn.active,
.pkg-btn.active {
  border-color: var(--brass-500);
  color: var(--brass-300);
  background-color: rgba(197, 160, 89, 0.12);
}

.addons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 0;
}

.addon-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-light-muted);
  cursor: pointer;
  padding: 0.25rem 0;
}

.addon-label input[type="checkbox"] {
  accent-color: var(--brass-500);
}

.addon-label.selected {
  color: var(--text-light);
}

.cost-bar-wrap {
  height: 12px;
  background-color: rgba(255,255,255,0.06);
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  margin-bottom: 1.25rem;
}

.cost-bar-civil { background-color: #4f9ef5; flex: none; }
.cost-bar-finish { background-color: #c5a059; flex: none; }
.cost-bar-mep { background-color: #6ee7b7; flex: none; }
.cost-bar-addon { background-color: #f87171; flex: none; }

.cost-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.cost-bar-legend div {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-light-muted);
}

.cost-bar-legend span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-dark);
  padding-top: 1rem;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
}

.cost-row-label {
  color: var(--text-light-muted);
}

.cost-row-val {
  color: var(--text-light);
  font-weight: 600;
}

.grand-total {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--bg-white);
  margin: 0.5rem 0 1rem;
}

.grand-total-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.wa-btn {
  width: 100%;
  padding: 1rem;
}

/* ==========================================================================
   12. Before/After
   ========================================================================== */
.ba-section {
  /* uses .section-warm */
}

.ba-frame {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: ew-resize;
  box-shadow: var(--shadow-md);
  user-select: none;
}

@media (min-width: 768px) {
  .ba-frame {
    height: 420px;
  }
}

.ba-layer-before,
.ba-layer-after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.ba-layer-before {
  right: 0;
}

.ba-layer-after {
  overflow: hidden;
  width: 50%;
}

.ba-layer-before img,
.ba-layer-after img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
}

.ba-layer-before img {
  width: 100%;
}

/* .ba-layer-after img width needs to be set to the frame width via JS or inline CSS */

.ba-label-before,
.ba-label-after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-xs);
  z-index: 5;
}

.ba-label-before { left: 0.75rem; }
.ba-label-after { right: 0.75rem; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background-color: var(--bg-white);
  z-index: 10;
}

.ba-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.ba-handle::after {
  content: '↔'; /* Simplified arrows, can be replaced with SVG bg */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: var(--text-ink);
  font-weight: bold;
}

/* ==========================================================================
   13. Portfolio
   ========================================================================== */
.portfolio-header {
  margin-bottom: 1.5rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--brass-500);
  color: var(--bg-white);
  border-color: var(--brass-500);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.portfolio-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.portfolio-thumb {
  height: 200px;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

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

.portfolio-info {
  padding: 1rem;
}

.portfolio-cat {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-600);
}

.portfolio-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-ink);
  margin: 0.25rem 0 0.15rem;
}

.portfolio-meta {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==========================================================================
   14. Project Modal
   ========================================================================== */
.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-white);
  border-radius: var(--r-md);
  max-width: 560px;
  width: calc(100% - 2.5rem);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.modal-body {
  padding: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.9);
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: var(--bg-white);
}

.modal-tag {
  font-size: 0.675rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 0.35rem;
  display: block;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-ink);
  margin-bottom: 0.75rem;
}

.modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.modal-spec {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-cta {
  width: 100%;
}

/* ==========================================================================
   15. Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.contact-icon-wrap {
  width: 40px;
  height: 40px;
  background-color: var(--brass-100);
  border-radius: var(--r-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass-400);
  display: block;
}

.contact-val {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.15rem;
  display: block;
}

.contact-form-card {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-form-card {
    padding: 2rem;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xs);
  padding: 0.75rem 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brass-500);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}

.form-select option {
  background-color: var(--bg-ink-surface);
  color: var(--text-light);
}

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

.form-submit {
  margin-top: 0.5rem;
}

/* ==========================================================================
   16. Mobile Bottom Bar
   ========================================================================== */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  background-color: rgba(15, 17, 21, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-dark);
  z-index: 980;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  padding: 0 0.5rem;
}

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

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  height: 100%;
  text-decoration: none;
}

.mobile-bar-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-bar-btn--center {
  background: var(--brass-gradient);
  color: var(--text-ink);
  border-radius: var(--r-sm);
  height: 46px;
  align-self: center;
  flex-direction: row;
  gap: 0.4rem;
  font-size: 0.8rem;
  transform: translateY(-4px);
  box-shadow: var(--shadow-brass);
}

/* ==========================================================================
   17. Toast
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 5rem; /* Above mobile bar */
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  max-width: 340px;
  background-color: var(--bg-ink-surface);
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 300ms ease;
  z-index: 9999;
}

@media (min-width: 1024px) {
  .toast {
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    transform: translateY(8px);
  }
  .toast.show {
    transform: translateY(0);
  }
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   18. Scroll Animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
  transition-delay: calc(var(--child-index, 0) * 80ms);
}

.reveal-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   19. Utility classes
   ========================================================================== */
.text-brass {
  color: var(--brass-500);
}

.text-muted {
  color: var(--text-muted);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

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

/* ==========================================================================
   PATCH: CSS Aliases for HTML class names & Bug Fixes
   ========================================================================== */

/* Fix: header-phone-btn phone text hidden on mobile — only show icon */
.header-phone-btn span {
  display: none;
}
@media (min-width: 768px) {
  .header-phone-btn {
    gap: 0.4rem;
  }
  .header-phone-btn span {
    display: inline;
  }
}

/* Fix: section heading & subtext missing from h2 elements */
.site-section h2,
.hero-section h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.65rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-ink);
  margin-bottom: 0.5rem;
}

.section-ink h2 {
  color: var(--text-light);
}

.heading-brass {
  color: var(--brass-600);
}

.section-ink .heading-brass {
  color: var(--brass-400);
}

/* Fix: .subtext used in HTML (CSS has .section-subtext) */
.subtext {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.section-ink .subtext {
  color: var(--text-light-muted);
}

/* Fix: pricing-grid / pricing-card → alias to package-card styles */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 250ms ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brass-300);
}

.pricing-card.pkg-featured {
  border: 2px solid var(--brass-500);
  box-shadow: var(--shadow-brass);
}

@media (min-width: 960px) {
  .pricing-card.pkg-featured {
    transform: scale(1.02);
  }
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brass-gradient);
  color: var(--text-ink);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text-ink);
  margin-bottom: 0.35rem;
}

.pricing-card .price {
  margin-bottom: 0.35rem;
}

.pricing-card .rate {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.85rem;
  color: var(--brass-600);
}

.pricing-card .unit {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-card .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pricing-card .features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex: 1;
  padding: 0;
}

.pricing-card .features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-body);
}

.pricing-card .features li::before {
  content: '✓';
  color: var(--brass-500);
  font-weight: 800;
  flex-shrink: 0;
}

/* Fix: estimator slider-wrap */
.slider-wrap {
  margin-bottom: 0.5rem;
}

.slider-wrap label {
  display: block;
  font-size: 0.875rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.slider-wrap label span {
  color: var(--brass-400);
}

.slider-wrap input[type="range"] {
  width: 100%;
  margin-bottom: 0.5rem;
  accent-color: var(--brass-500);
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

.slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brass-gradient);
  border: 2px solid var(--bg-white);
  cursor: pointer;
  box-shadow: var(--shadow-brass);
}

.slider-wrap input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brass-gradient);
  border: 2px solid var(--bg-white);
  cursor: pointer;
  box-shadow: var(--shadow-brass);
}

/* Fix: type-tabs / pkg-tabs → grid layout */
.type-tabs,
.pkg-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

/* Fix: addon-checks → addons-grid */
.addon-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

/* Fix: breakdown-row → cost-row  */
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: var(--text-light-muted);
  padding: 0.25rem 0;
}

.breakdown-row span[id] {
  color: var(--text-light);
  font-weight: 600;
}

/* Fix: legend-dot colored dots */
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

.legend-dot.civil  { background-color: #4f9ef5; }
.legend-dot.finish { background-color: #c5a059; }
.legend-dot.mep    { background-color: #6ee7b7; }
.legend-dot.addon  { background-color: #f87171; }

/* Estimator: section dividers with labels */
.estimator-controls p.estimator-controls-title {
  margin-bottom: 1.25rem;
}

/* Fix: material-card missing styles (h3, .brand, .desc, .cert) */
.material-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-ink);
  margin-bottom: 0.25rem;
}

.material-card .brand {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-ink);
  margin-bottom: 0.35rem;
}

.material-card .desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.material-card .cert {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--brass-700);
  background-color: var(--brass-50);
  border: 1px solid var(--brass-200);
  border-radius: var(--r-xs);
  padding: 0.15rem 0.5rem;
}

/* Fix: service-card missing child styles */
.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-ink);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Fix: commitment-item missing child styles */
.icon-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: var(--brass-100);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-600);
}

.commitment-item .badge {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-700);
  background-color: var(--brass-100);
  border: 1px solid var(--brass-200);
  padding: 0.1rem 0.4rem;
  border-radius: var(--r-xs);
  width: fit-content;
  margin-bottom: 0.15rem;
}

.commitment-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-ink);
  margin-bottom: 0.15rem;
}

.commitment-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Commitment item: flex row layout */
.commitment-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brass-500);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-xs);
}

/* Fix: WhatsApp waBtn */
#waBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Fix: contact form card inner styles */
.contact-form label.form-label,
.contact-form .form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
  margin-bottom: 0.4rem;
}

/* Fix: portfolio card inner styles */
.portfolio-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-ink);
  margin-bottom: 0.15rem;
}

.portfolio-card .portfolio-cat {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-600);
  margin-bottom: 0.25rem;
}

.portfolio-card .portfolio-meta {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Fix: estimator grandTotal on mobile — ensure it's big and visible */
#grandTotal {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--bg-white);
  line-height: 1;
  margin: 0.5rem 0 1rem;
}

/* Fix: cost-bar-wrap needs min-width so segments show even at 0% */
.cost-bar-wrap {
  min-height: 12px;
}

/* Improve: estimator summary spacing on mobile */
@media (max-width: 1023px) {
  .estimator-summary {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

/* Fix: hero-h1 accent span */
.hero-h1-accent {
  color: var(--brass-600);
}

/* ==========================================================================
   PATCH 2: Mobile Header CTA Fix (Enquire Now visible & optimized on ALL devices)
   ========================================================================== */
.site-header .header-cta-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  min-height: 36px;
  height: 36px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  border-radius: var(--r-xs);
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.28);
}

@media (min-width: 768px) {
  .site-header .header-cta-btn {
    padding: 0.55rem 1.25rem;
    font-size: 0.825rem;
    min-height: 40px;
    height: 40px;
  }
}

/* Phone button hidden on small screens (<768px) to prevent clutter since it is in the bottom bar & drawer */
.site-header .header-phone-btn {
  display: none;
}

@media (min-width: 768px) {
  .site-header .header-phone-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-ink);
    min-height: 40px;
  }
}

/* Compact header elements on narrow phones (320px - 360px) */
@media (max-width: 375px) {
  .site-header .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .brand-wrap {
    gap: 0.4rem;
  }
  .brand-logo-img {
    height: 30px;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-tag {
    font-size: 0.5rem;
  }
  .header-right {
    gap: 0.35rem;
  }
  .site-header .header-cta-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
    min-height: 34px;
    height: 34px;
  }
  .mobile-menu-toggle {
    width: 34px;
    height: 34px;
  }
}

/* ==========================================================================
   PATCH 3: Estimator Breakdown Row Alignment Fix
   ========================================================================== */
.row-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-light-muted);
  font-size: 0.825rem;
}

/* Override the old breakdown-row to ensure just 2 items space-between */
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: var(--text-light-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row span[id] {
  color: var(--text-light);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.875rem;
}

/* ==========================================================================
   PATCH 4: Contact Section Complete Fix
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
  }
}

/* Contact Info column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Each contact item: icon + text SIDE BY SIDE */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background-color: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-400);
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-500);
}

.contact-val {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}

.contact-val:hover {
  color: var(--brass-300);
}

/* Contact Form Card */
.contact-form-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Form 2-column row — stacks on mobile */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

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

.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xs);
  padding: 0.75rem 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brass-500);
  background-color: rgba(255, 255, 255, 0.08);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background-color: var(--bg-ink-surface);
  color: var(--text-light);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.form-submit {
  margin-top: 0.25rem;
}

/* ==========================================================================
   PATCH 5: Mobile General Overflow Prevention
   ========================================================================== */

/* Ensure no element causes horizontal scroll */
* {
  max-width: 100%;
}

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

/* Eyebrow: prevent wrapping on narrow screens */
.editorial-eyebrow {
  flex-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Section container safe area */
.container {
  overflow: hidden;
}

/* Hero H1 should wrap cleanly */
.hero-h1 {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Comparison table scroll hint */
.comparison-scroll-wrap {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Commitment list on mobile: ensure no overflow */
.commitment-list {
  overflow: hidden;
}

.commitment-item {
  min-width: 0;
}

/* Stats: prevent overflow on very small screens */
.hero-stats {
  overflow: hidden;
}

.hero-stat-num {
  font-size: clamp(1.1rem, 4vw, 2rem);
  word-break: break-all;
}

/* Mobile bar safe area for notched phones */
.mobile-bar {
  padding-bottom: env(safe-area-inset-bottom, 0);
  height: calc(60px + env(safe-area-inset-bottom, 0));
}

/* Estimator preset pills on small screens */
@media (max-width: 360px) {
  .preset-pills {
    gap: 0.35rem;
  }
  .preset-pill {
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
  }
  .type-tabs,
  .pkg-tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
  }
  .type-btn,
  .pkg-btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.25rem;
  }
  .addon-checks {
    grid-template-columns: 1fr;
  }
}

/* Material grid: ensure 1 col on narrowest phones */
@media (max-width: 360px) {
  .materials-grid,
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECTION: FAQ Accordion Styles (SEO & User Engagement)
   ========================================================================== */
.faq-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 860px;
  margin: 1.75rem auto 0;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-xs);
}

.faq-item:hover {
  border-color: var(--brass-300);
}

.faq-item.active {
  border-color: var(--brass-500);
  border-left: 3px solid var(--brass-500);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-ink);
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-question span {
  flex: 1;
}

.faq-icon {
  color: var(--brass-600);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.faq-answer strong {
  color: var(--text-ink);
  font-weight: 700;
}

