/* =========================================================
   Blakely Hospitality — Editorial Luxury
   ========================================================= */

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

:root {
  /* Color palette — warm editorial */
  --ink: #1a1612;
  --ink-soft: #3a332c;
  --bone: #f5f0e8;
  --bone-deep: #ebe4d6;
  --sand: #d4c4a8;
  --clay: #a67a4f;
  --rust: #8b4513;
  --shadow: rgba(26, 22, 18, 0.08);

  /* Typography */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 10vw, 8rem);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bone);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.65; }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 9vw, 7.5rem); }
h2 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h4 { font-size: 1.125rem; font-family: var(--sans); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-block;
}

.lead { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.6; color: var(--ink-soft); max-width: 38ch; }

em, .italic { font-style: italic; font-family: var(--serif); }

/* =========================================================
   Layout helpers
   ========================================================= */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 900px; }
.section { padding-block: var(--section-y); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  color: white;
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(12px);
  padding-block: 1rem;
  border-bottom-color: rgba(26, 22, 18, 0.08);
  color: var(--ink);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  height: 44px;
  transition: height 0.4s ease;
}

.nav-symbol-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-symbol {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity 0.4s ease;
}

.nav-symbol-dark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
}

.nav.scrolled .nav-symbol-light { opacity: 0; }
.nav.scrolled .nav-symbol-dark { opacity: 1; }

.nav-wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
}

.nav-wordmark-soft {
  font-style: italic;
  font-weight: 300;
  opacity: 0.85;
}

.nav.scrolled .nav-brand { height: 36px; }
.nav.scrolled .nav-wordmark { font-size: 1.2rem; }

@media (max-width: 600px) {
  .nav-brand { height: 36px; gap: 0.5rem; }
  .nav-wordmark { font-size: 1.1rem; }
  .nav-wordmark-soft { display: none; }
  .nav.scrolled .nav-brand { height: 32px; }
  .nav.scrolled .nav-wordmark { font-size: 1rem; }
}

.nav-links {
  display: flex; gap: 2.5rem;
  list-style: none;
  font-size: 0.8125rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: inherit; padding: 0.5rem;
}

.nav-toggle span {
  display: block; width: 26px; height: 1px; background: currentColor;
  margin: 6px 0; transition: transform 0.3s ease;
}

/* Mobile nav */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bone);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu ul {
  list-style: none; text-align: center;
  display: flex; flex-direction: column; gap: 1.5rem;
}

.mobile-menu a {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 300;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end;
  padding: var(--gutter);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover; background-position: center;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.65) 100%);
  z-index: -1;
}

.hero-content { max-width: 1100px; position: relative; }

.hero-eyebrow {
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem; letter-spacing: 0.3em;
  font-weight: 400; text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}

.hero-eyebrow::before {
  content: ''; width: 40px; height: 1px; background: currentColor;
}

.hero h1 {
  font-weight: 300;
  line-height: 0.98;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .italic { color: rgba(255,255,255,0.95); }

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.45;
  max-width: 36rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.125rem 2rem;
  background: transparent; color: white;
  border: 1px solid rgba(255,255,255,0.6);
  font-family: var(--sans); font-size: 0.8125rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; transition: all 0.4s ease;
}

.hero-cta:hover { background: white; color: var(--ink); border-color: white; opacity: 1; }
.hero-cta .arrow { transition: transform 0.4s ease; }
.hero-cta:hover .arrow { transform: translateX(6px); }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 2rem; right: var(--gutter);
  font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 1rem;
}

.scroll-cue::after {
  content: ''; width: 1px; height: 50px; background: currentColor;
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* =========================================================
   Intro / manifesto
   ========================================================= */
.manifesto {
  padding-block: var(--section-y);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.manifesto-label {
  font-size: 0.75rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--clay);
  padding-top: 0.5rem;
  position: sticky; top: 6rem;
}

.manifesto-text p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.35;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.manifesto-text p:last-child { margin-bottom: 0; }
.manifesto-text .italic { color: var(--clay); }

/* =========================================================
   Experiences / services
   ========================================================= */
.experiences { background: var(--bone-deep); }

.experiences-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  flex-wrap: wrap; gap: 2rem;
}

