/* Root tokens - Light Mode (default) */
:root {
  --color-bg: #ffffff;
  --color-bg-secondary: #f9f9f9;
  --color-bg-card: #ffffff;
  --color-text-primary: #000000;
  --color-text-secondary: #666666;
  --color-accent: #1E2988;                        /* Change these 2 colours for entire website accent colour */ 
  --color-accent-hover: #101e9c;                  /* Change these 2 colours for entire website accent colour */
  --color-dark: #1a1a1a;
  --color-neutral: #f5f5f5;
  --color-border: #e5e5e5;
  --color-input-border: #d4d4d4;
  --color-shadow: rgba(0, 0, 0, 0.06);
  --color-shadow-raised: rgba(0, 0, 0, 0.16);
    --color-tab-active-bg: #ede9fe;
      --color-contact-border: rgba(16, 24, 40, 0.06);
  --color-contact-shadow: rgba(18, 24, 32, 0.08);
    --color-hero-overlay: rgba(0, 0, 0, 0.6);
      --color-lightbox-hover-bg: rgba(30, 64, 175, 0.95);
  --color-lightbox-hover-border: rgba(191, 219, 254, 1);

  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-soft: 0 2px 12px var(--color-shadow);
  --shadow-raised: 0 8px 32px var(--color-shadow-raised);

  --container-width: 1120px;
  --transition-fast: 200ms ease-in-out;

  --btn-height: 44px;
  --btn-padding-x: 28px;
  --btn-font-size: 14px;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: #14171e;
  --color-bg-secondary: #1e293b;
  --color-bg-card: #1e293b;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-accent: #1E2988;                            /* Change these 2 colours for entire website accent colour */
  --color-accent-hover: #101e9c;                      /* Change these 2 colours for entire website accent colour */
  --color-dark: #f1f5f9;
  --color-neutral: #1e293b;
  --color-border: #334155;
  --color-input-border: #475569;
  --color-shadow: rgba(0, 0, 0, 0.3);
  --color-shadow-raised: rgba(0, 0, 0, 0.5);
}

/* Dark-mode fixes for Resources dropdown (shared across all pages) */
/* Dark-mode dropdown styled to match theme colors */
[data-theme="dark"] .nav-dropdown {
  background-color: var(--color-bg-secondary);
  border-color: var(--color-border);
}

[data-theme="dark"] .nav-dropdown a {
  color: var(--color-text-primary);
}

[data-theme="dark"] .nav-dropdown a:hover {
  background-color: var(--color-bg-card);
  color: var(--color-text-primary);
}


/* Light mode dropdown baseline */
.nav-dropdown {
  background-color: #ffffff;
  border: 1px solid #e6e6e6;
  color: #333;
}

.nav-dropdown a {
  color: #333;
}

.nav-dropdown a:hover {
  background-color: #f5f5f5;
  color: #000;
}


/* Basic reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



html, body {
  /* Prevent horizontal scroll wobble WITHOUT breaking position: sticky */
  overflow-x: clip; 
  width: 100%;
  position: relative;
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}


/* Layout helpers */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 20px; /* move it up from the home indicator area */
    font-size: 26px;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.45);
  }
}


.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  line-height: 60px;
}

.sa-scroll-top {
  position: fixed;
  right: 30px;
  bottom: 100px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-card);
  box-shadow: 0 4px 14px var(--color-shadow-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
    z-index: 1000 !important;  /* Above WhatsApp + Theme toggle */
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.sa-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.sa-scroll-top:hover {
  transform: scale(1.1);
}


.sa-scroll-top svg.sa-scroll-circle {
  position: absolute;
  inset: 0;
  transform: none;  /* ← FIXED: 12 O'CLOCK START */
}
.sa-scroll-top svg.sa-scroll-circle path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 314 314;  /* Full circle */
  stroke-dashoffset: 314;      /* Start empty at 12 */
  transition: stroke-dashoffset 0.1s linear;
}




.sa-scroll-arrow {
  position: relative;
  font-size: 20px;      /* bigger arrow */
  font-weight: 700;     /* bolder */
  color: var(--color-text-primary);
}


/* Mobile tweak so it doesn’t clash with WhatsApp */
@media (max-width: 768px) {
  .sa-scroll-top {
    right: 20px;
    bottom: 90px;
    width: 44px;
    height: 44px;
  }

  .sa-scroll-arrow {
    font-size: 16px;
  }
}

@media (min-width: 769px) {
  .sa-scroll-top {
    right: 20px;   /* slightly safer than 30px on desktop */
    max-width: 100%;
  }
}


/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-bg-card);
  border: 2px solid var(--color-border);
  color: var(--color-text-primary);
  font-size: 20px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Header / navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background-color: var(--color-bg);
  box-shadow: 0 1px 3px var(--color-shadow);
  transition: background-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
}

.main-nav {
  display: flex;
  align-items: center;
  width: 100%;          /* nav spans remaining width */
}

/* NEW: offset content for fixed header */
main {
  padding-top: 72px;
}

@media (max-width: 768px) {
  main {
    padding-top: 64px;
  }

  /* Hero highlight sizes – mobile only */
  .hero-highlights {
    gap: 16px;
  }

  .hero-highlights .highlight-icon {
    font-size: 20px;
  }

  .hero-highlights .highlight-number {
    font-size: 18px;
  }

  .hero-highlights .highlight-label {
    font-size: 13px;
  }
}


/* Updated logo container */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 18px;
  color: var(--color-text-primary);
}

/* Desktop logo - full size spanning old logo + text width */
.logo-desktop {
  width: 200px;
  height: auto;
  object-fit: contain;
  display: block;  /* Visible by default */
}

/* Mobile logo - hidden by default */
.logo-mobile {
  width: 200px;  /* Smaller for mobile */
  height: auto;
  object-fit: contain;
  display: none;  /* Hidden by default */
}

/* Mobile: Hide desktop logo, show mobile logo */
@media (max-width: 768px) {
  .logo-desktop {
    display: none !important;
  }
  
  .logo-mobile {
    display: block !important;
  }
}


/* StandardAgencies text styles */
.logo-main {
  color: var(--color-text-primary); /* black/dark mode compatible */
}

.logo-accent {
  color: var(--color-accent); /* purple */
}


.main-nav {
  display: flex;
  align-items: center;   /* vertically center links + button */
  justify-content: flex-end;
  gap: 24px;             /* space between nav list and button */
}


/* Desktop nav */
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;  /* center Home–Contact in available space */
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;                  /* take all free space between logo and button */
}

/* small gap between links and CTA */
.btn-header {
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
  margin-left: 24px;
}


.nav-list a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-secondary);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}
/* Match Resources button to header links */
.nav-drop-toggle {
  font-size: 14px;
  font-weight: 700; /* same bold as your links */
  color: var(--color-text-secondary);
  background: none;
  border: none;
  padding: 8px 0; 
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Hover color (same as links) */
.nav-drop-toggle:hover {
  color: var(--color-text-primary);
}
/* Make Resources identical to other header links */
.nav-drop-toggle {
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;

  /* match link spacing */
  padding: 0;
  margin: 0;

  /* align perfectly */
  vertical-align: middle;
  align-self: center;
  line-height: normal !important;

  /* match color */
  color: var(--color-text-secondary) !important;

  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-drop-toggle:hover {
  color: var(--color-text-primary) !important;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-list a:hover {
  color: var(--color-text-primary);
}

.nav-list a:hover::after {
  width: 100%;
}

/* Active section highlight in navbar */
.nav-list a.is-active {
  color: var(--color-text-primary);
}

.nav-list a.is-active::after {
  width: 100%;
}


/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  justify-content: center;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: transform var(--transition-fast);
}

/* HERO - Premium Image Focus */
.hero {
  position: relative;
  min-height: 85vh; /* Taller to show more image */
  color: #ffffff;
  /* Your high-quality image */
  background-image: url("../images/gallery/landing_hero.jpg");
  background-size: cover;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 20px;     /* Edit to shift the text up or down */
}

/* Gradient Overlay: Dark on LEFT (for text), Transparent on RIGHT (for image) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.5) 0%,    /* Dark background behind text */
    rgba(0, 0, 0, 0.3) 45%,   /* Fades out in the middle */
    transparent 100%          /* Completely clear on the right */
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0px 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}

/* Constrain text width to the left side - Edit to change how much the text is allowed to stretch*/ 
.hero-content > *:not(.hero-highlights) {
  max-width: 600px; 
}

.hero .eyebrow {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.9;
  margin-bottom: 16px;
  font-weight: 600;
    /* color: var(--color-accent); /* Edit to add Optional pop of color */
}


/* Premium Typography: Larger, Thinner, Cleaner */
.hero h1 {
  font-weight: 400; /* Thinner font like Casantro */
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.1;
  margin: 0 0 24px;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Subtle shadow instead of heavy glow */
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 10px;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.hero-actions {
  margin-bottom: 40px;
}

.hero-cta {
  align-self: flex-start;
}

/* HERO highlights */
.hero-highlights {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.highlight-number {
  font-size: 32px;
  font-weight: 500;
  display: inline-block;
  min-width: 3ch; /* prevents layout jump while counting */
}


.highlight-label {
  font-size: 15px;
  opacity: 0.8;
}

.highlight-icon {
  font-size: 28px; /* Slightly larger for Font Awesome icons */
  display: block; /* Ensures consistent rendering */
  margin-bottom: 4px; /* Small gap between icon and number */
  color: var(--color-accent) /* Edit to change icon colours */
}

/* Responsive Hero Content for tablet and mobile */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0 20px;
  }

  .hero-text-wrapper {
    max-width: 100%;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    white-space: normal;
    text-align: left;
  }

  .hero .eyebrow,
  .hero-subtitle {
    text-align: left;
  }

  .hero-highlights {
    justify-content: flex-start;
  }
}


/* Sections */
.section {
  padding: 80px 0;
  background-color: var(--color-bg);
  transition: background-color 0.3s ease;
}

.section-light {
  background-color: var(--color-bg);
}

.section-dark {
  background-color: var(--color-dark);
  color: #ffffff;
}

.section-form {
  background-color: var(--color-bg-secondary);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 8px;
  font-weight: 400;
  color: var(--color-text-primary);
}

.section-header p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.section-underline {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 12px auto 0;
}

.section-underline-white {
  width: 60px;
  height: 3px;
  background-color: #ffffff;
  margin: 12px auto 0;
}

.section-header-white h2 {
  color: #ffffff;
}

.section-header-white p {
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
  border-radius: var(--radius-md);
  padding: 0 var(--btn-padding-x);
  font-size: var(--btn-font-size);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast), color var(--transition-fast);
  font-weight: 500;
  white-space: nowrap;
  height: var(--btn-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1;          /* NEW: normalize between <button> and <a> */
  text-decoration: none;   /* ensure links look identical */
}


/* Header CTA button: use global button tokens so size matches other primary buttons */
.btn-header {
  height: var(--btn-height);
  padding: 0 var(--btn-padding-x);
  font-size: var(--btn-font-size);
}


.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  text-decoration: none; /* ← ADD THIS */
}

.cta-buttons .btn-secondary {
  background: transparent !important;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  height: 44px !important;           /* Matches Get in Touch */
  padding: 16px 32px !important;     /* Matches Get in Touch */
  font-size: 14px !important;        /* Matches Get in Touch */
  line-height: 14px !important;      /* Matches Get in Touch */
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.1) !important;
  color: white !important;
}



