/* ==========================================================================
   MYD Interior Studio (MYD - Pleasant Home Design Pte Ltd)
   Production Design System & Architectural Stylesheet
   Variant C: Friendly Local & Craftsmanship Heritage
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   Strictly derived from design_brief.json palette & typography specifications
   -------------------------------------------------------------------------- */
:root {
  /* Exact Design Brief Palette */
  --bg: #fdfbf7;
  --surface: #ffffff;
  --text: #1a1816;
  --muted: #524e49;
  --primary: #c23b37;
  --primary-hover: #a82e2b;
  --primary-text: #ffffff;
  --accent: #c49633;
  --accent-light: #f7edd6;
  --accent-hover: #b08427;
  --accent-dark: #8a6416;
  --dark: #1a1816;
  --dark-surface: #24211e;
  --dark-card: #2e2a26;
  --dark-text: #fdfbf7;
  --dark-muted: #a6a098;

  /* UI Borders & States */
  --border-light: rgba(26, 24, 22, 0.08);
  --border-accent: rgba(196, 150, 51, 0.3);
  --border-focus: #c23b37;
  --border-dark: rgba(253, 251, 247, 0.12);

  /* Exact Brief Typography */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid Modular Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-md: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.45rem);
  --text-xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.85rem);
  --text-2xl: clamp(1.85rem, 1.6rem + 1.25vw, 2.35rem);
  --text-3xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
  --text-4xl: clamp(2.75rem, 2.25rem + 2.5vw, 3.85rem);

  /* Spacing Scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6.5rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-subtle: 0 2px 6px rgba(26, 24, 22, 0.04);
  --shadow-card: 0 4px 16px rgba(26, 24, 22, 0.06);
  --shadow-hover: 0 12px 30px rgba(26, 24, 22, 0.1);
  --shadow-elevated: 0 20px 48px rgba(26, 24, 22, 0.14);

  /* Structural Dimensions */
  --container-max: 1260px;
  --header-height: 80px;
  --mobile-bar-height: 64px;
}

/* --------------------------------------------------------------------------
   2. Modern Reset & Universal Foundations
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: clip; /* Modern clipping that does not break sticky header */
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--primary-text);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease-in-out;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--accent);
}

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Media Elements */
img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

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

/* Section Rhythm */
.section {
  padding-block: var(--space-3xl);
  position: relative;
}

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

.section-tint {
  background-color: #f7f3ec;
}

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

