/* ==========================================================================
   Aranya Living — Base design system
   Palette: rich wood • warm ivory • brass accents
   ========================================================================== */

:root {
  /* Ink & neutrals */
  --ink: #241a12;
  --ink-soft: #4c3b2b;
  --ink-mute: #7d6b56;
  --ink-faint: rgba(36, 26, 18, 0.45);

  /* Warm ivories */
  --paper: #fffdf8;
  --ivory: #faf4e9;
  --ivory-2: #f3e9d7;
  --cream: #fdfaf3;

  /* Wood tones */
  --wood-deep: #2b1d12;
  --espresso: #1c130c;
  --espresso-2: #241811;
  --walnut: #4a3421;
  --wood: #6b4a2b;
  --teak: #8a5a2b;
  --sand: #c9a877;

  /* Brass */
  --brass: #b98a3c;
  --brass-hi: #dcbb79;
  --brass-deep: #8a6524;
  --brass-glow: rgba(185, 138, 60, 0.35);

  /* Accents */
  --terra: #b4593a;
  --olive: #6d6a45;

  /* Lines & shadows */
  --line: rgba(107, 74, 43, 0.14);
  --line-strong: rgba(107, 74, 43, 0.28);
  --line-brass: rgba(185, 138, 60, 0.4);
  --shadow-1: 0 10px 30px rgba(43, 29, 18, 0.1);
  --shadow-2: 0 24px 70px rgba(43, 29, 18, 0.2);
  --shadow-3: 0 40px 110px rgba(20, 12, 6, 0.45);

  /* Type */
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Noto Sans Tamil', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --tamil: 'Noto Sans Tamil', 'Jost', sans-serif;

  /* Shape & motion */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-full: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1260px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

::selection {
  background: var(--brass);
  color: var(--espresso);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ivory-2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brass-deep), var(--brass));
  border-radius: 8px;
  border: 2px solid var(--ivory-2);
}

/* ---------- Layout utilities ---------- */
.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(76px, 9.5vw, 136px) 0;
  scroll-margin-top: 84px;
}

.section--tight {
  padding-top: clamp(48px, 6vw, 84px);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--espresso);
  color: var(--ivory);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ---------- Typography helpers ---------- */
.display-xl {
  font-size: clamp(2.7rem, 6.1vw, 5.3rem);
  font-weight: 600;
}

.display-lg {
  font-size: clamp(2.05rem, 3.9vw, 3.5rem);
}

.display-md {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass));
}

.eyebrow--center::after {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

.lead {
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 60ch;
}

.serif-i {
  font-style: italic;
  font-weight: 400;
}

.tamil {
  font-family: var(--tamil);
}

.tick-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
}

.tick-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
}

.tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-brass);
  background:
    conic-gradient(from 210deg, var(--brass) 0 25%, transparent 0) center / 8px 8px no-repeat;
}

.tick-list li strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-hi) 55%, var(--brass) 100%);
  color: #241505;
  box-shadow: 0 14px 34px rgba(185, 138, 60, 0.38);
}

.btn--primary:hover {
  box-shadow: 0 20px 44px rgba(185, 138, 60, 0.5);
}

.btn--dark {
  background: linear-gradient(135deg, var(--espresso), var(--walnut));
  color: #f6e9d2;
  border-color: rgba(185, 138, 60, 0.45);
  box-shadow: 0 16px 40px rgba(28, 19, 12, 0.4);
}

.btn--dark:hover {
  border-color: var(--brass-hi);
  box-shadow: 0 22px 52px rgba(28, 19, 12, 0.55), 0 0 0 1px rgba(220, 187, 121, 0.25) inset;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass-deep);
}

.btn--ghost-light {
  border-color: rgba(246, 233, 210, 0.4);
  color: #f4e8d4;
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost-light:hover {
  border-color: var(--brass-hi);
  color: var(--brass-hi);
}

.btn--sm {
  padding: 11px 22px;
  font-size: 0.76rem;
}

.btn--block {
  width: 100%;
}

/* The 360° ring icon used on VR buttons */
.icon-360 {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.icon-360::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  opacity: 0.85;
}

.btn:hover .icon-360::before {
  animation: spin 3.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Shared bits ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-brass);
  background: rgba(255, 253, 248, 0.7);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--brass-deep);
  text-transform: uppercase;
}

.price {
  font-family: var(--sans);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.price .from {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 6px;
}

.rule-brass {
  height: 1px;
  border: 0;
  margin: 26px 0;
  background: linear-gradient(90deg, var(--brass), transparent 70%);
  opacity: 0.55;
}

.num-mark {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(185, 138, 60, 0.55);
  user-select: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Toast stack ---------- */
.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  max-width: 340px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(28, 19, 12, 0.95);
  color: #f4e8d4;
  border: 1px solid rgba(185, 138, 60, 0.45);
  box-shadow: var(--shadow-2);
  font-size: 0.86rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  animation: toastIn 0.45s var(--ease) both;
}

.toast.is-out {
  animation: toastOut 0.4s var(--ease) both;
}

.toast .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass-hi);
  box-shadow: 0 0 12px var(--brass-hi);
  flex: 0 0 auto;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--ivory);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader__inner {
  text-align: center;
}

.preloader__mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--line-brass);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--brass-deep);
  animation: pulseSoft 1.8s ease-in-out infinite;
}

.preloader__label {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@keyframes pulseSoft {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--brass-glow);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 14px transparent;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
