/* =============================================
   CAMDEN BATHROOMS — Redesign 2026
   Luxury-Minimal Design
   ============================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --charcoal:    #1A1A1A;
  --charcoal-2:  #222222;
  --charcoal-3:  #2C2C2C;
  --cream:       #F5F0E8;
  --cream-muted: #C8BDA8;
  --gold:        #B8965A;
  --gold-light:  #D4AF7A;
  --gold-dark:   #8A6E3E;
  --white:       #FFFFFF;
  --border:      rgba(184, 150, 90, 0.25);
  --shadow:      0 8px 40px rgba(0,0,0,0.4);
  --radius:      4px;
  --radius-lg:   8px;
  --transition:  0.3s ease;
  --section-pad: clamp(60px, 8vw, 120px);

  /* Heal: named rgba tokens — stop repeating magic rgba values throughout */
  --charcoal-a92:  rgba(26, 26, 26, 0.92);
  --charcoal-a98:  rgba(26, 26, 26, 0.98);
  --charcoal-a88:  rgba(26, 26, 26, 0.88);
  --charcoal-a72:  rgba(26, 26, 26, 0.72);
  --charcoal-a50:  rgba(26, 26, 26, 0.50);
  --charcoal-a70:  rgba(26, 26, 26, 0.70);
  --black-a96:     rgba(10, 10, 10, 0.96);
  --black-a40:     rgba(0,  0,  0,  0.40);
  --gold-a35:      rgba(184, 150, 90, 0.35);
  --gold-a40:      rgba(184, 150, 90, 0.40);
  --gold-a06:      rgba(184, 150, 90, 0.06);
  --gold-a12:      rgba(184, 150, 90, 0.12);
  --gold-a15:      rgba(184, 150, 90, 0.15);
  --gold-a10:      rgba(184, 150, 90, 0.10);
  --gold-a20:      rgba(184, 150, 90, 0.20);
  --gold-a30:      rgba(184, 150, 90, 0.30);
  --gold-a45:      rgba(184, 150, 90, 0.45);
  --gold-a60:      rgba(184, 150, 90, 0.60);
  --charcoal-a90:  rgba(26, 26, 26, 0.90);
  --charcoal-a95:  rgba(26, 26, 26, 0.95);
  --black-a30:     rgba(0,  0,  0,  0.30);
  --black-a80:     rgba(0,  0,  0,  0.80);
  --cream-a85:     rgba(245, 240, 232, 0.85);
  --cream-muted-a40: rgba(200, 189, 168, 0.40);
  --cream-muted-a50: rgba(200, 189, 168, 0.50);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--charcoal);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }
p  { font-size: 1.05rem; color: var(--cream-muted); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--cream-muted);
  max-width: 580px;
}

/* --- Utility --- */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.text-gold  { color: var(--gold); }
.text-cream { color: var(--cream); }
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.25rem 0 2rem;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }
.fade-in.delay-5 { transition-delay: 0.5s; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--charcoal-a92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--charcoal-a98);
  box-shadow: 0 2px 20px var(--black-a40);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
  filter: brightness(1.1);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.nav-logo-text .tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* Heal: explicit properties instead of transition:all — avoids layout thrash */
  transition: background-color var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  border: none;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--gold-a35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  /* Heal: explicit properties instead of transition:all */
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu Drawer
   Heal: was display:none → display:flex which breaks CSS transition.
   Fix: always display:flex, controlled by visibility+opacity so
   opacity/transform transitions animate correctly in both directions. */
.nav-mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--charcoal-2);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem 2rem;
  z-index: 999;
  gap: 1.25rem;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover { color: var(--cream); }
.nav-mobile .btn-gold { text-align: center; margin-top: 0.5rem; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--charcoal-a88) 0%,
    var(--charcoal-a72) 50%,
    var(--charcoal-a50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 2rem;
  width: min(760px, 100%);
  margin-left: max(2rem, calc((100vw - 1200px) / 2));
  padding-top: 70px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px var(--black-a40);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--cream-a85);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Trust bar */
.hero-trust {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--gold-a30);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream-muted);
  letter-spacing: 0.02em;
}

.trust-item .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-a15);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item .icon svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
  animation: bounce 2s ease infinite;
  z-index: 1;
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.scroll-indicator svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: var(--section-pad) 0;
  background: var(--charcoal-2);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-primary {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 45%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid var(--charcoal-2);
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  top: 2rem;
  left: -1.5rem;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 20px var(--gold-a40);
}
.about-badge .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}
.about-badge .label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.2;
}

.about-text { padding-right: 1rem; }

.about-logo {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-logo img {
  height: 50px;
  width: auto;
  filter: brightness(1.1);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
  padding: 1.25rem 0.5rem;
  background: var(--gold-a06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: var(--section-pad) 0;
  background: var(--charcoal);
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header .divider {
  margin: 1.25rem auto 2rem;
}

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

.service-card {
  background: var(--charcoal-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--gold-a45);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--black-a30);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-a12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  color: var(--cream);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--cream-muted);
  margin: 0;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery {
  padding: var(--section-pad) 0;
  background: var(--charcoal-3);
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-header .divider {
  margin: 1.25rem auto 2rem;
}

/* Filter tabs */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--cream-muted);
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--cream);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}

