:root {
  --ink: #0f172a;
  --muted: #64748b;
  --canvas: #f8fafc;
  --canvas-alt: #f1f5f4;
  --canvas-blue: #f0f4f8;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-gold: #f0ab20;
  --bronze: #6b8e83;
  --bronze-light: #e2e8e5;
  --bronze-soft: #f1f5f4;
  --navy: #1e3a8a;
  --navy-deep: #172554;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] {
  --ink: #f8fafc;
  --muted: #94a3b8;
  --canvas: #0f172a;
  --canvas-alt: #1e293b;
  --canvas-blue: #172554;
  --brand: #60a5fa;
  --brand-dark: #3b82f6;
  --brand-gold: #fcd34d;
  --bronze: #8ebbb0;
  --bronze-light: #2c423d;
  --bronze-soft: #1a2a26;
  --navy: #eab308;
  --navy-deep: #fde68a;
  --line: #334155;
  --card: #1e293b;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

/* --- DARK MODE COMPONENT OVERRIDES --- */
[data-theme="dark"] .section-panel,
[data-theme="dark"] .feedback-card,
[data-theme="dark"] .quote-panel,
[data-theme="dark"] .about-list div,
[data-theme="dark"] .trust-strip div,
[data-theme="dark"] .stats-grid article,
[data-theme="dark"] .services-grid article,
[data-theme="dark"] .process-grid article,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .gallery-card {
  background: var(--card) !important;
  border-color: var(--line) !important;
}

[data-theme="dark"] .feedback-dropdown,
[data-theme="dark"] .quote-dropdown,
[data-theme="dark"] .faq-dropdown,
[data-theme="dark"] .faq-list details,
[data-theme="dark"] .quote-form input,
[data-theme="dark"] .quote-form select,
[data-theme="dark"] .quote-form textarea,
[data-theme="dark"] .feedback-form input,
[data-theme="dark"] .feedback-form textarea {
  background: var(--canvas-alt) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

[data-theme="dark"] .feedback-quote,
[data-theme="dark"] .quote-form label,
[data-theme="dark"] .faq-list summary,
[data-theme="dark"] .contact-card a,
[data-theme="dark"] .contact-card p,
[data-theme="dark"] .contact-card h3,
[data-theme="dark"] .hero-intro {
  color: var(--ink) !important;
}

[data-theme="dark"] .trust-strip div strong,
[data-theme="dark"] .about-list div strong,
[data-theme="dark"] .stats-grid article strong,
[data-theme="dark"] .services-grid h3,
[data-theme="dark"] .process-grid h3,
[data-theme="dark"] .project-card-body h3,
[data-theme="dark"] .gallery-card-body h3,
[data-theme="dark"] .about h2,
[data-theme="dark"] .section-heading h2 {
  color: var(--brand-gold) !important;
}

[data-theme="dark"] .site-header {
  background: var(--card) !important;
}

[data-theme="dark"] .nav-links a {
  color: var(--ink) !important;
}

[data-theme="dark"] .btn-ghost {
  color: var(--ink) !important;
  border-color: var(--line) !important;
  background: transparent !important;
}

[data-theme="dark"] .btn-ghost:hover {
  background: var(--line) !important;
}

[data-theme="dark"] .nav-links {
  background: var(--card) !important;
}

[data-theme="dark"] .mobile-nav-toggle span {
  background: var(--ink) !important;
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(135deg, var(--card), var(--canvas-alt)) !important;
  border-top: 1px solid var(--line) !important;
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #d4af37, #b4850d) !important;
  color: #111 !important;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.15) !important;
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 14px 28px rgba(212, 175, 55, 0.3) !important;
}

[data-theme="dark"] .top-strip {
  background: var(--canvas-alt) !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--muted) !important;
}

[data-theme="dark"] .top-strip a {
  color: var(--navy) !important;
}

[data-theme="dark"] .brand-mark {
  background: linear-gradient(135deg, var(--canvas-alt), var(--card)) !important;
  color: var(--navy) !important;
  border: 1px solid var(--line) !important;
}

[data-theme="dark"] .site-notice-inner strong,
[data-theme="dark"] .site-notice-banner a,
[data-theme="dark"] .notice-icon {
  color: var(--brand) !important;
}

[data-theme="dark"] .theme-announcement-banner {
  background: rgba(17, 31, 50, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .theme-announcement-banner .banner-content p {
  color: #e0e6ed !important;
}

[data-theme="dark"] .theme-announcement-banner .close-banner-btn {
  color: var(--muted) !important;
}

[data-theme="dark"] .theme-announcement-banner .close-banner-btn:hover {
  color: #fff !important;
}

[data-theme="dark"] .mobile-action-call {
  background: linear-gradient(135deg, #f0ab20, #b4850d) !important;
  color: #111 !important;
  box-shadow: 0 2px 10px rgba(240, 171, 32, 0.3) !important;
}

[data-theme="dark"] .mobile-action-quote {
  background: rgba(30, 41, 59, 0.95) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(252, 211, 77, 0.4) !important;
}

[data-theme="dark"] .back-to-top {
  background: var(--canvas-alt) !important;
  color: var(--navy) !important;
  border: 1px solid var(--line) !important;
}

[data-theme="dark"] .rating-fieldset {
  background: var(--canvas-alt) !important;
  border-color: var(--line) !important;
}

[data-theme="dark"] .rating-fieldset legend {
  background: var(--card) !important;
  padding: 0 0.4rem !important;
  color: var(--brand-gold) !important;
  border-radius: 4px;
}

[data-theme="dark"] .rating-options label {
  color: #4ade80 !important;
}

[data-theme="dark"] .reviews-list li {
  background: var(--canvas-alt) !important;
  border-color: var(--line) !important;
}

[data-theme="dark"] .star-filter-btn {
  background: var(--canvas-alt) !important;
  color: #4ade80 !important;
  border-color: var(--line) !important;
}

[data-theme="dark"] .star-filter-btn.is-active {
  background: #4ade80 !important;
  color: #111 !important;
  border-color: #4ade80 !important;
}
/* ------------------------------------- */

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

section[id], div[id] {
  scroll-margin-top: 74px;
}

@media (min-width: 901px) {
  section[id], div[id] {
    scroll-margin-top: 94px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background-color: var(--canvas);
  transition: background-color 1.2s ease;
  line-height: 1.75;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  position: relative;
}

body.nav-is-open {
  overflow: hidden;
  touch-action: none;
}

*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Decorative gradient overlays */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 5%, rgba(37, 99, 235, 0.07), transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(107, 142, 131, 0.07), transparent 28%);
}

/* ── PAGE BORDER — Permanently stable on mobile scroll ───────
   WHY THE BOTTOM USED TO JUMP:
   Any element whose "bottom edge" is computed from its height
   (height: 100dvh, 100lvh, etc.) will repaint that edge every
   time the browser address-bar shows or hides — causing the
   visible jump.

   FIX — Split the border into independent pieces:
   • #page-border  → top + left + right only (no height-based bottom)
   • body::after   → bottom only, pinned with `bottom: 0` (no height
                     calculation at all — always exactly at the
                     current visual viewport's bottom edge)
─────────────────────────────────────────────────────────────── */

/* ── TOP + LEFT + RIGHT ─────────────────────────────────────── */
#page-border {
  position: fixed;
  top: 0;
  left: 0;
  /* Width spans full viewport */
  width: 100vw;
  /* Height only needs to reach top — we don't use the bottom of
     this element for any border, so we can set a safe large value */
  height: 100%;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 99999;
  /* Only top, left, right — NO bottom shadow */
  box-shadow:
    inset  2px  0   0 0 var(--brand),   /* left  */
    inset -2px  0   0 0 var(--brand),   /* right */
    inset  0    2px 0 0 var(--bronze);  /* top   */
  /* GPU compositing */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: auto;
}

[data-theme="dark"] #page-border {
  box-shadow:
    inset  2px  0   0 0 var(--brand-gold),
    inset -2px  0   0 0 var(--brand-gold),
    inset  0    2px 0 0 var(--bronze);
}

/* ── BOTTOM BORDER — Independently anchored to viewport bottom ─
   Uses body::after so it is ALWAYS at bottom: 0 of the visual
   viewport. No height, no dvh, no lvh — therefore it can never
   jump when the browser address-bar appears or disappears.
─────────────────────────────────────────────────────────────── */
body::after {
  content: "";
  position: fixed;
  /* Anchored directly — no height math involved */
  bottom: 0;
  left: 0;
  right: 0;
  /* Account for iOS home indicator / Android nav bar */
  bottom: env(safe-area-inset-bottom, 0px);
  /* The visible 2px line sits above the safe area */
  height: 2px;
  background: var(--bronze);
  z-index: 99999;
  pointer-events: none;
  /* GPU layer — composited independently, never repaints */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: auto;
}

[data-theme="dark"] body::after {
  background: var(--bronze);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  z-index: -1;
  filter: blur(18px);
  opacity: 0.6;
}

.bg-shape-1 {
  width: 260px;
  height: 260px;
  top: -90px;
  right: 8%;
  background: rgba(240, 171, 32, 0.22);
}

.bg-shape-2 {
  width: 210px;
  height: 210px;
  bottom: 10%;
  left: -70px;
  background: rgba(13, 45, 83, 0.16);
}

/* --- Theme Announcement Banner --- */
.theme-announcement-banner {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translate(-50%, -150%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(13, 29, 52, 0.15);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 90%;
  max-width: 540px;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s ease;
  opacity: 0;
  pointer-events: none;
}

.theme-announcement-banner.show-banner {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.banner-icon {
  font-size: 1.2rem;
  color: var(--brand);
}

.banner-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--navy-deep);
  line-height: 1.4;
}

.close-banner-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.close-banner-btn:hover {
  color: #ef4444;
  transform: scale(1.1);
}

.banner-ok-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.banner-ok-btn:hover {
  background: var(--brand-dark);
  transform: scale(1.05);
}

@media (max-width: 760px) {
  .theme-announcement-banner {
    top: 10px;
    padding: 0.7rem 1rem;
    width: 95%;
  }
  .banner-content p {
    font-size: 0.85rem;
  }
}


body.nav-is-open {
  overflow: hidden;
}

body.nav-is-open .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  animation: none;
  background: transparent !important;
  border-bottom-color: transparent !important;
}

