/* ==========================================================
   ISHVAANA — Luxury Theme
   Brand palette, reset & shared UI primitives (buttons, links,
   dividers, containers). Colors are sampled directly from the
   Ishvaana catalogue: warm ivory, deep velvet wine, champagne
   gold and soft onyx.
   ========================================================== */

:root {
  /* -- Brand palette -- */
  --ivory:        #FBF6EF;
  --ivory-deep:   #F0E5D7;
  --onyx:         #14100F;
  --onyx-soft:    #1D1917;
  /* Matches the reference site's own --night (Sample Websites/
     Website 1/index.html) — used for #introduction and, so every
     rotator photo's own background sits flush with no visible seam,
     .house__media too. */
  --onyx-deep:    #0A0C0B;
  --charcoal:     #2B2622;
  --wine:         #6E1E42;
  --wine-deep:    #4A1530;
  --gold:         #BC9A53;
  --gold-light:   #DECBA0;
  --gold-dim:     rgba(188, 154, 83, 0.6);
  --white:        #FFFFFF;
  --line-soft:    rgba(43, 38, 34, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  /* -- Layout -- */
  --container-max: 1240px;   /* max width of TEXT/content within a section */
  --gutter: clamp(20px, 5vw, 72px);

  /* -- Motion -- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -- Reset -- */
* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Native smooth-scrolling for every same-page #anchor link (nav,
   footer, the hero's scroll cue, etc.) — handled entirely by the
   browser, so there's no JS scroll animation to ever conflict with
   the mobile menu's own open/close state. */
html { scroll-behavior: smooth; }
img, picture { max-width: 100%; display: block; }
button { font: inherit; }

/* Casual copy-protection: no text selection and no native image drag
   (so "drag image to desktop" and the browser's own selection-based
   copy don't work). This is a deterrent, not real protection — right-
   click is blocked separately in main.js, but nothing in HTML/CSS/JS
   can stop a screenshot, a browser dev-tools save, or view-source. */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* Blocks iOS Safari's long-press "Save Image"/"Copy" sheet on photos —
   the one touch-specific gap the rules above don't cover. */
img {
  -webkit-touch-callout: none;
}

body {
  background: var(--ivory);
  color: var(--charcoal);
}

::selection {
  background: var(--wine);
  color: var(--ivory);
}

/* -- Layout helpers -- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 10vw, 140px);
}

.section--dark {
  background: var(--onyx);
  color: var(--ivory-deep);
}

.section--wine {
  background: var(--wine);
  color: var(--ivory);
}

.divider {
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  margin: 22px 0;
}

.divider--center { margin-inline: auto; }

/* -- Buttons & links -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: inherit;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }
/* Without this, the [hidden] attribute's own display:none (a UA-
   stylesheet rule) loses to this author stylesheet's own
   display:inline-flex above — same specificity, and author styles
   always win over UA ones regardless of source order — so a hidden
   .btn (e.g. the Instagram one before its URL is filled in) would
   render anyway. */
.btn[hidden] { display: none; }

.btn--gold {
  border-color: var(--gold);
  color: var(--onyx);
  background: var(--gold);
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--outline-dark { border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline-dark:hover { background: var(--charcoal); color: var(--ivory); }

.btn--outline-light { border-color: var(--ivory); color: var(--ivory); }
.btn--outline-light:hover { background: var(--ivory); color: var(--onyx); }

.link-underline {
  position: relative;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.4s var(--ease);
}
.link-underline:hover { background-size: 100% 1px; }

/* -- Reveal-on-scroll utility (JS adds .is-visible) -- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* -- Focus visibility (accessibility) -- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
