/*
Theme Name: Tanzanite Signature Safaris
Theme URI: https://tanzanitesafaris.com
Author: Tanzanite Signature Safaris
Author URI: https://tanzanitesafaris.com
Description: Luxury safari tour company theme for Tanzanite Signature Safaris
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tanzanite-safaris
Tags: travel, luxury, safari, tour-operator
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap");

:root {
  /* --- Primary: Tanzanite Purple Spectrum --- */
  --primary-color: #4834d4;
  --light-primary-color: #686de0;
  --lightest-primary-color: #f0efff;
  --primary-color-opacity: rgb(72 52 212 / 95%);
  --primary-color-mid-opacity: rgb(72 52 212 / 20%);
  --primary-color-high-opacity: rgb(72 52 212 / 10%);

  /* --- Neutral & Brand Tones --- */
  --tanzanite-white: #fff;
  --tanzanite-text-gray: #2c3e50;
  --tanzanite-muted-text-gray: #7f8c8d;
  --tanzanite-very-light-bg-gray: #f8f9fa;

  /* --- Backgrounds & Interactive --- */
  --light-bg-color: #f0efff;
  --light-select-color: #f8f8ff;
  --active-color: #2ecc71;
  --default-text-color: #0e1116;

  /* --- Luxury Earth & Gold --- */
  --gold: #6c5ce7;
  --gold-light: #a29bfe;
  --dark-earth: #0f0c29;
  --mid-earth: #24243e;
  --cream: #f5f6ff;

  /* --- UI Foundation --- */
  --card-border-color: #ccc;
  --danger-color: #ca1010;
  --border-radius: 0;
  --border-color: #8f8f9d;
  --muted-border-color: #e0e0e0;
  --tanzanite-very-light-gray: #fdfdfd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: "Jost", sans-serif;
  color: var(--default-text-color);
  background: var(--cream);
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 48px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: background 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(15, 12, 41, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 64px;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.navbar.light {
  background: var(--dark-earth);
}

/* SVG wordmark */
.nav-logo {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.nav-logo-img {
  display: block;
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.nav-logo-img:hover {
  opacity: 0.75;
}
.nav-logo-img--drawer {
  height: 36px;
  filter: brightness(0) invert(1);
}

/* Desktop nav links */
.nav-links--desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}
.nav-links--desktop li {
  white-space: nowrap;
}
.nav-links--desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links--desktop a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

/*
.nav-links--desktop a:hover,
.nav-links--desktop li.current-menu-item > a {
  color: var(--gold);
}

*/

.nav-links--desktop a:hover::after,
.nav-links--desktop li.current-menu-item > a::after {
  width: 100%;
}

/* CTA button */
.nav-links--desktop li a.nav-cta,
.nav-links--desktop li.menu-item > a.nav-cta {
  background: var(--primary-color) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 2px !important;
  letter-spacing: 0.12em !important;
  font-size: 0.8rem !important;
  transition: background 0.3s !important;
}
.nav-links--desktop li a.nav-cta:hover {
  background: var(--light-primary-color) !important;
}
.nav-links--desktop li a.nav-cta::after {
  display: none !important;
}

@media (max-width: 1100px) {
  .navbar {
    padding: 0 28px;
    gap: 14px;
  }
  .nav-links--desktop {
    gap: 18px;
  }
  .nav-links--desktop a {
    font-size: 0.8rem;
    letter-spacing: 0.09em;
  }
  .nav-links--desktop li a.nav-cta {
    padding: 7px 13px !important;
    font-size: 0.7rem !important;
  }
  .nav-logo-img {
    height: 38px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 0 18px;
    height: 62px;
  }
  .navbar.scrolled {
    height: 54px;
  }
  .nav-links--desktop {
    display: none !important;
  }
  .nav-logo-img {
    height: 34px;
  }
}

@media (max-width: 400px) {
  .nav-logo-img {
    height: 43px;
  }
}

/* ===== PAGE HEADER (hero-style — all inner pages) ===== */
.page-header--hero {
  height: 70vh;
  min-height: 480px;
  max-height: 700px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 72px;
  overflow: hidden;
}
.page-header__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  animation: heroZoom 14s ease forwards;
}
.page-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(18, 10, 3, 0.65) 0%,
    rgba(18, 10, 3, 0.25) 50%,
    rgba(18, 10, 3, 0.55) 100%
  );
}
.page-header__content {
  position: relative;
  z-index: 1;
  padding: 0 80px;
  animation: fadeUp 1s ease 0.2s both;
}
.page-header__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.page-header__eyebrow span {
  font-size: 0.68rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.25rem;
  background: var(--gold);
  font-weight: 400;
}
.page-header__content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 300;
  color: white;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .page-header--hero {
    padding-bottom: 44px;
    min-height: 360px;
  }
  .page-header__content {
    padding: 0 18px;
  }
}

/* ===== SECTION STYLES ===== */
.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--tanzanite-text-gray);
}
.section-title em {
  font-style: italic;
  color: var(--primary-color);
}
.gold-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 24px 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: var(--light-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(72, 52, 212, 0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 13px 32px;
  border: 1px solid #fff;
  border-radius: 2px;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--dark-earth);
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background: #5145b8;
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: var(--primary-color);
  padding: 16px 36px;
  border: none;
  border-radius: 2px;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s;
  display: inline-block;
}
.btn-white:hover {
  background: var(--dark-earth);
  color: white;
}