.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-text-primary);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: var(--color-text-primary);
  color: var(--color-bg);
}

.btn-text {
  background: none;
  padding: 0;
  border: none;
  color: var(--color-accent);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: auto;
  text-decoration: none;
}

.btn-text:hover {
  color: var(--color-accent-hover);
    text-decoration: underline;

}

.btn-full {
  width: 100%;
}

/* ABOUT SECTION */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.about-copy {
  text-align: left;
}

.about-copy .section-header {
  text-align: left;
  margin: 0 0 20px 0;
}

.about-body {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}

/* Full-width video */
.about-video {
  width: 100%;
  margin-top: 20px;
}

.video-frame-fullwidth {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Update to target both iframe AND video tags */
.video-frame-fullwidth iframe,
.video-frame-fullwidth video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover; /* Crucial: This zooms the video to fill the box, removing black bars */
}

/* LEGACY SECTION */
.legacy-section {
  margin-bottom: 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 20px 12px;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-border);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}

.stat-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.stat-card p {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* TABS SECTION */
/* center the tab buttons in page (user request) */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  justify-content: center; /* centered horizontally */
}

.tab-button {
  border: none;
  background: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: background-color var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
  font-family: inherit;
  height: auto;
}

.tab-button:hover {
  background-color: var(--color-neutral);
}

.tab-button.active {
  background-color: var(--color-tab-active-bg);
  color: var(--color-accent);
  transform: translateY(-1px);
}


[data-theme="dark"] .tab-button.active {
  background-color: rgba(139, 92, 246, 0.2);
}

.tab-panels {
  margin-top: 32px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.tab-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  background-color: var(--color-neutral);
  
  /* THE LOCK: Strict width and height so it never changes shape */
  width: 100%;
  height: 420px; 
}

.tab-image {
  width: 100%;
  height: 100%;
  /* cover: forces the image to fill the box by cropping overhang */
  object-fit: cover; 
  object-position: center; /* keeps the focus on the center of the image */
  display: block;
  transition: transform 300ms ease, filter 300ms ease;
}

.tab-image:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.tab-content {
  padding: 0 8px;
}

.tab-content h3 {
  margin: 0 0 8px;
  font-weight: 400;
  font-size: 24px;
  color: var(--color-text-primary);
}

.tab-content p {
  margin: 0 0 16px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.tab-features {
  list-style: disc;
  padding-left: 18px;
  margin: 0 0 12px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.tab-features li {
  margin-bottom: 4px;
}

.tab-actions {
  display: flex;
  flex-direction: row;    /* ← horizontal buttons */
  gap: 12px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;        /* ← allows clean wrapping on mobile */
}

/* Row for the two main action buttons */
.tab-actions-row {
  display: flex;
  flex-direction: row;
  gap: 20px;        /* ← margin between Get details & Book free site visit */
  flex-wrap: wrap;
  align-items: center;
}

/* NEW: Layout tabs - mobile horizontal scroll */
@media (max-width: 1024px) {
  #kitchen-tabs .tab-panels {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 18px;
    padding-bottom: 0;     /* remove extra space here */
  }

  #kitchen-tabs .tab-panel {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
    display: block !important;
  }

  #kitchen-tabs .tab-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Dots live OUTSIDE the scroll area visually */
  #kitchen-tabs .tabs-scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 0 16px;
  }

  #kitchen-tabs .tabs-scroll-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(148, 163, 184, 0.9);
    transition: background 200ms ease;
  }

  #kitchen-tabs .tabs-scroll-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
  }
}




/* DCBA SECTION - New Design */
.dcba-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.dcba-card {
  text-align: center;
  padding: 32px 20px;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-border);
}

.dcba-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
}

.dcba-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
  font-size: 32px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dcba-card:hover .dcba-icon-circle {
  background-color: var(--color-accent);
  color: #ffffff;
}

.dcba-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.dcba-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Gallery cards (hover similar to DCBA) */
.gallery-grid {
  display: grid;
  gap: 20px;
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  background-color: var(--color-bg-card);
}

.gallery-image {
  width: 100%;
  padding-bottom: 50%; /* 2:1 ratio */
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-fast);
}

/* Hover effect */
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.14);
  border: 2px solid var(--color-accent);  /* NEW: accent border on hover */
  border-radius: 12px;                     /* NEW: slight radius expansion */
}


.gallery-card:hover .gallery-image {
  transform: scale(1.04);
}

/* Gallery lightbox overlay */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox-backdrop {
  position: fixed;
  inset: 0; /* full viewport */
  background: rgba(0, 0, 0, 0.8);
  z-index: 0;
}

.gallery-lightbox-image {
  position: relative;
  width: 90vw;
  height: 90vh;          /* ensure there is height to draw into */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.8); /* highlight edge */
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9); /* ring effect like toggle */
  z-index: 2;
}


.gallery-lightbox-close:hover {
  background: var(--color-lightbox-hover-bg);
  border-color: var(--color-lightbox-hover-border);
}




/* TESTIMONIALS SECTION - New Design */
.testimonials-section {
  background-color: var(--color-bg-secondary);
}

.testimonial-card-new {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.testimonial-image-wrapper {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-bg-secondary);
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-content {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* small prev/next controls for testimonials */
.testimonial-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* Ensure testimonial arrows are visible in both light and dark theme */
.testimonial-controls button i {
  color: var(--color-text-primary) !important;
  font-size: 18px;
}

.testimonial-controls button:hover {
  transform: translateY(-2px);
}

.testimonial-controls-right {
  left: auto;
  right: -20px;
}

.testimonial-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 0 16px 0;
  flex-shrink: 0;
}

.testimonial-text-new {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  font-style: italic;
  margin: 0 0 16px 0;
}

.testimonial-author-new {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.testimonial-occupation {
  font-style: italic;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-left: 4px;
}

.testimonial-location {
  display: inline;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.testimonial-dots {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
}

/* Mobile responsiveness for testimonial card */
@media (max-width: 768px) {
  .testimonial-card-new {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 32px 24px;
  }
  
  .testimonial-image-wrapper {
    width: 120px;
    height: 120px;
  }
  
  .testimonial-content {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  
  .testimonial-icon {
    margin: 0 auto 16px;
  }
  
  .testimonial-author-new {
    line-height: 1.6;
  }
  
  .testimonial-dots {
    justify-content: center;
  }
}

/* Slide animations for testimonial card */
@keyframes testimonial-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes testimonial-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* base: ensure smooth transform */
.testimonial-card-new {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* helper classes JS will toggle */
.testimonial-slide-from-right {
  animation: testimonial-slide-in-right 0.35s ease both;
}

.testimonial-slide-from-left {
  animation: testimonial-slide-in-left 0.35s ease both;
}


.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border);
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--color-accent);
}

/* CALCULATOR SECTION */
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.calculator-intro h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 12px;
  font-weight: 400;
  color: var(--color-text-primary);
}

.calculator-intro p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
}

.info-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.info-list li {
  margin-bottom: 4px;
}

.calculator-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

/* Form controls */
.calculator-form,
#leadForm {
  display: grid;
  gap: 16px;
}

.form-row {
  display: block;
}

.form-row-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

input,
select,
textarea {
  font: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-input-border);
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  font-size: 14px;
  width: 100%;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.16);
  background-color: var(--color-bg);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  background-color: var(--color-bg-secondary);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

textarea {
  resize: vertical;
  font-family: inherit;
}

/* Calculator result */
.calculator-result {
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-secondary);
  margin-top: 8px;
}
/* Calculator result */
.calculator-result {
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-secondary);
  margin-top: 8px;
  display: block; /* Make sure it's visible */
  opacity: 1;
}

.result-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin: 0 0 8px;
  font-weight: 500;
}

.result-value {
  margin: 0 0 8px;
  font-size: 24px; /* Made bigger for visibility */
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.result-sub {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.result-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin: 0 0 4px;
  font-weight: 500;
}

.result-value {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.result-sub {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.calculator-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* FORM SECTION */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.form-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 12px;
  font-weight: 400;
  color: var(--color-text-primary);
}

.form-copy p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  font-size: 15px;
}

/* Form benefits grid - 3 columns + full-width map row */
.form-benefits {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-card);
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.info-card p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Map card - Full width, same height as other cards */
.info-card-map {
  grid-column: 1 / -1; /* Span all 3 columns */
  padding: 0; /* Remove padding to let iframe fill */
  overflow: hidden;
  position: relative;
  min-height: 275px; /* Match approximate height of info-card */
  display: none; /* Hidden on mobile */
}

.info-card-map h3 {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a !important; /* Force dark text on white background */
  padding: 8px 12px;
  border-radius: 6px;
  margin: 0;
  z-index: 10;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .info-card-map h3 {
  background: rgba(26, 26, 26, 0.95);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


.info-card-map h3 i {
  color: var(--color-accent);
}

.info-card-map iframe {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
  border-radius: var(--radius-md);
  position: absolute; /* Add this */
  top: 0;
  left: 0;
}

/* Apply dark filter in dark mode */
[data-theme="dark"] .info-card-map iframe {
  filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(0.9);
}


/* Show/hide maps based on theme */
.map-dark {
  display: none;
}

.map-light {
  display: block;
}

[data-theme="dark"] .map-dark {
  display: block;
}

[data-theme="dark"] .map-light {
  display: none;
}

/* Show map on desktop only */
@media (min-width: 1024px) {
  .info-card-map {
    display: block;
  }
}

/* Mobile: Stack cards vertically, hide map */
@media (max-width: 1023px) {
  .form-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-soft);
}

.form-consent {
  font-size: 13px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.checkbox input {
  margin-top: 3px;
  width: auto;
  cursor: pointer;
}

.form-footnote {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.form-status {
  margin-top: 8px;
  font-size: 13px;
  min-height: 20px;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #b91c1c;
}

/* FAQ */
.faq-container {
  max-width: 800px;
}

.faq-list {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background-color: var(--color-bg-card);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text-primary);
}

.faq-question span:first-child {
  flex: 1;
  text-align: left;
}

.faq-icon {
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-left: 16px;
  font-size: 20px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: max-height 220ms ease, padding-bottom 220ms ease;
}

.faq-answer p {
  margin: 0 0 16px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 8px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
/* ===== CALCULATOR SECTION (FULL WORKING REPLACEMENT) ===== */

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.calculator-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

.calculator-form {
  display: grid;
  gap: 16px;
}

.form-row-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.calculator-result {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-secondary);
  display: block;
}

/* Estimate CTA Button - Full width, not overflowing */
.sa-estimate-box .sa-estimate-cta {
  /* override global .btn and .btn-header */
  display: block !important;
  margin: 16px 0 0 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;

  /* remove inherited side padding from .btn/.btn-header */
  padding: 12px 0 !important;

  /* center the text inside */
  text-align: center !important;
}

.result-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin: 0 0 4px;
}

.result-value {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.result-sub {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}


/* Keep content elements above the background (single consolidated rule) */
.contact-inner,
.contact-grid-new,
.contact-details-new,
.section-header-white {
  position: relative;
  z-index: 2;
}




/* Keep container layout behavior (container should not clip the background) */
.container {
  max-width: 1200px; /* keep your max width */
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  /* IMPORTANT: do not use overflow:hidden here for sections with full-bleed backgrounds */
}



/* Retain the same contact grid styling from LSC but center single-card layouts gracefully */
.contact-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 24px 0;
  align-items: start;
}

/* Contact section: full-bleed background and centered content */
.contact-section {
  position: relative;
  overflow: visible; /* allow bg to be full-bleed */
  padding: 60px 0;
}

/* Contact background — match hero overlay exactly */
.contact-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  min-height: 360px;

  /* same stacked background as hero:
     1) vertical gradient (to darken top→bottom)
     2) the image itself
  */
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0,45), rgba(0, 0, 0, 0.75)),
    url("../images/gallery/abc-kitchen-main.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* angled overlay that hero uses (match .hero-overlay) */
.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, var(--color-hero-overlay), var(--color-hero-overlay));
}