body.nav-is-open .brand,
body.nav-is-open #whatsapp-float,
body.nav-is-open .back-to-top {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.nav-is-open .mobile-nav-toggle {
  margin-left: auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(245, 241, 234, 0.94);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: background-color 1.2s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.top-strip {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fdf6e8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.top-strip-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
}

.top-strip p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.top-strip a {
  color: #ffe7b1;
  text-decoration: none;
}

.top-strip a:hover {
  color: #fff;
}

.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  padding: 1rem 0;
  position: relative;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-nav-toggle span {
  width: 30px;
  height: 3px;
  background: var(--navy);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  z-index: 1001;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
}

.brand-text {
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition:
    border-color 200ms ease,
    color 200ms ease,
    transform 200ms ease,
    letter-spacing 200ms ease;
}

@media (min-width: 901px) {
  .navbar {
    gap: 0.5rem;
  }
  .nav-links {
    flex-wrap: nowrap;
    gap: 0.6rem;
  }
  .nav-links a {
    white-space: nowrap;
    font-size: 0.85rem;
  }
  .nav-action-buttons {
    gap: 0.5rem;
    margin-left: 0.2rem;
  }
  .nav-cta {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

.nav-action-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-left: 0.5rem;
}

.nav-cta {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--bronze), var(--brand-dark));
  box-shadow: 0 9px 20px rgba(176, 122, 68, 0.28);
}

.nav-cta:hover {
  transform: translateY(-1px);
  letter-spacing: normal;
  border-color: transparent !important;
}

.btn-call {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.nav-links a:hover {
  border-color: var(--brand);
  color: var(--navy-deep);
  transform: translateY(-1px) translateX(2px);
  letter-spacing: 0.02em;
}

/* =========================================
   SITE NOTICE BANNER
   ========================================= */
.site-notice-banner {
  background: #fff8e8;
  border-bottom: 1px solid rgba(176, 122, 68, 0.2);
  color: #765315;
  padding: 0.75rem 0;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.site-notice-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.site-notice-inner p {
  margin: 0;
}

.site-notice-inner strong {
  color: var(--navy-deep);
}

.notice-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #d1ae62;
  margin-top: 2px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(1rem, 2.2vw, 1.8rem);
  align-items: center;
  padding: 1.5rem 0 2.7rem;
  text-align: center;
}

.hero-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: rgba(176, 122, 68, 0.1);
  border: 1px solid rgba(176, 122, 68, 0.2);
  animation: heroFadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

[data-theme="dark"] .hero-copy .eyebrow {
  color: var(--brand-gold) !important;
  background: rgba(212, 175, 55, 0.1) !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
}

.hero-copy h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.95rem, 3.8vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.018em;
  font-weight: 800;
  margin: 0.2rem auto 0.85rem;
  max-width: 22ch;
  color: var(--navy-deep);
  animation: heroFadeSlideUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

[data-theme="dark"] .hero-copy h1 {
  color: #f1f5f9;
}

.eyebrow {
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.hero-intro {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
  line-height: 1.72;
  margin-left: auto;
  margin-right: auto;
  animation: heroFadeSlideUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  animation: heroFadeSlideUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.hero-actions .btn {
  position: relative;
  overflow: hidden;
  font-weight: 800;
  font-size: 0.94rem;
  padding: 0.72rem 0.85rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.25s ease,
    color 0.25s ease;
}

/* Light-sweep shimmer on button hover */
.hero-actions .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-22deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.hero-actions .btn:hover::after {
  left: 140%;
}

.hero-actions .btn:hover {
  transform: translateY(-2.5px);
}

.hero-actions .btn:active {
  transform: translateY(0.5px) scale(0.98);
  transition-duration: 0.08s;
}

/* Phone icon playful wiggle animation */
@keyframes phoneIconWiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-14deg) scale(1.1); }
  40% { transform: rotate(14deg) scale(1.1); }
  60% { transform: rotate(-8deg) scale(1.05); }
  80% { transform: rotate(8deg); }
}

.hero-actions .btn:hover .phone-icon {
  animation: phoneIconWiggle 0.6s ease-in-out;
}

.hero-actions .phone-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

@keyframes heroFadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  box-shadow: 0 10px 24px rgba(13, 45, 83, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(13, 45, 83, 0.28);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
  animation: heroFadeSlideUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
}

.trust-strip div {
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.24s ease,
              border-color 0.24s ease;
}

.trust-strip div:hover {
  transform: translateY(-2.5px);
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(176, 122, 68, 0.12);
}

.stats-shell {
  margin: 0.2rem auto 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.stats-grid article {
  border-radius: 16px;
  border: 1px solid rgba(176, 122, 68, 0.24);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 0.9rem 0.7rem;
  box-shadow: 0 8px 20px rgba(13, 29, 52, 0.06);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.stats-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(176, 122, 68, 0.18);
  border-color: rgba(176, 122, 68, 0.5);
}

.stats-grid strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
  color: var(--bronze);
}

.stats-grid span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.trust-strip div,
.about-list div,
.contact-card,
.feedback-card,
.services article,
.about-panel {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(224, 231, 255, 0.92));
  border: 1px solid rgba(176, 122, 68, 0.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.trust-strip div,
.services article,
.about-panel,
.about-list div,
.contact-card,
.feedback-card {
  color: var(--ink);
}

.feedback-card {
  grid-area: feedback;
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feedback-card .contact-label {
  text-align: center;
  width: 100%;
}

.feedback-stars {
  color: #f59e0b;
  font-size: 1.2rem;
  margin: 0.2rem 0 0.35rem;
  letter-spacing: 2px;
  text-align: center;
  width: 100%;
}

.feedback-quote {
  font-family: "Montserrat", sans-serif;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy-deep);
  margin: 0.3rem auto;
  max-width: 60ch;
  text-align: center;
  transition: opacity 0.3s ease;
}

.feedback-meta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bronze);
  margin: 0.2rem auto 0;
  text-align: center;
  transition: opacity 0.3s ease;
}

.feedback-btn-group {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  width: auto;
  margin: 0.85rem auto 0;
  flex-wrap: nowrap;
}

.feedback-btn {
  flex: 0 0 auto;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.42rem 0.95rem;
  border-radius: 8px;
  line-height: 1.2;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

[data-theme="dark"] .feedback-meta {
  color: var(--brand-gold) !important;
}

.trust-strip div {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.2rem;
}

.trust-strip strong,
.about-list strong {
  display: block;
  color: var(--bronze);
}

.trust-strip span,
.about-list span,
.contact-card span {
  color: var(--muted);
}

.contact-card-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy) !important;
  margin-top: 0.15rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0,0,0,0.12);
}

.contact-card-area svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: var(--bronze);
}

/* Handset icon on phone number links */
.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.phone-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: middle;
}

/* Slightly larger icon inside hero CTA buttons */
.btn .phone-icon {
  width: 1.1em;
  height: 1.1em;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(260px, 320px);
  grid-template-areas:
    "poster contact stats"
    "feedback feedback feedback";
  gap: 1rem;
  align-items: start;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}

.stats-shell-hero {
  grid-area: stats;
  margin: 0;
  align-self: start;
}

.stats-shell-hero .stats-grid {
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.poster-frame {
  grid-area: poster;
  position: relative;
  border-radius: 22px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 440px;
  margin-inline: auto;
}

.poster-flip-container {
  perspective: 1200px;
  -webkit-perspective: 1200px;
}

.poster-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  animation: flipPoster 14s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.poster-flip-container:hover .poster-flipper,
.poster-flip-container:focus-within .poster-flipper,
.poster-flip-container.manual-flipped .poster-flipper {
  animation-play-state: paused;
  transform: rotateY(180deg);
}

.poster-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  overflow: hidden;
  transform: rotateY(0deg);
  border: 2px solid rgba(176, 122, 68, 0.3);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.05);
  background: linear-gradient(135deg, var(--canvas-alt), var(--canvas-blue));
  box-sizing: border-box;
}

[data-theme="dark"] .poster-front {
  border-color: rgba(176, 122, 68, 0.5);
  background: linear-gradient(135deg, var(--card), var(--canvas-alt));
}

.poster-intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  animation: fadeOutIntro 0.8s ease forwards 3.0s;
  pointer-events: none;
}

.intro-banner {
  flex: 1;
  width: 100%;
  transform-origin: top;
  transform: scaleY(0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, min(6vw, 6vh), 2.2rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  box-shadow: inset 0 -20px 30px rgba(0,0,0,0.1);
}
.intro-banner:last-child {
  border-bottom: none;
}

.banner-1 { 
  background: var(--canvas-alt); 
  color: #081b33;
  animation: unrollBanner 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.1s; 
}
.banner-2 { 
  background: var(--brand-gold); 
  color: #081b33;
  animation: unrollBanner 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.9s; 
}
.banner-3 { 
  background: var(--brand); 
  color: #ffffff;
  animation: unrollBanner 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1.7s; 
}

[data-theme="dark"] .banner-1 { color: #ffffff; }
[data-theme="dark"] .banner-2 { color: #081b33; }
[data-theme="dark"] .banner-3 { color: #081b33; }

@keyframes unrollBanner {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}
@keyframes fadeOutIntro {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}


.poster-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--canvas-alt), var(--canvas-blue));
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(176, 122, 68, 0.3);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.05);
  overflow: hidden;
  box-sizing: border-box;
}

[data-theme="dark"] .poster-back {
  background: linear-gradient(135deg, var(--card), var(--canvas-alt));
  border-color: rgba(176, 122, 68, 0.5);
}

.paint-anim-wrap {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  padding-bottom: 45px;
}

