/* =====================================================
   PHASE 1A — ROOT VARIABLES (DARK MODE ONLY — LOCKED)
   ===================================================== */

:root {
  /* ================= TYPOGRAPHY ================= */
  --font-main: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.15;
  --lh-normal: 1.5;
  --lh-loose: 1.7;
  
  /* ================= LAYOUT ================= */
--container-max: 1200px;
--container-padding: clamp(16px, 4vw, 32px);
  /* ================= SAFE AREA ================= */
--safe-left: max(env(safe-area-inset-left), 16px);
--safe-right: max(env(safe-area-inset-right), 16px);

  /* ================= SPACING ================= */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* ================= RADIUS ================= */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-round: 999px;

  /* ================= MOTION ================= */
  --transition-fast: 220ms ease;
  --transition-base: 350ms ease;
  --transition-slow: 450ms ease;

  /* ================= Z-INDEX ================= */
  --z-header: 100;
  --z-overlay: 500;
  --z-modal: 1000;
  --z-toast: 2000;

  /* ========= BRAND ========= */
  --primary: #6eedaf;
  --secondary: #74f9b8;

  /* ========= BACKGROUNDS ========= */
  --bg-page: #314449;                 /* main page */
  --bg-section: #0f1416;              /* hero / deep sections */
  --bg-surface: #243135;              /* cards */
  --bg-surface-alt: rgba(36,49,53,0.80);
  --bg-footer: #0f1416;

  /* ========= GLASS / OVERLAYS ========= */
  --glass: rgba(255,255,255,0.03);
  --overlay-soft: rgba(6,10,12,0.45);
  --overlay-strong: rgba(6,10,12,0.65);

  /* ========= TEXT ========= */
  --heading: #6eedaf;
  --subheading: #74f9b8;
  --paragraph: #b5ecd1;
  --text: #b5ecd1;
  --text-on-dark: #b5ecd1;

  --link: rgba(135,132,132,0.8);
  --muted: rgba(181,236,209,0.18);
  
    /* ================= TEXT STATES ================= */
  --text-muted: rgba(181,236,209,0.65);
  --text-disabled: rgba(181,236,209,0.35);

  /* ========= BORDERS ========= */
  --border: rgba(110,237,175,0.12);
  --border-soft: rgba(110,237,175,0.08);

  /* ========= SHADOWS ========= */
  --shadow-soft: 0 8px 20px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.50);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.60);

  /* ================= BUTTON TOKENS ================= */