/* content should sit above overlay */
.contact-inner,
.contact-grid-new,
.contact-details-new,
.section-header-white,
.contact-col-new {
  position: relative;
  z-index: 2;
}


/* CONTACT CARD — FINAL authoritative block (replace older scattered blocks with this) */
/* Replace the old consolidated block with the following exact block. This sets explicit color and
   forces children to inherit so other scattered rules cannot force black/white. Keep only this one. */

.contact-col-new {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg, 10px);
  border: 1px solid var(--color-contact-border);
  box-shadow: 0 12px 36px var(--color-contact-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  position: relative;
  z-index: 2;
  /* Force card color at the card level with very high priority so children inherit predictably */
  color: rgba(17,17,17,0.95) !important;          /* default assume light theme */
}

/* Force children to inherit the card color (important to override scattered rules) */
.contact-col-new, .contact-col-new * {
  color: inherit !important;
}
.contact-col-new, .contact-col-new * { color: inherit !important; }

/* Let the phone/email strip manage its own color instead of inheriting card color */
.contact-col-new .contact-details-new {
  color: inherit;
}

/* Light theme: phone/email use same color as Contact Us */
:root:not([data-theme="dark"]) .contact-section .contact-details-new {
  color: #ffffff;
}

/* Dark theme: keep phone/email white as well */
:root[data-theme="dark"] .contact-section .contact-details-new,
body[data-theme="dark"] .contact-section .contact-details-new {
  color: #ffffff;
}


/* Light theme: visible frosted glass by default and readable dark text */
:root:not([data-theme="dark"]) .contact-col-new,
body:not([data-theme="dark"]) .contact-col-new {
  background: linear-gradient(to bottom, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.58) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* color already forced on .contact-col-new above; keep it consistent */
  box-shadow: 0 14px 36px rgba(18,24,32,0.08);
}

/* Light hover: subtle lift and slightly stronger glass (text remains inherited dark) */
:root:not([data-theme="dark"]) .contact-col-new:hover,
body:not([data-theme="dark"]) .contact-col-new:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(18,24,32,0.12);
  background: linear-gradient(to bottom, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.72) 100%);
}

/* Dark theme: set card color to light (explicit) and set dark background */
:root[data-theme="dark"] .contact-col-new,
body[data-theme="dark"] .contact-col-new,
[data-theme="dark"] .contact-col-new {
  background: rgba(16,24,40,0.48);
  color: var(--color-text-primary) !important;  /* ensure card-level light text in dark theme */
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Dark hover: keep card dark on hover and text light */
:root[data-theme="dark"] .contact-col-new:hover,
body[data-theme="dark"] .contact-col-new:hover,
[data-theme="dark"] .contact-col-new:hover {
  background: rgba(10,16,28,0.60) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.62) !important;
  transform: translateY(-6px) !important;
  color: var(--color-text-primary) !important;
}

/* Typography — let everything inherit from the card */
.contact-col-new i { font-size:32px; margin-bottom:14px; display:block; color: var(--color-accent) !important; }
.contact-col-new h3 { margin:0 0 8px; font-size:18px; font-weight:600; text-transform:uppercase; letter-spacing:0.03em; color: inherit !important; }
.contact-col-new p { margin:0; font-size:0.95rem; line-height:1.6; color: inherit !important; opacity: 0.95; }




/* Make contact icons follow the same color as the phone/email text */
.contact-details-new .contact-item-new i {
  color: inherit !important;
}


/* Ensure transparency shows the image below */
.contact-col-new,
.contact-details-new .contact-item-new {
  background-clip: padding-box !important;
}


/* Typography inside the card — keep contrast and inheritance */
.contact-col-new i { color: var(--color-accent); font-size:32px; margin-bottom:14px; display:block; }
.contact-col-new h3 { margin:0 0 8px; font-size:18px; font-weight:600; text-transform:uppercase; letter-spacing:0.03em; color: inherit; }
.contact-col-new p { margin:0; color: inherit !important;
 font-size:0.95rem; line-height:1.6; }

/* Ensure contact details row inherits readable colors from parent card when placed inside it */
.contact-details-new .contact-item-new,
.contact-details-new .contact-item-new a {
  color: inherit;
}

/* Dark theme override: exact dark glass look you had (keeps existing working style) */
[data-theme="dark"] .contact-col-new {
  background: rgba(16, 24, 40, 0.48); /* translucent dark card that matches theme */
  color: var(--color-text-primary);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .contact-col-new p,
[data-theme="dark"] .contact-details-new .contact-item-new {
  color: rgba(241, 245, 249, 0.90);
}



/* Retain the same contact grid styling from LSC but center single-card layouts gracefully */
.contact-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 24px 0;
  align-items: start;
}

/* If you only want a single centered location card, the following helper will center it */
/* Usage in HTML: put a single .contact-col-new inside .contact-grid-new, it will be centered. */
.contact-grid-new > .contact-col-new {
  justify-self: center;
  width: min(520px, 100%); /* ensures single card doesn't grow too wide on large screens */
}




.contact-col-new i {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
  color: var(--color-accent);
}

.contact-col-new h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-col-new p {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
  color: inherit;                /* let it follow the card’s color */
  text-shadow: 0 1px 0 rgba(255,255,255,0.60);
  opacity: 1;
}



/* Contact details row below cards */
.contact-details-new {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 28px;
  z-index: 2;
  position: relative;
}

/* contact items should inherit the card color (keeps light/dark correct) */
.contact-item-new {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;           /* follow the card's computed color */
  font-size: 15px;
}

/* keep icons accent-colored and links inheriting */
.contact-item-new i { color: var(--color-accent); }
.contact-item-new a { color: inherit; text-decoration: none; }


/* force links and icons inside contact items to inherit, but keep accent color for icons */
.contact-item-new i { color: var(--color-accent); }
.contact-item-new a { color: inherit; text-decoration: none; }


.contact-item-new i {
  font-size: 20px;
  color: var(--color-accent);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .contact-grid-new {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 18px 0;
  }
  .contact-grid-new > .contact-col-new {
    width: 100%;
    justify-self: stretch;
  }
  .contact-section {
    min-height: auto;
    padding: 40px 0;
  }
    .tabs-scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .tabs-scroll-dot {
    display: inline-block;          /* make span box-like */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
  }

  .tabs-scroll-dot.active {
    background: var(--color-accent);
  }
}

@media (max-width: 520px) {
  .contact-section {
    padding: 30px 0;
  }
  .contact-details-new {
    gap: 18px;
    flex-direction: column;
    align-items: center;
  }
}

/* VISUALISE WITH US SECTION (new) */
/* spacing above this section: match the spacing above the "A legacy of craftsmanship..." section,
   reduce blank space as requested */
.visualise-section {
  padding-top: 40px; /* half the usual top padding to reduce blank space */
  padding-bottom: 80px;
  background-color: var(--color-bg);
}

.visualise-section .section-header {
  margin-bottom: 40px; /* matches LSC section header spacing */
}

/* horizontal non-wrapping flow of 5 cards */
.visualise-grid {
  position: relative;
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding: 20px 10px 40px;


  scroll-behavior: smooth;
}

/* background "string" connecting cards */
.visualise-grid::before {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--color-border), var(--color-accent));
  opacity: 0.16;
  border-radius: 4px;
  z-index: 0;
}

/* each card */
.visualise-card {
  --card-width: 260px;
  display: inline-flex;
  flex: 0 0 var(--card-width);
  min-width: var(--card-width);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background-color: var(--color-bg-card);
  color: var(--color-text-primary);
  z-index: 1;
  padding: 20px;
  align-items: flex-end;
}

/* card background image layer */
.visualise-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(3px) brightness(0.6);
  transform-origin: center;
  z-index: 0;
}

/* content sits above bg */
.visualise-card .content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* title and step number */
.visualise-card .step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.visualise-card .step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.visualise-card h4 {
  margin: 0;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

/* description */
.visualise-card p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  line-height: 1.4;
}

/* Zig-zag pattern: cards 1, 3, 5 positioned up; cards 2, 4 positioned down */
.visualise-card:nth-child(odd) {
  transform: translateY(-50px);
}

.visualise-card:nth-child(even) {
  transform: translateY(50px);
}


/* make cards slightly bigger on larger screens */
@media (min-width: 1200px) {
  .visualise-card {
    --card-width: 300px;
    padding: 26px;
  }
  /* Maintain zig-zag pattern on larger screens */
  .visualise-card:nth-child(odd) {
    transform: translateY(-50px);
  }
  .visualise-card:nth-child(even) {
    transform: translateY(50px);
  }
}


/* circles on the connector to mark each step (small) */
.visualise-card::after {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 3px solid var(--color-accent);
  z-index: 1;
}

/* first card: hide left circle */
.visualise-card:first-child::after {
  display: none;
}

/* last card: add right circle to close the flow */
.visualise-card:last-child::before {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 3px solid var(--color-accent);
  z-index: 1;
}

/* scrollbar styles for nice look (optional) */
.visualise-grid::-webkit-scrollbar {
  height: 10px;
}
.visualise-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 10px;
}

/* ensure visualise section does not wrap cards on smaller screens:
   still horizontal and scrollable */
@media (max-width: 1024px) {
.visualise-track-wrapper {
    padding: 0 1rem; 
    margin: 0; /* Removed negative margin causing overflow */
    width: 100%;
    box-sizing: border-box;
  }
  
  .visualise-track {
    gap: 20px;
    padding: 16px 0;
  }
  
  .visual-card {
    flex: 0 0 98%; /* ALMOST full width */
    min-width: 0;
    max-width: none;
    margin: 0 auto;
    transform: none !important;
  }
  
  .scroll-indicators {
    padding: 0 1.5rem;
  }
}





