/* MY Dream HOME - Design System & Custom CSS */
/* Fonts are loaded via <link> in each page's <head> — an @import here would
   chain the request behind this stylesheet and delay first paint. */

:root {
  /* Colors */
  --bg-primary: #FCFBF8;       /* Very Light Plaster Cream */
  --bg-secondary: #FFFFFF;     /* White */
  --color-primary: #093C5D;    /* Slate Sea Blue - Trust & Inspection */
  --color-primary-light: #125682;
  --color-accent: #C5A880;     /* Dirty Gold - Premium Aesthetics */
  --color-accent-hover: #A88B63;
  --text-dark: #121212;        /* Coal Black */
  --text-muted: #555555;       /* Muted Grey */
  --text-light: #FAF6F0;
  --color-border: rgba(197, 168, 128, 0.25); /* Soft Gold Border */
  
  /* Fonts — these are the families actually loaded in <head>.
     Calibri was previously set here, which meant the loaded fonts were never
     used and iOS/Android (no Calibri) silently fell back to Arial. */
  --font-serif: 'Frank Ruhl Libre', 'Georgia', serif;   /* Headings */
  --font-sans: 'Rubik', 'Helvetica Neue', Arial, sans-serif; /* Body */
  --font-primary: var(--font-serif);
  --font-base: var(--font-sans);

  /* Type scale — 8 steps. The site previously rendered 26 distinct sizes
     because sizes were written ad-hoc in inline styles. */
  --fs-xs:   0.875rem;  /* meta, captions */
  --fs-sm:   1rem;
  --fs-base: 1.125rem;  /* body copy */
  --fs-lg:   1.25rem;   /* lead paragraphs */
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;      /* h3 */
  --fs-3xl:  2.5rem;    /* h2 */
  --fs-4xl:  3.25rem;   /* h1 */
  --fs-5xl:  4rem;      /* hero h1, decorative quote marks */

  /* Spacing rhythm */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;

  /* Layout & Animations */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Softer, premium curve */

  /* Radii — 3 steps. `--radius-premium`/`--radius-standard` are kept as
     aliases so existing rules keep working. */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --radius-premium: var(--radius-md);
  --radius-standard: var(--radius-sm);

  /* Elevation — 3 steps, with the old names aliased onto them. */
  --shadow-sm: 0 2px 8px rgba(9, 60, 93, 0.06);
  --shadow-md: 0 12px 28px rgba(9, 60, 93, 0.08);
  --shadow-lg: 0 24px 50px rgba(9, 60, 93, 0.12);
  --shadow-premium: var(--shadow-md);
  --shadow-hover: var(--shadow-lg);
  --shadow-light: var(--shadow-sm);

  --glass-bg: rgba(255, 255, 255, 0.5);
  --border-color: var(--color-border);
}

/* Base Styles with Texture */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Every <img> carries width/height attributes so the browser can reserve space
   and avoid layout shift. The side effect: when CSS sizes only ONE axis, the
   attribute supplies the other and the photo stretches. Defaulting height to
   auto keeps the aspect ratio; any rule that genuinely needs a fixed height
   (hero frame, before/after slider, blog thumbs) is class-scoped and still wins. */
img {
  height: auto;
  max-width: 100%;
}

html {

  font-size: 16px;
  direction: rtl;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  /* Plaster Texture Overlay */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

h1 {
  font-weight: 900;
}

p {
  color: var(--text-muted);
  font-weight: 400;
}

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-premium);
  background-color: rgba(252, 251, 248, 0.75); /* Semi-transparent cream */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Images carry width/height attributes so the browser can reserve space.
   Where CSS sizes only one axis, the other must be auto — otherwise the
   attribute supplies it and the image stretches (the logo rendered 720x140). */
.logo img {
  height: 140px;
  width: auto;
  transition: var(--transition-smooth);
}

header.scrolled .logo img {
  height: 90px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 45px;
  align-items: center;
}

.nav-item {
  position: relative;
  font-weight: 500;
  font-size: var(--fs-lg);
  letter-spacing: 0.5px;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
  color: var(--color-accent);
}

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

.nav-item.nav-highlight {
  color: var(--color-accent);
  font-weight: 700;
  border: 1px solid var(--color-accent);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.nav-item.nav-highlight::after {
  display: none; /* No underline for highlighted button */
}

.nav-item.nav-highlight:hover, .nav-item.nav-highlight.active {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.nav-btn {
  background-color: var(--color-primary);
  color: var(--text-light);
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: var(--fs-base);
  letter-spacing: 0.5px;
  border: 1px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--bg-primary);
  padding: 14px 35px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-base);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-accent);
  box-shadow: 0 8px 25px rgba(197, 168, 128, 0.3);
  position: relative;
  overflow: hidden;
  animation: pulseShine 3s infinite;
}

@keyframes pulseShine {
  0% { box-shadow: 0 8px 25px rgba(197, 168, 128, 0.3); transform: scale(1); }
  50% { box-shadow: 0 12px 35px rgba(197, 168, 128, 0.5); transform: scale(1.02); }
  100% { box-shadow: 0 8px 25px rgba(197, 168, 128, 0.3); transform: scale(1); }
}

.nav-btn:hover {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

/* A nav link must never break mid-phrase ("צור / קשר"). */
.nav-item,
.nav-btn {
  white-space: nowrap;
}

/* The full desktop nav measures 959px (logo + links + button + socials), but the
   phone styles only started at 768px, so tablets rendered a wrapped, overlapping
   nav. Switch to the hamburger as soon as the nav stops fitting — kept separate
   from the 768px block so phone-only rules are unaffected. */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  /* Open state, previously applied as inline styles from script.js. */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-premium);
  }

  .nav-menu.active .nav-item,
  .nav-menu.active .nav-btn {
    display: block;
    padding: 12px 8px;
    text-align: right;
  }

  .nav-menu.active .nav-btn {
    text-align: center;
    margin-top: 8px;
  }

  .nav-menu.active .nav-socials {
    justify-content: center;
    padding-top: 10px;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Sections */
section {
  padding: 100px 20px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-accent);
}

.section-header p {
  font-size: var(--fs-base);
  max-width: 700px;
  margin: 0 auto;
}

/* Inner Page Hero (Banner) */
.page-hero {
  background-color: transparent;
  color: var(--text-dark);
  padding: 180px 20px 80px;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: var(--color-primary);
  font-size: var(--fs-4xl);
  margin-bottom: 20px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: var(--fs-lg);
  max-width: 800px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  background: linear-gradient(135deg, rgba(250,246,240,0.95) 0%, rgba(245,237,226,0.95) 100%);
  position: relative;
  overflow: hidden;
}

