/* ==========================================================================
   iLuvSG — domain parking site
   Tokens, base, header, hero slider, CTA, footer, responsive states.
   ========================================================================== */

:root {
  color-scheme: light;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --page-max: 1200px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --radius-hero: 28px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --bg: #f6f4f1;
  --surface: #fffdfa;
  --text: #181512;
  --muted: #6b645c;
  --line: rgba(24, 21, 18, 0.12);
  --dot: rgba(24, 21, 18, 0.24);

  --accent: #b45309;
  --accent-strong: #92400e;
  --accent-ink: #92400e;
  --accent-contrast: #fffaf4;
  --accent-soft: rgba(180, 83, 9, 0.1);
  --accent-on-image: #f5c47f;

  --hero-overlay:
    linear-gradient(180deg, rgba(10, 9, 8, 0.06) 0%, rgba(10, 9, 8, 0.2) 38%, rgba(10, 9, 8, 0.8) 100%),
    radial-gradient(120% 90% at 0% 100%, rgba(10, 9, 8, 0.45), transparent 62%);
  --shadow: 0 30px 60px -34px rgba(40, 30, 16, 0.55);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #121110;
  --surface: #1b1917;
  --text: #f4f1ec;
  --muted: #a49c93;
  --line: rgba(244, 241, 236, 0.14);
  --dot: rgba(244, 241, 236, 0.28);

  --accent: #f0b35f;
  --accent-strong: #f7c987;
  --accent-ink: #f6c37b;
  --accent-contrast: #20160a;
  --accent-soft: rgba(240, 179, 95, 0.14);

  --hero-overlay:
    linear-gradient(180deg, rgba(5, 4, 3, 0.12) 0%, rgba(5, 4, 3, 0.3) 38%, rgba(5, 4, 3, 0.88) 100%),
    radial-gradient(120% 90% at 0% 100%, rgba(5, 4, 3, 0.55), transparent 62%);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(1.1rem, 3vw, 1.75rem) var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--text);
  text-decoration: none;
}

.brand-name {
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* --- Page / hero --------------------------------------------------------- */

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(3rem, 7vw, 6rem);
}

.hero {
  margin-top: clamp(0.5rem, 2vw, 1.25rem);
}

.hero-viewport {
  position: relative;
  height: clamp(500px, 75vh, 760px);
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: #141312;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.hero-viewport.is-dragging {
  cursor: grabbing;
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 7s linear;
  -webkit-user-drag: none;
}

.slide.is-active .slide-img {
  transform: scale(1.08);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.slide-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  max-width: 900px;
  padding: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(5rem, 12vw, 10rem);
  color: #fff;
}

.slide-kicker,
.slide-title,
.slide-caption {
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.35);
}

.slide-kicker {
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.slide-kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: var(--accent-on-image);
}

.slide-title {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  white-space: pre-line;
}

.slide-caption {
  max-width: 46ch;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  line-height: 1.6;
}

/* --- Per-slide social links ---------------------------------------------- */

.socials {
  position: absolute;
  z-index: 3;
  display: flex;
  transition: opacity 0.18s ease;
}

.socials.is-swapping {
  opacity: 0;
}

.socials--desktop {
  top: 50%;
  right: clamp(1rem, 2vw, 1.75rem);
  flex-direction: column;
  gap: 0.6rem;
  transform: translateY(-50%);
}

.socials--mobile {
  display: none;
}

.social-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(18, 16, 14, 0.45);
  color: #fff;
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.social-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(18, 16, 14, 0.65);
  transform: translateY(-2px);
}

.social-btn:focus-visible {
  outline-color: #fff;
}

/* --- Slider controls ----------------------------------------------------- */

.hero-controls {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn {
  min-height: 44px;
  padding: 0 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav-btn--prev {
  justify-self: start;
}

.nav-btn--next {
  justify-self: end;
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.nav-btn:active {
  transform: translateY(1px);
}

.nav-btn .icon {
  width: 18px;
  height: 18px;
}

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot);
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.dot:hover::before {
  background: var(--muted);
}

.dot[aria-current="true"]::before {
  width: 26px;
  background: var(--accent);
}

/* --- CTA ----------------------------------------------------------------- */

.cta {
  max-width: 860px;
  margin: clamp(3.5rem, 8vw, 6.5rem) auto 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.highlight {
  padding: 0 0.08em;
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.32em;
}

.highlight-strong {
  padding: 0.08em 0.35em;
  border-radius: 0.35em;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
  white-space: nowrap;
}

.cta-copy {
  max-width: 620px;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

.cta-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  min-height: 48px;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn .icon {
  width: 19px;
  height: 19px;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

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

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-links a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.footer-links span {
  opacity: 0.5;
}

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

@media (max-width: 768px) {
  .hero-viewport {
    height: 60vh;
    min-height: 440px;
  }

  .socials--desktop {
    display: none;
  }

  .socials--mobile {
    left: 50%;
    bottom: 14px;
    display: flex;
    flex-direction: row;
    gap: 0.3rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(18, 16, 14, 0.38);
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
  }

  .socials--mobile .social-btn {
    width: 44px;
    height: 44px;
    border-color: transparent;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .socials--mobile .social-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: none;
  }

  .slide-content {
    padding-bottom: 5.5rem;
    padding-right: clamp(1.5rem, 5vw, 4rem);
  }

  .slide-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
}

@media (max-width: 480px) {
  .hero-viewport {
    height: 60vh;
    min-height: 420px;
    border-radius: 22px;
  }

  .hero-controls {
    gap: 0.25rem;
  }

  .nav-btn {
    width: 44px;
    padding: 0;
  }

  .nav-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .slide-content {
    padding: 1.25rem 1.25rem 5rem;
  }

  .slide-kicker {
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
  }

  /* Keep the kicker to one clean line on small phones. */
  .slide-sep,
  .slide-category {
    display: none;
  }

  .slide-caption {
    font-size: 0.9rem;
  }

  .socials--mobile {
    bottom: 10px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@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;
  }

  .slide-img,
  .slide.is-active .slide-img {
    transform: none;
  }
}

/* --- Coming soon hero fallback ------------------------------------------- */

.hero-viewport.is-coming-soon {
  background:
    radial-gradient(110% 95% at 8% 100%, rgba(180, 83, 9, 0.42), transparent 62%),
    linear-gradient(140deg, #201d19 0%, #121110 68%);
}

.slide.is-fallback .slide-content {
  padding-right: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 5vw, 4rem);
}

/* --- Privacy & terms page ------------------------------------------------ */

.legal {
  max-width: 820px;
  margin: clamp(0.5rem, 2vw, 1.25rem) auto 0;
}

.legal-header {
  padding: clamp(0.75rem, 2vw, 1.25rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.legal-title {
  margin: 0.35rem 0 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.legal-lede {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.legal-updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-nav a {
  min-height: 44px;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.legal-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.legal-section {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  scroll-margin-top: 1.5rem;
}

.legal-section + .legal-section {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.legal-section h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section p {
  margin: 0 0 1rem;
}

.legal-section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 0.4rem;
}

.legal-section a {
  color: var(--accent-ink);
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 0.18em;
}

.legal-section a:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 480px) {
  .legal-title {
    font-size: clamp(2.25rem, 10vw, 2.75rem);
  }

  .legal-lede {
    font-size: 1rem;
  }
}