.experience-list { display: flex; flex-direction: column; }

.experience {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr auto;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(26, 22, 18, 0.12);
  align-items: center;
  transition: padding 0.4s ease;
  position: relative;
}

.experience:last-child { border-bottom: 1px solid rgba(26, 22, 18, 0.12); }

.experience:hover { padding-inline: 1rem; }

.experience-num {
  font-family: var(--serif);
  font-size: 1rem; font-style: italic;
  color: var(--clay);
}

.experience-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
}

.experience-title .status {
  display: inline-block;
  font-family: var(--sans); font-size: 0.6875rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border: 1px solid currentColor;
  color: var(--clay);
  margin-left: 1rem;
  vertical-align: middle;
  font-style: normal;
}

.experience-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

.experience-arrow {
  font-family: var(--serif); font-size: 2rem;
  color: var(--clay);
  transition: transform 0.4s ease;
}

.experience:hover .experience-arrow { transform: translateX(10px); }

/* =========================================================
   Feature: Kenya
   ========================================================= */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: 90vh;
}

.feature-image {
  height: 100%; min-height: 500px;
  background-image: url('../images/kenya-featured.jpg');
  background-size: cover; background-position: center;
}

.feature-content {
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
}

.feature-content .eyebrow { margin-bottom: 2rem; }
.feature-content h2 { margin-bottom: 1.5rem; }

.feature-content p {
  font-size: 1rem; line-height: 1.75;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 1.25rem;
}

.feature-content .signature {
  font-family: var(--serif); font-style: italic;
  font-size: 1.25rem;
  color: var(--clay);
  margin-top: 2.5rem;
  display: block;
}

/* =========================================================
   Quote pull
   ========================================================= */
.pullquote {
  text-align: center;
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--bone);
}

.pullquote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 300; line-height: 1.25;
  font-style: italic;
  max-width: 24ch;
  margin: 0 auto 2rem;
  color: var(--bone);
}

.pullquote blockquote::before,
.pullquote blockquote::after {
  content: '"'; display: inline; color: var(--clay);
}

.pullquote cite {
  font-family: var(--sans); font-style: normal;
  font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  background: var(--bone-deep);
  padding-block: var(--section-y);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact h2 { margin-bottom: 1.5rem; }
.contact .lead { margin-bottom: 2.5rem; }

.contact-meta { font-family: var(--serif); font-size: 1.25rem; line-height: 2; }
.contact-meta .label {
  font-family: var(--sans); font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--clay); display: block;
  margin-top: 1.5rem;
}

.contact-meta a { font-style: italic; }

/* Form */
.form { display: flex; flex-direction: column; gap: 1.5rem; }

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

.field label {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.field input, .field textarea, .field select {
  border: none; border-bottom: 1px solid rgba(26, 22, 18, 0.25);
  background: transparent;
  padding: 0.75rem 0;
  font-family: var(--serif); font-size: 1.125rem;
  color: var(--ink);
  transition: border-color 0.3s ease;
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--clay);
}

.field textarea { resize: vertical; min-height: 120px; }

.form-submit {
  align-self: flex-start;
  padding: 1.125rem 2.5rem;
  background: var(--ink); color: var(--bone);
  border: none;
  font-family: var(--sans); font-size: 0.8125rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s ease;
  margin-top: 1rem;
  display: inline-flex; align-items: center; gap: 1rem;
}

.form-submit:hover { background: var(--clay); }
.form-submit .arrow { transition: transform 0.4s ease; }
.form-submit:hover .arrow { transform: translateX(6px); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink); color: var(--bone);
  padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  margin-bottom: 1.25rem;
}

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  opacity: 0.9;
}
.footer p { opacity: 0.7; font-size: 0.9rem; max-width: 32ch; }

