/* ========================= */
/* Dark theme color palette  */
/* ========================= */
:root {
  --color-bg: #050508;
  --color-header-top: #0c0c12;
  --color-header-bottom: #15151f;
  --color-border-subtle: rgba(255,255,255,0.06);
  --color-text: #f4f4f6;
  --color-text-muted: #b5b5c4;
  --color-accent: #e6a84a;
  --color-accent-soft: #ffde9b;
}

/* ========================= */
/* Base page styles          */
/* ========================= */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  background:
    /* soft gold glow bottom-right */
    radial-gradient(circle at 120% 130%, rgba(230, 168, 74, 0.16), transparent 60%),
    /* subtle blue aura in center */
    radial-gradient(circle at 40% 35%, rgba(90, 150, 255, 0.13), transparent 60%),
    /* faint diagonal “blueprint” lines */
    repeating-linear-gradient(
      135deg,
      rgba(120, 170, 255, 0.04) 0px,
      rgba(120, 170, 255, 0.04) 1px,
      transparent 1px,
      transparent 4px
    ),
    /* base dark gradient */
    linear-gradient(160deg, #070812 0%, #050508 45%, #04040b 100%);
  color: var(--color-text);
  font-family: "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  font-size: 17px;
}

html.pref-text-scale {
  font-size: calc(17px * var(--text-scale, 1));
}

html.pref-text-scale .site-footer {
  font-size: calc(1rem / var(--text-scale, 1));
}

html.pref-reduce-motion *,
html.pref-reduce-motion *::before,
html.pref-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html[data-color-blind] body {
  filter: none;
}

html[data-color-blind="deuteranopia"] body {
  filter: saturate(0.9) hue-rotate(15deg);
}

html[data-color-blind="protanopia"] body {
  filter: saturate(0.85) hue-rotate(-10deg);
}

html[data-color-blind="tritanopia"] body {
  filter: saturate(0.9) hue-rotate(35deg);
}

html[data-color-blind="achromatopsia"] body {
  filter: grayscale(1);
}

html.pref-high-contrast {
  --color-bg: #000000;
  --color-header-top: #000000;
  --color-header-bottom: #000000;
  --color-border-subtle: rgba(255, 255, 255, 0.25);
  --color-text: #ffffff;
  --color-text-muted: #e6e6e6;
  --color-accent: #ffd166;
  --color-accent-soft: #ffe6a1;
}

html.pref-high-contrast body {
  background: #000000;
  color: var(--color-text);
}

html.pref-theme-light {
  --color-header-top: #f7f7f7;
  --color-header-bottom: #ededed;
  --color-border-subtle: rgba(0, 0, 0, 0.08);
  --color-text: #111111;
  --color-text-muted: #4a4a4a;
  --color-accent: #8a5b12;
  --color-accent-soft: #a46b1a;
}

html.pref-theme-light body {
  background:
    radial-gradient(circle at 120% 130%, rgba(230, 168, 74, 0.12), transparent 60%),
    radial-gradient(circle at 40% 35%, rgba(90, 150, 255, 0.14), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f8f8fb 100%);
  color: var(--color-text);
}

html.pref-theme-light .site-header {
  background: linear-gradient(
    to bottom,
    var(--color-header-top),
    var(--color-header-bottom)
  );
}

html.pref-theme-light .site-header.header-scrolled {
  background: rgba(245, 245, 245, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

html.pref-theme-light .site-header:not(.header-scrolled) {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

html.pref-theme-light .nav-link {
  color: var(--color-text-muted);
}

html.pref-theme-light .nav-link-active {
  color: var(--color-text);
}

html.pref-theme-light .nav-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

html.pref-theme-light .nav-toggle-bar {
  background: var(--color-text);
}

html.pref-theme-light .brand-logo {
  filter: invert(1) brightness(0);
}

html.pref-theme-light .services-division-logo,
html.pref-theme-light .team-company-logo img {
  filter: invert(1) brightness(0);
}

html.pref-theme-light .hero-content,
html.pref-theme-light .hero-review,
html.pref-theme-light .home-section,
html.pref-theme-light .service-card,
html.pref-theme-light .designer-card,
html.pref-theme-light .team-card,
html.pref-theme-light .team-lightbox-card,
html.pref-theme-light .review-lightbox-inner,
html.pref-theme-light .project-gallery-bar,
html.pref-theme-light .gallery-set-selector,
html.pref-theme-light .gallery-set-control,
html.pref-theme-light .service-row-image--empty {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

html.pref-theme-light .service-card::before {
  filter: none !important;
  opacity: 1 !important;
}

html.pref-theme-light .services-division,
html.pref-theme-light .home-section-dark,
html.pref-theme-light .home-section-light {
  background: #ffffff !important;
}

html.pref-theme-light .home-two-col-aside {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08);
  color: #111111;
}

html.pref-theme-light .home-two-col-main,
html.pref-theme-light .section-kicker,
html.pref-theme-light .service-card-inner,
html.pref-theme-light .service-card-inner h3,
html.pref-theme-light .service-card-inner p,
html.pref-theme-light .service-note {
  color: #111111;
}

html.pref-theme-light .section-kicker {
  color: #111111;
}

html.pref-theme-light .service-card::after {
  background: rgba(255, 255, 255, 0.25) !important;
}

html.pref-theme-light .service-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

html.pref-theme-light .service-card-inner {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
}

html.pref-theme-light .service-card-inner h3,
html.pref-theme-light .service-card-inner p,
html.pref-theme-light .service-note {
  text-shadow: none !important;
}

html.pref-theme-light .site-footer {
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html.pref-theme-light .contact-card,
html.pref-theme-light .designer-card,
html.pref-theme-light .hero-content,
html.pref-theme-light .hero-review,
html.pref-theme-light .team-card,
html.pref-theme-light .team-lightbox-card,
html.pref-theme-light .review-lightbox-inner,
html.pref-theme-light .project-gallery-bar,
html.pref-theme-light .gallery-set-selector,
html.pref-theme-light .gallery-set-control,
html.pref-theme-light .home-two-col-aside {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12) !important;
}

html.pref-theme-light .hero-content,
html.pref-theme-light .hero-review {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(8px);
}

html.pref-theme-light .contact-card a {
  color: #111111;
}

html.pref-theme-light .contact-card,
html.pref-theme-light .contact-main {
  color: #111111;
}

html.pref-theme-light .contact-form-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12) !important;
}

html.pref-theme-light .hero-kicker,
html.pref-theme-light .hero-title,
html.pref-theme-light .hero-lede,
html.pref-theme-light .hero-review-text,
html.pref-theme-light .hero-review-author {
  text-shadow: none;
}

html.pref-theme-light .hero-review-text {
  color: #1f1f1f;
}

html.pref-theme-light .hero-review-author {
  color: #111111;
}

html.pref-theme-light .hero-review-stars {
  color: var(--color-accent-soft);
}

html.pref-theme-light .nav-menu {
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f6 100%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

html.pref-theme-light .site-header.header-scrolled .nav-toggle {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

html.pref-theme-light .hero-btn-primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

html.pref-theme-light .hero-btn-secondary {
  background: rgba(0, 0, 0, 0.08);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.2);
}

html.pref-theme-light .btn-primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

html.pref-theme-light .btn-secondary {
  background: rgba(0, 0, 0, 0.08);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.2);
}

html.pref-theme-light .hero-review-dot {
  background: rgba(0, 0, 0, 0.25);
}

html.pref-theme-light .hero-review-dot.active {
  background: #111111;
}

/* Prevent horizontal scroll on gallery page (side previews hang out a bit) */
body.page-gallery {
  overflow-x: hidden;
}


/* Global heading color to match hero kicker */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-accent-soft);
}

