/* ========================= Sandara Global Styles ========================= */

/* Fonts (local) */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("../assets/fonts/Cinzel.ttf") format("truetype");
  font-weight: 500; /* treat as Medium */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tenor Sans";
  src: url("../assets/fonts/TenorSans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --black: #1e1e1e;
  --white: #fefefe;
  --bg: #fefefe;

  --font-title: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-decor: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Tenor Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --title-size: 32px;
  --text-size: 14px;

  --container-x: 100px;  /* desktop + tablet */
  --section-pad: 100px;  /* desktop + tablet */
}

/* Mobile overrides */
@media (max-width: 768px) {
  :root {
    --title-size: 24px;
    --text-size: 12px;

    --container-x: 24px;
    --section-pad: 24px;
  }
}

/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--text-size);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography helpers */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--black);
}

.title {
  font-family: var(--font-title);
  font-size: var(--title-size);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.title--bold {
  font-family: var(--font-title);
  font-weight: 800;
}

.title-decorative {
  font-family: var(--font-decor);
  font-weight: 500;
  letter-spacing: 0.04em;
}

p {
  margin: 0;
  font-size: var(--text-size);
  color: var(--black);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  margin-left: var(--container-x);
  margin-right: var(--container-x);
}

/* Global section spacing */
.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

/* ========================= 12 Column Grid Utilities ========================= */

.grid-12{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 40px;
}

.col-6{ grid-column: span 6; }

/* Mobile stack */
@media (max-width: 768px){
  .grid-12{ column-gap: 18px; }
  .col-6{ grid-column: span 12; }
}

/* ========================= Global Reveal Animations ========================= */

.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms ease, transform 800ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Optional variants */
.reveal--up{ transform: translateY(18px); }
.reveal--fade{ transform: none; }

/* Optional delays (for stagger) */
.reveal--delay-1{ transition-delay: 120ms; }
.reveal--delay-2{ transition-delay: 240ms; }
.reveal--delay-3{ transition-delay: 360ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal{
    transition: none;
    transform: none;
  }
}

/* ========================= NAVBAR + DRAWER ========================= */
.nav{
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 84px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.nav-inner{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Sticky state (white) */
.nav.is-scrolled{
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

/* Burger */
.nav-burger{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  justify-self: start;
}

.nav-burger span{
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(254,254,254,0.95);
  transition: background 220ms ease;
}

.nav.is-scrolled .nav-burger span{
  background: rgba(30,30,30,0.95);
}

/* Logo */
.nav-logo{
  justify-self: center;
  display: inline-flex;
  align-items: center;
}

.nav-logo img{
  height: 60px;
  width: auto;
  display: block;
  transition: filter 220ms ease;
}

/* When scrolled, logo becomes black using CSS filter (no need new file) */
.nav.is-scrolled .nav-logo img{
  filter: invert(1) brightness(0.15);
}

/* Language button */
.nav-lang{
  justify-self: end;
  position: relative;
}

.nav-lang-btn{
  border: 0;
  background: transparent;
  color: rgba(254,254,254,0.95);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 8px;
}

.nav.is-scrolled .nav-lang-btn{
  color: rgba(30,30,30,0.95);
}

.nav-lang-chevron{
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(254,254,254,0.9);
  border-bottom: 2px solid rgba(254,254,254,0.9);
  transform: rotate(45deg);
  transition: transform 180ms ease, border-color 220ms ease;
}

.nav.is-scrolled .nav-lang-chevron{
  border-right-color: rgba(30,30,30,0.75);
  border-bottom-color: rgba(30,30,30,0.75);
}

.nav-lang.is-open .nav-lang-chevron{
  transform: rotate(-135deg);
}

.nav-lang-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid rgba(30,30,30,0.10);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 10px;
  display: none;
  z-index: 10000;
}

.nav-lang.is-open .nav-lang-menu{
  display: block;
}

.nav-lang-menu a{
  display: block;
  padding: 10px 10px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(30,30,30,0.85);
}

.nav-lang-menu a:hover{
  background: rgba(0,0,0,0.05);
}

/* Overlay */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms cubic-bezier(.22,1,.36,1);
  z-index: 9998;
}

.nav-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* Drawer (smoother + GPU) */
.nav-drawer{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(50vw, 640px);
  background: #ffffff;

  transform: translate3d(-104%, 0, 0);
  will-change: transform;
  transition: transform 520ms cubic-bezier(.22,1,.36,1);

  z-index: 9999;
  overflow: hidden;
}
.nav-drawer.is-open{
  transform: translate3d(0, 0, 0);
}

/* Content easing (menu + socials slide/fade in) */
.nav-drawer-inner{
  position: relative;
  height: 100%;
  padding: 34px 48px 28px;
  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translate3d(-10px, 0, 0);
  transition: opacity 420ms cubic-bezier(.22,1,.36,1),
              transform 520ms cubic-bezier(.22,1,.36,1);
}

.nav-drawer.is-open .nav-drawer-inner{
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 80ms;
}

/* Mobile (full width still) */
@media (max-width: 768px){
  .nav-drawer{ width: 100vw; }
}

/* Close (X) */
.nav-close{
  position: absolute;
  top: 24px;
  left: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-close span{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: rgba(30,30,30,0.85);
  transform-origin: center;
}

.nav-close span:first-child{
  transform: translate(-50%,-50%) rotate(45deg);
}

.nav-close span:last-child{
  transform: translate(-50%,-50%) rotate(-45deg);
}

/* Menu */
.nav-menu{
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.nav-link{
  font-family: var(--font-decor);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #54595F;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-link:hover{
  color: rgba(30,30,30,0.95);
}

.nav-link--spaced{
  margin-top: 16px;
}

.nav-link-chevron{
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(30,30,30,0.55);
  border-bottom: 2px solid rgba(30,30,30,0.55);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.nav-link--toggle[aria-expanded="true"] .nav-link-chevron{
  transform: rotate(-45deg);
}

/* Sub menu */
.nav-sub{
  display: grid;
  gap: 12px;
  padding-left: 4px;
  margin-top: -8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.nav-sub a{
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(30,30,30,0.65);
}

.nav-sub a:hover{
  color: rgba(30,30,30,0.9);
}

/* Social */
.nav-social{
  margin-top: auto;
  margin-bottom: 40px;
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-social img{
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0.85;
}

.nav-social a:hover img{
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px){
  .nav{
    height: 74px;
  }

  .nav-logo img{
    height: 50px;
  }

  .nav-drawer{
    width: 100vw;
    max-width: none;
  }

  .nav-drawer-inner{
    padding: 32px 28px 24px;
  }

  .nav-link{
    font-size: 22px;
  }
}

/* ========================= HERO ========================= */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #ddd; /* fallback */
}

/* =========================
   Background Slider
   ========================= */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1000ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.30);
}

/* =========================
   Curtain Animation
   ========================= */

.hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--bg);
  transform: translateY(0%);
  transition: transform 900ms cubic-bezier(.2,.9,.2,1);
}

.hero.is-revealed .hero-curtain {
  transform: translateY(-100%);
}

/* =========================
   Content Wrapper
   ========================= */

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 150px;
  text-align: center;
  align-items: center;
}

/* Reveal sequence */
.hero-title,
.hero-form,
.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.hero.is-ready .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 150ms;
}

