/* ============================================================
   Om Window Blinds — shared custom CSS
   Warm interiors: sand / charcoal / brass
   ============================================================ */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #292524;
  background: #FDFBF7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, .font-display { font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'SOFT' 0, 'WONK' 0; }

/* --- Focus visibility (brass ring, never removed) --- */
:focus-visible { outline: 2px solid #B8863B; outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; padding: .75rem 1.25rem; background: #1C1917; color: #fff;
  font-size: .875rem; font-weight: 600; border-radius: 0 0 .75rem .75rem; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* --- Linen texture for sand surfaces --- */
.texture-linen {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* --- Section eyebrow rule --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9A6E2E;
}
.eyebrow::before { content: ''; width: 40px; height: 2px; background: linear-gradient(90deg, #B8863B, #DCC08A); border-radius: 2px; }
.eyebrow-center::after { content: ''; width: 40px; height: 2px; background: linear-gradient(90deg, #DCC08A, #B8863B); border-radius: 2px; }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Navbar --- */
#navbar { transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease; }
#navbar.nav-scrolled { background: rgba(253,251,247,.94); backdrop-filter: blur(14px); box-shadow: 0 8px 30px -20px rgba(28,25,23,.5); border-color: rgba(232,220,200,.9); }
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  background: #B8863B; transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* --- Mobile drawer --- */
.mobile-panel { transform: translateX(100%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.mobile-panel.open { transform: translateX(0); }

/* --- Hero slider --- */
.slider { position: relative; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-media { position: absolute; inset: 0; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s ease-out; }
.slide.is-active .slide-media img { transform: scale(1); }
.slide-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,13,12,.82) 0%, rgba(15,13,12,.62) 45%, rgba(15,13,12,.25) 100%);
}
.slide-content { opacity: 0; transform: translateY(20px); transition: opacity .8s ease .25s, transform .8s ease .25s; }
.slide.is-active .slide-content { opacity: 1; transform: none; }
.slider-arrow {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 9999px;
  background: rgba(253,251,247,.14); backdrop-filter: blur(8px); border: 1px solid rgba(253,251,247,.28);
  color: #FDFBF7; transition: background-color .25s, border-color .25s, transform .25s;
}
.slider-arrow:hover { background: rgba(184,134,59,.9); border-color: #B8863B; transform: scale(1.06); }
.slider-dot { width: 2.25rem; height: 3px; border-radius: 2px; background: rgba(253,251,247,.32); transition: background-color .3s, width .3s; }
.slider-dot[aria-selected="true"] { background: #C9A45C; width: 3.5rem; }

/* Broken/slow image fallback: degrade to warm linen, never a broken icon */
img { background: linear-gradient(135deg, #F4EDE2 0%, #E8DCC8 100%); }

/* --- Cards --- */
.card-lift { transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s cubic-bezier(.22,1,.36,1), border-color .4s; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -28px rgba(28,25,23,.35); border-color: #DCC08A; }
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform .7s cubic-bezier(.22,1,.36,1); }
.zoom-img:hover img { transform: scale(1.07); }

/* --- Gallery --- */
.gallery-grid { column-gap: 1rem; }
@media (min-width: 640px) { .gallery-grid { column-count: 2; } }
@media (min-width: 1024px) { .gallery-grid { column-count: 3; } }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; }
.gallery-item.is-hidden { display: none; }
.filter-chip { transition: background-color .25s, color .25s, border-color .25s; }
.filter-chip[aria-pressed="true"] { background: #1C1917; color: #FDFBF7; border-color: #1C1917; }

/* --- Lightbox --- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; }
.lightbox.open { display: grid; place-items: center; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(15,13,12,.94); backdrop-filter: blur(6px); }
.lightbox-figure { position: relative; z-index: 1; max-width: min(92vw, 1100px); max-height: 88vh; }
.lightbox-figure img { max-height: 74vh; width: auto; max-width: 92vw; border-radius: .75rem; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }

/* --- FAQ accordion --- */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.22,1,.36,1); }
.faq-item.open .faq-answer { max-height: 24rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .35s ease; }

/* --- Floating actions --- */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 5.75rem; z-index: 90;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: #25D366; color: #fff; box-shadow: 0 14px 34px -10px rgba(37,211,102,.65);
  animation: pulseRing 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.07); }
@media (min-width: 1024px) { .whatsapp-float { bottom: 1.75rem; } }
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 14px 34px -10px rgba(37,211,102,.65), 0 0 0 0 rgba(37,211,102,.45); }
  50%      { box-shadow: 0 14px 34px -10px rgba(37,211,102,.65), 0 0 0 14px rgba(37,211,102,0); }
}
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; }
body.menu-open .mobile-cta,
body.menu-open .whatsapp-float { display: none !important; }
@media (min-width: 1024px) { .mobile-cta { display: none !important; } }

/* --- Forms --- */
.field {
  width: 100%; border: 1px solid #E8DCC8; background: #fff; border-radius: .75rem;
  padding: .8125rem 1rem; font-size: .9375rem; color: #292524; transition: border-color .25s, box-shadow .25s;
}
.field::placeholder { color: #A8A29E; }
.field:focus { outline: none; border-color: #B8863B; box-shadow: 0 0 0 3px rgba(184,134,59,.16); }
.field[aria-invalid="true"] { border-color: #C2410C; box-shadow: 0 0 0 3px rgba(194,65,12,.12); }
.field-error { display: none; color: #C2410C; font-size: .75rem; margin-top: .375rem; font-weight: 500; }
.field-error.show { display: block; }

/* --- Marquee for service areas --- */
.marquee { display: flex; gap: .75rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee-wrap { overflow: hidden; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Reduced motion kill switch --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .slide-media img { transform: none; }
  .slide-content { opacity: 1; transform: none; }
}

/* --- Print --- */
@media print {
  #navbar, .whatsapp-float, .mobile-cta, .slider-arrow, .slider-dot { display: none !important; }
}