.paint-anim-wrap.active {
  display: flex;
  pointer-events: auto;
  animation: fadeInPaintWrap 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInPaintWrap {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.roller-svg {
  color: var(--brand);
  margin-bottom: -15px;
  z-index: 2;
  position: relative;
}
.anim-roller.active .roller-svg {
  animation: rollMove 2.4s infinite ease-in-out alternate;
}

.paint-stroke {
  width: 0;
  height: 20px;
  background: var(--brand);
  border-radius: 10px;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(176, 122, 68, 0.35);
}
.anim-roller.active .paint-stroke {
  animation: strokeExpand 2.4s infinite ease-in-out alternate;
}

.brush-svg {
  color: var(--brand-gold, #f0ab20);
  margin-bottom: -15px;
  z-index: 2;
  position: relative;
}
.anim-brush.active .brush-svg {
  animation: brushMove 2.4s infinite ease-in-out alternate;
}
.brush-stroke {
  width: 0;
  height: 28px;
  background: linear-gradient(90deg, var(--brand), var(--brand-gold, #f0ab20));
  border-radius: 14px;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(240, 171, 32, 0.35);
}
.anim-brush.active .brush-stroke {
  animation: strokeExpandBrush 2.4s infinite ease-in-out alternate;
}

.drops-container {
  position: relative;
  width: 100px;
  height: 90px;
  display: flex;
  justify-content: center;
}
.drop {
  position: absolute;
  top: -30px;
  width: 14px;
  height: 22px;
  background: var(--navy);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
}
.anim-drops.active .drop-1 { animation: drip 2.2s infinite; left: 15px; animation-delay: 0s; background: var(--navy); }
.anim-drops.active .drop-2 { animation: drip 2.2s infinite; left: 45px; animation-delay: 1.1s; background: var(--brand); }
.anim-drops.active .drop-3 { animation: drip 2.2s infinite; left: 75px; animation-delay: 0.55s; background: var(--brand-gold, #f0ab20); }

.puddle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 10px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0;
}
.anim-drops.active .puddle {
  animation: puddleSplash 2.2s infinite;
}

[data-theme="dark"] .drop-1 {
  background: var(--brand-gold, #f0ab20);
}
[data-theme="dark"] .puddle {
  background: var(--brand-gold, #f0ab20);
}

.paint-text {
  margin-top: 1.6rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.35rem;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .paint-text {
  color: var(--brand-gold) !important;
}

/* 3 Animation Indicator Pills on Poster Back */
.anim-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 8px;
  border-radius: 30px;
  border: 1px solid rgba(176, 122, 68, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  z-index: 50;
  max-width: 92%;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

[data-theme="dark"] .anim-indicators {
  background: rgba(18, 28, 45, 0.94);
  border-color: rgba(176, 122, 68, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.anim-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 6px 11px;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy-light, #4a5d78);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
  white-space: nowrap;
}

[data-theme="dark"] .anim-dot {
  color: #a0aec0;
}

.anim-dot i {
  font-size: 0.72rem;
  pointer-events: none;
}

.anim-dot span {
  pointer-events: none;
}

.anim-dot:hover {
  color: var(--brand);
  background: rgba(176, 122, 68, 0.12);
}

.anim-dot.active {
  background: var(--brand);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(176, 122, 68, 0.4);
  transform: scale(1.04);
}

.anim-dot.active i {
  transform: scale(1.1);
}

@keyframes flipPoster {
  0%, 35% { transform: rotateY(0deg); }
  40%, 94% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes rollMove {
  0% { transform: translateX(-45px) rotate(-15deg); }
  100% { transform: translateX(45px) rotate(15deg); }
}

@keyframes strokeExpand {
  0% { width: 0; transform: translateX(-35px); opacity: 0; }
  15% { opacity: 1; }
  100% { width: 130px; transform: translateX(0); opacity: 1; }
}

@keyframes brushMove {
  0% { transform: translate(-45px, -15px) rotate(-30deg); }
  100% { transform: translate(45px, 15px) rotate(10deg); }
}

@keyframes strokeExpandBrush {
  0% { width: 0; transform: translate(-30px, -10px) rotate(-10deg); opacity: 0; }
  15% { opacity: 1; }
  100% { width: 140px; transform: translate(0, 0) rotate(5deg); opacity: 1; }
}

@keyframes drip {
  0% { top: -30px; opacity: 1; transform: scaleY(1); }
  60% { top: 60px; opacity: 1; transform: scaleY(1.2); }
  65% { top: 70px; opacity: 0; transform: scaleY(0.5); }
  100% { top: 70px; opacity: 0; }
}

@keyframes puddleSplash {
  0%, 55% { width: 0; transform: translateX(-50%); opacity: 0; }
  65% { opacity: 1; width: 45px; transform: translateX(-50%); }
  100% { width: 110px; transform: translateX(-50%); opacity: 0; }
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.contact-card-flip-container {
  grid-area: contact;
  perspective: 1000px;
  width: 100%;
  margin-inline: auto;
  transform: translateY(var(--contact-scroll-y, 0px));
  will-change: transform;
}

.contact-card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-out;
  transform-style: preserve-3d;
  animation: flipCard 20s infinite cubic-bezier(0.4, 0, 0.2, 1);
}


.contact-card-flip-container:hover .contact-card-flipper,
.contact-card-flip-container:focus-within .contact-card-flipper {
  animation: none;
  transform: rotateY(180deg);
}

.contact-card {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  min-width: 0;
  width: 100%;
  margin: 0;
  backface-visibility: hidden;
}

.contact-card-front {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: rotateY(0deg);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep)) !important;
  color: var(--beige-light) !important;
  border: 1px solid rgba(176, 122, 68, 0.4) !important;
  padding: 1.5rem 1rem;
}

[data-theme="dark"] .contact-card-front {
  background: linear-gradient(135deg, #1e3a8a, #0f172a) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .contact-card-front h3 {
  color: #f8fafc !important;
}

.contact-card-front h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem 0;
  line-height: 1.2;
  color: #fff;
}

.contact-card-front p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bronze);
  margin: 0;
}

.contact-card-back {
  transform: rotateY(180deg);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.contact-card-back a {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-decoration: none;
  padding: 0.2rem 0;
}

.contact-card-back span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.contact-card .phone-link {
  justify-self: center;
  margin-top: 0.5rem;
}

@keyframes flipCard {
  0%, 45% { transform: rotateY(0deg); }
  50%, 95% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

.contact-label,
.card-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}



.gallery-grid, .projects-grid {
  display: grid;
  gap: 1rem;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.project-card, .gallery-card {
  border: 1px solid rgba(176, 122, 68, 0.42);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 12px 26px rgba(13, 29, 52, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover, .gallery.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(176, 122, 68, 0.4);
}

.theme-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 99px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(176, 122, 68, 0.2);
}

[data-theme="dark"] .theme-toggle-item {
  background: rgba(13, 29, 52, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile specific pill sizing */
@media (max-width: 900px) {
  .theme-toggle-item {
    width: 100%;
    max-width: 280px;
    margin: 1.5rem auto 0;
    padding: 0.6rem 1rem;
  }
}

/* Desktop specific pill sizing */
@media (min-width: 901px) {
  .theme-toggle-item {
    padding: 0.3rem 0.6rem;
    margin-left: 0.2rem;
    gap: 0.5rem;
  }
}

.theme-social-divider {
  width: 1px;
  height: 20px;
  background: rgba(176, 122, 68, 0.3);
  margin: 0 0.2rem;
}

[data-theme="dark"] .theme-social-divider {
  background: rgba(255, 255, 255, 0.2);
}

.nav-social-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-social-icon {
    width: 34px;
    height: 34px;
  }
}

.nav-social-icon:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.nav-social-icon svg {
  fill: #fff;
  width: 15px;
  height: 15px;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle-text {
  font-size: 0.85rem;
  font-weight: 700;
}

.theme-toggle-btn:hover {
  background-color: var(--line);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.project-card:hover, .gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(176, 122, 68, 0.22);
  border-color: rgba(176, 122, 68, 0.62);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  background: #f0eae1;
}

.slideshow-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: none;
  cursor: pointer;
}

.slideshow-img.active {
  opacity: 1;
  transform: scale(1);
}

.project-card:hover .slideshow-img.active,
.gallery-card:hover .slideshow-img.active {
  transform: scale(1.04);
  transition: transform 0.4s ease-out;
}

/* ---- Card manual nav arrows ---- */
.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(5px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 150ms, transform 150ms;
  opacity: 0;
  pointer-events: none;
}
.card-image-wrapper:hover .card-arrow {
  opacity: 1;
  pointer-events: auto;
}
.card-arrow:hover {
  background: rgba(176, 122, 68, 0.88);
  transform: translateY(-50%) scale(1.12);
}
.card-prev { left: 0.55rem; }
.card-next { right: 0.55rem; }

/* ---- Lightbox manual nav arrows ---- */
.modal-overlay .modal-content .lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
  margin: 0;
}
.modal-overlay .modal-content .lightbox-nav-btn:hover {
  background: rgba(176, 122, 68, 0.95);
  transform: translateY(-50%) scale(1.15);
}
.modal-overlay .modal-content .lightbox-prev { left: -24px !important; right: auto !important; }
.modal-overlay .modal-content .lightbox-next { right: -24px !important; left: auto !important; }

@media (max-width: 768px) {
  .modal-overlay .modal-content .lightbox-prev { left: 10px !important; }
  .modal-overlay .modal-content .lightbox-next { right: 10px !important; }
}

.lightbox-content {
  width: auto !important;
  max-width: 90vw !important;
  display: inline-block !important;
  margin: 0 auto !important;
}

#lightbox-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

/* ---- Image counter badge ---- */
.card-counter {
  position: absolute;
  bottom: 0.55rem;
  right: 0.65rem;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  pointer-events: none;
  z-index: 10;
}

.project-card-body, .gallery-card-body {
  padding: 1.15rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-card-body h3, .gallery-card-body h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
  color: var(--bronze);
  font-weight: 800;
}

.project-card-body p, .gallery-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 600;
}

.collection-slider-card {
  border: 1px solid rgba(176, 122, 68, 0.2);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.92);
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.collection-slider-card:not(.is-popped-out):hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(176, 122, 68, 0.15);
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s ease;
}

.slider-slide:hover {
  opacity: 0.95;
}

.slide-color-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.2rem;
  padding: 0 1rem;
  user-select: text;
  cursor: text;
}

.slide-color-hex {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  user-select: text;
  cursor: text;
}

/* For very light colors, we flip the text to dark */
.slider-slide.light-text .slide-color-name {
  color: #1a1a1a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}
.slider-slide.light-text .slide-color-hex {
  color: #333;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.4);
}

/* Card Popout (Desktop Only) */
.color-collections-grid::after,
.color-palette-grid::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(13, 29, 52, 0.85);
  z-index: 999;
  backdrop-filter: blur(4px);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  pointer-events: none;
}

.color-collections-grid.has-popped-card::after,
.color-palette-grid.has-popped-card::after {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

  .collection-slider-card {
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, z-index 0s 0.3s;
  }
  .collection-slider-card.is-popped-out {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 700px;
    max-width: 90vw;
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 1000;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .collection-slider-card.is-popped-out .slider-viewport {
    height: 400px;
  }
  .collection-slider-card.is-popped-out .slide-color-name {
    font-size: 1.8rem;
  }
  .collection-slider-card.is-popped-out .slide-color-hex {
    font-size: 1.2rem;
  }

  .color-swatch-card {
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, z-index 0s 0.3s;
  }
  .color-swatch-card.is-popped-out {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    max-width: 90vw;
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 1000;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .color-swatch-card.is-popped-out .color-fill {
    height: 350px;
  }
  .color-swatch-card.is-popped-out .color-name {
    font-size: 1.8rem;
  }
  .color-swatch-card.is-popped-out .color-hex {
    font-size: 1.2rem;
  }

.slider-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(5px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0.9;
}

.slider-viewport:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(176, 122, 68, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.prev-arrow { left: 0.5rem; }
.next-arrow { right: 0.5rem; }

.collection-info {
  padding: 1.2rem;
  text-align: center;
  background: inherit;
}

.collection-info h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  color: var(--bronze);
  margin: 0 0 0.25rem 0;
  font-weight: 800;
}

.collection-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Search Results Grid reusing some previous styles */
.color-category-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 0 1rem 0;
}

.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
}

.color-swatch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(176, 122, 68, 0.2);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: left;
  width: 100%;
}

.color-swatch-card:not(.is-popped-out):hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(176, 122, 68, 0.15);
  border-color: rgba(176, 122, 68, 0.5);
}

.color-fill {
  width: 100%;
  height: 120px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.color-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: transparent;
}

.color-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}

.color-hex {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: monospace;
}

.copy-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(13, 29, 52, 0.85);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.color-swatch-card:hover .copy-tooltip,
.slider-slide:hover .copy-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.color-swatch-card.copied .copy-tooltip,
.slider-slide.copied .copy-tooltip {
  background: var(--brand);
  color: var(--navy-deep);
}

/* Dark Mode Overrides for Colors */
[data-theme="dark"] .color-search-input {
  background: rgba(30, 41, 59, 0.8);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .collection-slider-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .color-category-title {
  color: #f8fafc;
}
[data-theme="dark"] .color-swatch-card {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .color-name {
  color: #f8fafc;
}
[data-theme="dark"] .color-fill {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.feedback-card {
  grid-area: feedback;
  grid-column: 1 / -1;
  width: min(100%, 860px);
  max-width: 860px;
  justify-self: center;
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(224, 231, 255, 0.92));
  border: 1px solid rgba(176, 122, 68, 0.24);
  box-shadow: 0 12px 26px rgba(176, 122, 68, 0.14);
  animation: popIn 900ms ease both 120ms, bronzeFloat 7s ease-in-out infinite;
}

.feedback-quote {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--navy-deep);
}

.feedback-stars {
  margin: 0;
  color: #c48117;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
  font-weight: 800;
}

.feedback-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.feedback-btn {
  justify-self: start;
}

.contact-card a {
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 800;
}

.contact-card a:hover {
  color: var(--bronze);
}

.section-shell {
  margin: 3rem auto;
  width: 100%;
}

.section-panel {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(224, 231, 255, 0.94));
  border: 1px solid rgba(176, 122, 68, 0.28);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  animation: bronzeRise 900ms ease both;
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: bronzeShine 8s ease-in-out infinite;
  pointer-events: none;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0.35rem 0 0;
  color: var(--bronze);
}

.feedback-form-panel {
  animation-delay: 120ms;
}

.feedback-form {
  display: grid;
  gap: 0.6rem;
}

.feedback-dropdown {
  border: 1px solid rgba(176, 122, 68, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.quote-dropdown,
.faq-dropdown {
  border: 1px solid rgba(176, 122, 68, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.feedback-dropdown summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy-deep);
  padding: 0.85rem 1rem;
  list-style: none;
}

.quote-dropdown summary,
.faq-dropdown summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy-deep);
  padding: 0.85rem 1rem;
  list-style: none;
}

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

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

.feedback-dropdown summary::after {
  content: "+";
  float: right;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--bronze);
}

.quote-dropdown summary::after,
.faq-dropdown summary::after {
  content: "+";
  float: right;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--bronze);
}

.feedback-dropdown[open] summary::after {
  content: "-";
}

.quote-dropdown[open] summary::after,
.faq-dropdown[open] summary::after {
  content: "-";
}

.feedback-dropdown .feedback-form {
  padding: 0.2rem 1rem 1rem;
  border-top: 1px solid rgba(176, 122, 68, 0.24);
}

.quote-dropdown .quote-form,
.faq-dropdown .faq-list {
  padding: 0.2rem 1rem 1rem;
  border-top: 1px solid rgba(176, 122, 68, 0.24);
}

.feedback-form label {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy-deep);
}

.rating-fieldset {
  margin: 0.3rem 0 0;
  border: 1px solid rgba(176, 122, 68, 0.3);
  border-radius: 12px;
  padding: 0.65rem 0.75rem 0.7rem;
  background: rgba(255, 255, 255, 0.68);
}

.rating-fieldset legend {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy-deep);
  padding: 0 0.3rem;
}

.rating-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rating-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bronze);
}

