/* ============================================================
   Ikuyo Travels — ikuyo.co
   Design system per Ikuyo_Rebrand_Plan_2026 + page copy design notes
   ============================================================ */

:root {
  --white: #FFFFFF;
  --sage: #F5F7F2;
  --matcha: #1D9E75;
  --matcha-dark: #178563;
  --deep: #085041;
  --gold: #BA7517;
  --sky: #378ADD;
  --ink: #2C2C2A;
  --grey: #6B6B68;
  --grey-light: #E4E7E1;

  --font-head: "DM Sans", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 14px rgba(8, 80, 65, 0.07);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--deep);
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}

/* Site-wide rule: avoid 1–2 word orphan lines at the end of paragraphs */
p, li { text-wrap: pretty; }

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--matcha); text-decoration: none; }
a:hover { color: var(--matcha-dark); }

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

section { padding: 72px 0; }

.section-sage { background: var(--sage); }

.section-title { margin-bottom: 14px; }
.section-lede {
  font-size: 1.1rem;
  color: var(--grey);
  max-width: 720px;
  margin-bottom: 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
}

.btn-primary { background: var(--matcha); color: var(--white); }
.btn-primary:hover { background: var(--matcha-dark); color: var(--white); }

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

.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--deep); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-light);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  font-size: 1rem;
}

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

.nav-links .btn { padding: 10px 22px; font-size: 0.95rem; color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

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

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,80,65,0.30) 0%, rgba(8,80,65,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  max-width: 640px;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

.hero p {
  font-size: 1.15rem;
  max-width: none;
  margin-bottom: 30px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}

/* Sage page hero (inner pages) */
.page-hero {
  background: var(--sage);
  padding: 72px 0 56px;
}

.page-hero h1 { margin-bottom: 14px; }

.page-hero .lede {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 700px;
}

/* ---------- Cards: value props / differentiators ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.value-card .num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--matcha);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

.value-card h3 { margin-bottom: 10px; }

.diff-card {
  background: var(--sage);
  border-top: 3px solid var(--matcha);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 28px 24px;
}

.diff-card h3 { margin-bottom: 10px; }

/* ---------- Service cards (photo + caption) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.svc-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.svc-card .svc-body { padding: 20px 22px 24px; }

.svc-card h3 { margin-bottom: 6px; font-size: 1.1rem; }

.svc-card p { font-size: 0.95rem; color: var(--grey); }

/* ---------- Pillar cards (Experiences) ---------- */
.pillar {
  background: var(--sage);
  border-left: 5px solid var(--matcha);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 320px;
}

.pillar-body { padding: 32px 34px; }

.pillar-photo { height: 100%; min-height: 240px; }
.pillar-photo img { width: 100%; height: 100%; object-fit: cover; }

.pillar .num {
  font-family: var(--font-head);
  color: #A9B3AC;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.pillar h3 { font-size: 1.45rem; margin: 6px 0 12px; }

.pillar-sub { margin: 14px 0 0; list-style: none; }

.pillar-sub li { margin-bottom: 8px; font-size: 0.97rem; }

.pillar-sub .tag {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--matcha);
  margin-right: 6px;
}

.pillar-incl {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--grey);
}

.pillar-incl strong { color: var(--ink); font-weight: 600; }

.pillar-stack { display: grid; gap: 28px; }

/* ---------- Expanding pillar accordion (Experiences) ---------- */
.xp-row {
  display: flex;
  gap: 14px;
  height: 620px;
}

.xp {
  position: relative;
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: flex .5s cubic-bezier(.4, 0, .2, 1);
}

.xp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.xp:hover .xp-img { transform: scale(1.04); }

.xp-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,80,65,0) 45%, rgba(8,80,65,0.78) 100%);
}

.xp-head {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 22px;
  text-align: left;
}

.xp-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.xp-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--white);
}

.xp-detail {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--sage);
  color: var(--ink);
  padding: 30px 30px 26px;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity .3s ease, visibility 0s .35s;
}

/* Desktop: expand on hover (and keyboard focus) */
@media (hover: hover) {
  .xp:hover, .xp:focus-within { flex: 3.2; }
  .xp:hover .xp-detail, .xp:focus-within .xp-detail {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease .18s;
  }
}

/* Touch devices: expand on tap (class set by JS) */
.xp.open { flex: 3.2; }

.xp.open .xp-detail {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease .18s;
}

.xp-detail h3 { color: var(--deep); margin-bottom: 12px; }

.xp-detail p { font-size: 0.95rem; }

.xp-sub { list-style: none; margin: 14px 0 0; }

.xp-sub li { margin-bottom: 9px; font-size: 0.92rem; }

.xp-sub .tag {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--matcha);
  margin-right: 6px;
}