/* Ambient Glow Orbs */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.hero::before {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, rgba(212,175,55,0) 70%); /* Gold */
  top: -100px;
  right: -50px;
}

.hero::after {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(28,45,66,0.15) 0%, rgba(28,45,66,0) 70%); /* Navy */
  bottom: -150px;
  left: -100px;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 40px) scale(1.1); }
}

.hero .container {
  max-width: 1440px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.15;
  margin-bottom: 25px;
}

.hero-content h1 span {
  color: var(--color-accent);
  background: linear-gradient(90deg, var(--color-accent) 0%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(212,175,55,0.3);
  display: inline-block;
}

.hero-content .subtitle {
  font-size: var(--fs-xl);
  margin-bottom: 45px;
  font-family: var(--font-sans);
  color: var(--text-muted);
  border-right: 4px solid var(--color-accent);
  padding-right: 20px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Emphasized Hero CTAs */
.hero-buttons .btn-primary {
  padding: 18px 40px;
  font-size: var(--fs-base);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a293c 100%);
  box-shadow: var(--shadow-md);
  animation: pulsePrimary 2.5s infinite;
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  animation: none;
}

@keyframes pulsePrimary {
  0% { box-shadow: var(--shadow-md); }
  70% { box-shadow: var(--shadow-md); }
  100% { box-shadow: var(--shadow-md); }
}

.hero-buttons .btn-secondary {
  padding: 16px 38px;
  font-size: var(--fs-base);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: var(--shadow-md);
}

.hero-buttons .btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--text-light);
  transform: translateY(-4px) scale(1.02);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-light);
  padding: 15px 35px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--fs-base);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 14px 33px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--fs-base);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--text-light);
  transform: translateY(-3px);
}

.hero-image-wrapper {
  position: relative;
  animation: floatImage 8s ease-in-out infinite alternate;
}

@keyframes floatImage {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-15px); }
}

.hero-image-frame {
  position: relative;
  z-index: 5;
  border-radius: var(--radius-premium);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--bg-secondary);
  aspect-ratio: 4/5;
}

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

.hero-image-wrapper:hover .hero-image-frame img {
  transform: scale(1.08);
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  right: -30px;
  background-color: rgba(28, 45, 66, 0.85); /* Semi transparent navy */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-light);
  padding: 22px 28px;
  border-radius: var(--radius-premium);
  z-index: 10;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.15); /* Soft border inside */
  border-left: 5px solid var(--color-accent);
}

.hero-badge p {
  color: var(--text-light);
  font-size: var(--fs-xs);
  opacity: 0.8;
  margin-bottom: 5px;
}

.hero-badge h3 {
  color: var(--color-accent);
  font-size: var(--fs-xl);
  font-family: var(--font-serif);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Primary Service: Inspection Card */
.service-card-primary {
  background-color: var(--color-primary);
  color: var(--text-light);
  border-radius: var(--radius-premium);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(197,168,128,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.service-card-primary h3 {
  color: var(--color-accent);
  font-size: var(--fs-3xl);
  margin-bottom: 20px;
}

.service-card-primary p {
  color: rgba(250, 246, 240, 0.8);
  font-size: var(--fs-base);
  margin-bottom: 30px;
}

.service-features {
  list-style: none;
  margin-bottom: 40px;
}

.service-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-base);
}

.service-features li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
}

/* Secondary Service Cards */
.service-card-secondary {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-premium);
  padding: 45px 35px;
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-premium);
}

.service-card-secondary:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.service-icon {
  font-size: var(--fs-4xl);
  color: var(--color-accent);
  margin-bottom: 25px;
}

.service-card-secondary h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.service-card-secondary p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.service-card-secondary .service-features {
  color: var(--text-dark);
}

.service-card-secondary .btn-primary {
  align-self: flex-start;
  margin-top: auto;
}

.learn-more-link {
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: var(--fs-sm);
}

.learn-more-link:hover {
  color: var(--color-accent);
}

.learn-more-link::after {
  content: ' ➔';
  transition: var(--transition-smooth);
}

.learn-more-link:hover::after {
  transform: translateX(-5px);
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}

.about-img-main {
  grid-column: 1 / span 9;
  z-index: 2;
  border-radius: var(--radius-premium);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 6px solid var(--bg-secondary);
}

.video-trigger-wrapper {
  grid-column: 1 / span 9;
  justify-self: center;
  align-self: flex-end;
  margin-bottom: -25px; /* overlap bottom edge */
  background: var(--bg-primary);
  border-radius: var(--radius-pill);
  padding: 10px 25px 10px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-premium);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
  width: max-content;
}

.video-trigger-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.video-trigger-btn {
  position: relative;
  width: 45px;
  height: 45px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
}

.video-trigger-btn::before,
.video-trigger-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: var(--color-accent);
  z-index: -1;
  animation: ripple-halo 2s infinite ease-out;
}

.video-trigger-btn::after {
  animation-delay: 1s;
}

@keyframes ripple-halo {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.video-trigger-btn svg {
  width: 20px;
  height: 20px;
  margin-left: -3px; /* visual center for play icon */
}

.video-trigger-text {
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--fs-base);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 20, 35, 0.9);
}

.video-modal-content {
  position: relative;
  z-index: 10000;
  width: 90%;
  max-width: 400px;
  background: transparent;
  border-radius: var(--radius-premium);
}

.video-modal-content video {
  width: 100%;
  border-radius: var(--radius-premium);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-accent);
}

.close-video-btn {
  position: absolute;
  top: -45px;
  left: 0;
  color: white;
  font-size: var(--fs-3xl);
  cursor: pointer;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.about-img-sub {
  grid-column: 7 / -1;
  z-index: 3;
  margin-top: 120px;
  border-radius: var(--radius-premium);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg-secondary);
}

.about-images img {
  width: 100%;
  display: block;
}

.about-content h3 {
  font-size: var(--fs-2xl);
  color: var(--color-accent);
  margin-bottom: 15px;
  font-weight: 600;
}

.about-content h2 {
  font-size: var(--fs-3xl);
  margin-bottom: 25px;
}

.about-content p {
  font-size: var(--fs-base);
  margin-bottom: 20px;
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 30px;
}

