/* PAMINA — Aman-inspired design system */

:root {
  --color-bg: #f4f0e9;
  --color-bg-alt: #ede7dc;
  --color-paper: #faf7f1;
  --color-ink: #2a2620;
  --color-ink-soft: #5a5248;
  --color-muted: #8a8074;
  --color-line: #d9d1c2;
  --color-accent: #7a6a4f;
  --color-accent-dark: #5b4f3a;
  --color-white: #ffffff;

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1360px;
  --gutter: clamp(20px, 4vw, 60px);
  --section-y: clamp(60px, 9vw, 130px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 300;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s ease, opacity .3s ease, border-color .3s ease;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--color-ink);
  letter-spacing: .01em;
  line-height: 1.15;
}

h1 { font-size: clamp(42px, 6vw, 82px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: 18px; font-family: var(--font-sans); font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }

p { margin: 0 0 1.1em; color: var(--color-ink-soft); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 18px;
  display: inline-block;
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--color-ink);
  font-weight: 300;
  margin-bottom: 1.2em;
}

/* ---------- Layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

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

.section-alt { background: var(--color-bg-alt); }
.section-paper { background: var(--color-paper); }
.section-dark { background: #1f1b15; color: #e8e1d2; }
.section-dark p, .section-dark h1, .section-dark h2, .section-dark h3 { color: #f2ecdd; }
.section-dark .eyebrow { color: #c6b282; }

/* ---------- Top bar / Navigation ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}

.topbar.solid {
  background: rgba(244, 240, 233, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: .42em;
  color: var(--color-ink);
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .4em;
  color: var(--color-muted);
  margin-top: 2px;
}

.topbar.on-hero .brand,
.topbar.on-hero .nav a,
.topbar.on-hero .menu-toggle { color: #fff; }
.topbar.on-hero .brand small { color: rgba(255,255,255,0.7); }

.nav {
  display: flex;
  gap: 38px;
  list-style: none;
}
.nav a {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-ink);
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--color-accent); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--color-ink);
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-paper);
    padding: 24px var(--gutter);
    gap: 18px;
    border-top: 1px solid var(--color-line);
  }
  .topbar.on-hero .nav.open a { color: var(--color-ink); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
  color: #fff;
}
.hero .slides {
  position: absolute; inset: 0;
}
.hero .slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero .slide.active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.hero .inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(60px, 10vh, 120px);
}
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero h1 {
  color: #fff;
  max-width: 900px;
  font-style: italic;
  font-weight: 300;
}
.hero .subtitle {
  max-width: 600px;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  margin-top: 18px;
  font-weight: 300;
  letter-spacing: .02em;
}

.hero-small {
  height: 68vh;
  min-height: 460px;
}

.hero-dots {
  position: absolute;
  bottom: 30px; right: var(--gutter);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dots button {
  width: 28px; height: 1px;
  background: rgba(255,255,255,0.4);
  border: 0; padding: 10px 0;
  cursor: pointer;
  position: relative;
}
.hero-dots button::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(255,255,255,0.4);
}
.hero-dots button.active::before { background: #fff; }

/* ---------- Buttons / Links ---------- */

.btn {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 28px;
  border: 1px solid currentColor;
  color: var(--color-ink);
  background: transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.btn:hover { background: var(--color-ink); color: var(--color-paper); }
.btn-light { color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--color-ink); }
.btn-solid { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-solid:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-ink);
}
.link-more:hover { color: var(--color-accent); border-color: var(--color-accent); }
.link-more::after { content: "→"; letter-spacing: 0; }

/* ---------- Intro split ---------- */

.intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.intro .eyebrow { display: block; }
.intro h2 { font-style: italic; margin-bottom: .5em; }
.intro .divider {
  width: 60px; height: 1px; background: var(--color-accent);
  margin: 28px auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split .copy { padding: clamp(10px, 3vw, 40px) 0; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 60px 0;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--color-accent);
  font-weight: 300;
}
.stat .lbl {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 12px;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } }

