/* ============================================
   CHI KA AT AMANSALA — Design System
   Fonts: Cinzel (headings) + Jost (body)
   ============================================ */

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

/* --- Tokens --- */
:root {
  --cream:   #FAF7F2;
  --sand:    #EDE4D3;
  --earth:   #8C7355;
  --bark:    #3E2F1E;
  --ocean:   #7BA8B2;
  --text:    #2D2118;
  --muted:   #8A7D6E;
  --white:   #FFFDF9;
  --border:  #DDD5C5;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --max-width: 1100px;
  --section-gap: 100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* --- Base --- */
body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  color: var(--bark);
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 640px;
}

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--earth);
  display: block;
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: var(--section-gap) 0;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

nav.scrolled {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}

.nav-logo-img.tan { display: none; }

nav.scrolled .nav-logo-img.white { display: none; }
nav.scrolled .nav-logo-img.tan   { display: block; }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }

nav.scrolled .nav-links a { color: var(--muted); }
nav.scrolled .nav-links a:hover { color: var(--bark); }

.nav-cta {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark) !important;
  background: var(--sand);
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--earth); color: var(--white) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.3s;
}

nav.scrolled .nav-toggle span { background: var(--bark); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  background-color: var(--bark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.65;
}

.hero-logo {
  width: 140px;
  margin-bottom: 2rem;
  opacity: 0.92;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content .label { color: rgba(255,255,255,0.65); margin-bottom: 1.2rem; }

.hero h1 {
  color: var(--white);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 640px;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.4rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--earth);
  color: var(--white);
}

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

.btn-outline {
  background: transparent;
  color: var(--bark);
  border: 1px solid var(--earth);
}

.btn-outline:hover { background: var(--earth); color: var(--white); }

.btn-light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.btn-light:hover { background: rgba(255,255,255,0.25); }

/* --- Divider --- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--earth);
  margin: 1.5rem 0;
}

/* --- Section: Intro / Text-center --- */
.section-intro {
  text-align: center;
  background: var(--white);
}

.section-intro .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-intro h2 { margin-bottom: 1.4rem; }
.section-intro p { text-align: center; margin: 0 auto; }
.section-intro .divider { margin: 1.5rem auto; }

/* --- Section: Two column (text + image) --- */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-split.reverse { direction: rtl; }
.section-split.reverse > * { direction: ltr; }

.split-text h2 { margin-bottom: 1rem; }
.split-text p { margin-bottom: 1.2rem; }

.split-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background-color: var(--sand);
}

/* --- Amenities list --- */
.amenities-list {
  list-style: none;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.amenities-list li {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--bark);
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

/* --- Experience cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 60px;
}

.card {
  background: var(--white);
  padding: 48px 36px;
}

.card h3 { margin-bottom: 1rem; font-size: 1.6rem; }
.card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 1.6rem; }
.card .btn { margin-top: auto; }

/* --- Flow list (ceremony to dinner) --- */
.flow-list {
  list-style: none;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.flow-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.flow-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--earth);
  padding-top: 2px;
}

.flow-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 520px;
}

/* --- Feature list --- */
.feature-list {
  list-style: none;
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--earth);
}

/* --- Photo Strip --- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* --- Photo Cards (experience cards with bg image) --- */
.cards-grid.photo-cards {
  background: none;
  gap: 3px;
}

.card-photo {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bark);
}

.card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-photo:hover img { transform: scale(1.03); }

.card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25,15,5,0.85) 0%, rgba(25,15,5,0.3) 55%, transparent 100%);
}

.card-photo .card-inner {
  position: relative;
  z-index: 2;
  padding: 40px 36px;
}

.card-photo h3 { color: var(--white); margin-bottom: 0.7rem; }
.card-photo p  { color: rgba(255,255,255,0.7); margin-bottom: 1.4rem; }
.card-photo .label { color: rgba(255,255,255,0.5); }

/* --- CTA Band --- */
.cta-band {
  background: var(--bark);
  padding: 100px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255,255,255,0.65);
  margin: 0 auto 2.4rem;
  text-align: center;
}

/* --- Footer --- */
footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--bark); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: none;
}

/* --- Sand toned section --- */
.bg-sand { background: var(--sand); }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }

/* --- Responsive --- */
@media (max-width: 900px) {
  :root { --section-gap: 72px; }

  .container { padding: 0 24px; }
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 99;
  }
  .nav-links.open a { color: var(--bark); font-size: 1rem; }

  .nav-toggle { display: flex; }

  .hero-content { padding: 0 24px; }

  .section-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-split.reverse { direction: ltr; }

  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }

  .flow-list li { grid-template-columns: 1fr; gap: 8px; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}
