/* ============================================================
   ARTE VOYAGES — THEME TOKENS
   ============================================================ */
:root {
  --teal:      #0C6B60;
  --teal-dk:   #083830;
  --teal-md:   #0E7E71;
  --gold:      #D4A84B;
  --gold-lt:   #EDD080;
  --gold-dk:   #B08030;
  --ivory:     #F7F2EA;
  --ivory-dk:  #EFE8D8;
  --ivory-dkr: #E4D8C3;
  --dark:      #080F0E;
  --text:      #082A25;
  --text2:     #3A5C57;
  --text3:     #5C7B76;
  --serif:     'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --sc:        'Cormorant SC', 'Palatino Linotype', Georgia, serif;
  --sans:      'Lato', system-ui, sans-serif;
  --gold-glow: rgba(212,168,75,.18);

  /* Overlay strengths used on images — tuned for AA contrast on body text */
  --img-overlay-light: rgba(8,42,37,.50);
  --img-overlay-dark:  rgba(4,9,8,.66);
}

/* DARK MODE — text and surfaces re-tuned so nothing is washed out or glaring */
:root.dark-mode {
  --ivory:     #14201D;   /* lifted slightly from near-black for legible cards */
  --ivory-dk:  #0E1714;
  --ivory-dkr: #0A1210;
  --text:      #EDE7DF;
  --text2:     #C7BDB3;   /* lightened from previous muddy tone for AA contrast */
  --text3:     #8FA39D;   /* legible secondary on dark teal panels */
  --gold:      #E0BD63;   /* slightly brighter for dark-bg contrast w/o glare */
  --gold-lt:   #F1DA94;
  --gold-dk:   #B88C30;
  --teal:      #11897A;
  --teal-dk:   #06201C;
  --teal-md:   #129784;
  --dark:      #040908;
  --gold-glow: rgba(224,189,99,.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
  position: relative;
}

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

.rule { display: flex; align-items: center; gap: 18px; margin: 0 auto; }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: var(--gold); opacity: .6; }
.rule-inner { color: var(--gold); font-size: 11px; flex-shrink: 0; }

.sec-ivory  { background: var(--ivory); }
.sec-ivdark { background: var(--ivory-dk); }
:root.dark-mode .sec-ivdark { background: var(--ivory-dkr); }
.sec-teal   { background: var(--teal-dk); }
:root.dark-mode .sec-teal { background: #060F0D; }
.sec-teal .sec-title  { color: var(--gold-lt); }
.sec-teal .sec-sub    { color: rgba(241,218,148,.72); }
.sec-teal .eyebrow    { color: rgba(224,189,99,.75); }
.sec-teal .rule::before, .sec-teal .rule::after { background: rgba(224,189,99,.35); }
.sec-teal .rule-inner { color: rgba(224,189,99,.5); }

.sec { padding: 100px 0; }
.sec-in { max-width: 1360px; margin: 0 auto; padding: 0 48px; }
.sec-head { text-align: center; margin-bottom: 64px; }

.eyebrow {
  font-family: var(--sc); font-size: 10px; font-weight: 400;
  letter-spacing: .35em; text-transform: uppercase; color: var(--gold-dk);
  margin-bottom: 18px; display: block;
}
:root.dark-mode .eyebrow { color: var(--gold); }

.sec-title {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; font-style: italic; color: var(--teal-dk);
  line-height: 1.1; margin-bottom: 18px;
}
:root.dark-mode .sec-title { color: var(--gold-lt); }
.sec-sub {
  font-family: var(--serif); font-size: 17px; font-weight: 300;
  color: var(--text2); max-width: 560px; margin: 0 auto;
  line-height: 1.9; letter-spacing: .01em;
}
.section-divider { max-width: 280px; margin: 0 auto 64px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--teal-dk);
  padding: 16px 38px; font-family: var(--sc); font-size: 11px;
  font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; transition: all .3s; border-radius: 2px;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,168,75,.35); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(212,168,75,.6); color: var(--teal-dk);
  background: rgba(255,255,255,.5);
  padding: 15px 36px; font-family: var(--sc); font-size: 11px;
  font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; transition: all .3s; border-radius: 2px;
}
:root.dark-mode .btn-secondary { color: var(--gold-lt); background: rgba(255,255,255,.04); }
.btn-secondary:hover { background: rgba(212,168,75,.14); border-color: var(--gold); }

.sec-teal .btn-secondary,
.hero .btn-secondary {
  color: var(--gold-lt); background: rgba(255,255,255,.04);
}

/* ============================================================
   STARFIELD — dark-mode only ambient night sky
   ============================================================ */
#starfield {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity 1.2s ease;
}
:root.dark-mode #starfield { opacity: 1; }

.star {
  position: absolute; border-radius: 50%;
  background: var(--gold-lt);
  animation: starTwinkle linear infinite;
  will-change: opacity, transform;
}
@keyframes starTwinkle {
  0%, 100% { opacity: .15; transform: scale(.85); }
  50%      { opacity: .9;  transform: scale(1.15); }
}

.shooting-star {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold-lt);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px var(--gold-lt));
  opacity: 0;
  animation: shootAcross 6s ease-in forwards;
}
.shooting-star::before {
  content: '';
  position: absolute; top: 50%; right: 0;
  width: 90px; height: 1px;
  background: linear-gradient(to left, var(--gold-lt), transparent);
  transform: translateY(-50%);
}
@keyframes shootAcross {
  0%   { opacity: 0; transform: translate(0,0); }
  5%   { opacity: 1; }
  35%  { opacity: 1; }
  45%  { opacity: 0; transform: translate(-340px, 220px); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .star, .shooting-star { animation: none; opacity: .4; }
}

/* All in-page content sits above the starfield layer */
#navbar, .hero, .philosophy, main, footer, .page-content { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .sec { padding: 72px 0; }
  .sec-in { padding: 0 24px; }
}