--btn-primary-bg: linear-gradient(90deg, #6eedaf, #74f9b8);
--btn-primary-text: #0f1416;

--btn-secondary-bg: transparent;
--btn-secondary-text: var(--primary);
--btn-secondary-border: var(--primary);

--btn-hover-lift: translateY(-2px);

--accent: var(--primary);
--accent-soft: rgba(110, 237, 175, 0.14);

/* =====================================================
   LIGHT MODE — READ MORE BUTTON (LOCKED)
===================================================== */

html[data-theme="light"] #readMoreBtn,
html[data-theme="light"] .btn.read-more {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  box-shadow: none;
}

html[data-theme="light"] #readMoreBtn:hover,
html[data-theme="light"] .btn.read-more:hover {
  background: rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
/* ========= FOOTER ========= */
--footer-gradient: linear-gradient(
  180deg,
  rgba(15, 20, 22, 0.92) 0%,
  rgba(11, 15, 20, 1) 100%
);

  /* ========= NAV ========= */
  --nav-bg: rgba(20,30,32,0.72);

  /* ========= ACCESSIBILITY ========= */
  --focus-ring: 0 0 0 3px rgba(110,237,175,0.35);

  /* ========= CANONICAL ALIASES ========= */
  --bg: var(--bg-page);

  --color-bg: var(--bg-page);
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-heading: var(--heading);
  --color-accent: var(--primary);
 /* ================= SURFACES ================= */
--card-bg: var(--bg-surface);

--surface: var(--card-bg);
--surface-soft: var(--bg-surface-alt);
--surface-elevated: var(--card-bg);
}

/* =====================================================
   PHASE 1B — ROOT VARIABLES (LIGHT MODE — MINT PALETTE)
   ===================================================== */

html[data-theme="light"] {

  /* ========= PAGE ========= */
  --bg-page: #98F8C9;
  --bg-section: #98F8C9;

  /* ========= SURFACES (DARK-LOGIC, MINT COLORS) ========= */
  --card-bg: rgba(83, 161, 123, 0.8);
  --surface: var(--card-bg);
  --surface-elevated: var(--card-bg);
  --surface-soft: rgba(83, 161, 123, 0.55);

  /* ========= TEXT ========= */
  --heading: #000000;
  --subheading: #000000;
  --paragraph: #313131;
  --text: #313131;

  --text-muted: rgba(49,49,49,0.65);
  --text-on-dark: rgb(198,188,188);
  /* ===== HERO / OVERLAY TEXT ===== */
--hero-text: rgb(198, 188, 188);

  /* ========= BRAND ========= */
  --primary: #6eedaf;
  --secondary: #74f9b8;
  --accent: var(--primary);
  --accent-soft: rgba(110,237,175,0.18);

  /* ========= BORDERS ========= */
  --border: rgba(11,77,43,0.18);
  --border-soft: rgba(11,77,43,0.12);

  /* ========= OVERLAYS ========= */
  --overlay-soft: rgba(10,10,10,0.55);
  --overlay-strong: rgba(10,10,10,0.85);

  /* ========= SHADOWS ========= */
  --shadow-soft: 0 8px 20px rgba(19,20,18,0.06);
  --shadow-md: 0 10px 30px rgba(19,20,18,0.10);
  --shadow-lg: 0 24px 80px rgba(19,20,18,0.16);

  /* ========= NAV ========= */
  --nav-bg: rgba(20,30,32,0.72);

 
  /* ========= FOOTER — LIGHT MODE ========= */
--footer-bg: var(--bg-page);
--footer-text: #000000;
--footer-text-muted: rgba(0,0,0,0.65);
--footer-border: rgba(0,0,0,0.12);
  /* ========= CANONICAL ========= */
  --bg: var(--bg-page);
  --color-bg: var(--bg-page);
  --color-text: var(--text);
  --color-text-muted: var(--text-muted);
  --color-heading: var(--heading);
  --color-accent: var(--accent);
  
  /* ========= BUTTON TOKENS — LIGHT MODE ========= */
--btn-secondary-text: #000000;
--btn-secondary-border: #000000;
--btn-secondary-bg: transparent;
}

/* =====================================================
   PHASE 2 — GLOBAL RESETS & TYPOGRAPHY
   ===================================================== */

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

/* ---------- HTML & Body ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: var(--fw-regular);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);

  background-color: var(--color-bg);
  color: var(--color-text);

  min-height: 100vh;
  overflow-x: hidden;
  
  /* Offset page content for fixed navbar */
  padding-top: var(--nav-height);
}

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

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--heading);
}

h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* ---------- Text ---------- */
p {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--paragraph);
}