.role-box {
  background-color: var(--bg-secondary);
  padding: 25px;
  border-radius: var(--radius-sm);
  border-right: 4px solid var(--color-accent);
  box-shadow: var(--shadow-premium);
}

.role-box h4 {
  font-size: var(--fs-lg);
  margin-bottom: 10px;
}

/* Process Section */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  margin-top: 60px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  right: 0;
  left: 0;
  height: 2px;
  background-color: var(--color-border);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 5;
  text-align: center;
}

.step-num {
  width: 80px;
  height: 80px;
  background-color: var(--bg-secondary);
  border: 2px solid var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: var(--transition-smooth);
}

.process-step:hover .step-num {
  background-color: var(--color-primary);
  color: var(--text-light);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.process-step h3 {
  font-size: var(--fs-xl);
  margin-bottom: 12px;
}

.process-step p {
  font-size: var(--fs-sm);
  padding: 0 10px;
}

/* Pricing / Tracks Section */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.tab-btn {
  background-color: transparent;
  border: 1px solid var(--color-border);
  padding: 12px 25px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: var(--transition-smooth);
  color: var(--color-primary);
}

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

.pricing-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-premium);
  padding: 50px 30px;
  border: 1px solid var(--color-border);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.pricing-card.popular {
  border-color: var(--color-accent);
  box-shadow: 0 20px 45px rgba(197, 168, 128, 0.15);
  transform: translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: var(--text-dark);
  padding: 5px 20px;
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.pricing-card h3 {
  font-size: var(--fs-2xl);
  margin-bottom: 10px;
}

.pricing-card .price {
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 25px;
  font-family: var(--font-serif);
}

.pricing-card p.desc {
  font-size: var(--fs-sm);
  margin-bottom: 30px;
  min-height: 50px;
}

.pricing-list {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-list li {
  margin-bottom: 15px;
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
}

.pricing-card .btn-primary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Portfolio Section */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--fs-xs);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Testimonials / Recommendations */
.testimonials-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonials-carousel {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 30px;
  padding: 20px 5px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* Fade the edges so a partially-visible card reads as "there is more"
     rather than as a card that got cut off. */
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  background: var(--color-primary);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

.read-more-btn {
  color: var(--color-accent);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: var(--fs-sm);
  margin-top: 5px;
}

.read-more-btn:hover {
  color: var(--color-primary);
}

/* Modal */
.review-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 45, 66, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.review-modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: var(--radius-premium);
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: right;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.3s ease-out forwards;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: var(--fs-3xl);
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.close-modal-btn:hover {
  color: var(--color-primary);
}

.review-modal-content p {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text-dark);
  margin: 20px 0;
}

.review-modal-content h4 {
  color: var(--color-primary);
  font-size: var(--fs-lg);
  margin-bottom: 5px;
}
.testimonial-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-premium);
  padding: 45px 35px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-premium);
  position: relative;
  min-width: 350px;
  width: 450px;
  max-width: 85vw;
  scroll-snap-align: center;
  flex-shrink: 0;
  white-space: normal;
}

.quote-icon {
  font-size: var(--fs-5xl);
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: var(--font-serif);
}

.testimonial-card p {
  font-style: italic;
  font-size: var(--fs-sm);
  margin-bottom: 25px;
  position: relative;
  z-index: 5;
}

.client-info h4 {
  font-size: var(--fs-base);
  color: var(--color-primary);
  margin-bottom: 3px;
}

.client-info p {
  font-size: var(--fs-xs);
  color: var(--color-accent);
  font-style: normal;
  margin-bottom: 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 22px 30px;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: var(--fs-xl);
  color: var(--color-accent);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  padding: 0 30px;
  overflow: hidden;
  transition: var(--transition-smooth);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 25px;
}

/* Contact Us Section */
.contact-section {
  padding-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  background-color: var(--color-primary);
  color: var(--text-light);
  border-radius: var(--radius-premium) var(--radius-premium) 0 0;
  overflow: hidden;
  box-shadow: 0 -15px 40px rgba(28,45,66,0.1);
}

.contact-info-panel {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.contact-info-panel h2 {
  color: var(--color-accent);
  font-size: var(--fs-4xl);
  margin-bottom: 20px;
}

.contact-info-panel p.lead {
  color: rgba(250, 246, 240, 0.8);
  font-size: var(--fs-base);
  margin-bottom: 40px;
}

.info-links {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-link-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: var(--fs-base);
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.info-link-item:hover {
  color: var(--color-accent);
}

.info-link-item .icon-wrap {
  display: inline-flex;
  color: var(--color-accent);
}

.info-link-item .icon-wrap .icon {
  width: 22px;
  height: 22px;
}

.whatsapp-direct-btn {
  background-color: #25D366;
  color: white;
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--fs-base);
  margin-top: 40px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-direct-btn:hover {
  background-color: #20ba59;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

.contact-form-panel {
  padding: 80px 60px;
}

.contact-form-panel h3 {
  color: var(--text-light);
  font-size: var(--fs-2xl);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  margin-bottom: 8px;
  color: rgba(250, 246, 240, 0.9);
}

.form-control {
  width: 100%;
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: rgba(255,255,255,0.1);
}

.contact-form-panel .btn-primary {
  background-color: var(--color-accent);
  color: var(--text-dark);
  border-color: var(--color-accent);
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: var(--fs-base);
}

.contact-form-panel .btn-primary:hover {
  background-color: transparent;
  color: var(--color-accent);
}

/* Footer */
footer {
  background-color: #121A26;
  color: rgba(250,246,240,0.7);
  padding: 40px 20px;
  text-align: center;
  font-size: var(--fs-sm);
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
  color: rgba(250,246,240,0.6);
}

footer .gold-text {
  color: var(--color-accent);
  font-weight: 600;
}

/* Specific Content Page Elements */
.content-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
}

.list-styled {
  list-style: none;
  margin: 25px 0;
}

.list-styled li {
  margin-bottom: 15px;
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-styled li::before {
  content: '✦';
  color: var(--color-accent);
}

/* Tab comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 50px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-premium);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-premium);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.comparison-table th, .comparison-table td {
  padding: 18px 25px;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background-color: var(--color-primary);
  color: var(--text-light);
  font-family: var(--font-serif);
  font-size: var(--fs-base);
}

.comparison-table tr:hover {
  background-color: rgba(197, 168, 128, 0.03);
}

.comparison-table td.checked {
  color: var(--color-accent);
  font-weight: bold;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .pricing-container {
    grid-template-columns: 1fr;
  }
  .pricing-card.popular {
    transform: none;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .span-2x2, .span-1x2, .span-2x1 {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
  }
  /* The carousel arrows used to become absolutely-positioned overlays here,
     which parked them on top of the cards and covered the review text at every
     width up to 1024px. They now stay in flow: the track takes the full row and
     the two arrows sit centred beneath it. */
  .testimonials-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }
  .testimonials-carousel {
    order: -1;
    flex: 1 0 100%;
  }
  .carousel-btn {
    width: 44px;
    height: 44px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-images {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-img-main {
    width: 100%;
  }
  .video-trigger-wrapper {
    margin-bottom: -20px;
    padding: 8px 20px 8px 12px;
  }
  .video-trigger-text {
    font-size: var(--fs-sm);
  }
  .video-trigger-btn {
    width: 40px;
    height: 40px;
  }
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .process-timeline::before {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-panel {
    padding: 50px 30px;
  }
  .contact-form-panel {
    padding: 50px 30px;
  }
  .content-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 90px;
  }
  header.scrolled .logo img {
    height: 70px;
  }
  .nav-menu {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-content h1 {
    font-size: var(--fs-3xl);
  }
  .section-header h2 {
    font-size: var(--fs-2xl);
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: var(--fs-3xl);
  }
  .page-hero {
    padding-bottom: 30px !important;
  }
}

/* Blog Card Components (Global) */
.blog-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-premium);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}
.blog-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.08);
}
.blog-category-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--color-primary);
  color: var(--text-light);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.blog-card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  font-size: var(--fs-xs);
  color: var(--color-accent);
  margin-bottom: 10px;
}
.blog-card-content h3 {
  font-size: var(--fs-xl);
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--color-primary);
  font-family: var(--font-serif);
}
.blog-card-content p {
  font-size: var(--fs-sm);
  margin-bottom: 25px;
  color: var(--text-muted);
}
.blog-read-more {
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
  font-size: var(--fs-sm);
}
.blog-card:hover .blog-read-more {
  color: var(--color-accent);
}

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

