/* Tuatara Sailing — public marketing site.
 * Hand-written, self-hosted (no CDN, no build step). System font stack.
 * Palette aligned to the brand logo: navy hull, sunset gold→orange, cream sails. */

:root {
  --navy: #1c3a5e;
  --navy-deep: #0b2740;
  --navy-700: #16314f;
  --sunset-1: #f4a52a;
  --sunset-2: #e85c1c;
  --gold: #f6c23e;
  --cream: #f7f2e6;
  --sand: #faf6ec;
  --ink: #1b2733;
  --muted: #5d6b7a;
  --line: #e3dccb;
  --line-cool: #dde5ec;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 39, 64, .06), 0 10px 30px rgba(11, 39, 64, .08);
  --shadow-lg: 0 18px 50px rgba(11, 39, 64, .16);
  --maxw: 1080px;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sunset-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 2rem 0; }

/* ---- Header ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .7rem 1.5rem;
  background: var(--navy-deep);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.topnav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.navlink { color: #d4e0ec; padding: .4rem .7rem; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.navlink:hover { background: rgba(255, 255, 255, .1); text-decoration: none; color: #fff; }
.navlink-active { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---- Language switcher ---- */
.langs { display: flex; gap: .15rem; margin-left: .5rem; padding-left: .6rem; border-left: 1px solid rgba(255,255,255,.18); }
.lang { color: #9fb3c6; font-size: .78rem; font-weight: 700; letter-spacing: .03em; padding: .25rem .35rem; border-radius: 6px; }
.lang:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.1); }
.lang-active { color: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 999px;
  padding: .58rem 1.2rem; font-weight: 700; cursor: pointer; font-family: inherit; font-size: .95rem;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--sunset-1), var(--sunset-2)); color: #fff; box-shadow: 0 6px 18px rgba(232, 92, 28, .3); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 22px rgba(232, 92, 28, .4); }
.btn-lg { padding: .8rem 1.7rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-portal { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); padding: .4rem 1rem; }
.btn-portal:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 70% -10%, var(--navy-700), var(--navy-deep) 70%);
  color: #fff; padding: 5rem 1.5rem 6.5rem; text-align: center; overflow: hidden;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--gold); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 1rem; line-height: 1.08; letter-spacing: -.01em; }
.hero-sub { font-size: 1.18rem; color: #d7e4ef; margin: 0 0 2rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-chips { list-style: none; display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin: 2.2rem 0 0; padding: 0; color: #cfe0ee; font-size: .92rem; font-weight: 600; }
.hero-chips li { display: inline-flex; align-items: center; gap: .4rem; }
.chip-ico { width: 18px; height: 18px; color: var(--gold); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; display: block; }

/* ---- Sections ---- */
.section { padding: 3.5rem 1.5rem; }
.section-sand { background: var(--sand); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); margin: 0 0 .6rem; text-align: center; letter-spacing: -.01em; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 2.4rem; font-size: 1.05rem; }
.page-head { background: var(--navy-deep); color: #fff; padding: 3rem 1.5rem; text-align: center; }
.page-head h1 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head .section-lead { color: #cfe0ee; margin-bottom: 0; }

/* ---- Experience grid + cards ---- */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.exp-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.exp-media-link { position: relative; display: block; }
.exp-media, .gallery-media, .detail-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.exp-media img, .detail-media img, .gallery-media img { width: 100%; height: 100%; object-fit: cover; }
.media-ph { width: 100%; height: 100%; display: block; }
.media-day { background: linear-gradient(155deg, #7fb5d8, #2a6f97); }
.media-sunset { background: linear-gradient(155deg, var(--sunset-1), var(--sunset-2)); }
.media-private { background: linear-gradient(155deg, #2a4a6e, var(--navy-deep)); }
.exp-kind {
  position: absolute; top: .8rem; left: .8rem;
  background: rgba(11, 39, 64, .82); color: #fff; backdrop-filter: blur(2px);
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  padding: .3rem .6rem; border-radius: 999px;
}
.exp-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.exp-name { margin: 0; font-size: 1.25rem; color: var(--navy); }
.exp-name a { color: var(--navy); }
.exp-name a:hover { color: var(--sunset-2); }
.exp-tagline { margin: 0; color: var(--muted); flex: 1; }
.exp-facts { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; color: var(--muted); font-size: .9rem; }
.exp-facts li { display: inline-flex; align-items: center; gap: .35rem; }
.fact-ico { width: 17px; height: 17px; color: var(--sunset-2); flex: none; }
.exp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.exp-price { font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.price-from { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.link { font-weight: 700; color: var(--sunset-2); }

/* ---- Features band ---- */
.features { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.feature { text-align: center; padding: 1.5rem 1rem; }
.feature-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--cream); color: var(--sunset-2); margin-bottom: 1rem; }
.feature-ico .icon { width: 28px; height: 28px; }
.feature h3 { margin: 0 0 .4rem; color: var(--navy); font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }

/* ---- Detail page ---- */
.detail { max-width: var(--maxw); }
.back { display: inline-block; margin-bottom: 1.25rem; }
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.detail-media { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.detail-info .exp-kind { position: static; display: inline-block; margin-bottom: .6rem; }
.detail-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); color: var(--navy); margin: .2rem 0 .3rem; }
.detail-tagline { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.3rem; }
.detail-facts { list-style: none; padding: 1rem 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 1.6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts strong { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; margin-bottom: .15rem; }
.detail-desc { margin-top: 2rem; font-size: 1.06rem; max-width: 720px; }
.detail-highlights { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.detail-highlights li { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .55rem; }
.hl-ico { width: 20px; height: 20px; color: var(--sunset-2); flex: none; margin-top: .15rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.contact-h { color: var(--navy); margin: 0 0 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; color: var(--muted); }
.contact-list li { display: flex; align-items: center; gap: .6rem; }
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; color: var(--navy); font-size: .92rem; }
.field input, .field textarea {
  font: inherit; padding: .7rem .85rem; border: 1px solid var(--line-cool); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--sunset-1); outline-offset: 0; border-color: var(--sunset-1); }
.field-error { color: #c0392b; font-size: .85rem; }
.notice { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 600; }
.notice-ok { background: #e7f6ec; color: #1c6b3a; border: 1px solid #b9e3c6; }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery-tile { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery-media { aspect-ratio: 4 / 3; }
.gallery-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .7rem; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(11,39,64,.7)); }

/* ---- Blog ---- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-date { color: var(--sunset-2); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.post-title { margin: 0; font-size: 1.3rem; color: var(--navy); }
.post-title a { color: var(--navy); }
.post-title a:hover { color: var(--sunset-2); }
.post-excerpt { margin: 0; color: var(--muted); flex: 1; }
.post { max-width: 720px; }
.post-title-lg { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--navy); margin: .4rem 0 .6rem; }
.post-lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.5rem; }
.post-body { font-size: 1.07rem; }
.post-body p { margin: 0 0 1.1rem; }

/* ---- Footer ---- */
.footer { margin-top: auto; background: var(--navy-deep); color: #cfe0ee; padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { width: 48px; height: 48px; border-radius: 50%; margin-bottom: .8rem; }
.footer-tag { margin: 0; max-width: 22rem; color: #aebfd0; }
.footer-h { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-col a { color: #cfe0ee; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: .5rem; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--gold); flex: none; }
.socials { display: flex; gap: .6rem; }
.social { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.social:hover { background: var(--sunset-2); }
.social .icon { width: 20px; height: 20px; }
.footer-legal { text-align: center; margin: 2.5rem 0 0; color: #7f93a6; font-size: .85rem; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .topbar { gap: .5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
}