.review-display {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(176, 122, 68, 0.26);
  padding-top: 1rem;
}

.review-display h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  color: var(--bronze);
}

.star-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.star-filter-btn {
  border: 1px solid rgba(176, 122, 68, 0.42);
  background: rgba(255, 250, 242, 0.92);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.89rem;
  font-weight: 700;
  color: var(--bronze);
  cursor: pointer;
}

.star-filter-btn.is-active {
  color: #fff;
  background: var(--bronze);
}

.reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.reviews-list::-webkit-scrollbar {
  width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
  background: rgba(176, 122, 68, 0.1);
  border-radius: 8px;
}

.reviews-list::-webkit-scrollbar-thumb {
  background: var(--bronze);
  border-radius: 8px;
}

.reviews-list li {
  border: 1px solid rgba(176, 122, 68, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.65rem 0.8rem;
}

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

.review-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-deep);
}

.review-stars {
  color: #c48117;
  font-weight: 800;
}

.review-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Testimonial Carousel */
.testimonial-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.testimonial-track {
  display: flex;
  align-items: start; /* Prevents cards from stretching vertically */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  /* Hide scrollbar for a clean look */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: center; /* Better snap on mobile */
  border: 1px solid rgba(176, 122, 68, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(13, 29, 52, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 29, 52, 0.12);
}

/* Watermark Quote Icon */
.testimonial-card::before {
  content: '\"';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: rgba(176, 122, 68, 0.12);
  position: absolute;
  top: -5px;
  left: 10px;
  z-index: -1;
  line-height: 1;
}

.testimonial-stars {
  color: #c48117;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.testimonial-msg {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.testimonial-author {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy-deep);
  text-align: right;
  border-top: 1px solid rgba(176, 122, 68, 0.15);
  padding-top: 0.6rem;
  margin-top: auto;
}

/* Dark Mode Overrides for Carousel */
[data-theme="dark"] .testimonial-card {
  background: rgba(20, 30, 45, 0.85);
  border: 1px solid rgba(176, 122, 68, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .testimonial-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .testimonial-author {
  color: var(--bronze);
  border-top: 1px solid rgba(176, 122, 68, 0.3);
}
[data-theme="dark"] .testimonial-card::before {
  color: rgba(176, 122, 68, 0.15);
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(176, 122, 68, 0.4);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: 2px solid rgba(176, 122, 68, 0.42);
  outline-offset: 1px;
}

.feedback-status {
  margin: 0.2rem 0 0;
  min-height: 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-deep);
}

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

.projects-grid,
.gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.project-card {
  border: 1px solid rgba(176, 122, 68, 0.32);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(13, 29, 52, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  display: flex;
  flex-direction: column;
  max-width: 380px;
  width: 100%;
}

[data-theme="dark"] .project-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(176, 122, 68, 0.28);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(13, 29, 52, 0.18);
}

[data-theme="dark"] .project-card:hover {
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.45);
  border-color: rgba(176, 122, 68, 0.5);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
}

.project-card img,
.card-image-wrapper img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.project-card:hover img,
.card-image-wrapper:hover img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: inherit;
}

.project-card-body h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bronze);
  line-height: 1.3;
}

[data-theme="dark"] .project-card-body h3 {
  color: var(--brand-gold, #fcd34d);
}

.project-card-body p,
.project-card-body .project-desc-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

[data-theme="dark"] .project-card-body p,
[data-theme="dark"] .project-card-body .project-desc-text {
  color: #cbd5e1;
}

@media (max-width: 1024px) {
  .projects-grid,
  .gallery-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .projects-grid,
  .gallery-cards-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.25rem;
    padding: 0.25rem 0 1rem 0;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
  }

  .projects-grid::-webkit-scrollbar,
  .gallery-cards-grid::-webkit-scrollbar {
    display: none;
  }

  .projects-grid .project-card,
  .gallery-cards-grid .project-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
  }
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.process-grid article {
  border-radius: 18px;
  border: 1px solid rgba(176, 122, 68, 0.32);
  background: rgba(255, 250, 242, 0.92);
  padding: 1.15rem 1rem 1.2rem;
  box-shadow: 0 8px 20px rgba(13, 29, 52, 0.06);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.process-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(176, 122, 68, 0.2);
  border-color: rgba(176, 122, 68, 0.6);
}

.process-grid h3 {
  margin: 0.25rem 0 0.4rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  color: var(--bronze);
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.area-chip-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.area-chip-grid span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 122, 68, 0.35);
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.88rem;
}

.area-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.area-note a {
  color: var(--navy-deep);
  font-weight: 800;
  text-decoration: none;
}

.area-note a:hover {
  color: var(--bronze);
}

.faq-list {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  border: 1px solid rgba(176, 122, 68, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.85rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.faq-list p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quote-panel {
  background: linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(224, 231, 255, 0.95));
}

.quote-form {
  display: grid;
  gap: 0.62rem;
}

.quote-form label {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy-deep);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(176, 122, 68, 0.4);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(176, 122, 68, 0.42);
  outline-offset: 1px;
}

.services-grid article {
  border: 1px solid rgba(176, 122, 68, 0.42);
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.3rem;
  margin: 0.1rem;
  background: rgba(255, 250, 242, 0.92);
  transition:
    transform 250ms ease,
    box-shadow 250ms ease,
    border-color 250ms ease;
}

.services-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(176, 122, 68, 0.22);
  border-color: rgba(176, 122, 68, 0.62);
}

.services-grid h3,
.about h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-top: 0.45rem;
  margin-bottom: 0.35rem;
  color: var(--bronze);
}

.services-grid .card-label,
.process-grid .card-label {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(240, 171, 32, 0.14);
  border: 1px solid rgba(240, 171, 32, 0.35);
  color: var(--navy-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .services-grid .card-label,
[data-theme="dark"] .process-grid .card-label {
  background: rgba(252, 211, 77, 0.15);
  border-color: rgba(252, 211, 77, 0.35);
  color: var(--brand-gold);
}

.about-panel-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.about-panel {
  border-radius: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.about-panel p:last-child {
  color: var(--muted);
}

.about-list {
  display: grid;
  gap: 1rem;
}

.about-list div {
  border-radius: 18px;
  padding: 1rem 1.15rem;
  display: grid;
  gap: 0.25rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(224, 231, 255, 0.9));
  border: 1px solid rgba(176, 122, 68, 0.24);
  box-shadow: 0 8px 20px rgba(176, 122, 68, 0.1);
  transition:
    transform 250ms ease,
    box-shadow 250ms ease,
    border-color 250ms ease;
}

.about-list div:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 30px rgba(176, 122, 68, 0.2);
  border-color: rgba(176, 122, 68, 0.5);
}

.site-footer {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #f5f7f8;
  animation: rise 800ms ease both;
}

.about-list div:nth-child(2) {
  animation-delay: 120ms;
}

.about-list div:nth-child(3) {
  animation-delay: 240ms;
  border-top: 3px solid var(--brand);
}

.contact-card {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(224, 231, 255, 0.92));
  border: 1px solid rgba(176, 122, 68, 0.24);
  box-shadow: 0 12px 26px rgba(176, 122, 68, 0.14);
}

.footer-content {
  display: none; /* replaced by footer-main */
}

.footer-col { display: none; }

/* ── Compact footer ─────────────────────────────────────────── */
.site-footer {
  font-size: 0.82rem;
  padding: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff7db;
  position: relative;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 180px;
  flex: 1 1 180px;
  margin: 0;
}

.footer-brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffe7b1;
  letter-spacing: 0.2px;
  line-height: 1.15;
  margin: 0;
}

.footer-tagline {
  font-size: 0.73rem;
  opacity: 0.75;
  color: #fff7db;
  line-height: 1.2;
  margin: 0;
}

/* Quick links column */
.footer-links-col {
  flex: 0 0 auto;
  margin: 0;
}

/* Contact column */
.footer-contact-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.6rem;
  flex: 1 1 240px;
  justify-content: flex-end;
  margin: 0;
}

.footer-phone,
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  color: #fff7db !important;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.15s;
}

.footer-phone:hover,
.footer-email:hover {
  color: var(--brand) !important;
}

.footer-social-row {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
}

.footer-social-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffe7b1;
  opacity: 0.75;
  white-space: nowrap;
}

/* Copyright bar */
.footer-bar {
  text-align: center;
  padding: 0.15rem 0;
  font-size: 0.7rem;
  opacity: 0.65;
  color: #fff7db;
  margin: 0;
}

/* footer links keep same colour as before */
.footer-main a {
  color: #fff7db;
  text-decoration: none;
}

.footer-main a:hover {
  color: var(--brand);
}

/* ── Footer Quick Links dropdown ──────────────────────────── */
.footer-dropdown {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
}

.footer-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  list-style: none;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: background 0.18s;
  user-select: none;
}

/* Remove default triangle in all browsers */
.footer-dropdown-toggle::-webkit-details-marker { display: none; }
.footer-dropdown-toggle::marker { display: none; }

.footer-dropdown-toggle:hover {
  background: rgba(255,255,255,0.14);
}

.footer-title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffe7b1;
  margin: 0;
  white-space: nowrap;
}

.footer-dropdown-chevron {
  width: 16px;
  height: 16px;
  fill: #ffe7b1;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* Rotate chevron when open */
.footer-dropdown[open] .footer-dropdown-chevron {
  transform: rotate(180deg);
}

.footer-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.3rem;
  display: grid;
  gap: 0;
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fdSlideDown 0.2s ease;
  min-width: 160px;
}

@keyframes fdSlideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.footer-dropdown-list li a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: #fff7db !important;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.footer-dropdown-list li a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bronze);
  flex-shrink: 0;
  opacity: 0.65;
}

.footer-dropdown-list li a:hover {
  background: rgba(255,255,255,0.08);
  border-left-color: var(--brand);
  color: #fff !important;
}

.footer-dropdown-list li a:hover::before {
  opacity: 1;
}

/* Social media icon links */
.social-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.18s, opacity 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28);
  color: #fff !important;
}

.social-link--facebook  { background: #1877f2; }
.social-link--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link--youtube   { background: #ff0000; }

/* "Find us on" label above footer social icons */
.social-links-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 0.4rem;
  color: #fff7db;
}

/* Navbar social icon cluster */
.nav-social-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(0,0,0,0.12);
  margin-left: 0.2rem;
}