/* Field Carousel for Inspection Page */
.field-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 10px 0 30px;
}
.field-carousel::-webkit-scrollbar {
  height: 8px;
}
.field-carousel::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-sm);
}
.field-carousel::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: var(--radius-sm);
}
.carousel-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-premium);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-secondary);
}
.carousel-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .carousel-item {
    flex: 0 0 320px;
  }
  .carousel-item img {
    height: 420px;
  }
}

/* ------------------------------------- */
/* About Page New Floating Design Layout */
/* ------------------------------------- */

.about-hero-design {
  padding: 60px 20px 100px;
  position: relative;
  overflow: hidden;
}
.about-hero-design .relative-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.about-top-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.about-main-vision-box {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: var(--radius-premium);
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 48%;
}
.about-main-vision-box h2 {
  color: var(--color-primary);
  font-size: var(--fs-3xl);
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: var(--font-serif);
}
.about-main-vision-box p {
  color: var(--text-dark);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 15px;
}

.about-person-cards {
  width: 48%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.person-info-card {
  position: relative;
  padding-top: 15px; /* space for header to overlap */
}
.person-card-header {
  position: absolute;
  top: 0;
  right: 20px;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 6px 15px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.person-card-body {
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-premium);
  padding: 30px 20px 20px;
  background: rgba(255, 255, 255, 0.4); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.person-text p {
  margin: 0;
  color: var(--text-dark);
  font-size: var(--fs-sm);
  line-height: 1.4;
  font-weight: 500;
}
.person-icon svg {
  width: 45px;
  height: 45px;
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.about-center-image {
  text-align: center;
  margin-top: -100px; /* pull image up between cards */
  position: relative;
  z-index: 1;
}
.about-center-image img {
  max-width: 550px;
  width: 100%;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
  border-radius: var(--radius-premium);
}

.values-panel-wrapper {
  background: #121A26; /* Changed to match footer */
  border-radius: var(--radius-premium);
  box-shadow: var(--shadow-premium);
  padding: 50px 20px 30px;
  position: relative;
  z-index: 3;
  margin-top: -100px; /* Overlap the image bottom */
  text-align: center;
}
.values-panel-title {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--fs-xl);
  font-weight: 700;
  padding: 10px 40px;
  border-radius: var(--radius-premium);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  outline: none;
  box-shadow: none;
}
.values-panel-wrapper p {
  color: var(--text-light) !important;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.value-item .value-icon {
  margin-bottom: 12px;
}
.value-item .value-icon svg {
  width: 45px;
  height: 45px;
  stroke: var(--color-accent); /* Changed to gold */
  fill: none;
  stroke-width: 1.5;
}
.value-item h4 {
  color: var(--text-light); /* Changed to light text */
  font-size: var(--fs-lg);
  margin-bottom: 5px;
  font-weight: 700;
}
.value-item p {
  color: #e0e0e0; /* Clean light gray */
  font-size: var(--fs-sm);
}

@media (max-width: 900px) {
  .about-top-layout {
    flex-direction: column;
  }
  .about-main-vision-box, .about-person-cards {
    width: 100%;
  }
  .about-center-image {
    margin-top: 20px;
  }
  .about-center-image img {
    margin-left: 0;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .values-panel-wrapper {
    margin-top: -40px;
    padding-top: 70px; /* Give more space for the absolute title */
  }
  .values-panel-title {
    padding: 10px 25px; /* Reduce horizontal padding to prevent wrapping on narrow screens */
    white-space: nowrap;
    font-size: var(--fs-xl);
  }
}
@media (max-width: 500px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------- */
/* Inspection Page New Sections */
/* ------------------------------------- */

/* Section 1: Intro Dangers */
.inspection-intro {
  padding: 80px 20px;
  background-color: var(--bg-primary);
}
.intro-layout-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}
.intro-image-col {
  flex: 0 0 45%;
}
.hologram-image {
  width: 100%;
  border-radius: var(--radius-premium);
  box-shadow: var(--shadow-premium);
  display: block;
}
.intro-content-col {
  flex: 1;
}
.intro-title-wrapper h2 {
  font-size: var(--fs-3xl);
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: var(--font-serif);
}
.intro-desc {
  font-size: var(--fs-base);
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 40px;
}
.dangers-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.danger-box {
  background: var(--bg-secondary);
  padding: 40px 30px;
  border-radius: var(--radius-premium);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 175, 55, 0.2); /* subtle gold */
  transition: var(--transition-smooth);
}
.danger-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}
.danger-box h3 {
  font-size: var(--fs-xl);
  color: var(--color-primary);
  margin-bottom: 15px;
}
.danger-box p {
  font-size: var(--fs-sm);
  color: var(--text-dark);
}

/* Section 2: Types 1-4 */
.inspection-types {
  padding: 80px 20px;
}
.types-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.type-card {
  background: #fff;
  border-radius: var(--radius-premium);
  padding: 30px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}
.type-number {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(212, 175, 55, 0.2);
  color: #8c6a2e;
  font-weight: 700;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--fs-base);
}
.type-content {
  text-align: center;
  margin-top: 30px;
}
.type-icon-wrapper svg {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.type-card h3 {
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin-bottom: 10px;
}
.type-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Section 3: Investment */
.inspection-investment {
  padding: 80px 20px;
}
.investment-title-wrapper h2 {
  font-size: var(--fs-3xl);
  color: var(--color-primary);
  margin-bottom: 20px;
}
.text-brown {
  color: #7b5945; /* Dark brown from image */
}
.underline-red {
  border-bottom: 3px solid #d9534f;
}
.investment-desc {
  font-size: var(--fs-base);
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto 50px;
}
.investment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 40px;
}
.inv-box {
  background: #f1eae4; /* matching the image color */
  padding: 30px;
  border-radius: var(--radius-premium);
  text-align: center;
}
.inv-icon {
  width: 40px;
  height: 40px;
  background: #7b5945; /* circle in image */
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.inv-icon::after {
  content: "";
  width: 15px;
  height: 15px;
  background: white;
}
.inv-box h3 {
  font-size: var(--fs-xl);
  color: var(--text-dark);
  margin-bottom: 10px;
}
.inv-box p {
  font-size: var(--fs-sm);
  color: var(--text-dark);
}

.blue-alert-banner {
  max-width: 1000px;
  margin: 0 auto;
  background: #c2ddf8;
  color: #1a4a75;
  padding: 20px;
  border-radius: var(--radius-premium);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: var(--fs-base);
  font-weight: 600;
}
.info-icon {
  background: #1a4a75;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

/* Section 4: Tools */
.inspection-tools-section {
  padding: 80px 20px;
}
.tools-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.tool-info-card {
  text-align: center;
}
.tool-alert {
  width: 45px;
  height: 45px;
  background: #eee;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}
.tool-info-card h3 {
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin-bottom: 10px;
}
.tool-info-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .intro-layout-grid {
    flex-direction: column;
  }
  .intro-image-col {
    margin-bottom: 30px;
  }
  .investment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .types-grid-4, .tools-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .investment-grid, .types-grid-4, .tools-grid-4 {
    grid-template-columns: 1fr;
  }
  .blue-alert-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ------------------------------------- */
/* Architecture & Design Page New Sections */
/* ------------------------------------- */

/* Philosophy Section */
.design-philosophy-new {
  padding: 80px 20px;
}
.philosophy-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.philosophy-text {
  flex: 1;
}
.philosophy-subtitle {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--text-dark);
  padding: 12px 25px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.philosophy-text h2 {
  font-size: var(--fs-3xl);
  color: var(--color-primary);
  margin-bottom: 25px;
  line-height: 1.2;
}
.philosophy-text p {
  font-size: var(--fs-base);
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 30px;
}
.philosophy-quote {
  border-right: 4px solid #7b5945; /* Dark brown accent */
  padding-right: 20px;
  font-size: var(--fs-lg);
  color: var(--color-primary);
  font-style: italic;
}
.philosophy-image-col {
  flex: 0 0 40%;
}
.philosophy-img {
  width: 100%;
  border-radius: var(--radius-premium);
  display: block;
}

/* Pillars Section */
.design-pillars {
  padding: 80px 20px;
}
.design-pillars h2 {
  font-size: var(--fs-3xl);
  color: var(--color-primary);
  margin-bottom: 50px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.pillar-card {
  background: var(--bg-secondary);
  padding: 40px 30px;
  border-radius: var(--radius-premium);
}
.pillar-circle {
  width: 60px;
  height: 60px;
  background: #7b5945;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.pillar-card h3 {
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin-bottom: 15px;
}
.pillar-card p {
  font-size: var(--fs-sm);
  color: var(--text-dark);
}

/* Process Timeline (Snake) */
.design-process {
  padding: 80px 20px;
}
.design-process h2 {
  font-size: var(--fs-3xl);
  color: var(--color-primary);
  margin-bottom: 60px;
}
/* Numbered process timeline.
   Desktop: horizontal rail with the numbers sitting on it.
   Mobile:  vertical rail down the right edge, text alongside it. */
.process-snake-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  list-style: none;
  padding: 0;
  counter-reset: process;
}
.process-snake-container::before {
  content: "";
  position: absolute;
  top: 27px;               /* centre of the 54px number circle */
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(to left,
    var(--color-accent) 0%,
    var(--color-accent) 50%,
    rgba(197, 168, 128, 0.35) 100%);
  z-index: 1;
}
.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}
.process-dot {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  background: var(--color-primary);
  color: var(--color-accent);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-light);
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 48px;
  transition: var(--transition-smooth);
}
.process-step:hover .process-dot {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-4px);
}
.process-content h3 {
  font-size: var(--fs-base);
  color: var(--color-primary);
  margin-bottom: 10px;
}
.process-content p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Packages */
.design-packages {
  padding: 80px 20px;
}
.packages-pre-title {
  display: inline-block;
  color: var(--color-accent);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 15px;
  background: rgba(212, 175, 55, 0.1);
  padding: 6px 18px;
  border-radius: var(--radius-md);
}
.packages-intro-text h2 {
  font-size: var(--fs-3xl);
  color: var(--color-primary);
  margin-bottom: 20px;
}
.packages-intro-text p {
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: var(--fs-base);
  color: var(--text-dark);
}
.packages-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.package-card-new {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: var(--radius-premium);
  padding: 40px;
  text-align: right;
  box-shadow: var(--shadow-md);
}
.package-card-new.premium-package {
  background: var(--color-primary);
  color: #fff;
}
.package-card-new.premium-package h3,
.package-card-new.premium-package .package-price,
.package-card-new.premium-package .package-desc,
.package-card-new.premium-package .package-list li {
  color: #fff;
}
.package-card-new h3 {
  font-size: var(--fs-xl);
  color: var(--color-primary);
  margin-bottom: 15px;
}
.package-price {
  font-size: var(--fs-2xl);
  color: #7b5945;
  font-weight: 700;
  margin-bottom: 15px;
}
.price-note {
  font-size: var(--fs-sm);
  font-weight: 400;
}
.package-desc {
  font-size: var(--fs-sm);
  color: var(--text-dark);
  margin-bottom: 30px;
  min-height: 50px;
}
.package-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.package-list li {
  padding-right: 25px;
  position: relative;
  margin-bottom: 15px;
  font-size: var(--fs-sm);
  color: var(--text-dark);
}
.package-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: #7b5945;
  font-weight: bold;
}
.premium-package .package-list li::before {
  color: var(--color-accent);
}