/* ========================= */
/* Header container          */
/* ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: linear-gradient(
    to bottom,
    var(--color-header-top),
    var(--color-header-bottom)
  );
  padding: 12px 0 10px;
  transition:
    box-shadow 0.25s ease,
    padding 0.25s ease,
    background 0.25s ease;
}

/* Contact page: compact header by default */
body.page-contact .site-header {
  padding: 0;
  height: 48px;
  background: rgba(12, 12, 18, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

body.page-contact .header-logo {
  display: none;
}

body.page-contact .header-inner {
  gap: 0;
}

body.page-help .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
  height: 48px;
  background: rgba(12, 12, 18, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

body.page-help .header-logo {
  display: none;
}

body.page-help main {
  padding-top: 52px;
}

@media (min-width: 769px) {
  body.page-contact .header-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
  }
}

@media (max-width: 768px) {
  body.page-contact .site-header,
  body.page-gallery .site-header,
  body.page-help .site-header {
    padding: 0;
    height: 48px;
  }
}

body.page-contact .content-section--contact {
  padding: 0;
}

body.page-contact .content-section--contact .content-inner {
  padding: 20px 16px;
  box-sizing: border-box;
}

body.page-contact .home-section {
  margin-bottom: 16px;
  padding: 20px 18px;
}

@media (min-width: 900px) {
  body.page-contact .content-section--contact .content-inner {
    padding: 24px 20px;
  }

  body.page-contact .home-section {
    padding: 24px 22px;
  }
}

/* Gallery/contact/help: slim header only */
body.page-gallery .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  padding: 0;
  height: 48px;
  background: rgba(12, 12, 18, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: none;
}

body.page-gallery .site-header .header-logo,
body.page-contact .site-header .header-logo,
body.page-help .site-header .header-logo {
  display: none;
}

body.page-gallery .site-header,
body.page-contact .site-header,
body.page-help .site-header {
  display: block;
  opacity: 1;
  visibility: visible;
}

body.page-gallery .header-inner,
body.page-contact .header-inner,
body.page-help .header-inner {
  min-height: 48px;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  padding: 0 16px;
}

body.page-gallery .main-nav,
body.page-contact .main-nav,
body.page-help .main-nav {
  justify-content: flex-end;
}

body.page-gallery .nav-toggle,
body.page-contact .nav-toggle,
body.page-help .nav-toggle {
  display: flex;
  position: static;
  margin: 0;
  z-index: 60;
}

@media (min-width: 769px) {
  body.page-gallery .nav-toggle,
  body.page-contact .nav-toggle,
  body.page-help .nav-toggle {
    display: none;
  }
}

body.page-gallery .site-header.header-scrolled,
body.page-contact .site-header.header-scrolled,
body.page-help .site-header.header-scrolled {
  padding: 0;
  height: 48px;
}


/* Compact header when scrolled */
.site-header.header-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  background: rgba(12, 12, 18, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  padding: 6px 0;
}

.site-header.header-scrolled .nav-toggle {
  background: #0c0c12;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Inner layout */
.header-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition:
    flex-direction 0.25s ease,
    gap 0.25s ease;
}

/* Desktop collapsed header -> center nav */
@media (min-width: 769px) {
  .site-header.header-scrolled .header-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .site-header.header-scrolled .main-nav {
    justify-content: center;
  }
}

/* ========================= */
/* Logo row                  */
/* ========================= */
.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: clamp(16px, 4vw, 40px);
  transition:
    opacity 0.2s ease,
    max-height 0.2s ease;
}

/* Links wrapping each logo */
.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

/* Base logo style */
.brand-logo {
  width: auto;
  display: block;
  transition:
    height 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease,
    filter 0.25s ease;
}

/* Main JKF logo: largest, full opacity */
.brand-logo-main {
  height: 120px;
  opacity: 1;
}

/* Side logos: slightly smaller, a bit more subtle by default */
.brand-logo-secondary {
  height: 90px;
  opacity: 0.65;
}

/* Hover effect for any logo */
.logo-link:hover .brand-logo-main,
.logo-link:hover .brand-logo-secondary {
  transform: translateY(-2px) scale(1.06);
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(230, 168, 74, 0.85));
}

