/*
  Vakay — shared stylesheet
  Palette, type (Fredoka + Manrope), and the sun/horizon mark come from the
  brand-mark artifact the human supplied — see WEBSITE-BRAINSTORM.md,
  Topic 7. Treated as the approved design direction for logo/color palette
  (previously an open human decision).
*/

:root {
  --bg: #FBF7F2;
  --bg-elevated: #FFFFFF;
  --ink: #2C3E4A;
  --ink-soft: #5A7185;
  --pink: #FDC0BD;    /* Flamingo */
  --blue: #9CC6E1;    /* Poolside */
  --yellow: #FFE5A4;  /* Sandbar */
  --green: #7CBB91;   /* Palm */
  --line: rgba(44, 62, 74, 0.12);
  --tile-shadow: 0 20px 44px -24px rgba(44, 62, 74, 0.22);
  --todo-bg: rgba(255, 229, 164, 0.28);
  --todo-border: #E8B769;
  --tint-yellow: rgba(255, 229, 164, 0.35);

  /* Theme-invariant tokens for elements that must stay dark-on-light
     regardless of theme (e.g. the closing CTA band) — deliberately not
     redefined in the dark-mode blocks below. */
  --contrast-bg: #2C3E4A;
  --contrast-fg: #FBF7F2;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --max-width: 960px;
  --font-display: 'Fredoka', -apple-system, sans-serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #182430;
    --bg-elevated: #202F3B;
    --ink: #F6F1E9;
    --ink-soft: #9FB2C0;
    --line: rgba(246, 241, 233, 0.14);
    --tile-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.55);
    --todo-bg: rgba(255, 229, 164, 0.14);
    --tint-yellow: rgba(255, 229, 164, 0.12);
  }
}

:root[data-theme="dark"] {
  --bg: #182430;
  --bg-elevated: #202F3B;
  --ink: #F6F1E9;
  --ink-soft: #9FB2C0;
  --line: rgba(246, 241, 233, 0.14);
  --tile-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.55);
  --todo-bg: rgba(255, 229, 164, 0.14);
  --tint-yellow: rgba(255, 229, 164, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

/* Header / nav */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--ink);
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a.nav-cta {
  background: var(--pink);
  color: rgba(44, 62, 74, 0.92);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.main-nav a.nav-cta:hover {
  filter: brightness(0.95);
  color: rgba(44, 62, 74, 0.92);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

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

/* Hero band — colorful gradient surround, homepage only */

.hero-band {
  background: linear-gradient(150deg, var(--yellow) 0%, var(--pink) 55%, var(--blue) 100%);
  padding: 40px 0;
}

.hero-band .hero {
  margin-top: 0;
}

/* Full-bleed section tints */

.section-tint-yellow {
  background: var(--tint-yellow);
  border-top: none;
}

.section-dark {
  background: var(--contrast-bg);
  color: var(--contrast-fg);
  border-top: none;
}

.section-dark h2 {
  color: var(--contrast-fg);
}

.btn-accent {
  background: var(--pink);
  color: rgba(44, 62, 74, 0.92);
}

.btn-accent:hover {
  filter: brightness(0.95);
}

/* Hero */

.hero {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--tile-shadow);
  padding: clamp(40px, 8vw, 72px) clamp(20px, 6vw, 40px);
  margin-top: 32px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero .subhead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Sections */

main section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

main section:first-of-type {
  border-top: none;
}

h2 {
  font-size: 1.7rem;
  color: var(--ink);
  margin-top: 0;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 28px;
}

.center {
  text-align: center;
}

/* Card grids */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Forces a clean 2-per-row layout for 4-item grids (e.g. Destinations'
   vibe cards) instead of auto-fit producing an awkward 3+1 split. */
.grid--2up {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.card h3 {
  margin-top: 0;
  color: var(--ink);
}

/* Vibe tiles — pastel, matching the brand-mark artifact's tile pattern */

.tile {
  border-radius: var(--radius-md);
  padding: 24px;
  border: none;
  color: rgba(44, 62, 74, 0.86);
}

.tile h3 {
  color: rgba(44, 62, 74, 0.92);
}

.vibe-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.45);
  color: rgba(44, 62, 74, 0.6);
  font-size: 0.75rem;
}

.tile ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.tile li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.tile li:last-child {
  margin-bottom: 0;
}

.tile--pink { background: var(--pink); }
.tile--blue { background: var(--blue); }
.tile--yellow { background: var(--yellow); }
.tile--green { background: var(--green); }

.photo-placeholder {
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.35) 10px,
    rgba(255,255,255,0.6) 10px,
    rgba(255,255,255,0.6) 20px
  );
  border-radius: var(--radius-sm);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(44, 62, 74, 0.7);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

.card:not(.tile) .photo-placeholder {
  background: repeating-linear-gradient(
    45deg,
    #f1e9da,
    #f1e9da 10px,
    #e7ddcd 10px,
    #e7ddcd 20px
  );
  color: var(--ink-soft);
}

/* Team grid */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.team-card {
  text-align: center;
}

.avatar-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-icon {
  width: 40px;
  height: 40px;
  color: var(--ink-soft);
}

.team-name {
  display: block;
  font-weight: 700;
  font-family: var(--font-display);
}

.team-role {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Numbered steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.steps li {
  display: flex;
  gap: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}

.steps h3 {
  margin: 0 0 6px;
  color: var(--ink);
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* TODO callouts */

.todo {
  background: var(--todo-bg);
  border: 1px dashed var(--todo-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--ink);
  font-size: 0.95rem;
}

.todo strong {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
}

/* Forms */

form {
  display: grid;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  background: var(--bg-elevated);
}

legend {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink);
  padding: 0 6px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.field-hint {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}

.checkbox-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.checkbox-row input {
  width: auto;
}

/* Native date inputs can't be fully restyled without JS — this just
   quiets the picker icon a little so it sits closer to the rest of the
   form's muted, ink-soft visual language. */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.55;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .logo-lockup {
  margin-bottom: 12px;
}

.site-footer .tagline {
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--ink);
}

.site-footer small {
  color: var(--ink-soft);
  display: block;
}

@media (max-width: 640px) {
  .main-nav {
    gap: 12px;
  }
  main section {
    padding: 40px 0;
  }
  /* The sticky header ate ~19% of a phone viewport once the nav wraps to
     two lines. Let it scroll away with the page on small screens instead
     of permanently overlaying content — simpler than a hamburger menu and
     needs no JS. */
  .site-header {
    position: static;
  }
}