/* ===== CARDS ===== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.safari-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.safari-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
}
.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.safari-card:hover .card-img {
  transform: scale(1.04);
}
.card-img-wrap {
  overflow: hidden;
  position: relative;
}
.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-color);
  color: white;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.card-body {
  padding: 24px 26px 28px;
}
.card-body .card-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tanzanite-muted-text-gray);
  margin-bottom: 8px;
}
.card-body h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tanzanite-text-gray);
  line-height: 1.25;
  margin-bottom: 10px;
}
.card-body p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--tanzanite-muted-text-gray);
  margin-bottom: 18px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--muted-border-color);
}
.card-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
}
.card-price span {
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  color: var(--tanzanite-muted-text-gray);
  font-weight: 400;
}
.card-duration {
  font-size: 0.75rem;
  color: var(--tanzanite-muted-text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-earth);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 80px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 36px;
}
.footer-logo .logo-main {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}
.footer-logo .logo-sub {
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-top: 3px;
  margin-bottom: 16px;
}
.footer-logo p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-col ul li a:hover {
  color: var(--gold);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}
.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
}
/* on mobile footer-bottom  screen smaller than 500px*/
@media screen and (max-width: 500px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ===== UTILITIES ===== */
section {
  padding: 90px 80px;
}
.bg-cream {
  background: var(--cream);
}
.bg-white {
  background: white;
}
.bg-dark {
  background: var(--dark-earth);
  color: white;
}
.text-center {
  text-align: center;
}
.text-center .gold-divider {
  margin: 24px auto;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--primary-color);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.cta-section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: white;
  line-height: 1.2;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

/* ===== WORDPRESS CORE ===== */
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: 0.8rem;
  color: var(--tanzanite-muted-text-gray);
  text-align: center;
  margin-top: 6px;
}
.alignleft {
  float: left;
  margin: 0 20px 10px 0;
}
.alignright {
  float: right;
  margin: 0 0 10px 20px;
}
.aligncenter {
  display: block;
  margin: 0 auto 10px;
}
img.alignleft,
img.alignright,
img.aligncenter {
  max-width: 100%;
}
.sticky {
  /* WP sticky post */
}
.bypostauthor {
  /* WP author highlight */
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.3s;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .nav-hamburger {
    display: flex;
  }
}
.nav-hamburger:hover {
  border-color: var(--gold);
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== MOBILE MENU DRAWER ===== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.is-visible {
  display: block;
  opacity: 1;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100vh;
  background: var(--dark-earth);
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu-close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}
.mobile-menu-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.mobile-nav-links {
  list-style: none;
  padding: 20px 0;
  flex: 1;
}
.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-nav-links li a {
  display: block;
  padding: 16px 28px;
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.3s;
}
.mobile-nav-links li a:hover,
.mobile-nav-links li.current-menu-item > a {
  color: var(--gold);
  padding-left: 36px;
}
.mobile-nav-links li a.nav-cta {
  margin: 20px 28px;
  padding: 14px 24px !important;
  background: var(--primary-color) !important;
  color: white !important;
  border-radius: 2px;
  text-align: center;
  letter-spacing: 0.2em;
  display: block;
}
.mobile-nav-links li a.nav-cta:hover {
  background: var(--light-primary-color) !important;
  padding-left: 24px !important;
}

/* ===== RESPONSIVE LOGO ===== */
@media (max-width: 400px) {
  .nav-logo .logo-main {
    font-size: 1rem;
  }
  .nav-logo .logo-sub {
    display: none;
  }
}

/* ===== SVG ARROW ===== */
.arrow-svg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.arrow-svg svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
a:hover .arrow-svg svg,
button:hover .arrow-svg svg {
  transform: translate(2px, -2px);
}

/* Feature icons (SVG stroke colour) */
.feature-icon {
  color: var(--primary-color);
}

/* ===== GLOBAL OVERFLOW CONTAINMENT ===== */
img,
video,
iframe,
table {
  max-width: 100%;
}

/* ===== TABLET BREAKPOINT (901px–1024px) ===== */
@media (max-width: 1024px) {
  section {
    padding: 70px 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  footer {
    padding: 60px 40px 36px;
  }
  .cta-section {
    padding: 60px 40px;
  }
  .card-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== MOBILE (≤768px): GENERAL ===== */
@media (max-width: 768px) {
  section {
    padding: 60px 18px;
  }
  .navbar {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-header-content {
    padding: 0 20px;
  }
  footer {
    padding: 50px 20px 30px;
  }
  .cta-section {
    grid-template-columns: 1fr;
    padding: 50px 20px;
    text-align: center;
  }
  .bg-cream {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  section.bg-cream {
    padding-left: 18px;
    padding-right: 18px;
  }
  /* General padding on inline grids */
  [style*="padding: 0 80px"],
  [style*="padding: 80px"] {
    padding: 40px 20px !important;
  }
  [style*="padding-top: 110px"] {
    padding-top: 60px !important;
  }
}

/* ===== VERY SMALL (≤480px) ===== */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