.xp-incl { font-size: 0.86rem; color: var(--grey); margin-top: 14px; }
.xp-incl strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .xp-row { flex-direction: column; height: auto; }
  .xp { flex: none; height: 150px; transition: none; }
  .xp.open { height: auto; background: var(--sage); }
  .xp.open .xp-img, .xp.open .xp-shade { display: none; }
  .xp.open .xp-head { position: static; padding: 22px 22px 0; }
  .xp.open .xp-num { color: var(--matcha); }
  .xp.open .xp-title { color: var(--deep); }
  .xp.open .xp-detail {
    position: static;
    opacity: 1;
    visibility: visible;
    padding-top: 12px;
    overflow: visible;
  }
  .xp.open .xp-detail h3 { display: none; }
}

/* Good to Know icons */
.diff-card .gtk-icon { margin-bottom: 12px; color: var(--matcha); }

/* ---------- How-we-travel callout ---------- */
.callout {
  background: var(--sage);
  border-left: 5px solid var(--matcha);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px;
  font-size: 1.02rem;
}

.callout strong { font-family: var(--font-head); color: var(--deep); }

/* ---------- Itinerary cards ---------- */
.itin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.itin-card {
  border-top: 3px solid var(--deep);
  background: var(--white);
  padding: 24px 26px 26px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.itin-card h3 { margin-bottom: 4px; }

.itin-meta {
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 12px;
}

.itin-teaser { font-style: italic; margin-bottom: 12px; }

.itin-highlights { font-size: 0.93rem; color: var(--grey); margin-bottom: 16px; }

.itin-card .itin-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
}

/* ---------- Steps (How It Works) ---------- */
.steps { list-style: none; max-width: 780px; }

.step {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 8px;
  width: 2px;
  background: var(--grey-light);
}

.step-num {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--matcha);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 8px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--sage);
  padding: 36px 0;
}

.trust-strip .trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--deep);
  font-size: 1.02rem;
}

.trust-strip .dot { color: var(--matcha); font-size: 1.4rem; line-height: 1; }

/* ---------- Instagram strip ---------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 32px 0 26px;
}

.ig-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; }

.ig-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .25s ease;
}

.ig-grid a:hover img { transform: scale(1.05); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--deep);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }

.cta-band p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; }

.cta-band .btn-row { justify-content: center; }

/* ---------- Forms (Enquire) ---------- */
.form-wrap { max-width: 760px; }

.form-section { margin-bottom: 44px; }

.form-section-header {
  background: var(--sage);
  border-left: 5px solid var(--matcha);
  padding: 12px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  font-family: var(--font-head);
}

.form-section-header .sec-num { color: var(--matcha); font-weight: 700; margin-right: 8px; }
.form-section-header .sec-title { color: var(--deep); font-weight: 700; font-size: 1.1rem; }

.form-section-header .sec-hint {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 4px;
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.field .req { color: #C0392B; margin-left: 2px; }

.field .hint { font-size: 0.85rem; color: var(--grey); margin-top: 5px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--matcha);
}

.field textarea { min-height: 96px; resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px 22px; }

.choice-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  font-size: 0.97rem;
  cursor: pointer;
}

.choice-group input { accent-color: var(--matcha); width: 17px; height: 17px; }

.form-trust {
  color: var(--matcha);
  font-size: 0.97rem;
  margin: 14px 0 6px;
}

.form-fine {
  font-size: 0.83rem;
  color: var(--grey);
  margin-top: 16px;
}

.form-error {
  display: none;
  background: #FBEAE8;
  border: 1px solid #C0392B;
  color: #8C2B20;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 22px;
}

.form-error.show { display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--deep);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
  font-size: 0.95rem;
}

.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img { height: 44px; width: auto; margin-bottom: 16px; }

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Misc ---------- */
.values-list { list-style: none; }

.values-list li {
  margin-bottom: 14px;
  padding-left: 26px;
  position: relative;
  font-size: 0.97rem;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .values-list li { white-space: normal; }
}

.values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--matcha);
}

.values-list strong { font-family: var(--font-head); color: var(--deep); }

.handle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
}

.handle-grid li {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  font-size: 0.97rem;
  border-left: 4px solid var(--matcha);
}

.note-italic { color: var(--grey); font-style: italic; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .card-grid, .svc-grid, .handle-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillar { grid-template-columns: 1fr; }
  .pillar-photo { min-height: 220px; order: -1; }
}

@media (max-width: 680px) {
  section { padding: 52px 0; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--grey-light);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 12px 0; }

  .nav-links .btn { margin-top: 8px; width: 100%; }

  .nav-toggle { display: block; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .card-grid, .card-grid-2, .svc-grid, .itin-grid, .handle-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav-links .btn { width: auto; }
}