small {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

strong {
  font-weight: var(--fw-semibold);
  color: var(--text);
}


/* ---------- Links ---------- */
a {
  color: var(--link);
}

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

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ---------- Lists ---------- */
ul,
ol {
  list-style: none;
}

/* ---------- Buttons ---------- */
button {
  font-family: inherit;
  font-size: inherit;
  

  
  border: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---------- Form elements ---------- */
input,
textarea,
select {
  font-family: inherit;
  font-size: var(--fs-md);
  color: var(--color-text);

  background-color: transparent;
  border: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ---------- Accessibility ---------- */
[hidden] {
  display: none !important;
}
/* =====================================================
   PHASE 2.1 — BUTTON SYSTEM (DARK MODE)
   ===================================================== */

/* ---------- Base Button (Neutral) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;
  border-radius: var(--radius-md);

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);

  cursor: pointer;
  text-decoration: none;

  border: none;
  background: none;

  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* ---------- Primary Button ---------- */
.btn.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Secondary Button ---------- */
.btn.secondary {
  background: transparent;
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
}

.btn.secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* =========================================
   INTRO — CLEAN DOUBLE WIPE (LOCKED)
========================================= */

/* Fullscreen container */
#introWave {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  overflow: hidden;
  animation: introFadeOut 0.9s ease forwards 3.4s;
}

/* Mask wrapper (holds logo + expanding mask) */
.intro-mask {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Key effect: this creates the reveal transition */
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
  mask-image: radial-gradient(circle, black 60%, transparent 100%);

  animation: maskExpand 2.4s cubic-bezier(.25,.9,.3,1) forwards 0.4s;
}

/* Logo fade + glow */
.intro-logo {
  width: 240px;
  opacity: 0;
  animation:
    logoIntro 0.7s ease forwards,
    logoGlow 1.8s ease-in-out forwards 0.9s,
    logoFadeOut 0.7s ease forwards 2.0s;
}

@keyframes logoIntro {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes logoGlow {
  0%,100% { filter: brightness(1); }
  50%     { filter: brightness(1.35); }
}

@keyframes logoFadeOut {
  to { opacity: 0; filter: blur(4px); transform: scale(1.12); }
}

/* Radial expansion of mask (Apple-style aperture reveal) */
@keyframes maskExpand {
  0% {
    -webkit-mask-size: 380px;
            mask-size: 380px;
  }
  70% {
    -webkit-mask-size: 2000px;
            mask-size: 2000px;
  }
  100% {
    -webkit-mask-size: 3400px;
            mask-size: 3400px;
  }
}

/* Fade out entire intro */
@keyframes introFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
/* =====================================================
   PHASE 3 — LAYOUT HELPERS
   ===================================================== */

/* ---------- Section wrapper ---------- */
.section {
  width: 100%;
  padding-block: clamp(3rem, 6vw, 6rem);
  position: relative;
}

/* Smaller vertical rhythm where needed */
.section.tight {
  padding-block: clamp(2rem, 4vw, 4rem);
}

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

  padding-left: max(var(--container-padding), var(--safe-left));
  padding-right: max(var(--container-padding), var(--safe-right));
}

/* ---------- Two column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

/* Stack on mobile */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- Generic grid ---------- */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive grid fallback */
@media (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Horizontal scroll helper ---------- */
.h-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
}

.h-scroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ---------- Alignment helpers ---------- */
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---------- Text alignment ---------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ---------- Spacing utilities ---------- */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ---------- Section headers ---------- */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.sub-text {
  max-width: 680px;
  color: var(--color-text-muted);
}

/* ================= CARD BASE ================= */

.card,
.service-card,
.pricing-card,
.fix-front,
.fix-back,
.coming-card,
.review-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}



/* =====================================================
   PHASE 4 — NAVBAR
   ===================================================== */

/* ---------- Navbar wrapper ---------- */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 2000;

  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid var(--border-soft);
}

/* ---------- Inner layout ---------- */
.nav-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  height: var(--nav-height);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* ---------- Navigation links ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  transition: color var(--transition-fast),
              background var(--transition-fast);
}

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

/* ---------- Theme toggle inside nav ---------- */
.nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
}

.nav-theme-toggle:hover {
  color: var(--color-accent);
}