/* --------------------------------------------------------------------------
   3. Typography & Badges
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

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

h1 { font-size: var(--text-4xl); font-weight: 800; line-height: 1.15; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 700; }
h4 { font-size: var(--text-xl); font-weight: 600; }
h5 { font-size: var(--text-lg); font-weight: 600; }

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-header.text-start {
  text-align: start;
  margin-inline: 0;
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--dark-muted);
}

/* Eyebrow Pill / Brand Tags */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(194, 59, 55, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.eyebrow-accent {
  color: var(--accent-dark);
  background: var(--accent-light);
}

.section-dark .eyebrow {
  color: var(--accent);
  background: rgba(196, 150, 51, 0.15);
  border: 1px solid rgba(196, 150, 51, 0.25);
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  min-height: 48px; /* Strict 48px minimum touch target */
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 4px 14px rgba(194, 59, 55, 0.28);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--primary-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 59, 55, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-secondary:hover {
  background-color: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.section-dark .btn-secondary {
  color: var(--dark-text);
  border-color: rgba(253, 251, 247, 0.35);
}
.section-dark .btn-secondary:hover {
  background-color: var(--dark-text);
  color: var(--dark);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}
.btn-whatsapp:hover {
  background-color: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   5. Site Header & Sticky Navigation
   Direct child of <body>, position: sticky; top: 0; z-index: 1000
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: padding 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.scrolled {
  background-color: #ffffff;
  box-shadow: var(--shadow-card);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding-inline: 1.25rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .header-inner {
    padding-inline: 2rem;
  }
}

/* Home Link & Brand Logo */
.header-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-height: 48px;
  padding: 0.25rem 0;
}

.header-logo-img {
  height: 46px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.header-brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }

  .nav-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    padding: 0.5rem 0.25rem;
    position: relative;
    text-decoration: none;
  }

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

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  .nav-link.active {
    color: var(--primary);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta-btn {
  display: none;
}

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

/* Mobile Menu Toggle Button (>= 48px target) */
.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(26, 24, 22, 0.05);
}

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

.mobile-nav-toggle:hover {
  background: rgba(26, 24, 22, 0.1);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 24, 22, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-nav-content {
  width: 100%;
  max-width: 340px;
  background-color: var(--bg);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

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

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.mobile-nav-close {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(26, 24, 22, 0.06);
}

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

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text);
  border-radius: var(--radius-sm);
  min-height: 48px;
}

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

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   6. Hero Section (Split Layout)
   -------------------------------------------------------------------------- */
.hero {
  padding-block: var(--space-2xl) var(--space-3xl);
  background: radial-gradient(circle at top right, rgba(196, 150, 51, 0.08) 0%, rgba(253, 251, 247, 0) 65%);
  position: relative;
}

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

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.rating-star-icon {
  color: #f59e0b;
}

.hero-headline {
  font-size: var(--text-4xl);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero-subheadline {
  font-size: var(--text-md);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media-wrapper:hover .hero-img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-floating-card {
    right: auto;
    max-width: 360px;
  }
}

.floating-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-text-primary {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.2;
}

.floating-text-secondary {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   7. Trust Strip & Accreditation Badges
   -------------------------------------------------------------------------- */
.trust-strip {
  padding-block: var(--space-xl);
  background: var(--surface);
  border-block: 1px solid var(--border-light);
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
}

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

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

.trust-badge-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.trust-badge-item:hover {
  transform: translateY(-2px);
}

.trust-badge-img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter 0.2s ease;
}

.trust-badge-item:hover .trust-badge-img {
  filter: grayscale(0%);
}

.trust-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-light);
}

.trust-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
}

.bullet-check-icon {
  color: var(--primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. Services Overview (Housing Typologies)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.service-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #ede9e1;
}

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

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

.service-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(26, 24, 22, 0.85);
  color: var(--dark-text);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: var(--text-lg);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-description {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text);
}

.service-card-link {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card-link:hover {
  color: var(--primary-hover);
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   9. Signature Section: Meet Your Designers & Founder's Personal Guarantee
   (Playbook Variant C Signature Moment)
   -------------------------------------------------------------------------- */
.signature-section {
  background-color: var(--dark);
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
}

.signature-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 150, 51, 0.12) 0%, rgba(26, 24, 22, 0) 70%);
  pointer-events: none;
}

.founder-pledge-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .founder-pledge-card {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 3rem;
  }
}

.pledge-quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pledge-statement {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.pledge-narrative {
  font-size: var(--text-sm);
  color: var(--dark-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.founder-signature-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.founder-avatar-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-light);
}

.founder-meta-name {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--dark-text);
}

.founder-meta-role {
  font-size: var(--text-xs);
  color: var(--accent);
}

.founder-handover-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

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

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

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

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

.designer-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.designer-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.designer-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.designer-initials-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: rgba(196, 150, 51, 0.2);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-accent);
}

.designer-name {
  font-size: var(--text-lg);
  color: var(--dark-text);
  line-height: 1.2;
}

.designer-role {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
}

.designer-philosophy {
  font-size: var(--text-sm);
  color: var(--dark-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.designer-badges-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.designer-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--dark-text);
}

.designer-whatsapp-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
  font-weight: 600;
  font-size: var(--text-xs);
  min-height: 48px;
  transition: all 0.2s ease;
}

.designer-whatsapp-btn:hover {
  background: #25d366;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. Portfolio Gallery (Real Transformations)
   -------------------------------------------------------------------------- */
.portfolio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-light);
  min-height: 44px;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}

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

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

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

.portfolio-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.portfolio-img-box {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #ede9e1;
}

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

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