/* Compact header: hide entire logo row when scrolled */
.site-header.header-scrolled .header-logo {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: none;
}

/* ========================= */
/* Page logo row             */
/* ========================= */
.page-logo-row {
  background: linear-gradient(
    to bottom,
    #0c0c12 0%,
    #15151f 100%
  );
  padding: 18px 0;
}

html.pref-theme-light .page-logo-row {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 246, 250, 0.98) 100%
  );
}

.page-logo-row .header-logo {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  column-gap: 24px;
  transform: translateX(-10px);
}

.page-logo-row .logo-link.logo-main {
  justify-self: center;
}

.page-logo-row .brand-logo-main {
  transform: translateX(0);
}

.page-logo-row .logo-link.logo-secondary:first-child {
  justify-self: center;
}



.page-logo-row .logo-link.logo-secondary:last-child {
  justify-self: center;
}

.page-logo-row .brand-logo-main {
  height: 100px;
}

.page-logo-row .brand-logo-secondary {
  height: 72px;
}

@media (max-width: 768px) {
  .page-logo-row {
    padding: 14px 0;
  }

  .page-logo-row .brand-logo-main {
    height: 82px;
  }

  .page-logo-row .brand-logo-secondary {
    height: 62px;
  }
}

/* ========================= */
/* Navigation bar styles     */
/* ========================= */
.main-nav {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  padding: 0;
  margin: 0;
  width: 100%;
  position: relative;
}

.nav-item-help {
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 4px;
  transition: color 0.2s ease;
  position: relative;
}

@media (min-width: 992px) {
  .nav-link {
    font-size: 0.72rem;
  }
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--color-accent-soft);
}

.nav-link:hover::after,
.nav-link-active::after {
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-soft)
  );
}

.nav-link-active {
  color: var(--color-text);
}

.nav-link {
  position: relative;
}

