/* ==========================================================================
   ZANZIBAR TOURISM COMPANY — stylesheet
   Palette: light blue base, deep-ocean blue for dark sections,
   white + black for text, one turquoise accent for the reef/water motif.
   ========================================================================== */

:root {
  --blue-bg:      #DCEEF6;   /* page background — light blue */
  --blue-bg-pale: #EFF9FC;   /* alternate section background */
  --blue-deep:    #073B54;   /* deep ocean blue — dark sections, buttons */
  --blue-deep-2:  #0A4C6A;   /* slightly lighter deep blue for gradients */
  --teal:         #0FA3B1;   /* reef turquoise accent */
  --white:        #FFFFFF;
  --black:        #000000;
  --line:         rgba(7, 59, 84, 0.14);
  --shadow:       0 18px 40px rgba(7, 59, 84, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1200px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blue-bg);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow-line {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal);
  margin: 0 0 0.6em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.6em;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary   { background: var(--blue-deep); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep-2); }

.btn-dark      { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--blue-deep); }

.btn-light     { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--blue-bg-pale); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(220, 238, 246, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--blue-deep);
}
.brand-mark { color: var(--teal); display: flex; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.15;
  color: var(--black);
}
.brand-text i { font-style: normal; color: var(--blue-deep); font-weight: 500; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--black);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--blue-deep); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
}
.hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,59,84,0.78) 0%, rgba(7,59,84,0.55) 45%, rgba(7,59,84,0.92) 100%);
}
.hero-inner {
  position: relative;
  padding-bottom: 90px;
  max-width: 760px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  margin-bottom: 0.4em;
}
.hero-title em {
  font-style: italic;
  color: #BFE8F2;
}
.hero-copy {
  font-size: 1.12rem;
  max-width: 46ch;
  color: rgba(255,255,255,0.92);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.22);
  margin: 0 auto;
  padding: 26px 28px 30px;
}
.hero-stats div {
  text-align: left;
  padding-right: 16px;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
}
.hero-stats dd {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.78);
}

/* ==========================================================================
   SECTION HEAD (shared)
   ========================================================================== */
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

section { padding: 90px 0; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--blue-bg-pale); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media {
  position: relative;
}
.about-media img:first-child {
  border-radius: 6px;
  width: 100%;
  height: 460px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-media-small {
  position: absolute;
  width: 46%;
  bottom: -36px;
  left: -32px;
  border: 6px solid var(--blue-bg-pale);
  border-radius: 6px;
  height: 190px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-copy h2 { color: var(--black); }
.about-copy p { color: #1a1a1a; max-width: 52ch; }
.about-points {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-points li {
  padding-left: 22px;
  position: relative;
  color: #1a1a1a;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.about-points span {
  font-weight: 700;
  color: var(--blue-deep);
}

/* ==========================================================================
   DESTINATIONS
   ========================================================================== */
.destinations { background: var(--blue-bg); }
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
}
.dest-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow);
}
.dest-card--tall { grid-row: span 2; }
.dest-card--wide { grid-column: span 2; }
.dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dest-card:hover img { transform: scale(1.05); }
.dest-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,59,84,0) 40%, rgba(4,30,44,0.88) 100%);
}
.dest-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  z-index: 2;
}
.dest-copy h3 {
  font-size: 1.25rem;
  margin-bottom: 0.2em;
  color: var(--white);
}
.dest-copy p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  margin: 0;
  max-width: 34ch;
}

/* ==========================================================================
   TOURS
   ========================================================================== */
.tours { background: var(--blue-bg-pale); }
.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.tour-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  color: var(--black);
}
.tour-card--featured {
  background: var(--blue-deep);
  color: var(--white);
  transform: translateY(-10px);
}
.tour-card-top { flex-grow: 1; }
.tour-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 30px;
  background: var(--blue-bg);
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.tour-tag--light { background: rgba(255,255,255,0.16); color: var(--white); }
.tour-card h3 { font-size: 1.3rem; }
.tour-card--featured h3 { color: var(--white); }
.tour-card p { font-size: 0.95rem; }
.tour-card--featured p { color: rgba(255,255,255,0.85); }

.tour-features {
  margin: 18px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
}
.tour-features li { padding-left: 20px; position: relative; }
.tour-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.tour-card--featured .tour-features li::before { color: #7FE0EA; }

.tour-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.tour-card--featured .tour-card-bottom { border-top-color: rgba(255,255,255,0.2); }
.tour-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.tour-price span { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; color: var(--teal); text-transform: none; }
.tour-price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; opacity: 0.7; }

/* ==========================================================================
   WHY US
   ========================================================================== */
.why { background: var(--blue-deep); color: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
.why h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.why-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.why-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 26px;
}
.why-item:first-child { border-top: none; padding-top: 0; }
.why-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #7FE0EA;
}
.why-item h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.3em; }
.why-item p { color: rgba(255,255,255,0.82); margin: 0; max-width: 52ch; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials { background: var(--blue-bg); }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote-card {
  margin: 0;
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.quote-card p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 20px;
}
.quote-card cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-deep);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--blue-bg-pale); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-copy h2 { color: var(--black); }
.contact-copy p { color: #1a1a1a; max-width: 46ch; }
.contact-details {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-details li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: #1a1a1a;
  font-size: 0.95rem;
}
.contact-details strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 4px;
}

.contact-form {
  background: var(--white);
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 0;
}
.form-row--split > div { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--black);
  background: var(--blue-bg-pale);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-submit { width: 100%; margin-top: 6px; }
.form-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
  color: var(--teal);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-text i { color: #7FE0EA; }
.footer-brand p {
  margin-top: 14px;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 16px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.8);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 22px 28px;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-media-small { display: none; }
  .about-media img:first-child { height: 340px; }
  .why-grid { grid-template-columns: 1fr; gap: 34px; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .dest-card--tall { grid-row: span 2; }
  .dest-card--wide { grid-column: span 2; }
  .tour-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .tour-card--featured { transform: none; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blue-bg);
    padding: 10px 28px 22px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .main-nav a { width: 100%; padding: 10px 0; }
  .site-header.nav-open .header-cta {
    display: inline-flex;
    margin: 0 28px 20px;
  }

  .hero { padding-top: 96px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }

  .dest-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .dest-card--tall,
  .dest-card--wide { grid-column: span 1; grid-row: span 1; }

  .form-row--split { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero-title { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

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