/* ==========================================================================
   Amber Road Travel — shared styles
   Design tokens live at the top; every page shares this one file.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  /* Color */
  --paper:      #F2ECDC; /* warm sand background */
  --paper-deep: #16302B; /* deep jade, used for dark sections/footer */
  --jade:       #1F5049; /* primary brand color */
  --jade-deep:  #123632; /* hover / darker jade */
  --brass:      #B8863B; /* accent — temple gilding */
  --brick:      #93412E; /* secondary accent — used sparingly */
  --ink:        #241F17; /* primary text */
  --ink-soft:   #5B5140; /* secondary text */
  --line:       #D9CFB3; /* hairline borders */
  --paper-card: #FBF8EF; /* slightly lighter than paper, for cards */

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  /* Layout */
  --max-width: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }
p.wide { max-width: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(28px, 5vw, 48px) 0; }

.section-heading { max-width: 640px; margin-bottom: 2.2rem; }
.section-heading p { color: var(--ink-soft); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.7em;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: #a3762f; }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline { background: transparent; color: var(--jade); border-color: var(--jade); }
.btn-outline:hover { background: var(--jade); color: #fff; }

.text-link {
  color: var(--jade);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  font-weight: 500;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header / nav ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 28px 0 0;
}

.site-header.is-solid {
  position: sticky;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logotype {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.site-header:not(.is-solid) .logotype { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 2.1rem; }

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-header:not(.is-solid) .main-nav a { color: #fff; }
.main-nav a:hover { border-bottom-color: currentColor; }
.main-nav a.current { border-bottom-color: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
}
.site-header:not(.is-solid) .nav-toggle { color: #fff; }
.site-header.is-solid .nav-toggle { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,20,16,0.15) 0%, rgba(18,20,16,0.65) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(48px, 8vw, 88px);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 48ch; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.page-header {
  background: var(--jade);
  color: #fff;
  padding: clamp(120px, 18vw, 168px) 0 clamp(48px, 6vw, 64px);
}
.page-header h1 { color: #fff; }
.page-header p { color: rgba(255,255,255,0.82); font-size: 1.1rem; }

/* ---------- Destination chips ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--paper-card);
}

/* ---------- Feature rows (editorial, alternating) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 88px); }
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }
.feature-media img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; }
.eyebrow-meta {
  color: var(--brick);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.6em;
}
.feature-copy p { color: var(--ink-soft); }

/* ---------- Tour cards ---------- */

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tour-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.tour-card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.tour-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tour-card .duration-tag {
  position: absolute;
  bottom: 10px; left: 10px;
  background: var(--jade);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3em 0.7em;
  border-radius: 3px;
}
.tour-card .body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.tour-card h3 { margin-bottom: 0.35em; }
.tour-card .blurb { color: var(--ink-soft); font-size: 0.96rem; flex: 1; }
.tour-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.tour-card .price { font-weight: 600; color: var(--brick); }
.tour-card .price small { font-weight: 400; color: var(--ink-soft); }
.tour-card .see-more { font-size: 0.9rem; font-weight: 600; color: var(--jade); }

/* ---------- Why us / list columns ---------- */

.list-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.list-columns h3 { margin-bottom: 0.5em; }
.list-columns p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--paper-deep);
  color: #fff;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,0.78); }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper-deep);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-grid .logotype { color: #fff; }
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.9em;
}
.footer-grid a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6em; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 1.2rem; }
label { display: block; font-weight: 500; margin-bottom: 0.4em; font-size: 0.95rem; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-card);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--jade);
  outline-offset: 1px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* ---------- Contact split ---------- */

.contact-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
}
.contact-info .item { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-info .item:first-child { border-top: none; }
.contact-info .item h4 { font-family: var(--font-body); font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 0.3em; }

/* ---------- Tour detail ---------- */

.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.itinerary-day {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.itinerary-day:first-child { border-top: none; padding-top: 0; }
.itinerary-day .day-label { font-family: var(--font-display); font-size: 1.1rem; color: var(--jade); }
.itinerary-day p { color: var(--ink-soft); }

.summary-card {
  position: sticky;
  top: 24px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}
.summary-card .price-line { font-family: var(--font-display); font-size: 1.9rem; color: var(--brick); margin-bottom: 0.1em; }
.summary-card .price-line small { font-family: var(--font-body); font-size: 0.95rem; color: var(--ink-soft); font-weight: 400; }
.summary-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 0; margin: 1.4rem 0; }
.summary-card dt { font-size: 0.85rem; color: var(--ink-soft); }
.summary-card dd { margin: 0.15em 0 0; font-weight: 500; }
.summary-card .btn { width: 100%; text-align: center; }

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-strip img { aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--jade-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 30;
  }
  body.nav-open .main-nav a { color: #fff; font-size: 1.3rem; }

  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-copy { order: initial; }

  .tour-grid, .list-columns { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-split, .detail-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .tour-grid, .list-columns, .footer-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