.nav-contact-badge {
  display: none;
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.nav-contact-badge.is-visible {
  display: inline-flex;
}

/* ========================= */
/* Hamburger button          */
/* ========================= */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* X animation */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================= */
/* Mobile Navigation         */
/* ========================= */
@media (max-width: 768px) {
  /* On collapse, put compact nav on the right when scrolled */
  .site-header.header-scrolled .header-inner {
    justify-content: flex-end !important;
  }

  .site-header.header-scrolled .main-nav {
    justify-content: flex-end !important;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-item-help {
    margin-left: 0;
    position: static;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 12px;
    width: max-content;
    min-width: 180px;
    background: rgba(10, 10, 16, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);

    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu .nav-link {
    font-size: 0.95rem;
  }

  .nav-item-help {
    margin-top: 12px;
  }
}

/* Ensure desktop menu always shows */
@media (min-width: 769px) {
  .nav-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    justify-content: center;
  }

  .nav-toggle {
    display: none;
  }

  .nav-item-help {
    position: absolute;
    right: 0;
  }
}

/* ========================= */
/* HERO SECTION              */
/* ========================= */
/* Scroll-down indicator for hero sections */
/* --- Scroll-down arrow (3-bounce animation) --- */
.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(3, 8, 18, 0.8);
  border: 2px solid rgba(230, 168, 74, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  animation: heroScrollBounce 6s ease-in-out infinite;
}

.hero-scroll-indicator-icon {
  font-size: 2rem;
  color: var(--color-accent); /* gold color */
}

@keyframes heroScrollBounce {
  0%, 36%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  6% {
    transform: translateX(-50%) translateY(-12px);
  }
  12% {
    transform: translateX(-50%) translateY(0);
  }
  18% {
    transform: translateX(-50%) translateY(-9px);
  }
  24% {
    transform: translateX(-50%) translateY(0);
  }
  30% {
    transform: translateX(-50%) translateY(-6px);
  }
}

.hero-scroll-indicator:hover {
  background: rgba(5, 8, 18, 0.35);
  border-color: var(--color-accent-soft);
}

html.pref-theme-light .hero-scroll-indicator {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

html.pref-theme-light .hero-scroll-indicator-icon {
  color: #111111;
}

/* ========================= */
/* Chat widget               */
/* ========================= */
.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: "Poppins", system-ui, sans-serif;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-widget-toggle {
  border: none;
  background: linear-gradient(120deg, #1b1b26, #0b0b10);
  color: var(--color-text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  position: relative;
  gap: 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.chat-widget-label {
  line-height: 1.2;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.chat-contact-button {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #141219;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.chat-contact-button:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
}

.chat-widget-sublabel {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
}

.chat-unread-badge {
  display: none;
  position: absolute;
  right: -4px;
  bottom: -4px;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
}

.chat-unread-badge.is-visible {
  display: inline-flex;
  animation: chat-badge-bounce 1.1s ease-in-out infinite;
}

@keyframes chat-badge-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.chat-widget-panel {
  margin-top: 10px;
  width: min(360px, 90vw);
  background:
    radial-gradient(circle at 20% 20%, rgba(90, 150, 255, 0.22), transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(230, 168, 74, 0.22), transparent 60%),
    rgba(12, 12, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-widget-panel.is-open {
  display: flex;
}

.chat-widget--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 140;
  padding: 24px;
  box-sizing: border-box;
}

.chat-contact-overlay.is-open {
  display: flex;
}

.chat-contact-card {
  width: min(520px, 92vw);
  background: rgba(12, 12, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px;
  color: var(--color-text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  max-height: 90svh;
  overflow: hidden;
}

.chat-contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chat-contact-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.chat-contact-context {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.chat-contact-close {
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.chat-contact-form {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  max-height: calc(90svh - 220px);
  padding-right: 4px;
}

.chat-contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
}

.chat-contact-form input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 12, 0.9);
  color: var(--color-text);
  padding: 8px 10px;
  font-size: 0.9rem;
}

.chat-contact-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

html.pref-theme-light .chat-contact-overlay {
  background: rgba(255, 255, 255, 0.8);
}

html.pref-theme-light .chat-contact-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #111111;
}

html.pref-theme-light .chat-contact-close {
  color: rgba(0, 0, 0, 0.5);
}

html.pref-theme-light .chat-contact-form input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #111111;
}
.chat-widget-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  background: rgba(20, 20, 28, 0.95);
  color: var(--color-accent-soft);
}

.chat-status {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.chat-messages {
  padding: 12px 14px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-message-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

.chat-message-body {
  white-space: pre-wrap;
}

.chat-message--typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.3;
  animation: chatTypingPulse 1s infinite ease-in-out;
}

.chat-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatTypingPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.chat-message--assistant {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}

.chat-message--disclaimer {
  font-size: 0.72rem;
  font-style: italic;
  text-align: center;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.chat-message--user {
  background: rgba(230, 168, 74, 0.18);
  color: var(--color-text);
  align-self: flex-end;
}

.chat-input-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 12, 0.98);
}

.chat-input {
  flex: 1 1 auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 14, 0.9);
  color: var(--color-text);
  padding: 8px 10px;
  font-size: 0.85rem;
}

.chat-send {
  border: none;
  border-radius: 10px;
  background: var(--color-accent);
  color: #111111;
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}

html.pref-theme-light .chat-widget-toggle {
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.12);
}

html.pref-theme-light .chat-widget-panel {
  background:
    radial-gradient(circle at 20% 20%, rgba(90, 150, 255, 0.18), transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(230, 168, 74, 0.2), transparent 60%),
    #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

html.pref-theme-light .chat-widget-header {
  background: #f6f6f8;
  color: #111111;
}

html.pref-theme-light .chat-message--assistant {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

html.pref-theme-light .chat-message--disclaimer {
  color: rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 0, 0, 0.12);
}

html.pref-theme-light .chat-message--user {
  background: rgba(138, 91, 18, 0.15);
  color: #111111;
}

html.pref-theme-light .chat-input-form {
  background: #f6f6f8;
  border-color: rgba(0, 0, 0, 0.1);
}

html.pref-theme-light .chat-input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #111111;
}



.hero {
  position: relative;
  background: transparent;
  min-height: calc(100svh - 160px);
  padding: calc(48px + (var(--header-height, 56px) * 0.75) + 16px) 16px 40px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

/* Background hero image with vertical opacity fade at the bottom */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
  z-index: 0;

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) calc(100% - 100px),
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) calc(100% - 100px),
    rgba(0, 0, 0, 0) 100%
  );
}

/* Overlay content + review always sit above the image */
.hero-content,
.hero-review {
  position: relative;
  z-index: 2;
}

/* TOP-LEFT: headline content in its own box */
.hero-content {
  position: absolute;
  top: calc(28px + (var(--header-height, 56px) * 0.75) + 12px);
  left: 16px;
  max-width: min(520px, 80vw);
  color: var(--color-text);
  padding: 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(12, 12, 24, 0.6), transparent 60%),
    rgba(5, 5, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

@media (min-width: 1100px) {
  .hero-content {
    max-width: min(680px, 48vw);
  }
}

.hero--subpage .hero-content {
  padding: 18px 20px;
  top: calc(28px + (var(--header-height, 56px) * 0.75) + 12px);
}

.hero--subpage .hero-title {
  font-size: clamp(1.9rem, 3.1vw, 2.5rem);
  margin-bottom: 8px;
}

.hero--subpage .hero-lede {
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Make text readable over the image */
.hero-kicker,
.hero-title,
.hero-lede {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin: 0 0 6px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1.05;
}

.hero-lede {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero-scroll-indicator {
    display: none;
  }

  .page-logo-row .logo-secondary {
    display: none;
  }

  .page-logo-row .brand-logo-main {
    height: 72px;
  }

  .page-logo-row .header-logo {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(1.6rem, 6.2vw, 2.1rem);
    line-height: 1.1;
  }
  .hero-lede {
  font-size: 0.9rem;
  line-height: 1.45;
}
  .hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
}

/* Buttons row */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Buttons re-use your accent colors */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.12s ease;
  text-shadow: none;
}

.hero-btn-primary {
  background: var(--color-accent);
  color: #141219;
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.hero-btn-primary:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
  transform: translateY(-1px);
}

.hero-btn-secondary {
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.hero-btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-soft);
  transform: translateY(-1px);
}

/* Review card (shared desktop + mobile base) */
.hero-review {
  width: min(380px, 80vw);
  padding: 10px 16px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top left, rgba(12, 12, 24, 0.6), transparent 60%),
    rgba(5, 5, 10, 0.65);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  position: relative;
}

.hero-review.is-hidden {
  display: none;
}

.hero-review-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 14, 0.7);
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-review-close:hover {
  transform: scale(1.05);
  border-color: var(--color-accent);
}

/* Overlay review positioning (desktop & tablet) */
.hero-review--overlay {
  position: absolute;
  right: 16px;
  bottom: 24px;
}

/* Detached review when overlay would overlap hero content */
.hero-review--detached {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  margin: 18px auto 6px;
  max-width: 720px;
  width: min(640px, 92vw);
}

.hero-review-fallback {
  padding: 10px 24px 18px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: transparent;
}

/* Wrapper for mobile-only review section (below hero) */
.hero-review-mobile-wrapper {
  display: none;
  padding: 0 0 32px;
}

/* Mobile review card fills the wrapper */
.hero-review--mobile {
  width: 100%;
  max-width: none;
  margin: 0;
}

.review-inline-slot {
  margin: 0 auto 18px;
  max-width: 720px;
}

.hero-review--inline {
  width: 100%;
  margin: 0;
  padding: 10px 16px 12px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(60, 110, 220, 0.2), transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(200, 130, 40, 0.18), transparent 60%),
    rgba(7, 7, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.hero-review--inline .hero-review-text {
  margin-bottom: 6px;
}

.hero-review--inline .hero-review-nav {
  display: none;
}

/* Review card typography */
.hero-review-stars {
  font-size: 2rem;
  letter-spacing: 0.18em;
  color: var(--color-accent-soft);
  margin: 0 0 2px;
  text-align: center;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.9),
    0 6px 12px rgba(0, 0, 0, 0.8);
}