.nav-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.nav-social-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.nav-social-icon:hover {
  transform: translateY(-2px) scale(1.12);
  box-shadow: 0 4px 10px rgba(0,0,0,0.22);
  opacity: 0.92;
  border-bottom: none !important;
  letter-spacing: normal !important;
}

.nav-social--facebook  { background: #1877f2; }
.nav-social--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.nav-social--youtube   { background: #ff0000; }

.copyright {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  opacity: 0.92;
}

.mobile-quick-actions {
  display: none;
}

.mobile-quick-actions a {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.mobile-quick-actions a:active {
  transform: scale(0.97);
}

.mobile-action-call {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}

.mobile-action-quote {
  color: var(--navy-deep);
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(176, 122, 68, 0.4);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 29, 52, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
  z-index: 20;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 14px 28px rgba(13, 29, 52, 0.24);
}

.cookie-btn--decline:hover { color: #fff; }

@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    transform: translateY(18px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.96) translateY(12px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-14px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes driftImage {
  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-24px, -3px);
  }

  50% {
    transform: translate(20px, 2px);
  }

  75% {
    transform: translate(-18px, 3px);
  }
}

@keyframes bronzeRise {
  from {
    transform: translateY(16px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bronzeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes bronzeShine {
  0% {
    transform: translateX(-120%);
  }

  40% {
    transform: translateX(120%);
  }

  100% {
    transform: translateX(120%);
  }
}

/* ============================================================
   GLOBAL STYLES FOR PROJECTS & GALLERY
   ============================================================ */
/* New layout for Projects and Gallery */
.projects-grid.left-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card,
.gallery-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.project-card img,
.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Animations for cards */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.project-card,
.gallery-card {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.project-card:nth-child(1),
.gallery-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2),
.gallery-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3),
.gallery-card:nth-child(3) { animation-delay: 0.6s; }

.project-card-body,
.gallery-card-body {
  padding: 1rem;
}

#projects, #gallery {
  width: 100%;
}

/* ============================================================
   TABBED GALLERY SHOWCASE
   ============================================================ */
.gallery-tabs-wrapper {
  display: flex;
  gap: 0.6rem;
  margin: 2rem 0 0.5rem;
  justify-content: center;
}

.gallery-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  border: 2px solid var(--bronze);
  border-radius: 999px;
  background: transparent;
  color: var(--bronze);
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms, color 200ms, box-shadow 200ms;
  letter-spacing: 0.02em;
}

.gallery-tab-btn:hover {
  background: var(--bronze-light);
}

.gallery-tab-btn.active {
  background: var(--bronze);
  color: #fff;
  box-shadow: 0 4px 14px rgba(176, 122, 68, 0.35);
}

/* Pane visibility */
.gallery-pane {
  display: none;
}
.gallery-pane.active {
  display: block;
  animation: galleryPaneFadeIn 0.4s ease forwards;
}
@keyframes galleryPaneFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.gallery-cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}


#gallery .section-panel,
#projects .section-panel {
  padding: 1.5rem;
}

#gallery .section-heading,
#projects .section-heading {
  margin-bottom: 0.7rem;
}

#gallery .card-image-wrapper,
#projects .card-image-wrapper {
  height: 175px;
}

#gallery .project-card-body,
#projects .project-card-body {
  padding: 0.85rem 0.9rem 0.9rem;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
#whatsapp-float {
  position: fixed;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  right: 4.5rem;
  bottom: 1rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

#whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  color: #fff;
}

#whatsapp-float span {
  display: inline;
}

#whatsapp-float svg {
  flex-shrink: 0;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 2.5rem;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(13, 45, 83, 0.3);
  transition: transform 180ms ease, background 180ms ease, opacity 300ms;
  opacity: 0;
  visibility: hidden;
}

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

.back-to-top:hover {
  background: var(--brand);
  transform: translateY(-3px);
  color: var(--navy-deep);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 27, 51, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fffaf2;
  border: 1px solid rgba(176, 122, 68, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 54px rgba(13, 29, 52, 0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.is-active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: #e6f8ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #1f5f2a;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
}

.modal-content h2 {
  font-family: "Montserrat", sans-serif;
  color: var(--navy-deep);
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
}

.modal-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.8rem;
}

.modal-content button {
  width: 100%;
}

/* Alternating section panel backgrounds */
#services .section-panel,
#projects .section-panel,
#faq .section-panel {
  background: linear-gradient(180deg, var(--canvas-alt), var(--canvas-blue));
}

#about .section-panel,
#process .section-panel {
  background: linear-gradient(180deg, var(--card), var(--bronze-soft));
}

.swipe-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  color: var(--bronze);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.8rem;
  animation: pulse-hint 1.5s infinite;
}

@keyframes pulse-hint {
  0%, 100% { transform: translateX(0); opacity: 0.8; }
  50% { transform: translateX(4px); opacity: 1; }
}

/* Hide mobile menu elements on desktop by default */
.mobile-swipe-handle {
  display: none;
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE OVERRIDES
   Breakpoints: 1200px · 1024px · 768px · 480px · 360px
   ============================================================ */

/* ── Large Desktop (min-width: 1200px) ─────────────────────── */
@media (min-width: 1200px) {
  .container {
    width: min(1160px, 92vw);
  }
  .gallery-cards-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  #projects, #gallery {
    display: block;
    width: 100%;
  }
  .mobile-only {
    display: none !important;
  }
}

/* ── Laptop & Tablet Landscape (max-width: 1024px) ─────────── */
@media (max-width: 1024px) {
  .gallery-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #gallery .card-image-wrapper,
  #projects .card-image-wrapper {
    height: 160px;
  }
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .poster-frame {
    order: 1;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    margin-bottom: 0.5rem;
  }

  .stats-shell-hero {
    order: 2;
    width: 100%;
  }

  .contact-card-flip-container {
    order: 3;
    width: 100%;
    max-width: 500px;
    transform: none; /* override parallax if any */
  }

  .feedback-card {
    order: 4;
    width: 100%;
    max-width: 100%;
  }

  /* Menu toggle for tablet/mobile */
  .mobile-nav-toggle {
    display: flex;
  }
  .mobile-nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Navigation Links - Dropdown */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* fallback */
    height: 100dvh;
    background: rgba(245, 241, 234, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: block; /* use block instead of flex to prevent overflow cut-offs */
    padding: 60px 0 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    /* Slower, smoother transition for closing (including swipe up) */
    transition: transform 0.8s ease-in-out, opacity 0.6s ease, visibility 0.8s;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(13, 29, 52, 0.85);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    /* Snappy transition for opening */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, visibility 0.5s;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .nav-links.is-open li {
    opacity: 1;
    transform: translateY(0);
  }

  /* stagger delays */
  .nav-links.is-open li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.is-open li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.is-open li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.is-open li:nth-child(5) { transition-delay: 0.25s; }
  .nav-links.is-open li:nth-child(6) { transition-delay: 0.3s; }
  .nav-links.is-open li:nth-child(7) { transition-delay: 0.35s; }
  .nav-links.is-open li:nth-child(8) { transition-delay: 0.4s; }
  .nav-links.is-open li:nth-child(9) { transition-delay: 0.45s; }
  .nav-links.is-open li:nth-child(10) { transition-delay: 0.5s; }
  .nav-links.is-open li:nth-child(11) { transition-delay: 0.55s; }
  .nav-links.is-open li:nth-child(12) { transition-delay: 0.6s; }

  .nav-links a {
    display: block;
    padding: 0.6rem;
    font-size: 1.15rem;
    font-weight: 800;
  }

  .nav-action-buttons {
    justify-content: center;
    margin-top: 0.8rem;
    margin-bottom: 1.8rem;
    margin-left: 0;
    padding: 0 1rem;
    width: 100%;
  }

  .nav-action-buttons .nav-cta {
    margin: 0;
    flex: 1;
    text-align: center;
    max-width: 160px;
    padding: 0.7rem 0.5rem;
    font-size: 1rem;
  }

  .mobile-swipe-handle {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .swipe-indicator {
    width: 48px;
    height: 6px;
    background: rgba(176, 122, 68, 0.6);
    border-radius: 10px;
    margin: 0 auto;
  }

  [data-theme="dark"] .swipe-indicator {
    background: rgba(255, 255, 255, 0.4);
  }

  .swipe-text {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .mobile-only {
    display: none !important;
  }
}

/* ── Tablet Portrait (max-width: 768px) ────────────────────── */
@media (max-width: 768px) {
  .hero {
    gap: 1.4rem;
    padding: 1.5rem 0 2rem;
  }
  .section-shell {
    margin: 1.8rem auto;
  }
  .hero-copy h1 {
    font-size: clamp(1.75rem, 4.2vw, 2.45rem);
    max-width: 100%;
  }
  .hero-image {
    height: 100%;
    object-fit: cover;
  }
  .hero-visual {
    grid-template-columns: 1fr;
    grid-template-areas:
      "poster"
      "stats"
      "contact"
      "feedback";
    align-items: stretch;
    justify-items: stretch;
    max-width: 100%;
  }
  .poster-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    margin-bottom: 1rem;
  }
  .contact-card-flip-container {
    position: static;
    min-width: 0;
  }

  .trust-strip {
    gap: 0.7rem;
    grid-template-columns: 1fr;
    margin-top: 1.1rem;
  }
  .trust-strip div {
    padding: 0.8rem 0.85rem;
  }

  /* Grid fallbacks */
  .services-grid,
  .about-panel-layout,
  .projects-grid,
  .process-grid,
  .projects-grid.left-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .stats-grid,
  .stats-shell-hero .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .site-footer {
    padding-bottom: calc(3.4rem + env(safe-area-inset-bottom, 0px));
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.35rem 0 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-brand-col {
    gap: 0;
    width: 100%;
    margin: 0;
  }
  .footer-brand-name {
    font-size: 0.92rem;
    line-height: 1.15;
  }
  .footer-tagline {
    font-size: 0.72rem;
    line-height: 1.15;
    opacity: 0.8;
  }
  .footer-links-col {
    width: auto;
    margin: 0;
  }
  .footer-dropdown-toggle {
    padding: 0.2rem 0.5rem;
    font-size: 0.74rem;
    border-radius: 6px;
  }
  .footer-title {
    font-size: 0.74rem;
  }
  .footer-contact-col {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.1rem 0.5rem;
    width: 100%;
    margin-top: 0;
  }
  .footer-phone,
  .footer-email {
    font-size: 0.76rem;
    gap: 0.15em;
    line-height: 1.15;
  }
  .footer-social-row {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    margin-top: 0;
  }
  .footer-social-label {
    font-size: 0.66rem;
    font-weight: 700;
    opacity: 0.75;
  }
  .footer-social-row .nav-social-icon {
    width: 22px;
    height: 22px;
  }
  .footer-social-row .nav-social-icon svg {
    width: 12px;
    height: 12px;
  }
  .footer-bar {
    padding: 0.1rem 0;
    font-size: 0.68rem;
    opacity: 0.65;
  }

  /* Gallery/Tabs */
  .gallery-cards-grid,
  #projects .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .gallery-tabs-wrapper {
    margin: 1rem 0 1rem;
    gap: 0.5rem;
  }
  .gallery-tab-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
  }
  #gallery .card-image-wrapper,
  #projects .card-image-wrapper {
    height: 140px;
  }
  #gallery .section-panel,
  #projects .section-panel {
    padding: 0.75rem;
  }

  /* Navbar */
  .navbar {
    align-items: flex-start;
  }
  .nav-links {
    gap: 0.55rem;
    flex-wrap: nowrap;
  }
  .nav-links a {
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .nav-cta {
    font-size: 0.82rem;
    padding: 0.38rem 0.65rem;
    white-space: nowrap;
  }
  .nav-social-group {
    display: flex;
  }

  /* Misc specific */
  .top-strip-inner {
    justify-content: center;
    text-align: center;
  }
  .hero-intro {
    font-size: 0.96rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 255px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
  }
  .hero-actions .btn {
    text-align: center;
    width: 100%;
    padding: 0.7rem 0.75rem;
    box-sizing: border-box;
  }
  .feedback-btn {
    justify-self: stretch;
    text-align: center;
  }
  .section-panel {
    padding: 1.4rem;
  }
  .services-grid article,
  .about-list div,
  .process-grid article {
    padding: 1rem;
  }
  .area-chip-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .faq-list summary {
    font-size: 0.96rem;
  }

  /* Performance / UI overrides */
  .bg-shape {
    display: none !important;
  }
  body::before {
    position: absolute !important;
    height: 100lvh !important;
    will-change: auto;
  }
  
  /* Quick Actions */
  .mobile-quick-actions {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1.2rem);
    max-width: 380px;
    bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.32rem 0.45rem;
    border-radius: 12px;
    background: rgba(13, 29, 52, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(8, 27, 51, 0.35);
  }
  .back-to-top {
    bottom: calc(3.8rem + env(safe-area-inset-bottom, 0px));
    width: 38px;
    height: 38px;
  }
  
  /* Whatsapp Float */
  #whatsapp-float {
    right: 0.8rem;
    bottom: calc(3.8rem + env(safe-area-inset-bottom, 0px));
    padding: 0.55rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  #whatsapp-float span {
    display: none;
  }
  .mobile-only {
    display: block !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   SMARTPHONE PORTRAIT  (max-width: 480px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  body {
    font-size: 15px;
    line-height: 1.62;
  }

  /* ── Navbar ── */
  .navbar {
    gap: 0.75rem;
    min-height: 60px;
    padding: 0.7rem 0;
  }
  .brand-text {
    font-size: 1.18rem;
  }

  /* ── Hero ── */
  .hero {
    padding-top: 0.8rem;
    padding-bottom: 1.4rem;
  }
  .hero-copy h1 {
    font-size: clamp(1.5rem, 7.5vw, 1.9rem);
    line-height: 1.18;
    margin-bottom: 0.55rem;
    max-width: 100%;
  }
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }
  .hero-intro {
    font-size: 0.92rem;
    line-height: 1.62;
    max-width: 100%;
  }

  /* ── Buttons ── */
  .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    /* Minimum 44px touch target */
    min-height: 44px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* ── Trust / Stats ── */
  .trust-strip {
    display: none;
  }
  .stats-grid,
  .stats-shell-hero .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  /* ── Top strip ── */
  .top-strip p {
    font-size: 0.77rem;
  }
  .top-strip-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.4rem 0;
  }

  /* ── Hero image ── */
  .hero-image {
    object-fit: cover;
  }

  /* ── Cards / Layout ── */
  .contact-card-flip-container,
  .feedback-card {
    width: 100%;
  }
  .section-heading h2 {
    font-size: clamp(1.22rem, 5.8vw, 1.42rem);
    line-height: 1.24;
  }

  /* ── Forms — CRITICAL: font-size ≥16px prevents iOS auto-zoom ── */
  .feedback-form input,
  .feedback-form textarea,
  .quote-form input,
  .quote-form select,
  .quote-form textarea {
    font-size: 16px !important;
    min-height: 44px;
  }
  .feedback-form label,
  .rating-fieldset legend,
  .rating-options label,
  .quote-form label {
    font-size: 0.88rem;
  }
  .review-message {
    font-size: 0.9rem;
  }
  .star-filter-btn {
    font-size: 0.9rem;
    min-height: 40px;
  }

  /* ── Footer ── */
  .footer-main {
    font-size: 0.78rem;
    gap: 0.35rem;
    padding: 0.5rem 0 0.35rem;
  }
  .footer-brand-name {
    font-size: 0.9rem;
  }
  .footer-tagline {
    font-size: 0.72rem;
    line-height: 1.35;
  }
  .site-footer {
    /* Compact padding clearing the sleek mobile quick-action bar */
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
  .footer-bar {
    padding: 0.25rem 0;
    font-size: 0.7rem;
  }

  /* ── Area chips ── */
  .area-chip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-list p {
    font-size: 0.9rem;
  }

  /* ── Gallery / Projects ── */
  .gallery-cards-grid,
  #projects .projects-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  #gallery .card-image-wrapper,
  #projects .card-image-wrapper {
    height: 200px;
  }
  #gallery .section-heading,
  #projects .section-heading {
    margin-bottom: 0.5rem;
  }

  /* ── Gallery tabs ── */
  .gallery-tabs-wrapper {
    flex-direction: row;
    justify-content: stretch;
    gap: 0.4rem;
  }
  .gallery-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.83rem;
    min-height: 40px;
  }

  /* ── Brand mark ── */
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* ── Mobile quick-actions ── */
  .mobile-quick-actions {
    /* Keep sleek and perfectly proportioned above safe-area home bar */
    width: calc(100% - 1rem);
    max-width: 350px;
    bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    padding: 0.28rem 0.38rem;
    gap: 0.35rem;
  }
  .mobile-quick-actions a {
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
    min-height: 34px;
    border-radius: 7px;
  }

  /* ── Review display ── */
  .review-display h3 {
    font-size: 1rem;
  }
}