.footer h5 {
  font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; font-size: 0.95rem; opacity: 0.85; }

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  padding-top: 2rem;
  display: flex; justify-content: space-between;
  font-size: 0.75rem; letter-spacing: 0.1em;
  opacity: 0.5; flex-wrap: wrap; gap: 1rem;
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* stagger helpers */
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.25s; }
.reveal.d3 { transition-delay: 0.4s; }
.reveal.d4 { transition-delay: 0.55s; }

/* Hero entry — always runs */
.hero-content > * { animation: heroIn 1.1s cubic-bezier(.2,.7,.2,1) backwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.65s; }
.hero-content > *:nth-child(4) { animation-delay: 0.9s; }

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

/* =========================================================
   Page header (interior pages)
   ========================================================= */
.page-header {
  padding: clamp(8rem, 15vw, 12rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  background: var(--bone);
  text-align: center;
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
}

.page-header .eyebrow { margin-bottom: 1.5rem; }
.page-header h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  margin-bottom: 1.5rem;
}
.page-header .lead { margin: 0 auto; text-align: center; }

/* =========================================================
   About page specific
   ========================================================= */
.founder {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-block: var(--section-y);
}

.founder-image {
  aspect-ratio: 4/5;
  background-image: url('../images/founder.jpg');
  background-size: cover; background-position: center;
}

.founder-content .eyebrow { margin-bottom: 1.5rem; }
.founder-content p {
  font-size: 1.05rem; line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  max-width: 52ch;
}

/* Values */
.values {
  background: var(--bone-deep);
  padding-block: var(--section-y);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 4rem;
}

.value { border-top: 1px solid rgba(26, 22, 18, 0.2); padding-top: 2rem; }
.value-num {
  font-family: var(--serif); font-style: italic;
  color: var(--clay); font-size: 1rem; margin-bottom: 1rem;
}
.value h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.value p { font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); }

/* =========================================================
   Services page specific
   ========================================================= */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  align-items: stretch;
}

.service-detail.flip { direction: rtl; }
.service-detail.flip > * { direction: ltr; }

.service-detail .image {
  min-height: 500px;
  background-size: cover; background-position: center;
}

.service-detail .content {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bone);
}

.service-detail.alt .content { background: var(--bone-deep); }

.service-detail h2 { margin-bottom: 1.5rem; }
.service-detail p {
  font-size: 1rem; line-height: 1.75;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.25rem;
}

.service-detail .includes {
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 22, 18, 0.15);
}

.service-detail .includes li {
  font-family: var(--serif); font-size: 1.125rem;
  padding-block: 0.6rem;
  display: flex; gap: 1rem;
  color: var(--ink);
}

.service-detail .includes li::before {
  content: '—'; color: var(--clay); flex-shrink: 0;
}

/* =========================================================
   Gallery page
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: var(--gutter);
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bone-deep);
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item.span-6 { grid-column: span 6; aspect-ratio: 3/2; }
.gallery-item.span-4 { grid-column: span 4; }
.gallery-item.span-8 { grid-column: span 8; aspect-ratio: 3/2; }
.gallery-item.span-12 { grid-column: span 12; aspect-ratio: 21/9; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .manifesto-grid,
  .feature,
  .contact-grid,
  .founder,
  .service-detail { grid-template-columns: 1fr; }

  .service-detail.flip { direction: ltr; }

  .manifesto-label { position: static; margin-bottom: 1.5rem; }

  .feature-image { min-height: 400px; }

  .experience {
    grid-template-columns: 40px 1fr auto;
    gap: 1rem;
  }
  .experience-desc { grid-column: 1 / -1; padding-left: 40px; margin-top: 0.5rem; }

  .values-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .gallery-item.span-4,
  .gallery-item.span-6,
  .gallery-item.span-8,
  .gallery-item.span-12 { grid-column: span 12; aspect-ratio: 3/2; }
}

@media (max-width: 600px) {
  .experiences-header { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