/* ---------- Hamburger toggle ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle span + span {
  margin-top: 5px;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;

  z-index: var(--z-overlay);
}

.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open {
  overflow: hidden;
}

/* ---------- Mobile navigation ---------- */
@media (max-width: 900px) {

  .nav-toggle {
    display: flex;
    flex-direction: column;
    color: var(--hero-text);
    z-index: calc(var(--z-header) + 2);
  }

  .nav-toggle span {
    background: currentColor;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .nav-links {
    position: absolute; /* KEY FIX */
    top: 100%;          /* sits directly below navbar */
    right: 0;

    display: none;
    flex-direction: column;
    gap: var(--space-sm);

    width: min(260px, 92vw);
    padding: var(--space-md);

    background: var(--card-bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);

    z-index: calc(var(--z-header) + 1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link,
  .nav-theme-toggle {
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-theme-toggle:hover {
    background: var(--accent-soft);
  }
}
/* =====================================================
   NAVBAR — LIGHT MODE READABILITY FIX
===================================================== */

html[data-theme="light"] .navbar {
  background: var(--nav-bg);
}

html[data-theme="light"] .nav-link,
html[data-theme="light"] .nav-theme-toggle,
html[data-theme="light"] .nav-toggle {
  color: var(--hero-text);
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-theme-toggle:hover {
  color: #ffffff;
}

/* =====================================================
   PHASE 5 — HERO
   ===================================================== */

/* ---------- Hero wrapper ---------- */
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  min-height: 100dvh;
  margin-top: calc(var(--nav-height) * -1);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  padding-inline: 0;
}

/* ---------- Video background ---------- */
.hero video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  z-index: -2;
  pointer-events: none;
}

/* ---------- Overlay (contrast layer) ---------- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    180deg,
    var(--overlay-soft),
    var(--overlay-strong)
  );
}

/* ---------- Content container ---------- */
.hero-content {
  max-width: 960px;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);

  text-align: center;
  
  padding-left: max(var(--container-padding), var(--safe-left));
  padding-right: max(var(--container-padding), var(--safe-right));
}

/* ---------- Typography ---------- */
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  max-width: 760px;
  color: var(--paragraph);
}

/* ---------- CTA row ---------- */
.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  min-width: 160px;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 900px) {
  .hero {
    min-height: calc(100dvh - var(--nav-height));
  }

  .hero-content {
    gap: var(--space-sm);
  }
}

@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero video {
    display: none;
  }

  .hero {
    background-size: cover;
    background-position: center;
  }
}

/* =====================================================
   MOBILE AUTO-HIDE NAVBAR
===================================================== */

@media (max-width: 900px) {
  .navbar {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }

  .navbar.nav-visible {
    transform: translateY(0);
  }

  /* Remove body offset on mobile */
  body {
    padding-top: 0;
  }
}
/* =====================================================
   HERO — LIGHT MODE OVERRIDES (LOCKED)
===================================================== */

html[data-theme="light"] .hero-title,
html[data-theme="light"] .hero-sub {
  color: rgb(198, 188, 188); /* off-white hero text */
}

html[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.55),
    rgba(10,10,10,0.85)
  );
}
/* =====================================================
   HERO BUTTONS — LIGHT MODE (LOCKED)
===================================================== */

html[data-theme="light"] .hero .btn.primary,
html[data-theme="light"] .hero .btn.secondary {
  background: transparent;
  color: rgb(198, 188, 188);
  border: 1px solid rgb(198, 188, 188);
  box-shadow: none;
}

html[data-theme="light"] .hero .btn.primary:hover,
html[data-theme="light"] .hero .btn.secondary:hover {
  background: rgba(198,188,188,0.12);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* =====================================================
   PHASE 6 — ABOUT
   ===================================================== */

/* ---------- About section wrapper ---------- */
#about-preview {
  position: relative;
}

/* ---------- Two-column layout (About only) ---------- */
#about-preview .about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* ---------- Text column ---------- */
.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-text p {
  max-width: 560px;
}

/* ---------- Actions ---------- */
.about-actions {
  margin-top: var(--space-sm);
}

/* ---------- Image column ---------- */
.about-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 900px) {
  #about-preview .about-section {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .about-text p {
    margin-inline: auto;
  }

  .about-actions {
    display: flex;
    justify-content: center;
  }
}
/* =====================================================
   PHASE 7 — WHY PARTNER
   ===================================================== */

/* ---------- Section wrapper ---------- */
#why {
  position: relative;
}

/* ---------- Horizontal scroll container ---------- */
.why-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-block: var(--space-md);
  scroll-snap-type: x mandatory;
}

/* Hide scrollbar (non-destructive) */
.why-scroll::-webkit-scrollbar {
  display: none;
}
.why-scroll {
  scrollbar-width: none;
}

/* ---------- Card shell ---------- */
.fixcard {
  flex: 0 0 220px;
  height: 240px;
  perspective: 1000px;
  scroll-snap-align: start;
}

/* ---------- Inner flip container ---------- */
.fix-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
}

/* ---------- Front & back faces ---------- */
.fix-front,
.fix-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  padding: var(--space-md);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

/* ---------- Front ---------- */


/* ---------- Back ---------- */
.fix-back {
  
  transform: rotateY(180deg);
}

