/* ============================================
   VELA STAYS — Design tokens
   ============================================ */
:root {
  /* Brand colors */
  --ink: #1F2421;
  --teal: #0E5959;
  --teal-dark: #0A4444;
  --terracotta: #D98B5F;
  --terracotta-dark: #C77947;
  --cream: #FBF8F3;
  --sand: #F3E9DA;
  --warm-gray: #8A8479;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 4px;
  --radius-md: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: 0.01em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

p { color: var(--ink); }
.lede {
  font-size: 1.15rem;
  color: #4A4A46;
  max-width: 60ch;
}

.text-muted { color: var(--warm-gray); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
  min-height: 44px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--ink);
}
.btn-primary:hover { background: var(--terracotta-dark); }

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

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.65);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; min-height: 38px; }

/* ============================================
   Nav
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 300ms var(--ease), padding 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  border-bottom-color: rgba(31,36,33,0.08);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo-icon { height: 34px; width: auto; flex-shrink: 0; }
.nav-logo-icon .mast { fill: var(--ink); transition: fill 300ms var(--ease); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 300ms var(--ease);
}
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  transition: color 300ms var(--ease);
}
.site-nav.is-hero .nav-logo-word,
.site-nav.is-hero .nav-link { color: var(--white); }
.site-nav.is-hero .nav-logo-icon .mast { fill: var(--white); }
.site-nav.is-hero .nav-logo-sub { color: rgba(255,255,255,0.8); }
.site-nav.is-hero.is-scrolled .nav-logo-word,
.site-nav.is-hero.is-scrolled .nav-link,
.site-nav.is-hero.is-scrolled .nav-toggle { color: var(--ink); }
.site-nav.is-hero.is-scrolled .nav-logo-icon .mast { fill: var(--ink); }
.site-nav.is-hero.is-scrolled .nav-logo-sub { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-link {
  font-size: 0.92rem;
  color: var(--ink);
  transition: opacity 200ms var(--ease), color 300ms var(--ease);
}
.nav-link:hover { opacity: 0.65; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ============================================
   Section scaffolding
   ============================================ */
section { position: relative; }
.section-pad { padding: var(--space-2xl) 0; }
.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-sand { background: var(--sand); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink h2, .bg-ink h3 { color: var(--cream); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(251,248,243,0.14);
}
.footer-brand img { height: 30px; margin-bottom: var(--space-sm); }
.footer-brand p { color: rgba(251,248,243,0.6); max-width: 32ch; font-size: 0.92rem; }
.footer-cols { display: flex; gap: var(--space-2xl); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(251,248,243,0.5);
  margin-bottom: var(--space-sm);
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.92rem;
  color: rgba(251,248,243,0.85);
  margin-bottom: 10px;
  transition: opacity 200ms var(--ease);
}
.footer-col a:hover { opacity: 0.65; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: var(--space-md);
  font-size: 0.8rem;
  color: rgba(251,248,243,0.45);
}

/* ============================================
   Utility
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 200ms var(--ease);
}
.skip-link:focus { top: 12px; }

::selection { background: var(--terracotta); color: var(--ink); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
