/* KHALDOUN.co — Shared Stylesheet */
/* Dark, masculine, restrained. Aman-level luxury with a rawer edge. */

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

/* ─── Custom Properties ─── */
:root {
  --bg: #1a1714;
  --surface: #231f20;
  --bone: #f1ece5;
  --muted: #9a9188;
  --accent: #435301;
  --border: #3d3738;
  --nav-height: 56px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--bone);
  text-decoration: none;
}

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

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(26,23,20,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .4s, backdrop-filter .4s, opacity .4s;
  opacity: 0;
  pointer-events: none;
}
.nav.visible {
  background: rgba(26,23,20,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  pointer-events: all;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--bone);
  text-transform: uppercase;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--bone);
}

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 14, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: heroFade 0.8s ease 0.2s forwards;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  color: var(--bone);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─── Studio Intro ─── */
.intro {
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-text {
  max-width: 640px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.65;
  color: var(--bone);
  text-align: center;
}

.intro-rule {
  width: 100%;
  max-width: 640px;
  height: 1px;
  background: var(--border);
  margin-top: 5rem;
}

/* ─── Pillars Section ─── */
.pillars {
  padding: 5rem 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pillar {
  display: flex;
  flex-direction: column;
}

.pillar-image {
  height: 200px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.pillar:hover .pillar-image img {
  transform: scale(1.03);
}

.pillar-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.pillar-link {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s ease;
  display: inline-block;
}

.pillar-link:hover {
  color: var(--bone);
}

/* ─── Footer ─── */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.footer-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-statement-link {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-statement-link:hover {
  color: var(--bone);
  border-color: var(--bone);
}

/* ─── Statement Page ─── */
.statement-page {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
}

.statement-back {
  display: block;
  max-width: 680px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.statement-back:hover {
  color: var(--bone);
}

.statement-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
}

.statement-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 3rem;
}

.statement-body {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--bone);
}

.statement-body p {
  margin-bottom: 1.5rem;
}

.statement-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.statement-section-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.statement-body strong {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--bone);
}

.principle {
  margin-bottom: 1.75rem;
}

.principle-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--bone);
  display: block;
  margin-bottom: 0.25rem;
}

.statement-invite {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

/* ─── Utility ─── */
.u-pt-nav {
  padding-top: var(--nav-height);
}

/* Logo image styles */
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 1; }

.hero-logo {
  height: clamp(48px, 8vw, 90px);
  width: auto;
  display: block;
  margin: 0 auto 1.25rem;
  filter: brightness(1.05);
}

/* Override logo sizing for new transparent PNG */
.nav-logo-img {
  height: 28px !important;
  width: auto;
}
.hero-logo {
  height: clamp(42px, 6vw, 72px) !important;
  width: auto;
  max-width: 60vw;
}

/* ─── Facilitator Hub ─── */
.hub-hero { padding: 6rem 2rem 4rem; text-align: center; border-bottom: 1px solid var(--border); }
.hub-hero-label { font-size: .65rem; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin-bottom: 1rem; }
.hub-hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; color: var(--bone); margin-bottom: 1rem; }
.hub-hero-sub { font-size: 1rem; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }
.hub-nav-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--border); max-width: 900px; margin: 4rem auto; }
@media(min-width:600px) { .hub-nav-grid { grid-template-columns: repeat(4,1fr); } }
.hub-nav-card { background: var(--bg); padding: 2rem 1.5rem; text-decoration: none; transition: background .2s; display: block; }
.hub-nav-card:hover { background: var(--surface); }
.hub-nav-card-num { font-size: .65rem; color: var(--muted); letter-spacing: .2em; margin-bottom: .75rem; }
.hub-nav-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--bone); margin-bottom: .5rem; }
.hub-nav-card-desc { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.hub-articles { max-width: 900px; margin: 0 auto; padding: 0 2rem 6rem; }
.hub-section-label { font-size: .65rem; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin-bottom: 2rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.article-preview { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.article-preview:last-child { border-bottom: none; }
.article-tag { font-size: .62rem; letter-spacing: .2em; color: var(--accent-l); text-transform: uppercase; margin-bottom: .5rem; }
.article-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; color: var(--bone); margin-bottom: .75rem; line-height: 1.3; }
.article-excerpt { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.article-link { font-size: .8rem; color: var(--bone); letter-spacing: .1em; text-decoration: none; }
.article-link:hover { color: var(--muted); }
/* Article page */
.article-header { max-width: 720px; margin: 0 auto; padding: 5rem 2rem 3rem; }
.article-body { max-width: 680px; margin: 0 auto; padding: 0 2rem 6rem; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; line-height: 1.85; color: var(--bone); }
.article-body h2 { font-size: 1.4rem; font-weight: 500; margin: 3rem 0 1rem; color: var(--bone); }
.article-body h3 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 .75rem; color: var(--bone); font-family: inherit; }
.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: .5rem; }
.article-body strong { font-weight: 600; color: var(--bone); }
.article-body em { color: var(--muted); }
.article-back { display: inline-block; font-size: .75rem; letter-spacing: .1em; color: var(--muted); text-decoration: none; margin-bottom: 3rem; }
.article-back:hover { color: var(--bone); }
.article-accent { color: #a09070; }

/* ─── Clickable pillar images & headings ─── */
.pillar-image-link { display: block; text-decoration: none; }
.heading-link { color: inherit; text-decoration: none; }
.heading-link:hover { color: var(--bone); }