/* Footer */
.site-footer {
  background-color: var(--color-neutral);
  padding: 40px 0 24px;
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: background-color 0.3s ease;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 24px;
}
.footer-logo {
  margin-bottom: 8px;
}
.footer-col h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li + li {
  margin-top: 4px;
}
.footer-col a {
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--color-accent);
}
/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-border);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  text-align: center;
  font-size: 12px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .tab-layout,
  .calculator-layout,
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dcba-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid-new {
    grid-template-columns: 1fr;
  }
  .legacy-number {
  display: inline-block;
  min-width: 3ch;
}
}
@media (max-width: 768px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    height: 64px;
    justify-content: space-between;
  }

  /* NEW: keep button + burger on the right */
  .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
  }

  /* Keep header CTA sizing consistent on small layouts — slightly reduced */
  .btn-header {
    height: calc(var(--btn-height) - 8px);
    padding: 0 14px;
    font-size: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px 16px;
    display: none;
    box-shadow: 0 4px 8px var(--color-shadow);
  }

  .nav-list.open {
    display: flex;
  }

  .hero {
    min-height: 60vh;
    background-attachment: scroll;
  }

  .hero-content {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-actions {
    max-width: 100%;
  }

  .hero-highlights {
    gap: 20px;
  }

  .form-row-inline {
    grid-template-columns: 1fr;
  }

  .form-benefits {
    grid-template-columns: 1fr;
  }

  /* Hide info cards on mobile only */
  .info-card {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .tab-image-wrapper,
  .tab-image {
    min-height: 280px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tab-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
  }
  
  .tab-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    min-height: 44px !important;
    padding: 12px 16px !important;
  }
  
  /* Fix wrapper divs that contain buttons */
  .tab-content > div,
  .tab-content > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
    margin-top: 16px !important;
  }

  .dcba-grid {
    grid-template-columns: 1fr;
  }

  .contact-details-new {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
  }

  .theme-toggle {
    top: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .visualise-grid {
    padding-left: 10px;
    padding-right: 10px;
  }

    /* Hero highlight sizes – mobile only */
  .hero-highlights {
    gap: 16px;
  }

  .hero-highlights .highlight-icon {
    font-size: 20px;      /* smaller emoji icon */
  }

  .hero-highlights .highlight-number {
    font-size: 18px;      /* slightly smaller number */
  }

  .hero-highlights .highlight-label {
    font-size: 13px;      /* slightly smaller caption */
  }

  /* Calculator labels & unit text – mobile only */
  .sa-calculator-section .sa-field-label,
  .sa-calculator-section .sa-units-inline .sa-units-text,
  .sa-calculator-section .sa-units-inline .sa-unit-pill {
    font-size: 13px;
  }

  /* Keep Width/Kitchen layout rows aligned on small screens */
  .sa-calculator-section .sa-field-label-row {
    gap: 6px;
    flex-wrap: wrap;
  }

  /* ===== NAVBAR RESPONSIVE FIXES ===== */
  
  /* Tighten spacing between nav elements */
  .main-nav {
    gap: 6px !important;
  }
  
  /* Make logo slightly smaller on mobile */
  .logo {
    font-size: 16px !important;
  }
  
  .logo-img {
    width: 34px !important;
    height: 34px !important;
  }
  
  /* Reduce Instagram icon size and spacing */
  .nav-instagram {
    font-size: 22px !important;
    margin-right: 4px !important;
    margin-left: 20px !important;
  }
  
  /* Make CTA button more compact */
  .btn-header {
    font-size: 11px !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
  }
}

/* Small phones - tighter layout */
@media (max-width: 430px) {
  .logo {
    font-size: 15px !important;
  }
  
  .logo-img {
    width: 32px !important;
    height: 32px !important;
  }
  
  /* Keep Instagram but make it smaller */
  .nav-instagram {
    font-size: 20px !important;
    margin: 0 3px 0 20px !important;
  }
  
  .btn-header {
    font-size: 10px !important;
    padding: 0 8px !important;
  }
}

/* Extra small screens (iPhone SE, etc) - even tighter */
@media (max-width: 375px) {
  .header-inner {
    padding: 0 12px !important; /* Reduce container padding */
  }
  
  .logo {
    font-size: 14px !important;
  }
  
  .logo-img {
    width: 28px !important;
    height: 28px !important;
  }
  
  .nav-instagram {
    font-size: 18px !important;
    margin: 0 2px 0 20px !important;
  }
  
  .btn-header {
    padding: 0 7px !important;
  }
  
  .main-nav {
    gap: 4px !important;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}



[data-theme="dark"] .contact-details-new .contact-item-new,
[data-theme="dark"] .contact-details-new .contact-item-new a {
  color: var(--color-text-primary) !important;
}

/* Image handling */
img {
  display: block;
  max-width: 100%;
  height: auto;
}
img[src=""],
img:not([src]) {
  opacity: 0;
}
/* -----------------------------
   /* -----------------------------
   Visualise with us — updated styles
   REPLACE the previous Visualise block with this
----------------------------- */
/* -----------------------------
   Visualise with us — fixed, responsive layout
   Replace the previous Visualise block with this
----------------------------- */

/* VISUALISE WITH US - MOBILE HORIZONTAL SCROLL */
.visualise-section {
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.visualise-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0.45)), 
  url('../images/gallery/Visualise.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.visualise-track-wrapper {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
  max-width: var(--container-width);
  padding: 0 20px;
  box-sizing: border-box;
}

.visualise-track {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  width: 100%;
  margin: 18px 0;
  position: relative;
  box-sizing: border-box;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.visualise-track::-webkit-scrollbar {
  display: none;
}

.visualise-track::before {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(124, 58, 237, 0.12);
  border-radius: 4px;
  z-index: 0;
}

.visual-card {
  position: relative;
  z-index: 2;
  flex: 0 0 72%;
  min-width: 260px;
  max-width: 300px;
  padding: 18px;
  border-radius: 12px;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  background: rgba(6,6,6,0.36);
  color: white;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-sizing: border-box;
  scroll-snap-align: center;
}

.visual-card:hover {
  box-shadow: 0 18px 36px rgba(0,0,0,0.36);
  z-index: 10;
  position: relative;
}

/* Desktop: combine hover lift with zig-zag transforms */
@media (min-width: 1025px) {
  /* Explicitly reset zig-zag position for non-hovered cards (no transition) */
  .visual-card:nth-child(odd):not(:hover) {
    transform: translateY(-50px);
    transition: box-shadow 180ms ease;
  }
  
  .visual-card:nth-child(even):not(:hover) {
    transform: translateY(50px);
    transition: box-shadow 180ms ease;
  }
  
  /* Apply hover transform with transition only on the hovered card */
  .visual-card:nth-child(odd):hover {
    transform: translateY(calc(-50px - 8px));
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
  
  .visual-card:nth-child(even):hover {
    transform: translateY(calc(50px - 8px));
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
}

/* Mobile scroll indicators */
.scroll-indicators {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  position: sticky;
  left: 0;
  z-index: 3;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 200ms ease;
}

.scroll-dot.active {
  background: var(--color-accent);
}

/* DESKTOP - Keep exactly as is */
@media (min-width: 1025px) {
  .visualise-track {
    overflow: visible !important;
    scroll-snap-type: none;
  }
  .visual-card {
    flex: 1 1 18%;
    min-width: 220px;
    max-width: none;
  }
  
  /* Zig-zag pattern: cards 1, 3, 5 up; cards 2, 4 down */
  .visual-card:nth-child(odd) {
    transform: translateY(-50px);
  }
  
  .visual-card:nth-child(even) {
    transform: translateY(50px);
  }
}

/* MOBILE ONLY */
@media (max-width: 1024px) {
  .scroll-indicators {
    display: flex;
  }
  .visual-card {
    flex: 0 0 80%;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .visual-card {
    min-width: 260px;
  }
}


/* Cards sizing: use flexible math so 5 fit without overflow.
   Use gap count (4 gaps) to compute max widths visually. */
.visual-card {
  position: relative;
  z-index: 2;
  /* Allow cards to shrink but keep readable sizes */
  flex: 1 1 18%;
  min-width: 150px;      /* don't get too narrow for readability */
  max-width: calc((100% - 4 * 22px) / 5); /* ensure five across */
  padding: 18px;
  border-radius: 12px;

  /* Stronger glass effect for contrast */
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  background: rgba(6,6,6,0.36); /* slightly dark glass for readability */

  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);

  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-sizing: border-box;
  overflow: hidden;
}

.visual-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.32);
}

/* On mobile, ensure no zig-zag transform */
@media (max-width: 1024px) {
  .visual-card:nth-child(odd),
  .visual-card:nth-child(even) {
    transform: none;
  }
  
  /* Simple hover lift on mobile with z-index priority */
  .visual-card:hover {
    transform: translateY(-8px) !important;
    z-index: 10 !important;
  }
}

/* Step label + text */
.visual-step {
  font-size: 12px;
  font-weight: 600;
  color: #d8cfff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.visual-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.visual-desc {
  margin: 0;
  color: #e6eef8;
  font-size: 13px;
  line-height: 1.45;
}

/* Zig-zag pattern allowed on desktop - see @media (min-width: 1025px) below */
/* Keep existing hover lift rule (unchanged) — this ensures all cards animate the same */
.visual-card:hover { transform: translateY(-8px) !important; }

/* Responsive behavior - keep all five on one row until width forces wrap */
@media (max-width: 1200px) {
  .visual-card {
    min-width: 135px;
    padding: 16px;
  }
  .visual-track-gap-adjust {
    gap: 18px;
  }
}

/* At smaller widths make two rows (only when truly needed) but still readable */
@media (max-width: 880px) {
  .visual-track {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  .visual-card {
    flex: 0 0 calc(33.333% - 12px);
    max-width: calc(33.333% - 12px);
    min-width: 120px;
  }
  /* On smaller screens, ensure zig-zag is disabled */
  .visual-card:nth-child(odd),
  .visual-card:nth-child(even) {
    transform: translateY(0) !important;
  }

}

/* Mobile: one card per row */
@media (max-width: 520px) {
  .visual-card {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
  }
  .visual-track::before { left: 12px; right: 12px; }
  .visualise-section { padding: 40px 0; }
}

/* ===== Scoped SA Calculator styles — paste at BOTTOM of your CSS panel ===== */
.sa-calculator-section .sa-calc-grid{
  display:grid;
  grid-template-columns: 1fr 430px;
  gap:36px;
  align-items:start;
  padding:28px 0;
}

/* left */
.sa-calculator-section .sa-calc-intro h2{
  font-size:28px;
  margin:6px 0 8px;
  font-weight:600;
}
.sa-calculator-section .sa-lead{color:#666;margin:0 0 12px}
.sa-calculator-section .sa-features{margin:14px 0 0;padding-left:18px;color:#666;font-size:14px;line-height:1.6}

/* card */
.sa-calculator-section .sa-calc-card{
  background:#fff;
  border-radius:12px;
  padding:20px;
  box-shadow:0 12px 30px rgba(17,17,17,0.06);
  border:1px solid rgba(0,0,0,0.04);
}

/* fields */
.sa-calculator-section .sa-field{display:block;margin-bottom:12px}
.sa-calculator-section .sa-field-label{display:block;font-size:12px;color:#777;margin-bottom:8px;font-weight:600}

/* selects / inputs */
.sa-calculator-section select,
.sa-calculator-section input[type="number"]{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.08);
  font-size:14px;
  background:#fff;
  outline:none;
  transition:box-shadow .12s ease, border-color .12s ease;
}
.sa-calculator-section select:focus,
.sa-calculator-section input[type="number"]:focus{
  box-shadow:0 6px 18px rgba(86,49,242,0.06);
  border-color:#6b46ff;
}

/* two column small fields */
.sa-calculator-section .sa-two-cols{display:flex;gap:12px}
.sa-calculator-section .sa-small{flex:1}

/* estimate box */
.sa-calculator-section .sa-estimate-box{
  margin-top:14px;
  padding:14px;
  background:#f7f7fb;
  border-radius:10px;
  color:#444;
  font-size:14px;
  border:1px solid rgba(0,0,0,0.03);
}
.sa-calculator-section .sa-estimate-head{color:#6b46ff;font-weight:700;font-size:12px;letter-spacing:1px;margin-bottom:8px}
.sa-calculator-section .sa-estimate-value{font-size:20px;font-weight:700;color:#222;min-height:36px;display:flex;align-items:center}
.sa-calculator-section .sa-estimate-note{margin:8px 0 0;font-size:13px;color:#666}

/* auto-hint badge (Font Awesome icon uses font-weight 900) */
/* auto-hint badge — theme-aware */
.sa-calculator-section .sa-auto-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  margin: 12px 0 10px;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  background: linear-gradient(180deg, rgba(124,58,237,0.06), rgba(124,58,237,0.02));
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(124,58,237,0.04);
  transform-origin: center;
  opacity: 0;
  animation: saHintIn .36s ease forwards;
}
.sa-calculator-section .sa-auto-hint i { font-weight: 900; margin-right: 6px; }

@keyframes saHintIn{from{opacity:0;transform:translateY(6px) scale(.995)}to{opacity:1;transform:translateY(0) scale(1)}}

/* responsive */
@media (max-width:980px){
  .sa-calculator-section .sa-calc-grid{grid-template-columns:1fr; padding:18px 0}
  .sa-calculator-section .sa-calc-card{margin-top:12px}
  .sa-calculator-section .sa-auto-hint{font-size:12px;padding:7px 10px}
}

/* ===== SA Calculator: Consultation-style background + layout (append at BOTTOM) ===== */

/* Section-level background — full-bleed like your consultation section */
/* ===== SA Calculator: Consultation-style background + layout (REPLACEMENT) ===== */

/* SECTION background: match Consultation color, full-bleed */
/* SECTION background: consultation-style — use variables (theme-aware) */
.sa-calculator-section.section-form {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 56px 0;
  box-sizing: border-box;
  background-color: var(--color-bg-secondary);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Inside consultation overlay: tighter padding + neutral background */
.consultation-overlay .section.section-form {
  padding: 32px 24px;
  background-color: var(--color-bg);
  margin: 0;
}

.consultation-overlay .sa-form-card {
  box-shadow: none;
}


/* Create a visual gap between THIS section and the next:
   margin-bottom separates the colored block from the following section */
.sa-calculator-section.section-form,
#consultation.section-form {
  margin-bottom: 28px; /* space after this section */
}

/* Also add a small top gap so it doesn't butt up to the section above */
.sa-calculator-section.section-form + .section,
#consultation.section-form + .section {
  margin-top: 24px; /* gives the visible strip of white between backgrounds */
}

/* Decorative overlay element (kept subtle) */
.sa-calculator-section .sa-form-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03; /* subtle */
  background: linear-gradient(180deg, rgba(107,70,255,0.02), rgba(86,49,242,0.01));
  z-index: 1;
}

/* content sits above the overlay */
.sa-calculator-section .sa-container { position: relative; z-index: 2; }

/* two-column layout */
.sa-calculator-section .sa-form-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 20px;
}

/* LEFT copy — remove boxed-card appearance: plain text as in original consultation */
.sa-calculator-section .sa-form-copy h2 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 600;
}
.sa-calculator-section .sa-form-copy p { color: #555; margin: 0 0 16px; }

/* BENEFITS: display inline plain tiles (not boxed cards) */
.sa-calculator-section .sa-form-benefits {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: flex-start;
}
.sa-calculator-section .sa-benefit {
  flex: 1 1 30%;
}
.sa-calculator-section .sa-benefit h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.sa-calculator-section .sa-benefit p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .logo-img {
    width: 140px !important;
  }
}


/* Hide sa-benefit cards on mobile only */
@media (max-width: 768px) {
  .sa-calculator-section .sa-benefit {
    display: none;
  }
}



/* If you left the old .sa-info-card in the HTML, neutralize its card styles:
   this ensures no white boxes appear even if markup wasn't changed */
.sa-calculator-section .sa-info-card{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

/* calculator card (right) — variable-driven (dark-friendly) */
.sa-calculator-section .sa-form-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-raised);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

/* In overlay, let the dialog provide the main shadow */
.consultation-overlay .sa-form-card {
  box-shadow: none;
}

/* fields (scoped) */
/* keep field spacing as-is */
.sa-calculator-section .sa-field {
  display: block;
  margin-bottom: 12px;
}

/* base label (no margin here) */
.sa-calculator-section .sa-field-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* Width + Units row: purely layout, no vertical margin */
.sa-calculator-section .sa-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0; /* change this to 0 */
}

/* Card-specific: give ALL labels (Length and Width) the same bottom gap */
.sa-calculator-section .sa-form-card .sa-field-label {
  margin-bottom: 8px;
}




/* Inline container for Units text + pill */
.sa-calculator-section .sa-units-inline {
  display: inline-flex;      /* or flex; keep your existing display if any */
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;        /* 8px below Units + pill */
}


/* Make Units text match Length/Width (13px) */
.sa-calculator-section .sa-units-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Make pill text also 13px to match */
.sa-calculator-section .sa-unit-pill {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.5);
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.12),
    rgba(124, 58, 237, 0.04)
  );
  color: var(--color-accent);
  font-size: px;       /* was 11/12, set to 13 */
  font-weight: 600;      /* same as Length/Width */
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}