/* ---------- Icon sizing ---------- */
.fix-front .icon {
  width: 48px;
  height: 48px;
}

/* ---------- Typography ---------- */
.fix-front h3,
.fix-back p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Hover / focus flip ---------- */
.fixcard:hover .fix-inner,
.fixcard:focus-within .fix-inner {
  transform: rotateY(180deg);
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 600px) {
  .fixcard {
    flex-basis: 200px;
    height: 220px;
  }
}
/* =====================================================
   PHASE 8 — SERVICES
   ===================================================== */

/* ---------- Section wrapper ---------- */
#services-preview {
  position: relative;
}

/* ---------- Horizontal scroll container ---------- */
.services-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-block: var(--space-md);
  scroll-snap-type: x mandatory;
}

/* Hide scrollbar cleanly */
.services-scroll::-webkit-scrollbar {
  display: none;
}
.services-scroll {
  scrollbar-width: none;
}

/* ---------- Service card ---------- */
.service-card {
  flex: 0 0 240px;
  min-height: 300px;

  
  border-radius: var(--radius-lg);
  padding: var(--space-md);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;

  scroll-snap-align: start;
}

/* ---------- Prevent pricing / generic card bleed ---------- */
.service-card.card-fixed {
  max-width: none;
}

/* ---------- Icon ---------- */
.service-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-sm);
}

/* ---------- Typography ---------- */
.service-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.85;
}

/* ---------- Enquire button ---------- */
.service-card .btn {
  align-self: stretch;
  margin-top: var(--space-sm);
}

/* ---------- Disable hover transforms leaking from JS ---------- */
.service-card[data-tilt="true"] {
  transform: none !important;
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 600px) {
  .service-card {
    flex-basis: 220px;
    min-height: 280px;
  }
}

/* =====================================================
   PHASE 9 — COMING SOON
   ===================================================== */

/* ---------- Section wrapper ---------- */
.coming-new {
  position: relative;
}

/* ---------- Cards wrapper ---------- */
.coming-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* ---------- Card ---------- */
.coming-card {
  
  border-radius: var(--radius-lg);
  padding: var(--space-md);

  display: flex;
  flex-direction: column;
  gap: var(--space-sm);

  min-height: 220px;
}

/* ---------- Prevent card bleed ---------- */
.coming-card.card,
.coming-card.pricing-card,
.coming-card.service-card {
  all: unset;
}

/* Re-apply core styles after reset */
.coming-card {
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ---------- SVG icon ---------- */
.coming-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

/* ---------- Typography ---------- */
.coming-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.coming-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.85;
}

/* ---------- Hover & focus (accessibility safe) ---------- */
.coming-card:hover,
.coming-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-soft);
}

/* ---------- Keyboard focus ---------- */
.coming-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Mobile tuning ---------- */
@media (max-width: 600px) {
  .coming-wrapper {
    grid-template-columns: 1fr;
  }
}
/* =====================================================
   PHASE 10 — PORTFOLIO
   ===================================================== */

/* ---------- Section wrapper ---------- */
#portfolio {
  position: relative;
}

/* ---------- Grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* ---------- Portfolio item ---------- */
.portfolio-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;

  border-radius: var(--radius-md);
  cursor: pointer;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ---------- Hover / focus ---------- */
.portfolio-item:hover,
.portfolio-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* ---------- Keyboard focus ---------- */
.portfolio-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Prevent image bleed ---------- */
.portfolio-item.card,
.portfolio-item.pricing-card,
.portfolio-item.service-card {
  all: unset;
}

/* Re-apply essential styles */
.portfolio-item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* =====================================================
   PORTFOLIO GALLERY (FULLSCREEN)
   ===================================================== */

/* ---------- Gallery shell ---------- */
.pf-gallery {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: none;
}

/* JS toggles aria-hidden */
.pf-gallery[aria-hidden="false"] {
  display: block;
}

/* ---------- Backdrop ---------- */
.pf-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-strong);
}

/* ---------- Inner wrapper ---------- */
.pf-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Main image ---------- */
.pf-main img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
}

/* ---------- Navigation buttons ---------- */
.pf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: none;
  border: none;
  color: var(--text);

  font-size: 2rem;
  cursor: pointer;
}