/* ── Small Mobile (max-width: 360px) ───────────────────────── */
@media (max-width: 360px) {
  .brand-text {
    font-size: 1.08rem;
    white-space: nowrap;
  }
  .nav-links {
    gap: 0.55rem;
  }
  .nav-links a,
  .nav-cta {
    font-size: 0.76rem;
  }
  .hero-copy h1 {
    font-size: clamp(1.62rem, 9.6vw, 2rem);
  }
  .hero-intro {
    font-size: 0.9rem;
  }
  .section-panel,
  .services-grid article,
  .about-list div,
  .feedback-card,
  .contact-card,
  .process-grid article,
  .project-card-body {
    padding: 0.9rem;
  }
  #gallery .card-image-wrapper,
  #projects .card-image-wrapper {
    height: 180px;
  }
}

/* ══════════════════════════════════════════════════════════════
   SMARTPHONE LANDSCAPE  (max-height: 500px, orientation: landscape)
   Touch devices only — pointer: coarse prevents false matches on
   desktop windows that happen to be very short.
   ══════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {

  /* ── Compact sticky header ── */
  .site-header {
    position: sticky;
    top: 0;
  }
  .navbar {
    min-height: 52px;
    padding: 0.45rem 0;
    gap: 0.6rem;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .brand-text {
    font-size: 1rem;
  }
  .top-strip {
    /* Hide the top strip in landscape — saves 40px of precious height */
    display: none;
  }
  .site-notice-banner {
    display: none;
  }

  /* ── Mobile nav drawer in landscape ── */
  .nav-links {
    /* Full-height scrollable drawer so ALL links are reachable */
    height: 100dvh !important;
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 52px 0 2rem !important;
  }
  .nav-links.is-open {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .nav-links.is-open li {
    margin: 4px 0;
  }
  .nav-links a {
    font-size: 1rem !important;
    padding: 0.45rem 0.6rem !important;
  }
  .nav-action-buttons {
    flex-direction: row !important;
    gap: 0.6rem !important;
    margin-top: 0.6rem !important;
    margin-bottom: 0.8rem !important;
  }
  .nav-cta {
    padding: 0.5rem 0.8rem !important;
    font-size: 0.85rem !important;
  }

  /* ── Hero section ── */
  .hero {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    height: auto !important;
    min-height: auto !important;
  }
  .hero-copy h1 {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    line-height: 1.15;
    margin-bottom: 0.4rem;
  }
  .hero-intro {
    font-size: 0.87rem;
    line-height: 1.5;
  }
  .hero-actions {
    flex-direction: row;
    gap: 0.55rem;
    justify-content: center;
  }
  .hero-actions .btn {
    width: auto;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    min-height: 40px;
  }

  /* ── Visual/image area ── */
  .hero-visual {
    height: auto !important;
  }
  .poster-frame {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 4 / 5;
    height: auto !important;
    max-height: 350px !important;
    margin-bottom: 0.75rem !important;
  }

  /* ── Stats pinned below poster ── */
  .stats-shell-hero {
    position: static !important;
    margin-top: 0.75rem !important;
    transform: none !important;
  }
  .stats-grid,
  .stats-shell-hero .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }
  .stats-grid article strong {
    font-size: 1.3rem;
  }

  /* ── Sections — release all fixed height constraints ── */
  .services,
  .gallery-showcase,
  .about,
  .process,
  .faq,
  .contact {
    height: auto !important;
    min-height: auto !important;
  }

  /* ── Floating buttons — tuck out of the way ── */
  .mobile-quick-actions {
    display: none;
  }
  .back-to-top {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    right: 1rem !important;
  }
  #whatsapp-float {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 4.5rem;
  }
}

/* ── Privacy Policy Styles ────────────────────── */
.policy-container { max-width: 800px; margin: 2rem auto; padding: 1rem; }
.policy-container h1 { text-align: center; margin-bottom: 1.5rem; }
.policy-container h2 { margin-top: 1.2rem; }
.policy-container p, .policy-container li { line-height: 1.6; }
.policy-container ul { margin-left: 1.5rem; }

/* ── Success Modals (CSP Compatible) ────────────────────── */
.modal-content.success-modal {
  background: var(--card);
  text-align: center;
  padding: 2.2rem 1.8rem;
}

.success-modal .modal-icon {
  margin-bottom: 1rem;
}

.success-modal h2 {
  color: var(--brand-gold);
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  line-height: 1.3;
}