.sa-calculator-section .sa-units-text {
  color: var(--color-text-secondary);
}

/* Units pill: match your calculator pill style */
.sa-calculator-section .sa-unit-pill {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 30, 156);
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.12),
    rgba(124, 58, 237, 0.04)
  );
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}

.sa-calculator-section .sa-unit-pill:hover {
  border-color: rgba(16, 30, 156);
  color: var(--color-text-secondary);
}


/* selects / inputs (scoped) */
.sa-calculator-section select,
.sa-calculator-section input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-input-border);
  font-size: 14px;
  background: var(--color-bg);
  color: var(--color-text-primary);
  outline: none;
  transition: box-shadow .12s ease, border-color .12s ease;
}
.sa-calculator-section select:focus,
.sa-calculator-section input[type="number"]:focus {
  box-shadow: 0 6px 18px rgba(86,49,242,0.06);
  border-color: var(--color-accent);
  background: var(--color-bg);
}

/* Hide native number spinners */
.sa-calculator-section input[type="number"]::-webkit-outer-spin-button,
.sa-calculator-section input[type="number"]::-webkit-inner-spin-button {
  appearance: none;           /* standard */
  -webkit-appearance: none;   /* WebKit */
  margin: 0;
}

.sa-calculator-section input[type="number"] {
  appearance: textfield;      /* standard */
  -moz-appearance: textfield; /* Firefox */
}


/* Wrapper for custom arrows */
.sa-calculator-section .sa-number-wrap {
  position: relative;
  display: inline-flex;
  width: 100%;
}

/* Input leaves room for arrows on the right */
.sa-calculator-section .sa-number-wrap input[type="number"] {
  padding-right: 32px;
}

/* Custom arrow buttons stacked on the right */
.sa-calculator-section .sa-number-btn {
  position: absolute;
  right: 8px;
  width: 16px;
  height: 12px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

/* Up arrow above, down below */
.sa-calculator-section .sa-number-up {
  top: 10px;
}
.sa-calculator-section .sa-number-down {
  bottom: 10px;
}

/* Chevron arrows (no housing box) */
.sa-calculator-section .sa-number-up::before,
.sa-calculator-section .sa-number-down::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.sa-calculator-section .sa-number-up::before {
  transform: rotate(-135deg); /* up */
}
.sa-calculator-section .sa-number-down::before {
  transform: rotate(45deg);   /* down */
}

/* Hover: slightly brighter accent */
.sa-calculator-section .sa-number-btn:hover {
  color: var(--color-accent-hover);
}


/* two column small fields */
.sa-calculator-section .sa-two-cols{display:flex;gap:12px}
.sa-calculator-section .sa-small{flex:1}

/* auto-hint badge */
/* auto-hint badge — theme-aware */
.sa-calculator-section .sa-auto-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  margin: 12px 0 10px;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  background: linear-gradient(180deg, rgba(124,58,237,0.06), rgba(124,58,237,0.02));
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(124,58,237,0.04);
  transform-origin: center;
  opacity: 0;
  animation: saHintIn .36s ease forwards;
}
.sa-calculator-section .sa-auto-hint i { font-weight: 900; margin-right: 6px; }

@keyframes saHintIn{from{opacity:0;transform:translateY(6px) scale(.995)}to{opacity:1;transform:translateY(0) scale(1)}}

/* estimate box */
/* estimate box — theme-aware */
.sa-calculator-section .sa-estimate-box {
  margin-top: 14px;
  padding: 14px;
  background: var(--color-bg-secondary);
  border-radius: 10px;
  color: var(--color-text-primary);
  font-size: 14px;
  border: 1px solid var(--color-border);
}
.sa-calculator-section .sa-estimate-head {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.sa-calculator-section .sa-estimate-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.sa-calculator-section .sa-estimate-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}


/* responsive */
@media (max-width:980px){
  .sa-calculator-section.section-form .sa-form-layout{grid-template-columns:1fr;gap:18px;padding:10px}
  .sa-calculator-section .sa-form-card{margin-top:12px}
  .sa-calculator-section .sa-auto-hint{font-size:12px;padding:7px 10px}
}
/* ===== SA Calculator: theme-friendly overrides (paste at EOF of styles.css) ===== */
/* Uses site CSS variables so the calculator respects [data-theme="dark"] */

.sa-calculator-section.section-form {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

/* overlay already exists — keep subtle but use theme variables */
.sa-calculator-section .sa-form-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background: linear-gradient(180deg, rgba(107,70,255,0.02), rgba(86,49,242,0.01));
  z-index: 1;
}

/* container above overlay */
.sa-calculator-section .sa-container { position: relative; z-index: 2; }

/* Card (right) — use variable-driven colors so dark mode works */
.sa-calculator-section .sa-form-card {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-raised);
  border: 1px solid var(--color-border);
}

/* Copy (left) — text colors from vars */
.sa-calculator-section .sa-form-copy h2 { color: var(--color-text-primary); }
.sa-calculator-section .sa-form-copy p,
.sa-calculator-section .sa-benefit p { color: var(--color-text-secondary); }
.sa-calculator-section .sa-benefit h3 { color: var(--color-text-primary); }

/* Inputs & selects — remove hardcoded white so dark theme shows correct bg */
.sa-calculator-section select,
.sa-calculator-section input[type="number"]{
  background: var(--color-bg);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

/* Focus state respects variables already defined site-wide */
.sa-calculator-section select:focus,
.sa-calculator-section input[type="number"]:focus {
  box-shadow: 0 6px 18px rgba(86,49,242,0.06);
  border-color: var(--color-accent);
  background: var(--color-bg);
}

/* Estimate box uses variables so text/background invert in dark mode */
/* estimate box — theme-aware */
.sa-calculator-section .sa-estimate-box {
  margin-top: 14px;
  padding: 14px;
  background: var(--color-bg-secondary);
  border-radius: 10px;
  color: var(--color-text-primary);
  font-size: 14px;
  border: 1px solid var(--color-border);
}
.sa-calculator-section .sa-estimate-head {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.sa-calculator-section .sa-estimate-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.sa-calculator-section .sa-estimate-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}


/* Auto-hint badge: use variables for text and subtle bg */
.sa-calculator-section .sa-auto-hint{
  color: var(--color-accent);
  background: linear-gradient(180deg, rgba(124,58,237,0.06), rgba(124,58,237,0.02));
  border: 1px solid rgba(124,58,237,0.12);
  box-shadow: 0 8px 20px rgba(124,58,237,0.04);
}

/* Minor: ensure benefit titles don't stay dark on dark bg */
.sa-calculator-section .sa-benefit h3 { color: var(--color-text-primary); }

/* Responsive tweaks remain unchanged but keep colors variable-driven if needed */
@media (max-width:980px){
  .sa-calculator-section .sa-form-layout { grid-template-columns: 1fr; gap:18px; padding:10px; }
  .sa-calculator-section .sa-form-card { margin-top: 12px; }
}
/* Force two-column layout for the calculator section */
.sa-calculator-section .sa-form-layout {
  display: grid;
  grid-template-columns: 1fr 340px; /* left flexes, right fixed */
  gap: 32px;
  align-items: start;
}

/* Reduce card width a bit so it fits comfortably */
.sa-calculator-section .sa-form-card {
  max-width: 340px;
}

/* MOBILE BREAKPOINT — stack vertically at narrower widths */
@media (max-width: 900px) {
  .sa-calculator-section .sa-form-layout {
    grid-template-columns: 1fr;
  }
  
  .sa-calculator-section .sa-form-card {
    max-width: 100%;
  }
}
/* Strong two-column layout: left = copy, right = card */
.sa-calculator-section .sa-form-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;              /* don't wrap to new row */
}