/* Testimonials Marquee */
.design-testimonials {
  padding: 80px 0; /* no horizontal padding to allow full bleed */
}
.testi-subtitle {
  font-size: var(--fs-base);
  color: var(--text-dark);
  margin-bottom: 50px;
}
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.marquee-content {
  display: flex;
  gap: 30px;
  padding-right: 30px;
  width: max-content;
  animation: scrollRTL 30s linear infinite;
}
.marquee-content:hover {
  animation-play-state: paused;
}
@keyframes scrollRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); } /* exactly half the width for a seamless loop */
}
.testi-card-new {
  width: 400px;
  white-space: normal;
  background: #fff;
  border-radius: var(--radius-premium);
  padding: 40px;
  flex-shrink: 0;
  border: 1px solid #eaeaea;
  text-align: right;
  display: flex;
  flex-direction: column;
}
.quote-icon {
  font-size: var(--fs-5xl);
  color: #d1bfae;
  font-family: serif;
  line-height: 0;
  margin-bottom: 20px;
  margin-right: -10px;
}
.quote-text {
  font-size: var(--fs-base);
  color: var(--text-dark);
  margin-bottom: 30px;
  flex-grow: 1;
}
.testi-author strong {
  display: block;
  font-size: var(--fs-base);
  color: var(--color-primary);
  margin-bottom: 5px;
}
.testi-author span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.marquee-fade-right, .marquee-fade-left {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}
.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