/* Masonry grid */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--charcoal-a90) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-caption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.gallery-subcaption {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.gallery-zoom-icon {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: var(--charcoal-a70);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-zoom-icon svg {
  width: 16px; height: 16px;
  stroke: var(--gold);
  fill: none;
}

.gallery-item:hover .gallery-zoom-icon { opacity: 1; }

.gallery-item.hidden { display: none; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--black-a96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px var(--black-a80);
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--cream-muted);
}

.lightbox-caption strong {
  color: var(--cream);
  font-family: 'Playfair Display', serif;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--cream-muted);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition);
}
.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: var(--charcoal-a70);
  border: 1.5px solid var(--border);
  color: var(--cream);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Heal: explicit properties instead of transition:all */
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--charcoal-a95);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--charcoal-2);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-header .divider {
  margin: 1.25rem auto 2rem;
}

.placeholder-notice {
  display: inline-block;
  background: var(--gold-a10);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

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

.testimonial-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem; left: 1.25rem;
  line-height: 1;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}
.stars span {
  color: var(--gold);
  font-size: 0.9rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--cream-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--charcoal);
  font-size: 1rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cream);
}
.author-location {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: var(--section-pad) 0;
  background: var(--charcoal);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header .divider {
  margin: 1.25rem auto 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Contact Form */
.contact-form {
  background: var(--charcoal-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form h3 {
  color: var(--cream);
  margin-bottom: 1.75rem;
  font-size: 1.35rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--charcoal-3);
  border: 1.5px solid var(--gold-a20);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--cream);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--cream-muted-a40);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 0.9rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-details h3 {
  color: var(--cream);
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--charcoal-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: border-color var(--transition);
}

.contact-item:hover { border-color: var(--gold-a45); }

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-a12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.contact-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contact-item-value {
  font-size: 0.97rem;
  color: var(--cream);
  font-weight: 500;
}

.contact-item-value a {
  color: var(--cream);
  transition: color var(--transition);
}
.contact-item-value a:hover { color: var(--gold); }

.contact-item-value small {
  display: block;
  font-size: 0.78rem;
  color: var(--cream-muted);
  margin-top: 0.15rem;
}

/* Map */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 240px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--charcoal-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand img {
  height: 44px;
  width: auto;
  filter: brightness(1.1);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--cream-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-tagline-img {
  margin-top: 0.75rem;
  height: 28px;
  width: auto;
  opacity: 0.7;
  filter: brightness(1.1) sepia(20%);
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--cream-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cream); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--cream-muted);
}

.footer-contact-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: var(--cream-muted);
  transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--cream-muted-a50);
}

.footer-demo-notice {
  font-size: 0.72rem;
  color: var(--gold-a60);
  border: 1px solid var(--gold-a20);
  border-radius: var(--radius);
  padding: 0.25rem 0.75rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .about-grid        { gap: 3rem; }
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --section-pad: clamp(50px, 10vw, 80px); }

  .nav-links,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-content {
    margin-left: 0;
    padding: 5rem 1.5rem 3rem;
  }

  .hero-trust { gap: 1rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-images {
    max-width: 480px;
    margin: 0 auto;
  }

  .about-img-accent { display: none; }

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

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

  .gallery-grid {
    columns: 2;
    column-gap: 0.75rem;
  }

  .testimonials-grid { grid-template-columns: 1fr; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    columns: 1;
  }

  .about-stats { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  background: var(--charcoal-3);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  /* base — will be overridden by the specific transition rule below */
  transition: opacity var(--transition), transform var(--transition),
              background-color var(--transition), border-color var(--transition);
}

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

.back-to-top:hover {
  border-color: var(--gold);
  background: var(--gold);
}

.back-to-top:hover svg { stroke: var(--charcoal); }

.back-to-top svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  fill: none;
  transition: stroke var(--transition);
}

/* also fix back-to-top transition:all */
.back-to-top {
  transition: opacity var(--transition), transform var(--transition),
              background-color var(--transition), border-color var(--transition);
}

/* =============================================
   ACCESSIBILITY — :focus-visible
   Heal: was completely absent — WCAG 2.1 AA violation
   Use :focus-visible so keyboard users get a ring;
   mouse users do not (browser default).
   ============================================= */

/* Global focus ring suppression for mouse, ring for keyboard */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Nav links */
.nav-links a:focus-visible,
.nav-mobile a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Buttons */
.btn:focus-visible,
.nav-hamburger:focus-visible,
.back-to-top:focus-visible,
.filter-btn:focus-visible,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Form inputs */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none; /* handled by border-color transition already */
  border-color: var(--gold);
}

/* Gallery items */
.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