/* Left column (text) grows and is allowed to shrink and wrap text */
.sa-calculator-section .sa-form-copy {
  flex: 1 1 0;                    /* grow, shrink, base 0 so it uses remaining space */
  min-width: 0;                   /* allow flex child to shrink (prevents overflow) */
  padding-right: 8px;
  box-sizing: border-box;
}

/* Right column (card) fixed width, will stay on the right */
.sa-calculator-section .sa-form-card {
  flex: 0 0 320px;                /* don't grow, don't shrink, fixed at 320px */
  width: 320px;
  max-width: 320px;
  box-sizing: border-box;
  margin: 0;                       /* ensure no top margin pushing it down */
}

/* Ensure text in left column wraps instead of forcing layout expansion */
.sa-calculator-section .sa-form-copy p,
.sa-calculator-section .sa-benefit p,
.sa-calculator-section .sa-benefit h3 {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* If you want the calculator slightly smaller, change the 320px above to 300px */

/* Responsive: switch to stacked layout on smaller screens */
@media (max-width: 920px) {
  .sa-calculator-section .sa-form-layout {
    display: block;
  }
  .sa-calculator-section .sa-form-card {
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
  }
  .sa-calculator-section .sa-form-copy { padding-right: 0; }
}

/* Extra defensive rule: if some other style forces the card to display:block 100%,
   this ensures it stays a column child on wide screens */
@media (min-width: 921px) {
  .sa-calculator-section .sa-form-card { display: block; }
}


/* ====== FORCE two-column calculator layout (defensive override) ====== */
.sa-calculator-section .sa-form-layout {
  display: grid !important;
  grid-template-columns: 1fr 280px !important; /* left flexible, right fixed */
  gap: 28px !important;
  align-items: stretch !important; /* STRETCH: Forces both columns to equal height */
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Right column: strict fixed card width */
.sa-calculator-section .sa-form-card {
  width: 280px !important;
  max-width: 280px !important;
  flex: 0 0 280px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  display: block !important;
  position: relative !important;
}

/* Left column: Flex container to allow vertical growth */
.sa-calculator-section .sa-form-copy {
  max-width: calc(100% - 300px) !important;
  min-width: 220px !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Benefits Grid: Fills remaining vertical space */
.sa-calculator-section .sa-form-copy .sa-form-benefits {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: auto 1fr !important; /* Row 1: Text, Row 2: Image */
  gap: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important; /* Grow to fill empty space */
  height: 100% !important;
}

/* New: Full-width Image Container */
.sa-calculator-section .sa-benefit-wide {
  grid-column: 1 / -1 !important; /* Span all 3 columns */
  grid-row: 2 !important;         /* Sit in the second row */
  width: 100% !important;
  height: 100% !important;
  min-height: 180px !important;   /* Minimum height safety */
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04) !important;
  border: 1px solid var(--color-border) !important;
}

.sa-calculator-section .sa-benefit-wide img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Ensures image fills space without distortion */
  display: block !important;
}

/* Make sure benefit children wrap appropriately */

/* Medium screens: keep two-column but shrink card slightly */
@media (max-width: 1200px) {
  .sa-calculator-section .sa-form-layout {
    grid-template-columns: 1fr 260px !important;
  }
  .sa-calculator-section .sa-form-card { width: 260px !important; max-width: 260px !important; }
  .sa-calculator-section .sa-form-copy { max-width: calc(100% - 280px) !important; }
}

/* Mobile: stack vertically */
@media (max-width: 920px) {
  .sa-calculator-section .sa-form-layout {
    display: block !important;
  }
  .sa-calculator-section .sa-form-copy { max-width: 100% !important; padding-right: 0 !important; }
  .sa-calculator-section .sa-form-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 18px !important;
  }
  .sa-calculator-section .sa-form-copy .sa-form-benefits { grid-template-columns: 1fr !important; }
}
/* === Make .sa-form-card match site .form-card visual scale === */
/* Drop at EOF of styles.css */

.sa-calculator-section .sa-form-card {
  /* size */
  width: 420px !important;         /* match the larger site form-card */
  max-width: 420px !important;
  box-sizing: border-box !important;

  /* spacing & shape */
  padding: 22px 20px !important;   /* more roomy like the lead form */
  border-radius: 14px !important;

  /* background & border (use site variables if available) */
  background: var(--color-bg-card, #ffffff) !important;
  border: 1px solid var(--color-border, rgba(16,24,40,0.06)) !important;

  /* shadow similar to site form-card */
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.08) !important;

  /* ensure it sits where we placed it via grid */
  display: block !important;
  position: relative !important;
  float: none !important;
}

/* Slightly larger typography inside the card to match form-card */
.sa-calculator-section .sa-form-card .sa-field-label {
  font-size: 13px !important;
  color: var(--color-text-secondary, #666) !important;
}
.sa-calculator-section .sa-form-card select,
.sa-calculator-section .sa-form-card input[type="number"] {
  height: 44px !important;
  padding: 10px 12px !important;
  font-size: 15px !important;
  border-radius: 8px !important;
}

/* Space out rows so the card breathes like the form-card */
.sa-calculator-section .sa-form-card .sa-field {
  margin-bottom: 14px !important;
}

/* Make the estimate box visually match the other card panels */
.sa-calculator-section .sa-estimate-box {
  padding: 16px !important;
  border-radius: 10px !important;
  background: var(--color-bg-secondary, #faf7ff) !important;
  border: 1px solid var(--color-border, rgba(16,24,40,0.04)) !important;
  box-shadow: none !important;
}

/* Reduce card on narrower layouts to avoid overflow */
@media (max-width: 1200px) {
  .sa-calculator-section .sa-form-card {
    width: 360px !important;
    max-width: 360px !important;
    padding: 18px !important;
  }
}

/* Mobile: full width and stacked */
@media (max-width: 920px) {
  .sa-calculator-section .sa-form-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
  }
  .sa-calculator-section .sa-form-card select,
  .sa-calculator-section .sa-form-card input[type="number"] {
    height: 44px !important;
    font-size: 15px !important;
  }
}


/* ==========================
   MATCH CALCULATOR SECTION TO WORKING FORM LAYOUT
   ========================== */

/* 1) Make calculator layout identical to .form-layout */
.sa-calculator-section .sa-form-layout {
  display: grid !important;
  grid-template-columns: 1fr 420px !important;  /* LEFT flexible, RIGHT fixed card */
  gap: 40px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 1120px !important;   /* MATCH your site container width */
  margin: 0 auto !important;      /* center like working section */
  box-sizing: border-box !important;
}

/* 2) Left column behaves like .form-copy in working section */
.sa-calculator-section .sa-form-copy {
  max-width: 100% !important;     /* allow it to expand properly */
  margin: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* 3) Make the benefit boxes identical to .info-card (one below another is fine) */
.sa-calculator-section .sa-form-benefits {
  display: flex !important;
  flex-direction: column !important;  /* stack vertically */
  gap: 16px !important;
  margin-top: 18px !important;
}

.sa-calculator-section .sa-benefit {
  border-radius: 12px !important;
  padding: 16px !important;
  background: #fff !important;
  border: 1px solid rgba(16,24,40,0.06) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04) !important;
}

/* 4) Make headings + text identical to working section */
.sa-calculator-section .sa-form-copy h2 {
  font-size: 32px !important;
  line-height: 1.15 !important;
  margin-bottom: 10px !important;
}
.sa-calculator-section .sa-form-copy p {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #4a4a4a !important;
}

/* 5) Keep right card exactly aligned */
.sa-calculator-section .sa-form-card {
  width: 420px !important;
  max-width: 420px !important;
  justify-self: end !important;  /* EXACT match to working section card alignment */
  box-sizing: border-box !important;
}

/* 6) Mobile match */
@media (max-width: 920px) {
  .sa-calculator-section .sa-form-layout {
    display: block !important;
  }
  .sa-calculator-section .sa-form-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 24px !important;
  }
}
/* ===== SA: Force left-column text to use theme variables (append at EOF) ===== */
/* Targets the paragraph under .sa-form-copy (the problematic text) */
.sa-calculator-section.section-form .sa-form-copy p {
  color: var(--color-text-secondary) !important;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
}

/* Heading in left column */
.sa-calculator-section.section-form .sa-form-copy h2 {
  color: var(--color-text-primary) !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  font-weight: 400 !important;
  margin: 0 0 8px !important;
}

/* Benefit tiles text */
.sa-calculator-section.section-form .sa-form-benefits .sa-benefit h3 {
  color: var(--color-text-primary) !important;
}
.sa-calculator-section.section-form .sa-form-benefits .sa-benefit p {
  color: var(--color-text-secondary) !important;
}

/* Defensive: ensure no earlier rule forces white background on these small tiles */
.sa-calculator-section.section-form .sa-form-benefits .sa-benefit {
  background: var(--color-bg-card) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-soft) !important;
}



/* If any other rule forces color via a more specific selector, increase specificity here:
   Uncomment the next block to use the most-specific selector. Use only if required. */
/*
.sa-calculator-section.section-form > .sa-container > .sa-form-layout > .sa-form-copy > p {
  color: var(--color-text-secondary) !important;
}
*/
html {
  scroll-behavior: smooth;
}
/* ===== BLOG CARDS (copy/paste at end of CSS) ===== */

.section-heading.center { margin-bottom: 6px; }
.section-sub.center { margin-bottom: 24px; color: var(--muted); }

/* Grid container */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

/* card */
.blog-card {
  background-color: var(--color-bg-card);   /* was #ffffff */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(18,24,31,0.06);
  border: 1px solid rgba(10,10,10,0.04);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(18,24,31,0.09);
}

/* media (image) */
.blog-card .card-media {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #efefef;
}
.blog-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transition: transform 400ms ease;
}
.blog-card:hover .card-media img {
  transform: scale(1.03);
}

/* body */
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}
.card-title {
  font-size: 20px;
  line-height: 1.15;
  margin: 0 0 6px;
  font-weight: 500;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  flex: 1 1 auto;
}

/* footer with CTA aligned bottom */
.card-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