.hero.is-ready .hero-form {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 350ms;
}

.hero.is-ready .hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 600ms;
}

/* =========================
   Title
   ========================= */

.hero-title {
  font-family: var(--font-decor);
  font-weight: 500;
  font-size: 40px;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* =========================
   Form
   ========================= */

.hero-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 28px;
  align-items: end;

  width: 100%;
  max-width: 980px;
  margin: 0 auto;   /* ✅ THIS CENTERS IT */
}

.hero-field {
  text-align: left;
}

.hero-label {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.hero-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(254,254,254,0.6);
  color: var(--white);
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

.hero-select option {
  color: var(--black);
}

.hero-select:disabled {
  opacity: 0.5;
}

.hero-book {
  height: 44px;
  padding: 0 32px;
  border-radius: 999px;
  border: none;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: 200ms ease;
}

.hero-book:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   Minimal Line Dropdown
========================= */

.sd-select {
  position: relative;
  width: 100%;
}

.sd-trigger {
  width: 100%;
  padding: 10px 0 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(254,254,254,0.6);
  color: var(--white);

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 200ms ease;
}

.sd-trigger:hover {
  border-bottom: 1px solid rgba(254,254,254,0.9);
}

.sd-trigger:focus {
  outline: none;
  border-bottom: 1px solid rgba(254,254,254,1);
}

.sd-value {
  opacity: 0.9;
}

/* Chevron */
.sd-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(254,254,254,0.9);
  border-bottom: 2px solid rgba(254,254,254,0.9);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.sd-select.is-open .sd-chevron {
  transform: rotate(-135deg);
}

/* Dropdown menu */
.sd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow: hidden;

  display: none;
  z-index: 999;
}