.pf-prev { left: var(--space-md); }
.pf-next { right: var(--space-md); }

/* ---------- Close button ---------- */
.pf-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);

  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Thumbnails ---------- */
.pf-thumbs-row {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--overlay-strong);
  padding: var(--space-xs);
}

.pf-thumbs {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  overflow-x: auto;
}

.pf-thumbs img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.7;
}

.pf-thumbs img.active {
  opacity: 1;
  outline: 2px solid var(--accent);
}

/* ---------- Mobile tuning ---------- */
@media (max-width: 600px) {
  .pf-main img {
    max-width: 95vw;
    max-height: 65vh;
  }
}

/* MOBILE SWIPE UX */
@media (max-width: 768px) {
  .pf-main {
    touch-action: pan-y;
  }

  .pf-main img {
    user-select: none;
    -webkit-user-drag: none;
  }
}
/* =====================================================
   PHASE 11 — PRICING
   ===================================================== */

/* ---------- Section wrapper ---------- */
#pricing {
  position: relative;
}

/* ---------- Section subtitles ---------- */
.pricing-subtitle {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

/* =====================================================
   HORIZONTAL SCROLL (pricing only)
   ===================================================== */

#pricing .h-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
}

#pricing .h-scroll::-webkit-scrollbar {
  height: 6px;
}

#pricing .h-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

/* =====================================================
   PRICING CARD (isolated)
   ===================================================== */

.pricing-card {
  flex: 0 0 240px;
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding: var(--space-md);
  border-radius: var(--radius-lg);

  background: var(--surface);
  border: 1px solid var(--border);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ---------- Hover ---------- */
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

/* ---------- Typography ---------- */
.pricing-card h3 {
  margin: var(--space-sm) 0 var(--space-xs);
  font-size: 1.05rem;
}

.pricing-card p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: var(--space-sm);
}

/* ---------- Button ---------- */
.pricing-card .btn {
  margin-top: auto;
}

/* =====================================================
   LOTTIE (pricing only)
   ===================================================== */

/* Prevent bleed from services / hero / coming soon */
.pricing-card lottie-player {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-sm);
  pointer-events: none;
}

/* Safety: if JSON fails */
.pricing-card lottie-player[hidden] {
  display: none;
}

/* =====================================================
   RESET FOREIGN CARD STYLES
   ===================================================== */

/* Kill inheritance from .card, .service-card, etc */
.pricing-card.card,
.pricing-card.service-card,
.pricing-card.fixcard {
  all: unset;
}

/* Re-apply required layout */
.pricing-card {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* =====================================================
   MOBILE TUNING
   ===================================================== */

@media (max-width: 600px) {
  .pricing-card {
    flex-basis: 220px;
  }

  .pricing-card lottie-player {
    width: 100px;
    height: 100px;
  }
}
/* =====================================================
   PHASE 12 — CONTACT
   ===================================================== */

#contact {
  position: relative;
}

/* =====================================================
   CONTACT GRID
   ===================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Stack on mobile */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   CONTACT FORM BOX
   ===================================================== */

.contact-form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

/* Heading */
.contact-form-box h2 {
  margin-bottom: var(--space-md);
}

/* =====================================================
   FORM ELEMENTS (isolated)
   ===================================================== */

.contact-form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-md);
}

.contact-form label {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 6px;
}

/* Inputs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

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

/* Focus */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* =====================================================
   FORM ACTIONS
   ===================================================== */

.contact-form .form-actions {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Status message */
#contactStatus {
  font-size: 0.85rem;
  min-height: 1em;
}

/* =====================================================
   CONTACT MEDIA
   ===================================================== */

.contact-media {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Image */
.contact-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--border);
}

/* =====================================================
   CONTACT SOCIALS
   ===================================================== */

.contact-socials {
  display: flex;
  justify-content: center;
}

/* Icon row */
.contact-socials .icons {
  display: flex;
  gap: var(--space-sm);
}

/* Icons */
.contact-social-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--border);

  transition: transform 0.2s ease, background 0.2s ease;
}

/* Hover */
.contact-social-icon:hover {
  transform: translateY(-2px);
  background: var(--surface);
}

