/* ============================================================
   WINGY DESIGN — shared stylesheet
   Ar. Himabindu · Architecture + Interiors
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Jost:wght@200;300;400;500&display=swap');

:root {
  --gold: #b8912f;
  --gold-light: #d9b155;
  --gold-soft: rgba(184, 145, 47, 0.12);
  --ink: #14140f;
  --ink-soft: #3d3d35;
  --charcoal: #1c1c18;
  --cream: #f6f3ec;
  --paper: #fcfaf5;
  --gray: #6f6c63;
  --line: rgba(20, 20, 15, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 14px rgba(20,20,15,0.06);
  --shadow-md: 0 18px 50px rgba(20,20,15,0.10);
  --shadow-lg: 0 40px 90px rgba(20,20,15,0.18);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  /* clip at the root as well as on <body>: the off-canvas mobile drawer is
     position:fixed, and body-level overflow-x alone does not stop it from
     widening the layout viewport on small screens */
  overflow-x: hidden;
}

body {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: #fff; }

/* focus visibility for keyboard users */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: 1240px; margin: 0 auto; }
.wrap-narrow { max-width: 940px; margin: 0 auto; }

/* ---------- PAGE TRANSITION VEIL ---------- */
#veil {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 9998;
  pointer-events: none;
  transform-origin: top;
  animation: veilOut 0.9s var(--ease) forwards;
}
@keyframes veilOut {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: top; }
}
body.leaving #veil {
  animation: veilIn 0.45s var(--ease) forwards;
  pointer-events: all;
}
@keyframes veilIn {
  0%   { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

/* line-by-line masked reveal for headings */
.line-mask { overflow: hidden; display: block; }
.line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
}
.visible .line-mask > span,
.line-mask.visible > span { transform: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.2rem, 5vw, 4rem);
  transition: background 0.55s var(--ease), padding 0.55s var(--ease),
              box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled,
.nav.solid {
  background: rgba(252, 250, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

.logo {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: #fff;
  transition: color 0.55s var(--ease);
  display: flex;
  align-items: center;
  gap: 0.1em;
}
.logo b { font-weight: 500; }
.logo i { color: var(--gold-light); font-style: normal; margin: 0 0.15em; }
.logo small {
  display: block;
  font-size: 0.42rem;
  letter-spacing: 0.34em;
  opacity: 0.72;
  margin-top: 3px;
  font-weight: 300;
}
.nav.scrolled .logo,
.nav.solid .logo { color: var(--ink); }
.nav.scrolled .logo i,
.nav.solid .logo i { color: var(--gold); }

.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  position: relative;
  padding: 4px 0;
  transition: color 0.45s var(--ease);
}
.nav.scrolled .nav-links a,
.nav.solid .nav-links a { color: var(--ink-soft); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-cta {
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 30px;
  padding: 0.5rem 1.15rem !important;
  transition: all 0.45s var(--ease);
}
.nav-cta::after { display: none !important; }
.nav.scrolled .nav-cta,
.nav.solid .nav-cta { border-color: var(--gold); color: var(--gold) !important; }
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  cursor: pointer;
  z-index: 1100;
  background: none; border: none;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: #fff;
  transition: all 0.4s var(--ease);
}
.nav.scrolled .nav-toggle span,
.nav.solid .nav-toggle span { background: var(--ink); }
.nav-toggle.open span { background: #fff; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease),
              transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  z-index: 0;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(184,145,47,0.28); }
.btn.filled { background: var(--gold); color: #fff; }
.btn.filled::before { background: var(--ink); }
.btn.filled:hover { color: #fff; border-color: var(--ink); }
.btn.light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn.light::before { background: #fff; }
.btn.light:hover { color: var(--ink); border-color: #fff; }
.btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ---------- SECTION SHELL ---------- */
section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 5vw, 4rem); position: relative; }

.section-head { max-width: 760px; margin: 0 auto clamp(2.8rem, 5vw, 4.5rem); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.1rem;
  font-weight: 400;
}
.section-head h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--ink);
}
.section-head h2 em { font-style: italic; color: var(--gold); }
.section-head p {
  margin-top: 1.2rem;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.section-head.left p { margin-left: 0; }
.rule { width: 54px; height: 1px; background: var(--gold); margin: 1.6rem auto 0; }
.section-head.left .rule { margin-left: 0; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 4rem) 2rem;
  font-size: 0.85rem;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
  font-weight: 400;
}
.footer a { transition: color 0.35s var(--ease); }
.footer a:hover { color: var(--gold-light); }
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer .flogo {
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: #fff;
  margin-bottom: 0.9rem;
  display: block;
}
.footer .flogo i { color: var(--gold-light); font-style: normal; }
.footer-note {
  max-width: 1240px;
  margin: 1.6rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
}

/* ---------- FLOATING WHATSAPP ---------- */
.float-wa {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.4);
  z-index: 900;
  transition: transform 0.45s var(--ease);
}
.float-wa:hover { transform: scale(1.08) translateY(-2px); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }
.float-wa::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- SLIDESHOW (shared) ---------- */
.slideshow { position: relative; overflow: hidden; background: var(--charcoal); }
.slideshow .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.5s var(--ease), transform 6.5s linear;
  will-change: opacity, transform;
}
.slideshow .slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.slideshow .slide.first { position: relative; }

/* Cross-fade correctness: the incoming slide fades in ON TOP of a fully
   opaque outgoing slide. Without this, both slides sit at partial opacity
   mid-transition and the two photos visibly ghost through each other. */
[data-slideshow] .slide { opacity: 1; z-index: 0; }
[data-slideshow] .slide.active { z-index: 2; }
[data-slideshow] .slide.leaving { z-index: 1; opacity: 1; }
[data-slideshow] .slide:not(.active):not(.leaving) { opacity: 0; }

/* progress dots */
.ss-dots {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px;
  z-index: 4;
}
.ss-dots button {
  width: 6px; height: 6px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.ss-dots button.on { background: var(--gold-light); width: 20px; border-radius: 3px; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .line-mask > span { transform: none; }
  #veil { display: none; }
}

/* ---------- RESPONSIVE NAV ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  /* The drawer is position:fixed, but its <nav> wrapper is still a flex item
     and would reserve the drawer's width — pushing the toggle button off the
     right edge of the screen. Collapse the wrapper to zero width. */
  .nav > nav { width: 0; flex: 0 0 auto; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80%, 340px);
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 2.6rem;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform 0.6s var(--ease), visibility 0.6s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
    /* Hidden off-canvas the drawer must not extend the page's scroll width,
       or the whole layout widens and the toggle is pushed out of view. */
    visibility: hidden;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a,
  .nav.scrolled .nav-links a,
  .nav.solid .nav-links a {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.16em;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.4s var(--ease);
  }
  .nav-links.open a { opacity: 1; transform: none; }
  .nav-links.open a:nth-child(1) { transition-delay: 0.12s; }
  .nav-links.open li:nth-child(1) a { transition-delay: 0.10s; }
  .nav-links.open li:nth-child(2) a { transition-delay: 0.16s; }
  .nav-links.open li:nth-child(3) a { transition-delay: 0.22s; }
  .nav-links.open li:nth-child(4) a { transition-delay: 0.28s; }
  .nav-links.open li:nth-child(5) a { transition-delay: 0.34s; }
  .nav-cta, .nav.scrolled .nav-cta, .nav.solid .nav-cta {
    border-color: var(--gold) !important;
    color: var(--gold-light) !important;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