.hero-review-text {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 3;
}

.hero-review-author {
  font-size: 0.88rem;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-review-rating {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.hero-review-text-body {
  display: inline;
}

.hero-review-more-inline {
  display: inline;
  margin-left: 6px;
  border: 0;
  background: none;
  color: var(--color-accent-soft);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.hero-review-more-inline:hover {
  color: var(--color-accent);
}

.hero-review-stars {
  display: inline-flex;
  gap: 4px;
  font-size: 1.55rem;
  color: var(--color-accent);
  width: 100%;
  justify-content: center;
  margin-top: -2px;
}

.hero-review-stars span {
  animation: reviewStarWave 2.4s ease-in-out infinite;
  animation-delay: var(--wave-delay, 0s);
}

.hero-review-stars span:nth-child(1),
.hero-review-stars span:nth-child(5) {
  font-size: 1em;
  --wave-delay: 0.4s;
}

.hero-review-stars span:nth-child(2),
.hero-review-stars span:nth-child(4) {
  font-size: 1.08em;
  --wave-delay: 0.2s;
}

.hero-review-stars span:nth-child(3) {
  font-size: 1.22em;
  --wave-delay: 0s;
}

.hero-review-stars.is-animating span {
  opacity: 0;
  animation: reviewStarFade 0.45s ease forwards,
    reviewStarWave 2.4s ease-in-out infinite;
  animation-delay: 0s, var(--wave-delay, 0s);
}

.hero-review-stars.is-animating span:nth-child(3) {
  animation-delay: 0s;
}

.hero-review-stars.is-animating span:nth-child(2),
.hero-review-stars.is-animating span:nth-child(4) {
  animation-delay: 0.12s;
}

.hero-review-stars.is-animating span:nth-child(1),
.hero-review-stars.is-animating span:nth-child(5) {
  animation-delay: 0.24s;
}

.hero-review.is-animating .hero-review-text-body,
.hero-review.is-animating .hero-review-author,
.hero-review.is-animating .hero-review-more-inline {
  opacity: 0;
  animation: reviewTextFade 0.5s ease forwards;
}

.hero-review.is-animating .hero-review-author {
  animation-delay: 0.12s;
}

.hero-review.is-animating .hero-review-more-inline {
  animation-delay: 0.18s;
}

@keyframes reviewStarFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

  @keyframes reviewStarWave {
    0%,
    100% {
      transform: translateY(0) scale(1);
    }
    50% {
      transform: translateY(-9px) scale(1.12);
    }
  }

@keyframes reviewTextFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-review-nav {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-review-dots {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.hero-review-arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 16, 0.7);
  color: var(--color-text);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-review-arrow:hover {
  transform: translateY(-1px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.review-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2000;
}

.review-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.review-lightbox-inner {
  position: relative;
  width: min(720px, 92vw);
  background: #0a0a12;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: left;
  max-height: 85svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.review-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 20px;
  cursor: pointer;
}

.review-lightbox-stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 10px;
  color: var(--color-accent);
  font-size: 1.1rem;
  width: 100%;
  justify-content: center;
}

.review-lightbox-stars span:nth-child(1),
.review-lightbox-stars span:nth-child(5) {
  font-size: 0.85em;
}

.review-lightbox-stars span:nth-child(2),
.review-lightbox-stars span:nth-child(4) {
  font-size: 0.95em;
}

.review-lightbox-stars span:nth-child(3) {
  font-size: 1.2em;
}

.review-lightbox-text {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
  max-height: 52svh;
  overflow-y: auto;
  padding-right: 6px;
}

.review-lightbox-author {
  margin: 0;
  color: var(--color-accent-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.review-lightbox-author .hero-review-rating {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.review-lightbox-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--color-accent);
  font-size: 0.9rem;
  text-decoration: none;
}

.review-lightbox-link:hover {
  color: var(--color-accent-soft);
}
.hero-review-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.hero-review-dot.active {
  background: var(--color-accent);
  transform: scale(1.25);
}

/* ========================= */
/* Main content section      */
/* ========================= */
.content-section {
  padding: 40px 16px;
  background:
    radial-gradient(circle at 20% -10%, rgba(90, 150, 255, 0.20), transparent 72%),
    radial-gradient(circle at 80% 135%, rgba(230, 168, 74, 0.22), transparent 72%),
    #050508;
  min-height: calc(100svh - 140px);
  scroll-margin-top: 96px;
}

.content-inner {
  max-width: 1100px;
  margin-inline: auto;
}

.content-inner h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.content-inner p {
  margin: 0 0 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ========================= */
/* Project gallery carousel  */
/* ========================= */

.project-gallery-fullscreen {
  position: relative;
  width: 100%;
  margin-bottom: 32px;
}

.project-gallery-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 70svh; /* JS will override with exact viewport height */
  min-height: 420px;
}

/* Top bar showing current gallery + arrows */
.project-gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  margin: 64px auto 2px;
  z-index: 5;
  border-radius: 999px;
  background: rgba(5, 5, 9, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  width: calc(100% - 28px);
  max-width: 720px;
}

html.pref-theme-light .content-section {
  background:
    radial-gradient(circle at 18% -8%, rgba(90, 150, 255, 0.12), transparent 70%),
    radial-gradient(circle at 80% 120%, rgba(230, 168, 74, 0.12), transparent 70%),
    #ffffff !important;
}

html.pref-theme-light body,
html.pref-theme-light main,
html.pref-theme-light .project-gallery-fullscreen,
html.pref-theme-light .project-gallery-shell,
html.pref-theme-light .project-gallery-viewport,
html.pref-theme-light .gallery-tile-section {
  background: #ffffff !important;
}

html.pref-theme-light .gallery-hint {
  color: #111111;
}

.gallery-bar-secondary {
  margin: 0 auto 18px;
}

.gallery-set-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gallery-set-label-name {
  font-weight: 500;
  color: var(--color-text);
}

.gallery-set-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 30% 0%, #252542, #050509);
  color: #f7f7ff;
  font-size: 18px;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.gallery-set-nav:hover {
  transform: translateY(-1px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

/* Main viewport */

.project-gallery-viewport {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;      /* controls visible gallery height */
  max-height: 80svh;        /* prevents runaway height */
}

.gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 100%;
}

/* Individual slides */

.gallery-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(0) scale(0.8);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    filter 0.3s ease;
  will-change: transform, opacity;
  pointer-events: none;
  height: 100%;
  transform-origin: center center;
}

.gallery-slide-inner {
  width: 76vw;
  max-width: 960px;
  height: 80%;
  max-height: 640px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
  background: #050509;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide.is-visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.gallery-slide.is-active {
  opacity: 1;
  cursor: zoom-in;
}

.gallery-slide.is-active:hover {
  filter: brightness(1.02);
  transform: translateX(0) scale(1.02);
}

/* Big left/right buttons for photos */

.gallery-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 30% 0%, #252542, #050509);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #f8f8ff;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  z-index: 5;
}

.gallery-image-prev {
  left: 10px;
}

.gallery-image-next {
  right: 10px;
}

.gallery-image-nav:hover {
  transform: translateY(-50%) scale(1.05);
  border-color: var(--color-accent);
}

.gallery-hint {
  margin-top: -44px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
    z-index: 5;
}

/* Fullscreen overlay */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 3, 8, 0.95);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-image {
  max-width: 92vw;
  max-height: 92svh;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9);
}

.gallery-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 30% 0%, #252542, #050509);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #f8f8ff;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  z-index: 1000;
}

.gallery-lightbox-prev {
  left: 24px;
}

.gallery-lightbox-next {
  right: 24px;
}

.gallery-lightbox-nav:hover {
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.05);
}