/* SVG sizing */
.contact-social-icon svg {
  width: 20px;
  height: 20px;
}

/* =====================================================
   RESET FOREIGN STYLES
   ===================================================== */

/* Prevent contamination from footer / hero / cards */
.contact-form-box.card,
.contact-media.card {
  all: unset;
}

/* Re-apply required layout */
.contact-form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
/* =====================================================
   PHASE 13 — FOOTER
   ===================================================== */

.footer {
  position: relative;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: var(--footer-gradient);
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
}

/* =====================================================
   FOOTER GRID
   ===================================================== */

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Tablet */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   LEFT COLUMN
   ===================================================== */

.f-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Brand */
.brand-footer {
  display: inline-flex;
  align-items: center;
}

.brand-footer img {
  max-width: 160px;
}

/* Footer nav */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a,
.footer-links button {
  all: unset;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--accent);
}

/* Vertical group */
.footer-col-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* =====================================================
   MIDDLE COLUMN
   ===================================================== */

.f-middle {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.f-middle h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.f-middle p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Legal links */
.legal-links {
  margin-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.legal-links button {
  all: unset;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.legal-links button:hover {
  color: var(--accent);
}

/* =====================================================
   RIGHT COLUMN
   ===================================================== */

.f-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* =====================================================
   NEWSLETTER
   ===================================================== */

.newsletter h4 {
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.form-inline {
  display: flex;
  gap: var(--space-xs);
}

.form-inline input {
  flex: 1;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
}

.form-inline input:focus {
  outline: none;
  border-color: var(--accent);
}

#newsletterStatus {
  margin-top: 6px;
  font-size: 0.8rem;
  min-height: 1em;
}

/* Stack newsletter on small screens */
@media (max-width: 480px) {
  .form-inline {
    flex-direction: column;
  }
}

/* =====================================================
   FOOTER SOCIAL ICONS
   ===================================================== */

.footer-socials {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Icon container */
.footer-s-icon {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--border);

  transition: transform 0.2s ease, background 0.2s ease;
}

/* Hover */
.footer-s-icon:hover {
  transform: translateY(-2px);
  background: var(--surface);
}

/* SVG control */
.footer-s-icon svg {
  width: 18px;
  height: 18px;
}

/* =====================================================
   COPYRIGHT
   ===================================================== */

.footer .copyright {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =====================================================
   FOOTER SAFETY RESET
   ===================================================== */

/* Prevent button styles leaking from hero / cards */
.footer button {
  background: none;
  border: none;
  padding: 0;
}
/* =====================================================
   FOOTER — LIGHT MODE STYLE (NAVBAR MATCH)
===================================================== */

html[data-theme="light"] .footer {
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,0.12);
}
/* =====================================================
   FOOTER TEXT — LIGHT MODE (HERO STYLE)
===================================================== */

html[data-theme="light"] .footer,
html[data-theme="light"] .footer p,
html[data-theme="light"] .footer small,
html[data-theme="light"] .footer a,
html[data-theme="light"] .footer button,
html[data-theme="light"] .footer .copyright {
  color: var(--hero-text);
}

html[data-theme="light"] .footer a:hover,
html[data-theme="light"] .footer button:hover {
  color: #ffffff;
}

/* =====================================================
   PHASE 14 — MODALS (SINGLE SOURCE OF TRUTH)
   ===================================================== */

/* =====================================================
   MODAL ROOT (ALL STANDARD MODALS)
   ===================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);

  display: none;
  align-items: center;
  justify-content: center;

  padding: clamp(16px, 4vw, 32px);
}

/* Open state — ONLY visibility control */
.modal[aria-hidden="false"] {
  display: flex;
}

/* =====================================================
   MODAL BACKDROP
   ===================================================== */

.modal::before {
  content: "";
  position: absolute;
  inset: 0;

  background: var(--overlay-strong);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* =====================================================
   MODAL CONTENT BOX
   ===================================================== */

.modal-content,
.review-modal-content {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 620px;
  max-height: 85vh;

  background: var(--surface);
  color: var(--text);

  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);

  padding: clamp(20px, 4vw, 32px);
  overflow-y: auto;
}

/* Wider modal (About / Services previews) */
#modal .modal-content {
  max-width: 760px;
}

/* =====================================================
   CLOSE BUTTON
   ===================================================== */

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid var(--border);

  background: var(--surface-soft);
  color: var(--text);

  font-size: 1.4rem;
  cursor: pointer;

  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: var(--surface);
  transform: scale(1.05);
}

/* =====================================================
   MODAL TYPOGRAPHY
   ===================================================== */

.modal h2,
.modal h3 {
  margin-bottom: var(--space-sm);
  color: var(--heading);
}

.modal p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* =====================================================
   MODAL FORMS
   ===================================================== */

.modal form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modal label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.modal input,
.modal textarea,
.modal select {
  width: 100%;
  padding: 12px 14px;

  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  color: var(--text);
  font-size: 0.9rem;
}

.modal textarea {
  resize: vertical;
  min-height: 120px;
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Status messages */
#enquiryStatus,
#reviewCreateStatus {
  font-size: 0.8rem;
  min-height: 1em;
}

/* =====================================================
   MODAL BUTTONS
   ===================================================== */

.modal .btn.primary {
  width: 100%;
  margin-top: var(--space-sm);
}

/* =====================================================
   MOBILE TUNING
   ===================================================== */

@media (max-width: 480px) {
  .modal-content,
  .review-modal-content {
    padding: var(--space-md);
  }
}

/* =====================================================
   SAFETY RESET
   ===================================================== */

.modal button {
  box-shadow: none;
}

/* =====================================================
   PHASE 17 — TESTIMONIALS
   ===================================================== */

#testimonials {
  position: relative;
}

