/* ============================================
   Stay Wild Creative
   Warm, wild, wanderlust design system
   ============================================ */

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

:root {
  --cream: #F5EFE3;
  --cream-deep: #EFE6D4;
  --taupe: #A69880;
  --taupe-deep: #8C7D64;
  --ochre: #B27F27;
  --clay: #BC5B2A;
  --ink: #2B241E;
  --ink-soft: #6B5F50;
  --line: #E1D4BC;
  --white: #FFFFFF;
  --max: 1180px;
  --serif: 'Alegreya', serif;
  --body-serif: 'Alegreya', serif;
  --sans: 'Alegreya', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Type helpers ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
  font-family: var(--sans);
}

.script {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
}

.lede {
  font-family: var(--body-serif);
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- Logo mark (placeholder — swap images/logo.png when ready) ---------- */
.logo-mark {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  color: var(--ochre);
  position: relative;
}

.logo-mark svg { width: 100%; height: 100%; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }

.footer-brand .logo-mark { color: var(--cream); width: 76px; height: 76px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 227, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand .script {
  font-size: 20px;
  color: var(--ink);
}

.brand .sub {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 5px;
  color: var(--clay);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clay);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--clay);
}

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

.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--ink);
}

@media (max-width: 800px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open {
    max-height: 400px;
  }
  .nav-links a {
    display: block;
    padding: 16px 32px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  margin-bottom: 24px;
  line-height: 1.25;
}

.hero .lede { margin-bottom: 30px; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.25s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-clay {
  border-color: var(--clay);
  background: var(--clay);
  color: var(--white);
}

.btn-clay:hover {
  background: transparent;
  color: var(--clay);
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Placeholder image block ---------- */
.placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, var(--cream-deep), var(--cream-deep) 12px, #E5D9C0 12px, #E5D9C0 24px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.placeholder.tall { aspect-ratio: 3 / 4; }
.placeholder.wide { aspect-ratio: 16 / 9; }
.placeholder.square { aspect-ratio: 1 / 1; }

.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 18px;
  background: rgba(245, 239, 227, 0.88);
  border: 1px solid var(--line);
  max-width: 80%;
  font-family: var(--sans);
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--cream-deep); }
.section-dark {
  background: var(--taupe);
  color: var(--cream);
}
.section-dark .eyebrow { color: var(--cream); opacity: 0.85; }
.section-dark .lede { color: rgba(245,239,227,0.85); }
.section-dark h2 { color: var(--cream); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}

/* ---------- Palm accent ---------- */
.palm-accent {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  opacity: 0.75;
}
.palm-accent svg { width: 26px; height: 26px; }

/* ---------- Tile grid (home teasers) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .tile-grid { grid-template-columns: 1fr; }
}

.tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .tile-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .tile-grid.cols-3 { grid-template-columns: 1fr; }
}

.tile {
  display: block;
}

.tile-cap {
  margin-top: 16px;
}

.tile-cap .eyebrow { margin-bottom: 6px; }

.tile-cap h3 {
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.tile-cap h3 a {
  transition: color 0.2s ease;
}

.tile-cap h3 a:hover {
  color: var(--clay);
}

.tile-cap p {
  font-family: var(--body-serif);
  font-size: 16px;
  color: var(--ink-soft);
}

/* ---------- Gallery grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}

.gallery .span-2 { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery .span-2 { grid-column: span 1; }
}

/* ---------- Two column content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split.reverse .split-media { order: 0; }
}

/* ---------- Stats / facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  border-top: 1px solid rgba(245,239,227,0.3);
  border-bottom: 1px solid rgba(245,239,227,0.3);
  padding: 40px 0;
}

@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}

.facts .fact { text-align: center; }

.facts .num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--cream);
}

.facts .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,239,227,0.8);
  margin-top: 8px;
}

/* ---------- Quote ---------- */
.quote-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.quote-block p {
  font-family: var(--body-serif);
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 18px;
}

.quote-block .attribution {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Video placeholder ---------- */
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn::after {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 4px;
}

/* ---------- Video cards (link out to YouTube / Instagram) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 280px));
  gap: 40px;
  justify-content: center;
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: minmax(200px, 280px); }
}

.placeholder.reel { aspect-ratio: 9 / 16; }

.video-card { display: block; text-decoration: none; color: inherit; }

.video-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(245, 239, 227, 0.85);
  transition: background 0.2s ease;
  pointer-events: none;
}

.video-card:hover .play-btn { background: var(--cream); }

.video-card h3 {
  margin-top: 14px;
  font-size: 17px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 22px;
  max-width: 560px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-family: var(--sans);
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--body-serif);
  font-size: 17px;
  color: var(--ink);
}

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

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

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--taupe);
  color: var(--cream);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .script { font-size: 20px; color: var(--cream); }

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: rgba(245,239,227,0.75);
}

.footer-col a,
.footer-col p {
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
  color: var(--cream);
}

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

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,239,227,0.2);
  font-size: 12px;
  color: rgba(245,239,227,0.75);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Click-to-edit images ---------- */
body.edit-mode .placeholder,
body.edit-mode .logo-mark {
  cursor: pointer;
  position: relative;
}

body.edit-mode .placeholder::after,
body.edit-mode .logo-mark::after {
  content: "Click to replace photo";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(43, 36, 30, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

body.edit-mode .logo-mark::after {
  font-size: 8px;
  padding: 2px;
}

body.edit-mode .placeholder:hover::after,
body.edit-mode .logo-mark:hover::after {
  opacity: 1;
}

body.edit-mode .placeholder,
body.edit-mode .logo-mark {
  outline: 2px dashed var(--clay);
  outline-offset: 2px;
}

.edit-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  z-index: 3;
}

body.edit-mode .edit-file-input {
  pointer-events: auto;
}

#edit-controls {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#edit-images-toggle,
#edit-images-reset {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(43, 36, 30, 0.25);
}

#edit-images-toggle {
  background: var(--clay);
  color: var(--white);
}

#edit-images-reset {
  background: var(--ink);
  color: var(--cream);
  display: none;
}

body.edit-mode #edit-images-reset {
  display: inline-block;
}

#edit-images-hint {
  display: none;
  position: fixed;
  bottom: 78px;
  right: 24px;
  max-width: 260px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  padding: 14px 16px;
  z-index: 999;
  box-shadow: 0 6px 18px rgba(43, 36, 30, 0.25);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 64px 0 50px;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow { margin-bottom: 10px; }

.page-hero h1 {
  font-size: clamp(30px, 4.3vw, 46px);
  margin-bottom: 16px;
}
