/* ==========================================================
   OSCA Nature Travel for Safari – styles.css
   HOW TO EDIT COLORS: change the hex values in :root below.
   HOW TO EDIT FONTS: change --font-head / --font-body (and the
   Google Fonts link in index.html).
   ========================================================== */
:root {
  --forest: #1f4d36;        /* main forest green */
  --forest-dark: #14382a;   /* darker green (header, footer) */
  --beige: #f4ecdb;         /* warm beige background */
  --sand: #e8dcc0;          /* borders and soft panels */
  --brown: #7a5232;         /* earthy brown text accents */
  --accent: #9a6224;        /* button color (earthy amber-brown) */
  --accent-dark: #7d4e1b;   /* button hover */
  --whatsapp: #1a7f43;      /* WhatsApp button */
  --white: #ffffff;
  --ink: #2b2a26;           /* body text */
  --radius: 14px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 1rem; }
img { max-width: 100%; display: block; background: var(--sand); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6rem; color: var(--forest-dark); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--forest-dark); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: .85rem 1.7rem; font: 600 1rem var(--font-body); text-decoration: none; text-align: center; cursor: pointer; color: var(--white); transition: background-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-whatsapp { background: var(--whatsapp); font-size: 1.1rem; padding: 1rem 2.2rem; }
.btn-whatsapp:hover { background: #146b38; }
.btn-block { display: block; width: 100%; }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--forest-dark); color: var(--beige); box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--beige); color: var(--forest-dark); font: 700 1.3rem var(--font-head); }
.logo-text { font: 700 1.15rem var(--font-head); line-height: 1.1; }
.logo-text small { display: block; font: 400 .68rem var(--font-body); opacity: .85; }
.site-nav ul { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-color: var(--beige); }
.site-nav .nav-cta { background: var(--accent); padding: .5rem 1.2rem; border-radius: 999px; border: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--beige); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 86vh; color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--forest); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,40,28,.82) 0%, rgba(14,40,28,.5) 55%, rgba(14,40,28,.15) 100%); }
.hero-content { position: relative; padding: 4rem 0; }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 7vw, 4.8rem); max-width: 14ch; margin-bottom: 1.2rem; }
.hero-text { max-width: 52ch; font-size: 1.1rem; margin-bottom: 2rem; }
.hero .eyebrow { color: var(--sand); }
.hero-content > * { animation: rise .8s ease both; }
.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--beige); }
.section-green { background: var(--forest); color: var(--beige); }
.section-green h2, .section-green h3 { color: var(--white); }
.eyebrow { font-weight: 600; font-size: .95rem; color: var(--brown); margin-bottom: .4rem; }
.section-green .eyebrow { color: var(--sand); }
.section-head { max-width: 680px; margin: 0 auto 2.8rem; text-align: center; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-image img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; border-radius: var(--radius); }

/* Packages */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; }
.package-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; }
.package-card img { width: 100%; height: 190px; object-fit: cover; }
.package-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem; }
.meta { font-size: .9rem; margin-bottom: .3rem; }
.desc { font-size: .95rem; margin: .6rem 0 1rem; }
.price { font: 700 1.05rem var(--font-body); color: var(--forest); margin-bottom: .4rem; }
.price-tag { display: inline-block; align-self: flex-start; background: #fff1cf; color: var(--brown); font-size: .78rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.inclusions { margin-bottom: 1.1rem; font-size: .9rem; border-top: 1px solid var(--sand); padding-top: .8rem; }
.inclusions summary { cursor: pointer; font-weight: 600; color: var(--forest); }
.inclusions p { margin: .6rem 0 0; }
.package-body .book-btn { margin-top: auto; }
.pricing-note { max-width: 760px; margin: 2.4rem auto 0; text-align: center; font-size: .95rem; background: var(--white); border-left: 4px solid var(--accent); padding: 1rem 1.3rem; border-radius: 8px; }

/* Destinations */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.dest-card { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.dest-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s; }
.dest-card:hover img { transform: scale(1.05); }
.dest-card figcaption { position: absolute; inset: auto 0 0 0; padding: 3rem 1.2rem 1.2rem; color: var(--white); background: linear-gradient(transparent, rgba(14,40,28,.9)); }
.dest-card h3 { color: var(--white); margin-bottom: .2rem; }
.dest-card p { margin: 0; font-size: .9rem; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.why-card { border: 1px solid rgba(244,236,219,.35); border-radius: var(--radius); padding: 1.6rem; }
.why-card p { margin: 0; font-size: .95rem; }

/* Contact */
.contact-wrap { text-align: center; }
.contact-list { display: grid; gap: .6rem; max-width: 520px; margin: 2.4rem auto 0; text-align: left; background: var(--beige); border-radius: var(--radius); padding: 1.5rem 1.8rem; }

/* Footer */
.site-footer { background: var(--forest-dark); color: var(--beige); padding-top: 3rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-name { font: 700 1.3rem var(--font-head); margin-bottom: .3rem; }
.footer-sub { opacity: .85; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin-top: 2rem; padding: 1.2rem 0; border-top: 1px solid rgba(244,236,219,.25); font-size: .88rem; }
.copyright p { margin: 0; }

/* Message bar */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; width: min(520px, 92%); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--forest-dark); color: var(--white); padding: 1rem 1.2rem; border-radius: 10px; font-size: .92rem; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--forest-dark); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .site-nav.open { max-height: 420px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 4% 1.2rem; }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(244,236,219,.15); }
  .site-nav .nav-cta { text-align: center; margin-top: .8rem; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero-overlay { background: linear-gradient(180deg, rgba(14,40,28,.55), rgba(14,40,28,.8)); }
  .footer-grid { flex-direction: column; }
}

/* Respect visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