.portfolio-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(26, 24, 22, 0.85);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

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

.portfolio-title {
  font-size: var(--text-md);
  margin-bottom: 0.4rem;
}

.portfolio-style {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.portfolio-scope {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. In-House Carpentry Factory Advantage
   -------------------------------------------------------------------------- */
.factory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

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

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

.factory-advantages-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .factory-advantages-list {
    grid-template-columns: 1fr 1fr;
  }
}

.advantage-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-subtle);
}

.advantage-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(194, 59, 55, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.advantage-title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.advantage-text {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. Transparent Rates & 5-Step Renovation Roadmap
   -------------------------------------------------------------------------- */
.rates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 4rem;
}

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

.rate-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rate-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(194, 59, 55, 0.15);
}

.rate-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
}

.rate-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.rate-title {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.rate-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.rate-subtitle {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 0.35rem;
}

.rate-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.rate-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.4;
}

.rate-check-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* 5-Step Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}

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

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

.process-step-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.step-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.step-desc {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   13. Client Testimonials (Google Reviews)
   -------------------------------------------------------------------------- */
.reviews-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 1rem 2rem;
  margin-inline: auto;
  margin-bottom: 3rem;
  max-width: 820px;
  box-shadow: var(--shadow-subtle);
}

.review-metric {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.metric-rating {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
}

.metric-stars {
  color: #f59e0b;
  font-size: 1.1rem;
}

.metric-source {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
}

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

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

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

.review-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.review-badge-verified {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}

.review-quote {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
}

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

.author-avatar-initial {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text);
}

.author-source {
  font-size: 0.75rem;
  color: var(--muted);
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  min-height: 48px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   15. Consultation Booking & Contact Components
   -------------------------------------------------------------------------- */
.booking-section {
  background: linear-gradient(135deg, #1a1816 0%, #29241f 100%);
  color: var(--dark-text);
  position: relative;
}

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

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

.booking-info-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.booking-form-card {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 768px) {
  .booking-form-card {
    padding: 3rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font-size: var(--text-sm);
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 150, 51, 0.2);
}

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

.file-upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  background: #fdfbf7;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.file-upload-zone:hover {
  border-color: var(--accent);
}

.upload-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-inline: auto;
  margin-bottom: 0.5rem;
}

/* Contact Details Card */
.contact-meta-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.meta-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(196, 150, 51, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meta-heading {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--dark-text);
}

.meta-content {
  font-size: var(--text-xs);
  color: var(--dark-muted);
  line-height: 1.5;
}

.map-frame-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  height: 380px;
  width: 100%;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   16. Multi-Column Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--dark);
  color: var(--dark-text);
  padding-top: var(--space-4xl);
  padding-bottom: calc(var(--space-2xl) + var(--mobile-bar-height));
  border-top: 1px solid var(--border-dark);
}

@media (min-width: 769px) {
  .site-footer {
    padding-bottom: var(--space-2xl);
  }
}

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

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

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

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

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

.footer-desc {
  font-size: var(--text-xs);
  color: var(--dark-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

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

.footer-link {
  font-size: var(--text-xs);
  color: var(--dark-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 28px;
}

.footer-link:hover {
  color: var(--dark-text);
  transform: translateX(3px);
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.78rem;
  color: var(--dark-muted);
}

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

.footer-credits {
  font-size: 0.75rem;
  color: var(--dark-muted);
}

/* --------------------------------------------------------------------------
   17. Mobile Sticky Bottom Bar (Trades Playbook Variant C)
   Fixed bottom call & WhatsApp buttons for <= 768px viewports
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-bar-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  gap: 0.75rem;
  z-index: 999;
}

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

.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
}

.mobile-bar-call {
  background: var(--dark);
  color: var(--dark-text);
}

.mobile-bar-whatsapp {
  background: #25d366;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   18. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 80px; /* Above mobile bottom bar */
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--dark-text);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 900;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background 0.2s ease;
}

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

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   19. Reveal Animations & Reduced Motion Guards
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    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.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
