/* ==========================================================
   Golden Home Painters — luxury palette
   Deep navy + warm brass accents on cream
   ========================================================== */

:root {
  --navy: #0f2133;
  --navy-deep: #081524;
  --navy-soft: #1a3449;
  --brass: #c9a961;
  --brass-soft: #d9be7f;
  --brass-dark: #7f6530;
  --cream: #faf6ef;
  --cream-soft: #f1ebdd;
  --ink: #171717;
  --muted: #5d6874;
  --line: rgba(15, 33, 51, 0.12);
  --shadow-sm: 0 2px 12px rgba(15, 33, 51, 0.08);
  --shadow-md: 0 12px 40px rgba(15, 33, 51, 0.14);
  --shadow-lg: 0 24px 80px rgba(15, 33, 51, 0.22);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 600;
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--navy);
  text-align: center;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}

.brand-logo {
  width: 57px;
  height: 57px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 11px;
  color: var(--brass-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav a:not(.nav-cta):hover { color: var(--brass-dark); }

.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brass-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 21, 36, 0.7), rgba(15, 33, 51, 0.55)),
    radial-gradient(circle at 30% 20%, rgba(201, 169, 97, 0.18), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero-content { z-index: 2; }

.hero-content {
  position: relative;
  padding: 140px 24px 100px;
  max-width: 900px;
}

.hero .eyebrow {
  color: var(--brass-soft);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--cream);
}

.hero-sub {
  font-size: 19px;
  max-width: 580px;
  margin: 0 0 40px;
  color: rgba(250, 246, 239, 0.88);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brass);
  color: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.35);
}
.btn-primary:hover {
  background: var(--brass-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 169, 97, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 246, 239, 0.4);
}
.btn-ghost:hover {
  background: rgba(250, 246, 239, 0.1);
  border-color: var(--cream);
}

.btn-full { width: 100%; margin-top: 8px; }

/* ---------- Services ---------- */

.services {
  padding: 120px 0;
  background: var(--cream);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--brass);
  transition: height 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { height: 100%; }

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--navy);
}

.service-card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* ---------- Portfolio ---------- */