.success-modal .success-subtitle {
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.success-modal .job-number-box {
  background: var(--canvas-alt);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.job-number-box span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.job-number-box strong {
  display: block;
  font-size: 1.6rem;
  color: var(--brand);
  letter-spacing: 1px;
  font-weight: 800;
}

.success-modal .success-note {
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}


/* ── Small Mobile (max-width: 360px) ───────────────────────── */
@media (max-width: 360px) {
  .brand-text {
    font-size: 1.08rem;
    white-space: nowrap;
  }
  .nav-links {
    gap: 0.55rem;
  }
  .nav-links a,
  .nav-cta {
    font-size: 0.76rem;
  }
  .hero-copy h1 {
    font-size: clamp(1.62rem, 9.6vw, 2rem);
  }
  .hero-intro {
    font-size: 0.9rem;
  }
  .section-panel,
  .services-grid article,
  .about-list div,
  .feedback-card,
  .contact-card,
  .process-grid article,
  .project-card-body {
    padding: 0.9rem;
  }
  #gallery .card-image-wrapper,
  #projects .card-image-wrapper {
    height: 180px;
  }
}

/* ── Landscape phone (max-height: 500px) ────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  #whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }
  .mobile-quick-actions {
    display: none;
  }
}

/* ── Privacy Policy Styles ────────────────────── */
.policy-container { max-width: 800px; margin: 2rem auto; padding: 1rem; }
.policy-container h1 { text-align: center; margin-bottom: 1.5rem; }
.policy-container h2 { margin-top: 1.2rem; }
.policy-container p, .policy-container li { line-height: 1.6; }
.policy-container ul { margin-left: 1.5rem; }

/* ── Success Modals (CSP Compatible) ────────────────────── */
.modal-content.success-modal {
  background: #1e293b !important; /* Always dark slate */
  text-align: center;
  padding: 2.2rem 1.8rem;
  border: 1px solid #334155 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.success-modal .modal-icon {
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: #e6f4ea;
  color: #1e8e3e;
  border-radius: 50%;
}

.success-modal .modal-icon svg {
  width: 32px;
  height: 32px;
}

.success-modal h2 {
  color: #fcd34d !important; /* Brand gold */
  margin-bottom: 1.2rem;
  font-size: 1.7rem;
  line-height: 1.3;
}

.success-modal .success-subtitle {
  color: #f8fafc !important; /* White text */
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.success-modal .job-number-box {
  background: #0f172a !important; /* Deeper dark background */
  border: 2px solid #334155 !important;
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.job-number-box span {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8 !important; /* Muted slate */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.job-number-box strong {
  display: block;
  font-size: 1.8rem;
  color: #60a5fa !important; /* Bright blue */
  letter-spacing: 1px;
  font-weight: 800;
}

.success-modal .success-note {
  color: #cbd5e1 !important; /* Light slate */
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.success-modal .success-note strong {
  color: #f8fafc !important; /* White bold text */
  font-weight: 700;
}

.success-modal .success-btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.85rem;
  background: #f0ab20 !important;
  color: #000 !important;
  border: none;
  font-weight: 700;
}

.success-modal .success-btn:hover {
  background: #fcd34d !important;
}

/* ── Color Palette Classes for Strict CSP ────────────────────── */
.color-EFEBE9 { background-color: #EFEBE9 !important; }
.color-D7D0C8 { background-color: #D7D0C8 !important; }
.color-D6D1C4 { background-color: #D6D1C4 !important; }
.color-F3EFE0 { background-color: #F3EFE0 !important; }
.color-F2EFE8 { background-color: #F2EFE8 !important; }

.color-D4D5D4 { background-color: #D4D5D4 !important; }
.color-A8A9A8 { background-color: #A8A9A8 !important; }
.color-5C5D5C { background-color: #5C5D5C !important; }
.color-C5C7C4 { background-color: #C5C7C4 !important; }
.color-4A4A4B { background-color: #4A4A4B !important; }

.color-E2725B { background-color: #E2725B !important; }
.color-C46241 { background-color: #C46241 !important; }
.color-C78B3F { background-color: #C78B3F !important; }
.color-EDC9AF { background-color: #EDC9AF !important; }
.color-E09C5A { background-color: #E09C5A !important; }

.color-3C4A5A { background-color: #3C4A5A !important; }
.color-2A4B5C { background-color: #2A4B5C !important; }
.color-1D2B44 { background-color: #1D2B44 !important; }
.color-355E3B { background-color: #355E3B !important; }
.color-005C66 { background-color: #005C66 !important; }

/* For very light colors, we flip the text to dark */
.slider-slide.light-text .slide-color-name {
  color: #1a1a1a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}
.slider-slide.light-text .slide-color-hex {
  color: #333;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.4);
}

/* ── Color Palette Classes for Strict CSP ────────────────────── */
/* Neutrals */
.color-EFEBE9 { background-color: #EFEBE9 !important; }
.color-D7D0C8 { background-color: #D7D0C8 !important; }
.color-D6D1C4 { background-color: #D6D1C4 !important; }
.color-F3EFE0 { background-color: #F3EFE0 !important; }
.color-F2EFE8 { background-color: #F2EFE8 !important; }

/* Greys */
.color-D4D5D4 { background-color: #D4D5D4 !important; }
.color-A8A9A8 { background-color: #A8A9A8 !important; }
.color-5C5D5C { background-color: #5C5D5C !important; }
.color-C5C7C4 { background-color: #C5C7C4 !important; }
.color-4A4A4B { background-color: #4A4A4B !important; }

/* Earthy */
.color-E2725B { background-color: #E2725B !important; }
.color-C46241 { background-color: #C46241 !important; }
.color-C78B3F { background-color: #C78B3F !important; }
.color-EDC9AF { background-color: #EDC9AF !important; }
.color-E09C5A { background-color: #E09C5A !important; }

/* Statement */
.color-3C4A5A { background-color: #3C4A5A !important; }
.color-2A4B5C { background-color: #2A4B5C !important; }
.color-1D2B44 { background-color: #1D2B44 !important; }
.color-355E3B { background-color: #355E3B !important; }
.color-005C66 { background-color: #005C66 !important; }

/* Card Popout (Desktop Only) */
.color-collections-grid::after,
.color-palette-grid::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(13, 29, 52, 0.85);
  z-index: 999;
  backdrop-filter: blur(4px);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  pointer-events: none;
}

.color-collections-grid.has-popped-card::after,
.color-palette-grid.has-popped-card::after {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1025px) {
  .collection-slider-card {
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, z-index 0s 0.3s;
  }
  .collection-slider-card.is-popped-out {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: 600px !important;
    max-height: 90vh !important;
    max-width: 90vw !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .collection-slider-card.is-popped-out .slider-viewport {
    height: 300px;
  }
  .collection-slider-card.is-popped-out .slide-color-name {
    font-size: 1.6rem;
  }
  .collection-slider-card.is-popped-out .slide-color-hex {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .color-swatch-card {
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, z-index 0s 0.3s;
  }
  .color-swatch-card.is-popped-out {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: 500px !important;
    max-height: 90vh !important;
    max-width: 90vw !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .color-swatch-card.is-popped-out .color-fill {
    height: 280px;
  }
  .color-swatch-card.is-popped-out .color-info {
    padding: 1.5rem;
    gap: 0.5rem;
  }
  .color-swatch-card.is-popped-out .color-name {
    font-size: 1.6rem;
  }
  .color-swatch-card.is-popped-out .color-hex {
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
  }
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 150ms, transform 150ms;
  opacity: 0.85;
}

.slider-viewport:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(176, 122, 68, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.prev-arrow { left: 0.5rem; }
.next-arrow { right: 0.5rem; }

.collection-slider-card {
  border: 1px solid rgba(176, 122, 68, 0.2);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 12px 26px rgba(13, 29, 52, 0.05);
  display: flex;
  flex-direction: column;
}

.slider-viewport {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f0eae1;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.collection-info {
  padding: 1rem 0.5rem;
  text-align: center;
  background: inherit;
}

.collection-info h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  color: var(--bronze);
  margin: 0 0 0.2rem 0;
  font-weight: 800;
  line-height: 1.2;
}

.collection-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Search Results Grid */
.color-category-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 0 1rem 0;
}

.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
}

.color-swatch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(176, 122, 68, 0.2);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: left;
  width: 100%;
}

.color-swatch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(176, 122, 68, 0.15);
  border-color: rgba(176, 122, 68, 0.5);
}

.color-fill {
  width: 100%;
  height: 120px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.color-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: transparent;
}

.color-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}

.color-hex {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: monospace;
}

/* RESTORED DELETED CSS */
.project-card-body, .gallery-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-card-body h3, .gallery-card-body h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
  color: var(--bronze);
  font-weight: 800;
}

.project-card-body p, .gallery-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 600;
}

@media (max-width: 768px) {
  .projects-gallery-wrapper {
    flex-direction: column;
  }
}

.color-showcase {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0 0 1rem;
}

.color-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.color-search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  font-size: 1rem;
  border: 1px solid rgba(176, 122, 68, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-deep);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  font-family: inherit;
}

.color-search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 4px 18px rgba(176, 122, 68, 0.2);
  background: #fff;
}

.color-collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  transition: opacity 0.3s ease;
}

.mobile-swipe-wrapper {
  position: relative;
  width: 100%;
}

.mobile-swipe-arrow {
  display: none;
}

@media (max-width: 1024px) {
  .color-collections-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .mobile-swipe-wrapper {
    padding: 0 35px;
  }

  .mobile-swipe-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    border: none;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }

  .mobile-swipe-arrow.left-arrow { left: 0; }
  .mobile-swipe-arrow.right-arrow { right: 0; }

  .color-collections-grid {
    display: flex !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .color-collections-grid::-webkit-scrollbar {
    display: none;
  }

  .color-collections-grid .collection-slider-card {
    min-width: 260px; /* narrowed to allow easy swiping */ 
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

/* =========================================
   MOBILE RESPONSIVENESS & POPOUTS
   ========================================= */

/* Pop-outs scaled for tablets & smartphones */
@media (max-width: 1024px) {
  .collection-slider-card.is-popped-out,
  .color-swatch-card.is-popped-out {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1.0) !important;
    width: 92vw !important;
    max-height: 90vh !important;
    z-index: 10000 !important;
  }
  .collection-slider-card.is-popped-out .slider-viewport { 
    height: 350px; 
  }
}

/* Portrait Smartphones */
@media (max-width: 480px) {
  .collection-slider-card.is-popped-out .slider-viewport { 
    height: 250px; 
  }
}

/* Landscape Smartphones */
@media (max-height: 500px) and (orientation: landscape) {
  .collection-slider-card.is-popped-out .slider-viewport,
  .color-swatch-card.is-popped-out .color-fill { 
    height: 180px; 
  }
  .collection-slider-card.is-popped-out,
  .color-swatch-card.is-popped-out {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1.0) !important;
    width: 80vw !important;
    max-height: 95vh !important;
    z-index: 10000 !important;
  }
}

/* Make Collections Grid Swipeable on Mobile (Outer wrapper arrows removed entirely) */
.mobile-swipe-wrapper {
  position: relative;
  width: 100%;
}
.mobile-swipe-arrow {
  display: none !important;
}

@media (max-width: 1024px) {
  .color-collections-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .color-collections-grid {
    display: flex !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .color-collections-grid::-webkit-scrollbar {
    display: none;
  }

  .color-collections-grid .collection-slider-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    flex-shrink: 0;
  }
}

/* =========================================
   POPOUT CLIPPING FIX (MOBILE SAFARI/CHROME)
   ========================================= */
/* Removes the transform from visible sections so "position: fixed" can escape to the viewport */
.is-visible, .fade-in-section.is-visible {
  transform: none !important; 
}

/* Also removes the overflow clipping boundary when a card is popped out */
.color-collections-grid.has-popped-card,
.color-palette-grid.has-popped-card {
  overflow: visible !important;
  transform: none !important;
  will-change: auto !important;
}


/* =========================================
   CRITICAL SLIDER & MOBILE FIXES V2
   ========================================= */
   
/* 1. Base missing styles for the slider to work */
.slider-viewport {
  position: relative !important;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--navy);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

/* 2. Fix the arrows positioning */
.slider-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(5px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0.9;
}
.slider-arrow.prev-arrow { left: 10px !important; right: auto !important; }
.slider-arrow.next-arrow { right: 10px !important; left: auto !important; }

/* 3. Mobile swipe width adjustment */
@media (max-width: 768px) {
  .color-collections-grid {
    display: flex !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* ensure grid constraints don't override */
    grid-template-columns: none !important; 
  }
  .color-collections-grid::-webkit-scrollbar {
    display: none;
  }
  .color-collections-grid .collection-slider-card {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* 4. Ensure popout height properly contains the colors */
@media (max-width: 1024px) {
  .collection-slider-card.is-popped-out .slider-viewport { 
    height: 60vh !important;
    min-height: 250px;
  }
}


/* =========================================
   OVERRIDE SWIPE CONSTRAINTS FOR POPOUTS (MOBILE ONLY)
   ========================================= */
@media (max-width: 1024px) {
  .color-collections-grid .collection-slider-card.is-popped-out,
  .color-palette-grid .color-swatch-card.is-popped-out {
    min-width: 92vw !important;
    max-width: 92vw !important;
    height: auto !important;
  }

  @media (max-height: 500px) and (orientation: landscape) {
    .color-collections-grid .collection-slider-card.is-popped-out,
    .color-palette-grid .color-swatch-card.is-popped-out {
      min-width: 80vw !important;
      max-width: 80vw !important;
    }
  }
}


/* =========================================
   POPOUT HINT TEXT
   ========================================= */
.popout-hint-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 1rem auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  max-width: 600px;
  background: rgba(176, 122, 68, 0.05);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 122, 68, 0.15);
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .popout-hint-text {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    margin: 0.8rem 1rem 1rem;
  }
}


/* =========================================
   MOBILE TEXT SELECTION ISOLATION
   ========================================= */
/* Mobile text selection isolation */
.project-card, .gallery-card, .collection-slider-card, .color-swatch-card {
  user-select: none;
  -webkit-user-select: none;
}
.project-card p, .project-card h3, .project-card span,
.gallery-card p, .gallery-card h3, .gallery-card span,
.collection-slider-card p, .collection-slider-card h3, .collection-slider-card span {
  user-select: text;
  -webkit-user-select: text;
}




/* =========================================
   SAFE LANDSCAPE FIXES (TOUCH DEVICES ONLY)
   ========================================= */
@media screen and (max-width: 1024px) and (orientation: landscape) and (pointer: coarse) {

  /* --- 1. Mobile Menu Overflow Fix --- */
  /* Use .is-open (the actual class toggled in script.js) */
  .nav-links.is-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    /* Use dvh so the drawer tracks the visual viewport accurately */
    height: 100dvh !important;
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    /* Generous bottom padding so the last items clear the home indicator */
    padding: 56px 10px calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Tighter spacing so all items fit without scrolling */
  .nav-links.is-open li {
    margin: 4px 0 !important;
  }

  .nav-links.is-open a {
    font-size: 1rem !important;
    padding: 5px 0 !important;
  }

  .nav-links.is-open .nav-action-buttons {
    flex-direction: row !important;
    gap: 10px !important;
    margin-top: 8px !important;
  }

  .nav-links.is-open .nav-cta {
    padding: 7px 12px !important;
    font-size: 0.88rem !important;
  }

  /* --- 2. Fix Section Overlaps --- */
  /* Remove fixed 100vh constraints that cause overlapping on short screens */
  .hero, .services, .gallery-showcase, .about, .process, .faq, .contact {
    height: auto !important;
    min-height: auto !important;
  }

  .hero {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
  }

  .hero-visual {
    height: auto !important;
  }

  .poster-frame {
    width: 100%;
    max-width: 230px;
    aspect-ratio: 4 / 5;
    height: auto !important;
    max-height: 260px !important;
    margin-bottom: 0.75rem !important;
  }

  /* Ensure stats box drops down cleanly instead of overlapping the image */
  .stats-shell-hero {
    position: static !important;
    margin-top: 0.75rem !important;
    transform: none !important;
  }

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

  /* --- 3. Footer bottom safe area --- */
  .site-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* --- Admin Reply on Feedbacks --- */
.admin-reply {
  margin-top: 15px;
  padding: 12px 15px;
  background-color: #eef2ff;
  border-left: 4px solid var(--brand, #2563eb);
  border-radius: 6px;
  font-size: 0.95em;
  color: #334155;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.admin-reply strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy, #1e3a8a);
  font-size: 1.05em;
}

[data-theme="dark"] .admin-reply {
  background-color: rgba(37, 99, 235, 0.15);
  border-left: 4px solid var(--brand-gold, #fcd34d);
  color: #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
[data-theme="dark"] .admin-reply strong {
  color: var(--brand-gold, #fcd34d);
}

/* --- Highlight 'Read Customer Reviews' Tab --- */
#read-reviews-details > summary {
  background: var(--brand, #2563eb);
  color: #fff;
  border-color: var(--brand-dark, #1d4ed8);
  font-weight: 700;
  transition: all 0.2s ease;
}
#read-reviews-details > summary::after {
  color: #fff !important;
}
#read-reviews-details > summary:hover {
  background: var(--brand-dark, #1d4ed8);
}

[data-theme="dark"] #read-reviews-details > summary {
  background: linear-gradient(135deg, #d4af37, #b4850d);
  color: #111;
  border-color: #9a7209;
}
[data-theme="dark"] #read-reviews-details > summary::after {
  color: #111 !important;
}
[data-theme="dark"] #read-reviews-details > summary:hover {
  background: linear-gradient(135deg, #e5c35b, #cfa018);
}

/* ============================================================
   SMOOTH EDGE-TO-CENTER SLIDE-IN ANIMATION SYSTEM
   ============================================================ */
.slide-in-init {
  will-change: transform, opacity;
  opacity: 0;
  transition:
    transform 1.6s cubic-bezier(0.25, 1, 0.5, 1) !important,
    opacity 1.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.slide-from-left {
  transform: translateX(-40px);
}

.slide-from-right {
  transform: translateX(40px);
}

.slide-from-bottom {
  transform: translateY(35px);
}

.slide-in-init.is-revealed {
  opacity: 1 !important;
}
.slide-in-init.is-revealed.slide-from-left,
.slide-in-init.is-revealed.slide-from-right,
.slide-in-init.is-revealed.slide-from-bottom {
  transform: none;
}
.slide-in-init.is-revealed:hover {
  transform: translateY(-6px) !important;
  transition:
    transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1) !important,
    box-shadow 250ms ease !important,
    border-color 250ms ease !important;
}

/* --- Dedicated Stats Cards Edge-to-Inside Animation --- */
.stats-shell-hero .stats-grid article,
.stats-grid article {
  will-change: transform, opacity;
  opacity: 0;
  transform: translateX(80px);
  transition:
    transform 1.8s cubic-bezier(0.25, 1, 0.5, 1) !important,
    opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

@media (max-width: 600px) {
  .stats-shell-hero .stats-grid article,
  .stats-grid article {
    transform: translateX(40px);
  }
}

.stats-shell-hero .stats-grid article:nth-child(1),
.stats-grid article:nth-child(1) {
  transition-delay: 0.08s;
}

.stats-shell-hero .stats-grid article:nth-child(2),
.stats-grid article:nth-child(2) {
  transition-delay: 0.22s;
}

.stats-shell-hero .stats-grid article:nth-child(3),
.stats-grid article:nth-child(3) {
  transition-delay: 0.36s;
}

.stats-shell-hero .stats-grid article:nth-child(4),
.stats-grid article:nth-child(4) {
  transition-delay: 0.50s;
}

.stats-shell-hero .stats-grid article.is-revealed,
.stats-grid article.is-revealed {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.stats-shell-hero .stats-grid article.is-revealed:hover,
.stats-grid article.is-revealed:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 28px rgba(176, 122, 68, 0.18) !important;
  border-color: rgba(176, 122, 68, 0.5) !important;
  transition:
    transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1) !important,
    box-shadow 250ms ease !important,
    border-color 250ms ease !important;
}

/* Stagger delays for other multi-card grid items */
.services-grid article:nth-child(1),
.process-grid article:nth-child(1),
.about-list div:nth-child(1),
.projects-grid > :nth-child(1) {
  transition-delay: 0.05s;
}

.services-grid article:nth-child(2),
.process-grid article:nth-child(2),
.about-list div:nth-child(2),
.projects-grid > :nth-child(2) {
  transition-delay: 0.15s;
}

.services-grid article:nth-child(3),
.process-grid article:nth-child(3),
.about-list div:nth-child(3),
.projects-grid > :nth-child(3) {
  transition-delay: 0.25s;
}

.services-grid article:nth-child(4),
.process-grid article:nth-child(4),
.projects-grid > :nth-child(4) {
  transition-delay: 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  .slide-in-init,
  .slide-from-left,
  .slide-from-right,
  .slide-from-bottom,
  .stats-grid article {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}


/* ============================================================
   HORIZONTAL SWIPE LOCK — Mobile & Tablet (max-width: 1024px)
   ------------------------------------------------------------
   Prevents accidental left/right page scrolling when users
   hold and pan horizontally on touch screens.

   Strategy:
   1. `overflow-x: clip` on main & every page section — clips
      anything that briefly steps outside the viewport (e.g.
      slide-in animations) WITHOUT creating a scroll container,
      so internal swipeable carousels still work normally.
   2. `max-width: 100%` on all images, videos, iframes.
   3. `touch-action: pan-y` on sections to tell the browser
      only vertical panning is expected in these areas.
   4. Reduce slide-in `translateX` offsets so animation paths
      stay well inside the clip zone (animations still play
      exactly as they do — just with a tighter travel distance).
   ============================================================ */

/* ── 1. Global image/media clamp (all screen sizes) ──────── */
img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

/* ── 2. Mobile horizontal overflow lock ────────────────────── */
@media (max-width: 1024px) {

  /* Main content wrapper — clips anything that overflows */
  main {
    overflow-x: clip;
    /* Do NOT add overflow-y — it would block sticky header */
    max-width: 100vw;
    width: 100%;
  }

  /* Every top-level page section */
  .hero,
  .site-notice-banner,
  .services,
  .gallery-showcase,
  .about,
  .process,
  .faq,
  .contact,
  .section-shell,
  .section-panel,
  footer.site-footer {
    overflow-x: clip;
    max-width: 100%;
    /* Only vertical panning in sections */
    touch-action: pan-y;
  }

  /* Container (the centred column) */
  .container {
    max-width: 100%;
    /* Already uses min(1100px, 92vw) but enforce on mobile */
    overflow-x: clip;
  }

  /* Hero visual grid */
  .hero-visual {
    max-width: 100%;
    overflow-x: clip;
  }

  /* Prevent any single card from breaching the viewport */
  .services-grid article,
  .process-grid article,
  .about-list div,
  .trust-strip div,
  .stats-grid article,
  .project-card,
  .gallery-card,
  .feedback-card,
  .contact-card,
  .section-panel {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Poster / image containers */
  .poster-front,
  .poster-back,
  .hero-image,
  .card-image-wrapper {
    max-width: 100%;
    overflow: hidden;
  }

  /* Reduce slide-in travel distance on mobile so the clipping
     zone is never breached (animations still play identically
     — the offset is just 20px instead of 40px) */
  .slide-from-left {
    transform: translateX(-20px);
  }
  .slide-from-right {
    transform: translateX(20px);
  }
  .slide-from-bottom {
    transform: translateY(24px);
  }

  /* Stats cards edge animation: tighter horizontal travel */
  .stats-shell-hero .stats-grid article,
  .stats-grid article {
    transform: translateX(40px);
  }

  /* ── 3. Protect swipeable carousels from the clip ─────────
     These containers NEED horizontal scroll — exclude them
     from overflow: clip so touch swiping inside them works. */
  .color-collections-grid,
  #dynamic-gallery-exterior,
  #dynamic-gallery-interior,
  #dynamic-projects-grid,
  .gallery-cards-grid,
  #projects .projects-grid {
    /* Override overflow: clip inherited from .section-panel */
    overflow-x: auto !important;
    /* Ensure touch gestures inside carousels pan horizontally */
    touch-action: pan-x pan-y !important;
  }

  /* Stats grid: vertical only (no horizontal scroll in stats) */
  .stats-grid,
  .stats-shell-hero .stats-grid {
    overflow: visible;
    touch-action: pan-y;
  }
}

/* ── 4. Very small phones: tightest clamp ─────────────────── */
@media (max-width: 480px) {
  main,
  .hero,
  .section-shell,
  .section-panel,
  .container {
    overflow-x: clip;
    max-width: 100vw;
  }

  /* Ensure text never forces a layout wider than the screen */
  h1, h2, h3, h4, p, li, span, a {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}