/* Responsive updates for new design page */
@media (max-width: 900px) {
  .philosophy-grid {
    flex-direction: column;
  }
  .packages-grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile: the rail runs down the right edge and the text sits beside it,
     so each step reads as one line of a vertical timeline. */
  .process-snake-container {
    flex-direction: column;
    gap: 0;
    text-align: right;
  }
  .process-snake-container::before {
    top: 22px;
    bottom: 22px;
    right: 23px;          /* centre of the 46px circle */
    left: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom,
      var(--color-accent) 0%,
      var(--color-accent) 60%,
      rgba(197, 168, 128, 0.3) 100%);
  }
  .process-step {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: start;
    gap: 0 18px;
    text-align: right;
    padding-bottom: 34px;
  }
  .process-step:last-child {
    padding-bottom: 0;
  }
  .process-dot {
    width: 46px;
    height: 46px;
    margin: 0;
    font-size: var(--fs-lg);
    line-height: 40px;
  }
  .process-content {
    padding-top: 8px;
  }
  .process-content h3 {
    font-size: var(--fs-base);
    margin-bottom: 6px;
  }
}

/* ------------------------------------- */
/* 3D Cube Testimonials Section (Inspection Page) */
/* ------------------------------------- */

.cube-testimonials-section {
  padding: 80px 20px;
  background-color: var(--bg-secondary);
  overflow: hidden;
}
.cube-subtitle {
  font-size: var(--fs-base);
  color: var(--text-dark);
  margin-bottom: 50px;
}
.cube-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.cube-nav-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: var(--fs-xl);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.cube-nav-btn:hover {
  background: var(--color-accent);
  color: var(--text-dark);
  transform: scale(1.1);
}

.cube-scene {
  width: 500px;
  height: 350px;
  perspective: 1500px;
}
.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.cube-face {
  position: absolute;
  width: 500px;
  height: 350px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: var(--radius-premium);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: center;
  backface-visibility: hidden; /* prevents flickering */
}

/* Move faces out from center by half the width (250px) */
.cube-front  { transform: rotateY(  0deg) translateZ(250px); }
.cube-right  { transform: rotateY( 90deg) translateZ(250px); }
.cube-back   { transform: rotateY(180deg) translateZ(250px); }
.cube-left   { transform: rotateY(-90deg) translateZ(250px); }

.cube-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cube-quote {
  font-size: var(--fs-lg);
  color: var(--text-dark);
  line-height: 1.5;
}
.cube-author {
  font-weight: bold;
  color: var(--color-primary);
  font-size: var(--fs-base);
}

@media (max-width: 768px) {
  .cube-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .cube-nav-btn {
    display: none; /* Can hide buttons on small mobile if swipe is preferred, or just change layout */
  }
}

@media (max-width: 600px) {
  .cube-scene {
    width: 320px;
    height: 350px;
  }
  .cube-face {
    width: 320px;
    height: 350px;
    padding: 20px;
  }
  .cube-front  { transform: rotateY(  0deg) translateZ(160px); }
  .cube-right  { transform: rotateY( 90deg) translateZ(160px); }
  .cube-back   { transform: rotateY(180deg) translateZ(160px); }
  .cube-left   { transform: rotateY(-90deg) translateZ(160px); }
}

/* ------------------------------------- */
/* Social Icons (Nav & Footer) */
/* ------------------------------------- */

.nav-socials {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 20px;
}
.nav-socials a {
  color: var(--text-light);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.nav-socials a:hover {
  color: var(--color-accent);
}
.scrolled .nav-socials a {
  color: var(--text-dark);
}
.scrolled .nav-socials a:hover {
  color: var(--color-primary);
}
.footer-socials a:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .nav-socials {
    margin-right: 0;
    margin-top: 30px;
    justify-content: center;
    width: 100%;
  }
  .nav-socials a {
    color: var(--text-dark);
    margin: 0 10px;
  }
}