.portfolio {
  padding: 120px 0;
  background: var(--cream-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.project {
  margin: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project figcaption {
  padding: 16px 22px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project figcaption::after {
  content: 'Before / After';
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 500;
}

/* ---------- Before/After slider ---------- */

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  background: #111;
}

.ba-slider:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 6px;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider .ba-after-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.ba-slider .ba-after-wrap img {
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 0 20px rgba(0,0,0,0.3);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.ba-handle::before {
  content: '‹ ›';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 2px;
}

.ba-label {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  background: rgba(15, 33, 51, 0.75);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  pointer-events: none;
}
.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; background: rgba(201, 169, 97, 0.9); color: var(--navy-deep); }

/* ---------- Testimonials ---------- */

.testimonials {
  padding: 120px 0;
  background: var(--cream);
}

.quote-wrap {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.quote {
  margin: 0;
  padding: 48px 56px;
  background: #fff;
  border-left: 4px solid var(--brass);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 32px;
  font-family: var(--font-serif);
  font-size: 140px;
  line-height: 1;
  color: var(--brass);
  opacity: 0.35;
}

.quote p {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--navy);
  margin: 0 0 24px;
  font-style: italic;
  font-weight: 500;
}

.quote footer {
  font-size: 14px;
  color: var(--brass-dark);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote cite { font-style: normal; }

/* ---------- Contact ---------- */

.contact {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.12), transparent 65%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.contact-copy .section-title {
  text-align: left;
  color: var(--cream);
}
.contact-copy .eyebrow { color: var(--brass-soft); }
.contact-copy p {
  color: rgba(250, 246, 239, 0.8);
  font-size: 17px;
  max-width: 460px;
}

.contact-card {
  background: rgba(250, 246, 239, 0.04);
  border: 1px solid rgba(250, 246, 239, 0.12);
  padding: 40px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid rgba(250, 246, 239, 0.12);
  text-decoration: none;
  color: var(--cream);
  transition: color 0.2s;
}
.contact-row:hover { color: var(--brass-soft); }
.contact-row:first-child { padding-top: 4px; }

.contact-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
  font-weight: 600;
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 246, 239, 0.7);
  padding: 44px 0;
  border-top: 1px solid rgba(250, 246, 239, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.5fr) minmax(220px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.footer-main {
  display: grid;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo { width: 44px; height: 44px; object-fit: contain; }

.footer-brand .brand-name { color: var(--cream); }

.footer-copy { font-size: 13px; margin: 0; }

.footer-areas h2 {
  margin: 0 0 10px;
  color: var(--brass-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-areas p {
  margin: 0;
  color: rgba(250, 246, 239, 0.72);
  font-size: 13px;
  line-height: 1.8;
}

.footer-contact {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.footer-contact a {
  color: rgba(250, 246, 239, 0.78);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--brass-soft); }

.footer-powered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 246, 239, 0.08);
  text-align: center;
}

.footer-powered a,
.footer-accessibility-link {
  color: rgba(250, 246, 239, 0.52);
  font-family: 'Space Grotesk', var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-accessibility-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-powered a:hover,
.footer-accessibility-link:hover {
  color: var(--brass-soft);
}

/* ---------- Modal & cookie notice ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 21, 36, 0.72);
}

.modal-backdrop[hidden],
.cookie-banner[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 640px);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 44px;
  border: 1px solid rgba(15, 33, 51, 0.12);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.modal-panel h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500;
  line-height: 1.1;
}

.modal-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.modal-copy p:last-child { margin-bottom: 0; }

.modal-copy a {
  color: var(--navy);
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(250, 246, 239, 0.18);
  border-radius: 8px;
  background: rgba(8, 21, 36, 0.96);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
}

.cookie-banner h2 {
  margin: 0 0 4px;
  color: var(--brass-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cookie-banner p {
  margin: 0;
  color: rgba(250, 246, 239, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-accept {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brass);
  color: var(--navy-deep);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

/* ---------- Mobile sticky CTA ---------- */

.mobile-sticky-cta {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav { gap: 28px; }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .nav {
    position: fixed;
    top: 84px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(calc(-100% - 100px));
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
    visibility: hidden;
    box-shadow: var(--shadow-md);
  }
  .nav.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.35s ease, visibility 0s linear 0s;
  }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }

  .hero-content { padding: 100px 24px 80px; }
  .services, .portfolio, .testimonials, .contact { padding: 80px 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-copy .section-title { text-align: center; }
  .contact-copy p { margin-left: auto; margin-right: auto; text-align: center; }

  .quote { padding: 36px 28px; }
  .quote p { font-size: 19px; }

  .modal-panel {
    padding: 36px 24px;
  }

  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: calc(100px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-accept {
    width: 100%;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(250, 246, 239, 0.5);
    border-radius: 28px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(250, 246, 239, 0.18)),
      rgba(15, 33, 51, 0.2);
    box-shadow:
      0 18px 48px rgba(8, 21, 36, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(22px) saturate(1.55);
    -webkit-backdrop-filter: blur(22px) saturate(1.55);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s linear 0s;
  }

  .mobile-sticky-cta.is-hidden {
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s linear 0.28s;
  }

  .mobile-sticky-link {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 20px;
    color: var(--cream);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .mobile-sticky-call {
    background: linear-gradient(135deg, var(--brass-soft), var(--brass));
    color: var(--navy-deep);
  }

  .mobile-sticky-email {
    background: linear-gradient(135deg, rgba(15, 33, 51, 0.92), rgba(8, 21, 36, 0.9));
  }

  .mobile-sticky-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    font-size: 14px;
    line-height: 1;
  }
}

@media (max-width: 480px) {
  .brand-logo { width: 48px; height: 48px; }
  .brand-name { font-size: 18px; }
  .brand-tag { font-size: 10px; }
  .hero h1 { font-size: 42px; }
  .btn { padding: 14px 24px; font-size: 14px; }
  .btn-full { padding: 16px; }
}