/* reuse your .btn-small or style fallback */
.btn-small {
  padding: 9px 14px;
  border-radius: 22px;
  background: #000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

/* center helper */
.center { text-align: center; }

/* responsive */
@media (max-width: 1100px) {
  .blog-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .blog-cards { grid-template-columns: 1fr; gap: 16px; }
  .blog-card .card-media { height: 180px; }
  .card-title { font-size: 18px; }
}



/* when toggled open via JS (class .open) show the SAME absolute-positioned dropdown
   (this replaces the previous rule which made it static/inline causing the "side" behavior) */
/* Dropdown alignment fix: anchor to left edge of the nav item and ensure parent is inline-block */
.nav-item-dropdown {
  position: relative;
  list-style: none;
  display: inline-block;        /* ensure the dropdown is positioned relative to the exact button area */
  vertical-align: middle;       /* keep nav alignment intact */
}

/* make button block-level so its clickable area matches the visual text */
.nav-drop-toggle {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 8px 10px;
  display: inline-block;        /* block-like so its width is well-defined */
  line-height: 1;
}

/* dropdown panel: flush-left under the button (reliable alignment) */
.nav-dropdown {
  position: absolute;
  top: 100%;                    /* directly under the button */
  left: 0;                      /* align left edge to button's left edge */
  transform: none;              /* remove centering transform to avoid misplacement */
  min-width: 220px;
  background: var(--card, #fff);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 30px rgba(10,10,10,0.06);
  border-radius: 6px;
  padding: 8px 0;
  display: none;
  z-index: 9999;
  pointer-events: auto;
  will-change: transform, opacity;
}

/* item styling unchanged */
.nav-dropdown li { list-style: none; margin: 0; }
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus { background: rgba(0,0,0,0.04); }

/* show on hover for desktop */
@media (hover: hover) and (pointer: fine) {
  .nav-item-dropdown:hover .nav-dropdown,
  .nav-item-dropdown:focus-within .nav-dropdown {
    display: block;
  }
}

/* when toggled open via JS (class .open) show the same absolute dropdown */
.nav-item-dropdown.open .nav-dropdown {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  box-shadow: 0 14px 30px rgba(10,10,10,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

/* mobile: dropdown becomes full-width when nav stacks */
@media (max-width: 980px) {
  
  .nav-dropdown {
    position: static;
    transform: none;
    left: auto;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
  .nav-drop-toggle { width: 100%; text-align: left; padding-left: 0; }

  .hero-highlights {
    justify-content: flex-start;
    text-align: left;
  }

  .highlight-item {
    align-items: flex-start;
  }

  .hero-actions {
    align-items: flex-start;
  }

  .hero-cta {
    align-self: flex-start;
  }

  /* L-shaped tab: extra space between Get details & Book free site visit */
  #tab-l-shape .tab-content > div {
    display: flex;
    flex-direction: row;
    gap: 24px;          /* increase/decrease to taste */
    flex-wrap: wrap;
  }
  
  /* Keep CTA buttons on one line on mobile */
  .tab-panel .tab-content > div {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
  }
  
  .tab-panel .tab-content > div .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 16px !important;
    font-size: 13px !important;
  }
  
}
/* Make "Resources" look exactly like other header links */
.nav-drop-toggle {
  background: transparent;
  border: none;
  cursor: pointer;

  font-size: 14px;                 /* EXACT match */
  font-weight: 500;                /* EXACT match */
  color: var(--color-text-primary);
  letter-spacing: 0.3px;           /* EXACT match */
  padding: 8px 10px;
  line-height: 1;
  text-decoration: none;
  text-transform: none;

  display: inline-flex;
  align-items: center;
  gap: 4px;                        /* spacing before ▼ icon */
}

/* Hover behavior */
.nav-drop-toggle:hover {
  color: var(--color-accent);
}

/* Dark mode compatibility */
[data-theme="dark"] .nav-drop-toggle {
  color: var(--color-text-primary);
}
[data-theme="dark"] .nav-drop-toggle:hover {
  color: var(--color-accent);
}
/* ============================
   Contact card: theme-aware styles
   ============================ */


/* Dark theme override (keeps the exact dark glass look you already have) */
[data-theme="dark"] .contact-col-new {
  background: rgba(16, 24, 40, 0.48); /* translucent dark card that matches theme */
  color: var(--color-text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .contact-col-new p {
  color: rgba(241, 245, 249, 0.85);
}
/* ---------- FORCE: Contact card glass + readable contact items ---------- */
/* Put this at the END of common.css (overrides any earlier conflicting rules) */



/* Small safety: ensure transparency shows background, not white fill */
.contact-col-new,
.contact-details-new .contact-item-new {
  background-clip: padding-box !important;
}
/* ---------- FORCE: dark-mode hover for contact card (prevents white hover in dark theme) ---------- */
:root[data-theme="dark"] .contact-col-new:hover,
body[data-theme="dark"] .contact-col-new:hover {
  background: rgba(10, 16, 28, 0.60) !important; /* slightly stronger dark glass on hover */
  box-shadow: 0 18px 40px rgba(0,0,0,0.62) !important;
  transform: translateY(-6px) !important;
  color: var(--color-text-primary) !important;    /* keep text light */
}

/* ensure internal paragraph/link color remains light on dark hover */
:root[data-theme="dark"] .contact-col-new:hover p,
:root[data-theme="dark"] .contact-col-new:hover .contact-item-new,
body[data-theme="dark"] .contact-col-new:hover p,
body[data-theme="dark"] .contact-col-new:hover .contact-item-new {
  color: rgba(241,245,249,0.95) !important;
}
/* ============================
   AUTHORITATIVE: contact card & contact items (light + dark)
   Place this at the END of common.css
   ============================ */

/* Base container for contact card */
.contact-col-new {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg, 10px);
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 12px 36px rgba(18, 24, 32, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  position: relative;
  z-index: 2;
}

/* LIGHT THEME: visible frosted glass by default and readable dark text */
:root:not([data-theme="dark"]) .contact-col-new,
body:not([data-theme="dark"]) .contact-col-new {
  background: linear-gradient(to bottom, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.58) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(17,17,17,0.95);
  box-shadow: 0 14px 36px rgba(18,24,32,0.08);
}

/* LIGHT HOVER: subtle lift and slightly stronger glass */
:root:not([data-theme="dark"]) .contact-col-new:hover,
body:not([data-theme="dark"]) .contact-col-new:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(18,24,32,0.12);
  background: linear-gradient(to bottom, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.72) 100%);
  color: rgba(17,17,17,0.95);
}

/* DARK THEME: translucent dark glass with light text */
:root[data-theme="dark"] .contact-col-new,
body[data-theme="dark"] .contact-col-new,
[data-theme="dark"] .contact-col-new {
  background: rgba(16,24,40,0.48);
  color: var(--color-text-primary);
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.03);
}

/* DARK HOVER: keep card dark on hover */
:root[data-theme="dark"] .contact-col-new:hover,
body[data-theme="dark"] .contact-col-new:hover,
[data-theme="dark"] .contact-col-new:hover {
  background: rgba(10,16,28,0.60) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.62) !important;
  transform: translateY(-6px) !important;
  color: var(--color-text-primary) !important;
}

/* Typography inside the card — inherit color so light/dark both work */
.contact-col-new i { color: var(--color-accent); font-size:32px; margin-bottom:14px; display:block; }
.contact-col-new h3 { margin:0 0 8px; font-size:18px; font-weight:600; text-transform:uppercase; letter-spacing:0.03em; color: inherit; }
.contact-col-new p { margin:0; font-size:0.95rem; line-height:1.6; color: inherit; opacity: 0.95; }



.contact-details-new .contact-item-new i { 
  color: inherit !important; 
}

:root[data-theme="dark"] .contact-details-new .contact-item-new i,
body[data-theme="dark"] .contact-details-new .contact-item-new i {
  color: rgba(241,245,249,0.92) !important;
}
/* =========================
   CONTACT CARD — authoritative single block
   Place this ONCE at the END of common.css
   ========================= */

/* Base card layout + enforced inheritance so children inherit readable colors */
.contact-col-new {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg, 10px);
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 12px 36px rgba(18, 24, 32, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  position: relative;
  z-index: 2;

  /* Force default readable color at card-level — children should inherit */
  color: rgba(17,17,17,0.95) !important;   /* default assumes light theme */
}

/* Force children to inherit the card color (very high specificity to override scattered rules) */
.contact-col-new,
.contact-col-new * {
  color: inherit !important;
}

/* Let the phone/email strip manage its own color instead of inheriting card color */
.contact-col-new .contact-details-new {
  color: inherit; /* no !important */
}


/* LIGHT THEME: visible frosted glass by default (no hover required) with readable dark text */
:root:not([data-theme="dark"]) .contact-col-new,
body:not([data-theme="dark"]) .contact-col-new {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.62) 0%,
    rgba(255,255,255,0.58) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(17,17,17,0.95) !important;   /* guarantee readable dark text */
  border: 1px solid rgba(16,24,40,0.06);
  box-shadow: 0 14px 36px rgba(18,24,32,0.08);
}

/* LIGHT HOVER: slight lift / stronger glass, text remains the same (inherited) */
:root:not([data-theme="dark"]) .contact-col-new:hover,
body:not([data-theme="dark"]) .contact-col-new:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(18,24,32,0.12);
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.78) 0%,
    rgba(255,255,255,0.72) 100%
  );
  color: rgba(17,17,17,0.95) !important;
}

/* DARK THEME: keep the dark glass look always (no white hover) and light text */
:root[data-theme="dark"] .contact-col-new,
body[data-theme="dark"] .contact-col-new,
[data-theme="dark"] .contact-col-new {
  background: rgba(16, 24, 40, 0.48) !important;
  color: var(--color-text-primary) !important;  /* light text in dark mode */
  box-shadow: 0 12px 36px rgba(0,0,0,0.55) !important;
  border: 1px solid rgba(255,255,255,0.03) !important;
}

/* DARK HOVER: ensure it stays dark on hover and text stays light */
:root[data-theme="dark"] .contact-col-new:hover,
body[data-theme="dark"] .contact-col-new:hover,
[data-theme="dark"] .contact-col-new:hover {
  background: rgba(10, 16, 28, 0.60) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.62) !important;
  transform: translateY(-6px) !important;
  color: var(--color-text-primary) !important;
}

/* Typography inside the card — inherit color so both themes read the same */
.contact-col-new i { color: var(--color-accent) !important; font-size:32px; margin-bottom:14px; display:block; }
.contact-col-new h3 { margin:0 0 8px; font-size:18px; font-weight:600; text-transform:uppercase; letter-spacing:0.03em; color: inherit !important; }
.contact-col-new p { margin:0; font-size:0.95rem; line-height:1.6; color: inherit !important; opacity: 0.95; }

/* CONTACT DETAILS: phone / email must inherit the card color (so they match and remain readable) */
.contact-details-new .contact-item-new,
.contact-details-new .contact-item-new a {
  color: inherit !important;
  text-decoration: none !important;
}



:root[data-theme="dark"] .contact-details-new .contact-item-new i,
body[data-theme="dark"] .contact-details-new .contact-item-new i {
  color: rgba(241,245,249,0.92) !important; /* light icon in dark mode */
}

/* Small safety: transparency should show background under card */
.contact-col-new,
.contact-details-new .contact-item-new {
  background-clip: padding-box !important;
}

/* Ensure dark hover also forces inner text to remain light */
:root[data-theme="dark"] .contact-col-new:hover p,
:root[data-theme="dark"] .contact-col-new:hover .contact-item-new,
body[data-theme="dark"] .contact-col-new:hover p,
body[data-theme="dark"] .contact-col-new:hover .contact-item-new {
  color: rgba(241,245,249,0.95) !important;
}
/* Final: make contact card text theme-aware */
.contact-col-new,
.contact-col-new h3,
.contact-col-new p {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .contact-col-new,
[data-theme="dark"] .contact-col-new h3,
[data-theme="dark"] .contact-col-new p {
  color: var(--color-text-primary) !important;
}

/* ============================
   Home - Wardrobe Section
   ============================ */

.home-wardrobe-section {
  width: 100%;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.home-wardrobe-content {
  margin-bottom: 40px;
}

.home-wardrobe-image {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: 12px;
}

.home-wardrobe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark Mode Support */
[data-theme="dark"] .home-wardrobe-section {
  background-color: var(--color-bg);
}


/* Materials / Finishes / Hardware strip */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
  margin-bottom: 24px;
}

.materials-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  background: #000; /* fallback behind images */
}