/* ---------- Feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards.four { grid-template-columns: 1fr; } }

.card {
  background: var(--color-paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform .5s ease;
}
.card:hover { transform: translateY(-4px); }
.card .img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.card .body {
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  font-style: italic;
  font-weight: 300;
}
.card p { flex: 1; margin-bottom: 20px; }
.card .link-more { align-self: flex-start; }

/* ---------- Location grid ---------- */

.locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
@media (max-width: 900px) { .locations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .locations { grid-template-columns: 1fr; } }

.loc {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: block;
}
.loc .img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s ease;
}
.loc:hover .img { transform: scale(1.05); }
.loc::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.75) 100%);
}
.loc .label {
  position: absolute;
  left: 28px; right: 28px; bottom: 28px;
  z-index: 2;
  color: #fff;
}
.loc .label h3 {
  color: #fff;
  font-size: 26px;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 4px;
}
.loc .label span {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .85;
}

/* ---------- Page intro (non-hero) ---------- */

.page-head {
  padding-top: calc(var(--section-y) + 60px);
  padding-bottom: var(--section-y);
  text-align: center;
}
.page-head h1 {
  font-style: italic;
  font-weight: 300;
  max-width: 900px;
  margin: 0 auto;
}
.page-head p { max-width: 640px; margin: 28px auto 0; }
.page-head .divider {
  width: 1px; height: 60px;
  background: var(--color-accent);
  margin: 30px auto;
}

/* ---------- Feature list ---------- */

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
  list-style: none;
  padding: 0;
  margin: 30px 0;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--color-ink-soft);
  font-size: 15px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 10px; height: 1px;
  background: var(--color-accent);
}
@media (max-width: 700px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Pillar / service blocks ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 60px);
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { text-align: left; }
.pillar .num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--color-accent);
  letter-spacing: .3em;
  margin-bottom: 18px;
  display: block;
}
.pillar h3 {
  font-style: italic;
  font-size: 26px;
  margin-bottom: 14px;
}

/* ---------- Contact block / CTA ---------- */

.cta-band {
  background: #1f1b15;
  color: #f0e9d9;
  text-align: center;
  padding: clamp(60px, 8vw, 110px) var(--gutter);
}
.cta-band h2 { color: #f0e9d9; font-style: italic; }
.cta-band p { color: rgba(240,233,217,0.78); max-width: 620px; margin: 20px auto 30px; }
.cta-band .btn { color: #f0e9d9; }
.cta-band .btn:hover { background: #f0e9d9; color: #1f1b15; }

/* ---------- Info rows ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-top: 20px;
}
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.info-grid h4 { margin-bottom: 18px; color: var(--color-accent); }
.info-grid address {
  font-style: normal;
  line-height: 1.9;
  color: var(--color-ink-soft);
}

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

footer.foot {
  background: #18140f;
  color: rgba(232, 225, 210, 0.75);
  padding: 80px var(--gutter) 40px;
}
footer.foot .cols {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(232,225,210,0.12);
}
@media (max-width: 860px) { footer.foot .cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 520px) { footer.foot .cols { grid-template-columns: 1fr; } }
footer.foot h4 {
  color: #f2ecdd;
  font-size: 11px;
  letter-spacing: .32em;
  margin-bottom: 20px;
}
footer.foot .brand {
  color: #f2ecdd;
  font-size: 26px;
  letter-spacing: .42em;
  margin-bottom: 18px;
  display: block;
}
footer.foot ul { list-style: none; }
footer.foot li { margin-bottom: 10px; font-size: 13px; }
footer.foot a:hover { color: #f2ecdd; }
footer.foot address { font-style: normal; font-size: 13px; line-height: 1.9; }
footer.foot .legal {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .6;
}
footer.foot .legal ul { display: flex; gap: 28px; }
@media (max-width: 600px) {
  footer.foot .legal { flex-direction: column; align-items: flex-start; }
  footer.foot .legal ul { flex-wrap: wrap; gap: 18px; }
}

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 20px; }
.mt-md { margin-top: 40px; }
.mt-lg { margin-top: 80px; }

/* fade-in */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.fade-in.visible { opacity: 1; transform: none; }