/* =====================================================
   TESTIMONIAL WRAPPER
   ===================================================== */

.testimonials-section {
  overflow: hidden;
}

/* =====================================================
   SLIDER SHELL
   ===================================================== */

.testimonial-slider {
  position: relative;
  margin-top: var(--space-md);
}

/* =====================================================
   REVIEWS CONTAINER (JS INJECTED)
   ===================================================== */

#reviews-container {
  display: flex;
  gap: var(--space-md);
  overflow: hidden;
}

/* =====================================================
   REVIEW CARD
   ===================================================== */

.review-card {
  flex: 0 0 100%;
  max-width: 100%;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  padding: var(--space-lg);

  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* =====================================================
   REVIEW CONTENT
   ===================================================== */

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
}

.review-name {
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
}

.review-rating {
  color: var(--accent);
  font-size: 0.85rem;
}

.review-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
/* ===============================
   TESTIMONIALS — FINAL
================================ */

#reviews-container {
  position: relative;
  min-height: 220px;
}

.review-card {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  animation: fadeIn .35s ease;
}

.review-card.active {
  display: block;
}

.review-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.review-skeleton {
  height: 160px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    #2a2a2a 25%,
    #3a3a3a 37%,
    #2a2a2a 63%
  );
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.review-card {
  display: none;
  text-align: center;
}

.review-card.active {
  display: block;
}
.review-rating {
  color: #f5b301; /* gold */
  font-size: 1.1rem;
  margin: 6px 0;
}

.review-stars {
  letter-spacing: 2px;
}

/* =====================================================
   SLIDER NAVIGATION
   ===================================================== */

.t-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;

  border-radius: 50%;
  border: 1px solid var(--border);

  background: var(--surface-soft);
  color: var(--text);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.4rem;
  cursor: pointer;

  transition: background 0.2s ease, transform 0.2s ease;
}

.t-nav:hover {
  background: var(--surface);
  transform: translateY(-50%) scale(1.05);
}

.t-nav.prev {
  left: -12px;
}

.t-nav.next {
  right: -12px;
}

/* =====================================================
   CTA
   ===================================================== */

.testimonial-cta {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
}

/* =====================================================
   MOBILE TUNING
   ===================================================== */

@media (max-width: 600px) {

  .review-card {
    padding: var(--space-md);
  }

  .t-nav {
    width: 36px;
    height: 36px;
  }

  .t-nav.prev {
    left: 0;
  }

  .t-nav.next {
    right: 0;
  }
}