.gallery-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* Lock scroll when lightbox is open */
body.gallery-lightbox-open {
  overflow: hidden;
}

/* Larger screens */
@media (min-width: 900px) {
  .project-gallery-shell {
    min-height: 520px;
  }

  .gallery-slide-inner {
    width: 68%;
  }

  .gallery-image-nav {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }

  .gallery-image-prev {
    left: 24px;
  }

  .gallery-image-next {
    right: 24px;
  }
}

/* ========================= */
/* Tiled gallery             */
/* ========================= */
.gallery-tile-section {
  margin-top: 24px;
}

.gallery-tile-grid {
  column-count: 2;
  column-gap: 16px;
}

@media (min-width: 760px) {
  .gallery-tile-grid {
    column-count: 3;
  }
}

@media (min-width: 1100px) {
  .gallery-tile-grid {
    column-count: 4;
  }
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050509;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
  break-inside: avoid;
  min-height: 160px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.gallery-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  background-size: 200% 100%;
  animation: galleryShimmer 1.6s linear infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-tile.is-loaded::before {
  opacity: 0;
}

.gallery-tile.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.3s ease, filter 0.3s ease;
}

.gallery-tile.is-loaded img {
  opacity: 1;
}

.gallery-tile:hover img {
  transform: scale(1.03);
  filter: brightness(1.02);
}

@keyframes galleryShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========================= */
/* Scroll reveal utility     */
/* ========================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* Home sections (about, services, contact) */
/* ========================= */
.home-section {
  padding: 40px 24px;
  border-radius: 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-section-light {
  background: radial-gradient(circle at top left, #1a1a24, #090910 58%);
}

.home-section-dark {
  background: linear-gradient(135deg, #050509, #12121b);
}

.home-section-header {
  margin-bottom: 18px;
}

.home-section-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.section-kicker {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.section-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-hint-icon {
  font-size: 0.9rem;
  color: var(--color-accent-soft);
}

.section-hint-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 12, 18, 0.6);
  color: var(--color-accent-soft);
  padding: 4px 10px;
  font-size: 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-hint-button:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 168, 74, 0.6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

html.pref-theme-light .section-hint-button {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: #8a5b12;
}

.text-highlight {
  color: #cdd4e3;
  font-weight: 700;
  font-size: 1.02em;
}

html.pref-theme-light .text-highlight {
  color: #1a3b6f;
}

/* Dark theme scrollbars */
html:not(.pref-theme-light) {
  scrollbar-color: #2a2a33 #0b0b10;
}

html:not(.pref-theme-light) ::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html:not(.pref-theme-light) ::-webkit-scrollbar-track {
  background: #0b0b10;
}

html:not(.pref-theme-light) ::-webkit-scrollbar-thumb {
  background: #2a2a33;
  border-radius: 10px;
  border: 3px solid #0b0b10;
}

html:not(.pref-theme-light) ::-webkit-scrollbar-thumb:hover {
  background: #3a3a47;
}

/* Two-column layout for About */
.home-two-col {
  display: grid;
  gap: 20px;
}

.home-two-col-main {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.home-two-col-aside {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 14, 0.96);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.home-two-col-aside h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.home-two-col-aside ul {
  margin: 0;
  padding-left: 18px;
}

.home-two-col-aside li {
  margin-bottom: 4px;
}

@media (min-width: 900px) {
  .home-two-col {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

/* Services grid */
.services-grid {
  display: grid;
  gap: 18px;
  margin-top: 6px;
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Full-width service card row inside the services grid */
.service-card--wide {
  grid-column: 1 / -1;
}

/* Service card with image background */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #050509;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  transform: translateZ(0);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* Background image layer */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 0.4s ease, background-position 0.4s ease;
  z-index: 0;
}

/* Dark overlay to keep text readable */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.82),
      rgba(0, 0, 0, 0.45)
    );
  z-index: 1;
}

/* Foreground content */
.service-card-inner {
  position: relative;
  z-index: 2;
  padding: 16px 16px 18px;
  color: var(--color-text-muted);
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 700px) {
  .service-card {
    min-height: 220px;
  }
}

.service-card-inner h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--color-text);
}

.service-card-inner p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.service-note {
  font-size: 0.84rem;
  color: var(--color-accent-soft);
}

/* Dark “outline”/glow for readability over images */
.service-card-inner h3,
.service-card-inner p,
.service-note {
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 0 6px rgba(0, 0, 0, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Hover / focus: subtle “parallax-ish” feel */
.service-card:hover,
.service-card:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  transform: scale(1.08) translateY(-4px);
  background-position: center 52%;
}

/* Per-service background images */
.service-card--carpentry::before {
  background-image: url("../images/services/carpentry.jpg");
}

.service-card--masonry::before {
  background-image: url("../images/services/masonry.jpg");
}

.service-card--flooring::before {
  background-image: url("../images/services/flooring.jpg");
}

.service-card--renovations::before {
  background-image: url("../images/services/renovations.jpg");
}

.service-card--newbuilds::before {
  background-image: url("../images/services/newbuilds.jpg");
}

.service-card--design::before {
  background-image: url("../images/galleries/Bluewater Bungalow/Untitled-11917.jpg");
}

.service-card--smarthome::before {
  background-image: url("../images/services/smarthome.png");
}

/* ========================= */
/* Services page layout      */
/* ========================= */

.designer-highlight {
  margin: 26px 0 8px;
}

.designer-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top left, rgba(12, 12, 24, 0.6), transparent 60%),
    rgba(5, 5, 10, 0.65);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.designer-card--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
}