.materials-image {
  position: relative;
}

.materials-image img,
.materials-image .materials-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 70% dark overlay strip on image */
.materials-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 16px;

  text-align: center;      /* horizontally center text */
}

.materials-title,
.materials-sub {
  display: block;
}


/* Same centering container as Gallery "View all" */
#materials-strip .section-actions {
  display: flex;
  justify-content: center;
}

/* Responsive: match gallery behaviour */
@media (max-width: 900px) {
  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .materials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
  }
  
  .materials-card {
    flex: 0 0 85%;
    min-width: 85%;
    scroll-snap-align: center;
  }
  
  /* Hide scrollbar but keep swipe functionality */
  .materials-grid::-webkit-scrollbar {
    display: none;
  }
}

/* Materials / Finishes / Hardware strip above Gallery */
#materials-strip .section-header {
  text-align: center;
  margin-bottom: 24px;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.materials-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  background: #000;
  text-decoration: none;
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 2px solid var(--color-accent);     /* NEW: always purple */
  border-radius: 12px;                        /* NEW: slight expansion */
  
}



/* Match gallery hover (lift + stronger shadow) */
.materials-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  border: 2px solid var(--color-accent);  /* NEW: accent border on hover */
  border-radius: 12px;                     /* NEW: slight radius expansion */
}


.materials-image {
  position: relative;
  width: 100%;
  padding-top: 120%; 
}

.materials-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 70% dark overlay strip on image */
.materials-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 14px;
}

.materials-title {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.materials-sub {
  display: block;
  font-size: 13px;
  opacity: 0.9;
}

/* Hover: align with accent theme */
.materials-card:hover .materials-label {
  background: linear-gradient(
    to top,
    rgba(24, 20, 120, 0.85), 
    rgba(15, 23, 42, 0.9)
  );
}

/* Responsive: match gallery behaviour */
@media (max-width: 900px) {
  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .materials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
  }
  
  .materials-card {
    flex: 0 0 85%;
    min-width: 85%;
    scroll-snap-align: center;
  }
  
  /* Hide scrollbar but keep swipe functionality */
  .materials-grid::-webkit-scrollbar {
    display: none;
  }
}


/* =========================
   Gallery section (home)
   ========================= */

#gallery .section-header {
  text-align: center;
  margin-bottom: 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.gallery-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--card, #ffffff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.gallery-image {
  width: 100%;
  padding-top: 70%;          /* controls aspect ratio of the card */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.gallery-title {
  font-size: 15px;
  font-weight: 600;
  padding: 14px 16px 16px;
}

/* Center the button like other section actions */
#gallery .section-actions {
  display: flex;
  justify-content: center;
}

/* Consultation overlay (non-index pages) */

.consultation-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.consultation-overlay.open {
  display: flex;              /* flex only when open */
  align-items: center;        /* vertical center */
  justify-content: center;    /* horizontal center */
}


.consultation-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
}

.consultation-overlay-dialog {
  position: relative;
  max-width: 960px;
  width: 100%;
  margin: 0;
  background: var(--color-bg);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.6);
  overflow: visible; /* Changed from hidden */
  border: 2px solid var(--color-accent);
}

/* Desktop: No scrollbar, dialog auto-sizes to content */
@media (min-width: 769px) {
  .consultation-overlay-dialog {
    max-height: none;
    overflow: visible;
  }
  
  .consultation-overlay-content {
    max-height: none;
    overflow: visible;
  }
}


/* Mobile responsive overlay - scale down for phones */
@media (max-width: 768px) {
  .consultation-overlay-dialog {
    max-width: 94%;
    width: 94%;
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 14px;
  }
  
  .consultation-overlay-content {
    max-height: none;
    overflow-y: visible;
  }
  
  .consultation-overlay-content .section.section-form {
    padding: 16px 14px;
  }
  
  .consultation-overlay-content .form-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .consultation-overlay-content .form-benefits {
    grid-template-columns: 1fr;
  }
  
  .consultation-overlay-content .form-card {
    padding: 14px;
  }
  
  .consultation-overlay-content label {
    font-size: 11px;
  }
  
  .consultation-overlay-content input,
  .consultation-overlay-content textarea {
    font-size: 12px;
    padding: 7px 9px;
  }
  
  .consultation-overlay-content textarea {
    height: 70px;
  }
}

/* Extra small phones like iPhone SE */
@media (max-width: 390px) {
  .consultation-overlay-dialog {
    max-width: 96%;
    width: 96%;
    margin: 10px;
    max-height: 92vh;
  }
  
  .consultation-overlay-content .form-copy h2 {
    font-size: 20px;
  }
}


.consultation-overlay-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-secondary);
  z-index: 2;
}


/* Tighten padding for the cloned section so it feels modal */
.consultation-overlay-content .section.section-form {
  padding: 24px 20px;
}

/* Make form elements more compact in overlay */
.consultation-overlay-content .form-layout {
  gap: 24px;
}

.consultation-overlay-content .form-copy h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.consultation-overlay-content .form-copy p {
  font-size: 14px;
  margin-bottom: 12px;
}

.consultation-overlay-content .form-benefits {
  margin-top: 12px;
  gap: 12px;
}

.consultation-overlay-content .info-card {
  padding: 12px 10px;
}

.consultation-overlay-content .info-card h3 {
  font-size: 13px;
  margin: 0 0 3px;
}

.consultation-overlay-content .info-card p {
  font-size: 12px;
  line-height: 1.4;
}

.consultation-overlay-content .form-card {
  padding: 18px;
}

.consultation-overlay-content .form-row {
  margin-bottom: 10px;
}

.consultation-overlay-content label {
  font-size: 12px;
  margin-bottom: 3px;
}

.consultation-overlay-content input,
.consultation-overlay-content textarea {
  font-size: 16px;  /* Prevents mobile zoom */
  padding: 7px 9px;
}

.consultation-overlay-content textarea {
  height: 80px;
}

.consultation-overlay-content .btn {
  font-size: 13px;
  height: 40px;
  padding: 0 20px;
}


/* Responsive: stack cards on small screens */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Navbar Instagram icon */
.nav-instagram {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: 24px;
  margin-right: 20px; /* Increased from 16px */
  transition: color 0.2s ease;
  text-decoration: none;
  flex-shrink: 0; /* Prevents squeezing */
}

.nav-instagram:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .nav-instagram {
    font-size: 24px;
    margin-right: 0 !important; /* Fixed negative margin */
    margin-left: 12px;
  }
}

/* WARDROBE STRIP */
.section-wardrobe-strip {
  position: relative;
  padding: 60px 0;
  color: #ffffff;
  overflow: hidden;
}

.wardrobe-strip-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url("../images/wardrobes/Wardrobe_01.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: blur(2px); /* Optional: if you want a blurred background */
  transform: scale(1.05); /* Optional: to avoid sharp edges from blur */
}

.wardrobe-strip-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.wardrobe-strip-copy h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  margin: 0 0 4px;
    text-shadow: 
    0 0 20px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 0, 0, 0.8),
    0 2px 3px rgba(0, 0, 0, 1);
}

.wardrobe-strip-copy p {
  font-size: 15px;
  opacity: 0.9;
  margin: 0;
    text-shadow: 
    0 0 20px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 0, 0, 0.8),
    0 2px 3px rgba(0, 0, 0, 1);
}

.wardrobe-strip-action .btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .wardrobe-strip-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* Home Wardrobe Scroll */
.home-wardrobe-scroll-zone {
  height: 250vh;
  position: relative;
  width: 100%;
}

.home-wardrobe-experience {
  position: sticky;
  top: 72px;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.home-wardrobe-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.3s linear;
}

.home-wardrobe-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-wardrobe-frame.frame-2 {
  opacity: 0;
}

.wardrobe-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.wardrobe-cta:hover {
  transform: translate(-50%, -51%) scale(1.05);
  box-shadow: var(--shadow-raised);
}

/* ====== FORCE Calculator Layout & Full-Height Image ====== */

/* 1. Main Container: Grid forces equal height for Left & Right columns */
.sa-calculator-section .sa-form-layout {
  display: grid !important;
  grid-template-columns: 1fr 420px !important; /* Left flexes, Right fixed at 420px */
  gap: 40px !important;
  align-items: stretch !important; /* CRITICAL: Forces equal height */
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2. Left Column: Flex container that consumes full grid cell height */
.sa-calculator-section .sa-form-copy {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important; /* Fill grid cell */
  padding-right: 0 !important;
}

/* 3. Benefits Grid: Grows to fill all empty space in Left Column */
.sa-calculator-section .sa-form-benefits {
  display: grid !important;
  /* 3 columns for top cards */
  grid-template-columns: repeat(3, 1fr) !important; 
  /* Row 1: Auto height (text cards), Row 2: 1fr (fills remaining space for image) */
  grid-template-rows: min-content 1fr !important; 
  gap: 20px !important;
  flex: 1 1 auto !important; /* Flex grow inside parent */
  height: 100% !important;
  margin-top: 24px !important;
}

/* 4. Top 3 Benefit Cards (Ensure they stay in Row 1) */
.sa-calculator-section .sa-benefit {
  grid-row: 1 !important;
  /* Cosmetic styling for the small cards */
  background: var(--color-bg-card, #fff) !important;
  border: 1px solid var(--color-border, #e5e5e5) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
}

/* 5. Wide Image Container: Spans full width & fills Row 2 height */
.sa-calculator-section .sa-benefit-wide {
  grid-column: 1 / -1 !important; /* Span all 3 columns */
  grid-row: 2 !important;         /* Sit in the stretching row */
  position: relative !important;
  width: 100% !important;
  height: 100% !important;        /* Fill the 1fr row height */
  min-height: 250px !important;   /* Minimum height safety */
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}

/* 6. The Image: Absolute positioning to cover the container */
.sa-calculator-section .sa-benefit-wide img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* Ensures entire image is visible */
  display: block !important;
}

/* Right Column (Calculator Card) */
.sa-calculator-section .sa-form-card {
  width: 100% !important;
  height: auto !important;
  align-self: start !important; /* Optional: keeps card specific height if needed, but grid usually stretches cell */
}

/* Mobile: Stack vertically and fix image height */
@media (max-width: 920px) {
  .sa-calculator-section .sa-form-layout {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .sa-calculator-section .sa-form-benefits {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }
  
  .sa-calculator-section .sa-benefit-wide {
    height: 250px !important; /* Fixed height on mobile */
  }
}.sa-wall-dimensions-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }

/* ===== Mobile Fix: Prevent Unit Pill Overlap ===== */
@media (max-width: 768px) {
  /* 1. Push the wall inputs down to create empty space above them */
  .sa-calculator-section .sa-wall-dimensions-container {
    margin-top: 65px !important;
  }

  /* 2. Lift the pill higher into that empty space */
  .sa-calculator-section .sa-pill-container {
    transform: translateY(-55px) !important; /* Overrides the inline -35px - Edit to move pill up or down on mobile */ 
  }
}

/* ===== Hide specific elements on mobile ===== */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}