/* ------------------------------------- */
/* Animations (Fade in on Scroll) */
/* ------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------- */
/* FAQ Accordion */
/* ------------------------------------- */
.faq-section {
  padding: 80px 20px;
  background-color: var(--bg-primary);
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-standard);
  margin-bottom: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  text-align: right;
  padding: 20px;
  background: none;
  border: none;
  font-size: var(--fs-base);
  font-family: var(--font-base);
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--color-primary);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fff;
}
.faq-answer-inner {
  padding: 0 20px 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-premium);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  /* The variable --pos is updated by JS */
  --pos: 50%;
}
.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.ba-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.ba-after {
  position: relative; /* Allows container to take the height of this image */
}
.ba-after img {
  display: block;
  width: 100%;
  height: auto;
}
.ba-before {
  /* polygon(left top, right top, right bottom, left bottom) */
  /* Show from slider position (var(--pos)) to the right (100%) */
  clip-path: polygon(var(--pos) 0, 100% 0, 100% 100%, var(--pos) 100%);
  z-index: 2;
}
.ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ba-label {
  position: absolute;
  top: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 5px 15px;
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  letter-spacing: 1px;
}
.ba-label-after {
  left: 20px;
}
.ba-label-before {
  right: 20px;
  z-index: 3;
}
.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-slider-arrows {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.ba-slider-arrows svg {
  width: 16px;
  height: 16px;
  margin: 0 -2px;
}
.ba-slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

/* ------------------------------------- */
/* Global Mobile Responsiveness Fixes */
/* ------------------------------------- */
@media (max-width: 768px) {
  /* Fix Pricing Packages Grid */
  .packages-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 15px;
  }
  
  /* Fix Infinite Marquee Cards on Mobile */
  .testi-card-new {
    width: 85vw !important;
    max-width: 320px !important;
    padding: 25px !important;
  }
  
  /* Fix FAQ Text Size */
  .faq-question {
    font-size: var(--fs-sm) !important;
    padding: 15px !important;
  }
  .faq-section {
    padding: 50px 15px !important;
  }

  /* Scale down floating widgets to prevent overlap */
  #wa-widget, #acc-toggle {
    width: 50px !important;
    height: 50px !important;
  }
  #wa-widget svg, #acc-toggle svg {
    width: 25px !important;
    height: 25px !important;
  }
  
  /* Scale down 3D Cube slightly for tiny screens */
  .cube-scene {
    transform: scale(0.85);
    margin: 40px auto;
  }
}

/* ========================================= */
/* PREMIUM UX ENHANCEMENTS: Preloader, Cursor, Parallax */
/* ========================================= */

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  width: 140px;
  height: auto;
  animation: pulse-logo 2s infinite ease-in-out;
}
@keyframes pulse-logo {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Custom Cursor */
@media (pointer: fine) {
  body {
    cursor: auto;
  }
  a, button, input, textarea, select, .portfolio-card, .album-thumb {
    cursor: pointer;
  }
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
  }
  .cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border 0.2s;
  }
  
  /* Hover state for cursor */
  .custom-cursor.hover {
    width: 0;
    height: 0;
  }
  .cursor-follower.hover {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.15); /* Gold tint */
    border: 1px solid rgba(212, 175, 55, 0.6);
    backdrop-filter: blur(2px);
  }
}

/* Parallax */
.parallax-bg {
  will-change: transform;
}

/* UX Enhancements */
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4) !important;
  outline: none;
}
.blog-card, .service-card {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Global Mobile UX/UI Refinements --- */
@media (max-width: 768px) {
  /* 1. Typography */
  h1 { font-size: var(--fs-2xl) !important; }
  .section-header h2 { font-size: var(--fs-2xl) !important; }
  .hero-content h1 { font-size: var(--fs-3xl) !important; }
  .hero-content .subtitle { font-size: var(--fs-base) !important; }

  /* 2. Paddings */
  section:not(.hero):not(.page-hero) {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  
  /* 3 & 6. Cube (Testimonials) */
  .cube-scene {
    width: 280px !important;
    height: 320px !important;
  }
  .cube-face {
    width: 280px !important;
    height: 320px !important;
    padding: 20px !important;
  }
  .cube-quote {
    font-size: var(--fs-base) !important;
  }
  .cube-front  { transform: rotateY(  0deg) translateZ(140px) !important; }
  .cube-right  { transform: rotateY( 90deg) translateZ(140px) !important; }
  .cube-back   { transform: rotateY(180deg) translateZ(140px) !important; }
  .cube-left   { transform: rotateY(-90deg) translateZ(140px) !important; }

  .cube-wrapper {
    flex-direction: column;
    gap: 25px;
  }
  .cube-nav-btn {
    width: 65px;
    height: 65px;
    font-size: var(--fs-2xl);
    display: flex !important; /* Ensure buttons are visible on mobile */
  }

  /* 5. Grids */
  .about-person-cards, 
  .values-grid, 
  .tools-grid-4, 
  .investment-grid, 
  .types-grid-4,
  .packages-grid-2,
  .roles-grid,
  .types-grid-3 {
    grid-template-columns: 1fr !important;
  }
  
  /* Prevent horizontal overflow causing zoom out */
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
  }
  
  /* Scale down ambient orbs (bubbles) on mobile instead of hiding */
  .hero::before {
    display: block !important;
    width: 250px !important;
    height: 250px !important;
    right: -20px !important;
    top: -20px !important;
    filter: blur(50px) !important;
  }
  .hero::after {
    display: block !important;
    width: 280px !important;
    height: 280px !important;
    left: -40px !important;
    bottom: -40px !important;
    filter: blur(60px) !important;
  }
  
  /* Fix hero-badge positioning on narrow screens */
  .hero-badge {
    right: 10px;
    bottom: -15px;
    padding: 15px 20px;
  }
  .hero-badge h3 {
    font-size: var(--fs-base);
  }
}

/* ============================================================
   Portfolio Grid & Album  (rendered by gallery.js)
   ============================================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 45px;
}

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

/* --- Card --- */

.portfolio-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-premium);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  text-align: right;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.portfolio-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.portfolio-card-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.portfolio-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.portfolio-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.portfolio-card-title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}

.portfolio-card-blurb {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.portfolio-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  font-size: var(--fs-xs);
  letter-spacing: 0.4px;
  color: var(--color-accent-hover);
}

.portfolio-card-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Album overlay --- */

body.album-open {
  overflow: hidden;
}

.album {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.album.is-open { opacity: 1; }

.album-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 37, 0.94);
  backdrop-filter: blur(6px);
}

.album-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.album-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-light);
}

.album-title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--color-accent);
  margin: 0;
  flex-grow: 1;
  line-height: 1.2;
}

.album-counter {
  font-size: var(--fs-xs);
  opacity: 0.7;
  letter-spacing: 1px;
  direction: ltr;
}

.album-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: var(--fs-3xl);
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.album-close:hover { color: var(--color-accent); transform: rotate(90deg); }