.designer-card--reverse .designer-photo {
  order: 2;
}

.designer-card--reverse .designer-copy {
  order: 1;
}

.service-actions {
  margin-top: 12px;
}

.smart-home-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2200;
}

.smart-home-lightbox.is-open {
  display: flex;
}

.smart-home-lightbox-inner {
  position: relative;
  width: min(900px, 94vw);
  max-height: 88svh;
  overflow-y: auto;
  background: rgba(10, 10, 16, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  padding: 24px;
  color: var(--color-text);
}

.smart-home-lightbox-inner h2 {
  margin: 0 0 12px;
  color: var(--color-accent-soft);
}

.smart-home-lightbox-inner h3 {
  margin: 16px 0 8px;
  color: var(--color-text);
}

.smart-home-lightbox-inner ul {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--color-text-muted);
}

.smart-home-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 22px;
  cursor: pointer;
}

html.pref-theme-light .smart-home-lightbox-inner {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #111111;
}

html.pref-theme-light .smart-home-lightbox-inner ul {
  color: #4a4a4a;
}
.designer-photo img {
  width: 100%;
  border-radius: 16px;
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
}

.designer-copy h2 {
  margin: 0 0 6px;
  color: var(--color-accent-soft);
}

.designer-copy p {
  margin: 0 0 10px;
  color: var(--color-text-muted);
}

.designer-contact p {
  margin: 0 0 6px;
}

.designer-contact a {
  color: var(--color-accent-soft);
}

.designer-actions {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.designer-actions .hero-btn {
  text-decoration: none;
}

.services-division {
  margin-top: 32px;
}

.services-division,
.service-row,
.designer-highlight,
.review-inline-slot {
  scroll-margin-top: calc(var(--header-height, 56px) + 24px);
}

.services-division-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 24px;
}

.services-division-logo {
  height: clamp(80px, 9vw, 120px); /* bigger and responsive */
  width: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.85));
}



.services-division-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.services-division-body {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Alternating image/text rows */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 22px;
  align-items: center;
}

.service-row-image img {
  width: 100%;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  max-height: 260px;
}

.service-row-image--empty {
  min-height: 260px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-row-text h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--color-accent-soft);
}

.service-row-text p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.service-bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.service-bullets li {
  margin-bottom: 4px;
}

/* Image left / right alignment */
.service-row--image-left .service-row-image {
  order: 1;
}
.service-row--image-left .service-row-text {
  order: 2;
}

.service-row--image-right .service-row-image {
  order: 2;
}
.service-row--image-right .service-row-text {
  order: 1;
}

/* Stack on smaller screens */
@media (max-width: 800px) {
  .designer-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .designer-photo {
    max-width: 220px;
    margin: 0 auto;
  }

  .service-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-row-image,
  .service-row-text {
    order: initial;
  }

  .service-row-image img {
    max-height: 220px;
  }

  .service-row-image--empty {
    min-height: 220px;
  }
}


/* Contact layout */
.contact-grid {
  display: grid;
  gap: 20px;
}

.contact-main {
  font-size: 0.96rem;
  color: var(--color-text-muted);
}

/* Help page layout */
body.page-help .content-section--help {
  padding: 32px 0 48px;
}

.help-inner {
  max-width: 980px;
  margin: 0 auto;
}

.help-header {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
}

.help-header h1 {
  margin: 0 0 10px;
  color: var(--color-text);
}

.help-header p {
  margin: 0;
  color: var(--color-text-muted);
}

.help-header .theme-toggle-button {
  font-size: 0.9rem;
}

.help-panels {
  display: grid;
  gap: 18px;
}

.help-panel {
  position: relative;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--color-border-subtle);
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text);
}

.help-panel-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
}

html:not(.pref-theme-light) .help-panel {
  background: rgba(15, 15, 22, 0.75);
}

.help-panel h2 {
  margin: 0 0 12px;
  color: var(--color-text);
}

.help-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.help-select {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.help-button-row {
  height: 12px;
}

.help-action-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.help-action-row .btn {
  flex: 1 1 0;
}

.help-select span {
  flex: 0 0 auto;
}

.help-select select {
  flex: 1 1 auto;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle);
  background: rgba(8, 8, 12, 0.85);
  color: var(--color-text);
  padding: 6px 10px;
  font-size: 0.95rem;
}

html.pref-theme-light .help-select select {
  background: #ffffff;
  color: #111111;
}

.help-toggle input {
  width: 18px;
  height: 18px;
}

.help-slider {
  width: min(100%, 520px);
  display: block;
  margin: 0 auto;
}