.sd-select.is-open .sd-menu {
  display: block;
}

/* Option */
.sd-option {
  padding: 10px 14px;
  font-size: 14px;
  color: #1e1e1e;
  cursor: pointer;
  transition: background 150ms ease;
}

.sd-option:hover {
  background: rgba(0,0,0,0.05);
}

/* Selected state */
.sd-option.is-selected {
  background: rgba(0,0,0,0.08);
  font-weight: 600;
}

/* Remove check icon */
.sd-check {
  display: none !important;
}

/* Disabled */
.sd-select.is-disabled .sd-trigger {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   Bottom CTA (LEFT aligned)
   ========================= */

.hero-cta{
  position: absolute;
  left: 50px;                 /* ✅ fixed 50px from left */
  bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: min(720px, calc(100% - 100px)); /* keep right breathing space */
}

.hero-cta-text{
  display: flex;
  flex-direction: column;  /* ✅ stack */
  gap: 4px;                /* ✅ small spacing */
  align-items: flex-start; /* ✅ left align text */
}

.hero-cta-title{
  display: block;          /* ✅ force new line */
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-cta-sub{
  display: block;          /* ✅ force new line */
  font-family: var(--font-body);
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.2;
}

.hero-cta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(254,254,254,0.15);
  border: 1px solid rgba(254,254,254,0.25);
  backdrop-filter: blur(10px);
  color: var(--white);
  transition: 200ms ease;
}

.hero-cta-card:hover {
  transform: translateY(-3px);
}

.hero-cta-icon {
  width: 42px;
  height: 42px;
  background: rgba(254,254,254,0.2);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.hero-cta-icon img {
  width: 22px;
}

.hero-cta-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-cta-sub {
  font-size: 12px;
  opacity: 0.85;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 768px) {

  .hero-title {
    font-size: 24px;
  }

  .hero-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-book {
    width: 100%;
  }

  .hero-cta {
    position: absolute;
    left: 0%;
    transform: translateX(-50%);
    bottom: 20px;

    width: auto;
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .hero-cta-card{
    width: auto;
    padding: 12px 16px;
    min-width: 180px;              /* compact */
  }

  .hero-cta-title{
    font-size: 10px;
    text-align: left;
  }

  .hero-cta-sub{
    font-size: 10px;
    text-align: left;
  }

  .hero-cta-icon {
  width: 32px;
  height: 32px;
}

.hero-cta-icon img {
  width: 12px;
}

.hero-label {
  font-size: 12px;
}
}

/* ========================= ABOUT (12-grid) ========================= */

.about-title{
  font-family: var(--font-decor);
  font-weight: 500;
  font-size: var(--title-size);
  letter-spacing: 0.06em;
  color: var(--black);
  text-transform: uppercase;
  margin: 0;
}

.about-right p{
  font-family: var(--font-body);
  font-size: var(--text-size);
  line-height: 1.9;
  color: rgba(30,30,30,0.85);
  margin: 0;
}

.about-right p + p{
  margin-top: 28px;
}

/* Tablet */
@media (max-width: 1024px){
  .grid-12{ column-gap: 28px; }
  .about-title{ font-size: 34px; }
}

/* Mobile */
@media (max-width: 768px){
  .about-title{ 
    font-size: var(--title-size); 
    margin-bottom: 8px;
  }
  .about-right p{
    font-size: var(--text-size);
    line-height: 1.9;
  }
  .about-right p + p{ margin-top: 18px; }
}