.album-stage {
  /* basis 0, not auto: the stage takes exactly the space the other rows leave,
     instead of measuring its own (100%-height) contents and overflowing. */
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-bar,
.album-thumbs {
  flex: 0 0 auto;
}

.album-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-standard);
  box-shadow: var(--shadow-lg);
}

/* Before/after slides inside the album keep the shared .ba-slider styles,
   but must fit the stage rather than run to their natural height. */
/* The container is given the "after" image's real aspect ratio by gallery.js,
   so it hugs the photo instead of floating it in a tall letterboxed box. */
.album-pair {
  height: auto;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  margin: auto;
  background: #061825;
}
/* Both halves must use the same fit, or the wipe seam won't line up. */
.album-pair .ba-after img,
.album-pair .ba-before img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.album-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.album-nav svg { width: 24px; height: 24px; }
.album-nav:hover { background: var(--color-accent); color: var(--color-primary); }
.album-prev { right: 8px; }
.album-next { left: 8px; }

.album-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  justify-content: flex-start;
  scrollbar-width: thin;
}

.album-thumbs::-webkit-scrollbar { height: 6px; }
.album-thumbs::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }

.album-thumb {
  flex: 0 0 84px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.album-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-thumb:hover { opacity: 0.85; }
.album-thumb.is-active { opacity: 1; border-color: var(--color-accent); }

@media (max-width: 768px) {
  .album-inner { padding: 12px 10px 14px; gap: 10px; }
  .album-title { font-size: var(--fs-base); }
  .album-nav { width: 42px; height: 42px; }
  .album-prev { right: 2px; }
  .album-next { left: 2px; }
  .album-thumb { flex: 0 0 64px; height: 48px; }
}

/* --- Contact form status message --- */

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-standard);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.form-status.success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #14663a;
}

.form-status.error {
  background: rgba(214, 69, 69, 0.1);
  border: 1px solid rgba(214, 69, 69, 0.4);
  color: #8d2020;
}

.form-status a { color: inherit; font-weight: 700; }

/* --- Floating WhatsApp bubble + skip link (injected by script.js) --- */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;          /* below the accessibility menu, above page content */
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float svg { width: 30px; height: 30px; }

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.6);
}

/* The accessibility widget sits at left:20px/bottom:100px, so the bubble
   stays below it and the two never overlap. */
@media (max-width: 768px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; left: 18px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}

.skip-link {
  position: absolute;
  right: 12px;
  top: -60px;
  z-index: 10001;
  background: var(--color-primary);
  color: var(--text-light);
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-standard) var(--radius-standard);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

@media print {
  .whatsapp-float, .skip-link, #accessibility-widget, #preloader { display: none !important; }
}

/* ============================================================
   Design touch-up — utilities, package cards, icon defaults
   ============================================================ */

/* --- Utilities (replace the repeated inline styles) --- */

.u-center      { text-align: center; }
.u-muted       { color: var(--text-muted); }
.u-accent      { color: var(--color-accent); }
.u-on-primary  { color: var(--text-light); }
.u-measure     { max-width: 720px; margin-inline: auto; }
.u-measure-wide{ max-width: 900px; margin-inline: auto; }

.u-lead {
  font-size: var(--fs-lg);
  line-height: 1.6;
}

.u-stack-sm > * + * { margin-top: var(--space-sm); }
.u-stack-md > * + * { margin-top: var(--space-md); }
.u-stack-lg > * + * { margin-top: var(--space-lg); }

/* --- Inline SVG icons --- */

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

/* Star ratings. Previously ⭐ emoji forced #FFD700, a second gold fighting
   the brand's #C5A880 on the same screen. */
.stars {
  display: inline-flex;
  gap: 4px;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.stars .icon {
  width: 18px;
  height: 18px;
}

.service-icon .icon {
  width: 44px;
  height: 44px;
  stroke-width: 1.5;
}

/* --- Service packages (design.html) --- */

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  text-align: right;
  align-items: stretch;
}

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

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 38px 28px 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s ease;
}

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

/* The middle tier is the standard recommendation, so it carries the weight. */
.package-card--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

@media (min-width: 860px) {
  .package-card--featured { transform: translateY(-12px); }
  .package-card--featured:hover { transform: translateY(-17px); }
}

.package-flag {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
}

/* Same numbered-badge language as the process timeline. */
.package-num {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--color-accent);
}

.package-title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--color-primary);
  line-height: 1.3;
  margin: 6px 0 0;
}

.package-for {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.package-label {
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  margin-top: 6px;
}

.package-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.package-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-dark);
}

.package-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1.5;
}

.package-cta {
  margin-top: auto;
  padding-top: var(--space-sm);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: var(--transition-smooth);
}

.package-cta::after {
  content: ' ←';
}

.package-cta:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* --- Footer (was ~66 identical inline styles duplicated across 8 pages) --- */

.footer-socials {
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.footer-socials a {
  color: var(--color-accent);
  display: inline-flex;
  transition: transform 0.3s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
}

.footer-tagline {
  margin-top: 5px;
  font-size: var(--fs-xs);
  opacity: 0.6;
}

.footer-credit {
  margin-top: 10px;
  font-size: var(--fs-xs);
  opacity: 0.85;
}

.footer-credit a {
  color: var(--color-accent);
  font-weight: 600;
}

.footer-legal {
  margin-top: 15px;
  font-size: var(--fs-xs);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.footer-legal a {
  color: var(--text-light);
  text-decoration: underline;
  opacity: 0.8;
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer-legal .sep {
  opacity: 0.5;
}

/* --- CTA band. Was inline on index.html and design.html with drifted values
       (2.8rem vs 2.5rem heading, `white` vs token, two ways of writing the
       same 80% white paragraph). --- */

.cta-section {
  background-color: var(--color-primary);
  color: var(--text-light);
  text-align: center;
  padding: var(--space-xl) 20px;
}

.cta-section h2 {
  font-size: var(--fs-3xl);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  font-size: var(--fs-lg);
  color: var(--text-light);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* Gold button sitting on the navy band. */
.btn-primary--on-dark {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

/* Investment cards scroller (inspection.html) */
.inv-box {
  min-width: 320px;
  max-width: 85vw;
  scroll-snap-align: center;
  flex-shrink: 0;
}

/* Legal pages: inline links inside body copy */
.legal-content a {
  color: inherit;
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-accent);
}

/* Gold CTA on the navy primary service card */
.service-card-primary .btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  align-self: flex-start;
}