.help-size-labels {
  width: min(100%, 520px);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 6px auto 0;
}

.help-contact a {
  color: inherit;
}

.help-contact .help-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.bullet-list {
  margin: 12px 0 16px;
  padding-left: 18px;
}

.bullet-list li {
  margin-bottom: 4px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-area-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: left;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

html.pref-theme-light .service-area-list {
  color: #111111;
}

.service-area-group {
  break-inside: avoid;
}

@media (max-width: 700px) {
  .service-area-list {
    grid-template-columns: 1fr;
  }
}

.service-area-group h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--color-accent-soft);
}

.contact-card h3 {
  text-align: center;
}

.service-area-group p {
  margin: 0;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.12s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #141219;
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-soft);
  transform: translateY(-1px);
}

.show-on-mobile {
  display: none;
}

@media (max-width: 768px) {
  .show-on-mobile {
    display: inline-flex;
  }
}

.contact-aside {
  display: grid;
  gap: 12px;
}

.contact-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 14, 0.96);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--color-accent-soft);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

/* Footer Styling */
.site-footer {
  background-color: #111;
  color: #ddd;
  padding: 10px 12px;
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  overflow: hidden;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  transform-origin: center top;
  width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  white-space: nowrap;
}

.footer-col {
  flex: 0 1 auto;
}
.footer-col h4 {
  color: #C9A14A;
  margin: 0 0 2px;
  font-size: 1rem;
}
.footer-col p, .footer-col li {
  line-height: 1.3;
  margin: 0 0 4px;
  white-space: nowrap;
}
.footer-col a {
  color: #C9A14A;
  text-decoration: none;
}
.footer-col a:hover {
  text-decoration: underline;
}

html.pref-theme-light .site-footer {
  background-color: #ffffff;
  color: #111111;
}

html.pref-theme-light .footer-col h4,
html.pref-theme-light .footer-col a {
  color: #111111;
}

html.pref-theme-light .footer-col a:hover {
  color: #000000;
}
.footer-logo {
  max-width: 100px;
  margin-bottom: 0.2em;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  margin: 0.3em 0;
}
.footer-nav a {
  color: #ccc;
  text-decoration: none;
}
.footer-nav a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.footer-socials-centered {
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
  align-self: end;
  margin-bottom: -6px;
}

.footer-contact {
  grid-row: 2;
}

.footer-contact-center {
  grid-column: 2;
  text-align: center;
}

.footer-hours {
  grid-row: 2;
  text-align: right;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 18px;
  align-items: start;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-contact-center {
  text-align: center;
}

.footer-contact-grid p {
  margin: 0 0 2px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 16, 0.7);
  color: var(--color-accent-soft);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-link--contact {
  margin: 0 0 2px;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  color: var(--color-accent);
}
@media (max-width: 980px) {
  html {
    font-size: 12.75px;
  }
  html.pref-text-scale {
    font-size: calc(17px * var(--text-scale, 1) * 0.75);
  }
  .site-footer {
    padding: 10px 12px !important;
  }
  .footer-container {
    transform: scale(0.82);
    transform-origin: top center;
  }
  .footer-col h4 {
    font-size: 0.8rem;
  }
  .footer-col p,
  .footer-col li,
  .footer-contact-grid p,
  .footer-col a {
    font-size: 0.72rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 6px;
    row-gap: 14px;
    white-space: normal;
  }

  .footer-col p,
  .footer-col li,
  .footer-contact-grid p,
  .footer-col a {
    white-space: normal;
  }

  .footer-contact {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-contact-center {
    text-align: left;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-hours {
    text-align: right;
    grid-column: 2;
    grid-row: 1;
  }

  .footer-socials-centered {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 0;
  }

  .footer-contact-grid {
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
    column-gap: 18px;
  }
  .footer-contact-item {
    align-items: flex-start;
  }

  .footer-contact-item:last-child {
    align-items: flex-end;
    text-align: right;
  }
}

@media (max-width: 480px) {
  .footer-container {
    transform: scale(0.74);
  }
}

@media (max-width: 420px) {
  .footer-container {
    transform: scale(0.68);
  }
}

@media (max-width: 360px) {
  .footer-container {
    transform: scale(0.62);
  }
}

/* ========================= */
/* Mobile-specific tweaks    */
/* ========================= */

@media (max-width: 640px) {
  .site-header:not(.header-scrolled) .header-inner {
    position: relative;
    flex-direction: column;
    align-items: center;
  }

  .site-header:not(.header-scrolled) .header-logo {
    justify-content: center;
    gap: 0.75rem;
  }

  .site-header:not(.header-scrolled) .brand-logo-main {
    height: 88px;
  }

  .site-header:not(.header-scrolled) .brand-logo-secondary {
    display: none;
  }

  .site-header:not(.header-scrolled) .main-nav {
    width: 100%;
  }

  .site-header:not(.header-scrolled) .nav-toggle {
    position: absolute;
    right: 8px;
    bottom: 8px;
    margin: 0;
    transform: none;
  }

  .content-section {
    padding: 28px 14px;
  }

  .content-inner {
    font-size: 1.02rem;
  }

  .content-inner p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .home-section {
    padding: 24px 16px;
    margin-bottom: 18px;
  }

  .home-section-header {
    margin-bottom: 12px;
  }

  .home-two-col {
    gap: 16px;
  }
}

@media (max-width: 1100px) {
  .footer-container {
    transform: scale(0.95);
  }
}

@media (max-width: 950px) {
  .footer-container {
    transform: scale(0.9);
  }
}

@media (max-width: 820px) {
  .footer-container {
    transform: scale(0.85);
  }
}

/* ========================= */
/* Gallery fullscreen overlay */
/* ========================= */

.gallery-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.gallery-fullscreen-overlay.is-active {
  display: flex;
}

.gallery-fullscreen-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

/* When fullscreen, prevent background scroll */
body.gallery-fullscreen-open {
  overflow: hidden;
}






