/* ==========================================================================
   gettravels.org — styles.css
   Mobile-first, no frameworks. Palette: deep pine green primary,
   emerald accent, warm gold highlight, cream backgrounds.
   ========================================================================== */

:root {
  /* Color system */
  --pine-900: #0f2a22;
  --pine-800: #143a2e;
  --pine-700: #1b4f3f;
  --pine-600: #22614e;
  --moss-600: #5c6b60;
  --moss-500: #75857a;
  --moss-400: #93a297;
  --cream-200: #dbe6dd;
  --cream-100: #eef5ef;
  --emerald-600: #21855a;
  --emerald-500: #2e9d68;
  --emerald-400: #52b586;
  --emerald-100: #e3f4ea;
  --gold-500: #c99a3f;
  --gold-100: #f7eeda;
  --white: #ffffff;
  --ink: #1c2b23;
  --error: #a33327;
  --warning: #a8720f;
  --success: #2e9d68;

  /* Semantic */
  --bg: var(--white);
  --bg-soft: var(--cream-100);
  --text: var(--ink);
  --text-muted: var(--moss-600);
  --accent: var(--emerald-500);
  --accent-dark: var(--emerald-600);
  --highlight: var(--gold-500);
  --border: var(--cream-200);
  --shadow-sm: 0 1px 3px rgba(15, 42, 34, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 42, 34, 0.10);
  --shadow-lg: 0 14px 34px rgba(15, 42, 34, 0.14);

  /* Spacing (8px system) */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 40px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  --radius: 10px;
  --radius-lg: 16px;
  --max-w: 1120px;
  --header-h: 64px;

  --font-head: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 var(--s3);
  color: var(--pine-800);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); }

p { margin: 0 0 var(--s3); }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s3);
}

.section {
  padding-block: var(--s6);
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--s4);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--outline {
  background: var(--white);
  color: var(--pine-800);
  border-color: var(--cream-200);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--s3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pine-800);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand svg { flex-shrink: 0; }

.brand__dot { color: var(--gold-500); }

.nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: none;
  padding: var(--s2) var(--s3) var(--s3);
}

.nav.is-open { display: block; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--pine-800);
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: var(--emerald-100);
  color: var(--pine-700);
}

.nav a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--emerald-100);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--cream-200);
  border-radius: 10px;
  cursor: pointer;
  color: var(--pine-800);
}

.nav-toggle .icon-close { display: none; }

.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 860px) {
  .nav {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .nav ul {
    display: flex;
    gap: var(--s1);
  }

  .nav a { min-height: 44px; }

  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--pine-900);
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 42, 34, 0.55) 0%, rgba(15, 42, 34, 0.40) 45%, rgba(15, 42, 34, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: var(--s8);
}

.hero__content h1 { color: var(--white); }

.hero__content p {
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--s3);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

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

@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--emerald-100);
  color: var(--accent-dark);
  margin-bottom: var(--s3);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.card h3 { margin-bottom: var(--s2); }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s3);
  font-weight: 600;
  text-decoration: none;
}

.card__link:hover { text-decoration: underline; }

/* Destination preview cards */
.dest-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--pine-900);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.dest-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.dest-card__body {
  padding: var(--s3) var(--s4) var(--s4);
  color: var(--white);
}

.dest-card__body h3 {
  color: var(--white);
  margin-bottom: var(--s1);
}

.dest-card__body p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.dest-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s2);
  color: var(--gold-500);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--pine-900) 0%, var(--pine-700) 60%, var(--emerald-600) 130%);
  color: var(--white);
  padding-block: var(--s7);
}

.page-hero h1 { color: var(--white); }

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* ---------- Tips page ---------- */
.tip-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.tip-section + .tip-section { margin-top: var(--s4); }

.tip-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: var(--s2);
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald-100);
  border: 2px solid var(--emerald-500);
}

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gold-100);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s3);
  margin-top: var(--s3);
  color: var(--pine-800);
}

.callout svg { flex-shrink: 0; margin-top: 2px; }

.callout p { margin: 0; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--pine-800);
}

.toc a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ---------- Destination detail blocks ---------- */
.dest-article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 12px);
  margin-bottom: var(--s6);
}

.dest-article__media {
  position: relative;
}

.dest-article__media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .dest-article__media img { height: 320px; }
}

.dest-article__tag {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  background: rgba(255, 255, 255, 0.92);
  color: var(--pine-800);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.dest-article__body {
  padding: var(--s4);
}

.stay-grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
  margin-block: var(--s3);
}

@media (min-width: 768px) {
  .stay-grid { grid-template-columns: repeat(3, 1fr); }
}

.stay-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: var(--s3);
}

.stay-card h4 {
  margin: 0 0 var(--s1);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.stay-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.things-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.things-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.things-list li:last-child { border-bottom: 0; }

.things-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.booking-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--pine-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--s3);
  margin-top: var(--s3);
}

.booking-tip svg { flex-shrink: 0; color: var(--gold-500); margin-top: 2px; }

.booking-tip strong { color: var(--gold-500); }

.booking-tip p { margin: 0; color: rgba(255, 255, 255, 0.92); }

.dest-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: calc(-1 * var(--s3));
  margin-bottom: var(--s4);
}

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--s2);
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  background: transparent;
  border: 0;
  min-height: 56px;
  padding: 14px var(--s3);
  font: inherit;
  font-weight: 600;
  color: var(--pine-800);
  text-align: left;
  cursor: pointer;
}

.faq-item__q:hover { background: var(--emerald-100); }

.faq-item__q svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--accent);
}

.faq-item__q[aria-expanded="true"] svg { transform: rotate(180deg); }

.faq-item__a {
  display: none;
  padding: 0 var(--s3) var(--s3);
  color: var(--text-muted);
}

.faq-item__a.is-open { display: block; }

.faq-item__a p { margin: 0; }

/* ---------- Contact page ---------- */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-md);
}

.contact-card__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  word-break: break-all;
}

.contact-card__email:hover { text-decoration: underline; }

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s3);
}

.meta-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0;
}

.meta-list svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
}

.legal h2 { margin-top: var(--s5); }

.legal h3 { margin-top: var(--s4); }

.legal .last-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--s5);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--pine-800) 0%, var(--emerald-600) 140%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  text-align: center;
}

.cta-band h2 { color: var(--white); }

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-inline: auto;
}

.cta-band .btn--primary { margin-top: var(--s2); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-900);
  color: rgba(255, 255, 255, 0.78);
  padding-block: var(--s6) var(--s4);
  margin-top: var(--s8);
}

.site-footer .brand { color: var(--white); }

.site-footer .brand__tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--s2);
  max-width: 320px;
}

.footer-grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-col h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: space-between;
  padding-top: var(--s3);
  font-size: 0.88rem;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.78); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }

.mt-auto { margin-top: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
