/*
Theme Name: Yapi Explorer
Theme URI: https://example.com/
Author: Yapi
Description: A custom South Africa travel and tours WordPress theme with an 8-slide cinematic hero slider.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: yapi-explorer
*/

:root {
  --yapi-red: #fc1405;
  --yapi-red-dark: #ad0c02;
  --yapi-ink: #17232d;
  --yapi-muted: #66717a;
  --yapi-white: #fff;
  --yapi-light: #f6f7f8;
  --yapi-border: #e4e7e9;
  --yapi-container: 1240px;
  --yapi-radius: 2px;
  --yapi-shadow: 0 18px 50px rgba(17, 28, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--yapi-ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; background: var(--yapi-white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.container { width: min(calc(100% - 40px), var(--yapi-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Focus Accessibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--yapi-red); outline-offset: 3px; }

/* Header */
.site-header 
{ position: absolute;
    z-index: 50;
	top: 0; left: 0; right: 0;
	color: var(--yapi-white); 
}
.site-header:after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent); z-index: -1; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.custom-logo { max-height: 84px; width: auto; }
.site-title { font-size: 25px; font-weight: 800; letter-spacing: .02em; }
.site-description { display: none; }
.main-navigation ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { font-weight: 700; font-size: 14px; color: var(--yapi-white); }
.main-navigation a:hover { color: #ffd4d0; }
.header-cta { background: var(--yapi-red); padding: 12px 20px; font-weight: 800; font-size: 14px; }
.menu-toggle { display: none; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: var(--yapi-white); padding: 9px 12px; }

/* Hero Section */
.hero { position: relative; min-height: 720px; height: clamp(650px, 78vh, 820px); overflow: hidden; background: #16212a; color: var(--yapi-white); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-media { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.01); }
.hero-slide.is-active .hero-media { animation: heroZoom 8s ease both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 15, 21, .86) 0%, rgba(8, 15, 21, .64) 42%, rgba(8, 15, 21, .2) 75%, rgba(8, 15, 21, .3) 100%); }
.hero-content-wrap { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-copy { width: min(650px, 72vw); padding-top: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: 12px; color: var(--yapi-white); margin-bottom: 18px; }
.eyebrow:before { content: ""; width: 34px; height: 2px; background: var(--yapi-red); }
.hero-title { font-size: clamp(42px, 5.6vw, 76px); line-height: .98; margin: 0 0 22px; font-weight: 900; letter-spacing: -.035em; }
.hero-title span { color: var(--yapi-red); }
.hero-text { font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .9); max-width: 610px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font-weight: 800; border: 1px solid transparent; border-radius: var(--yapi-radius); transition: .2s ease; cursor: pointer; }
.btn-primary { background: var(--yapi-red); color: var(--yapi-white); }
.btn-primary:hover { background: var(--yapi-red-dark); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255, 255, 255, .75); color: var(--yapi-white); background: rgba(0, 0, 0, .05); }
.btn-outline:hover { background: var(--yapi-white); color: var(--yapi-ink); }

/* Hero Controls */
.hero-controls { position: absolute; z-index: 5; left: 50%; bottom: 34px; transform: translateX(-50%); width: min(calc(100% - 40px), var(--yapi-container)); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dot { appearance: none; border: 0; background: rgba(255, 255, 255, .45); width: 34px; height: 3px; padding: 0; cursor: pointer; transition: .25s; }
.hero-dot.is-active { background: var(--yapi-white); width: 58px; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .18); color: var(--yapi-white); cursor: pointer; }
.hero-arrow:hover { background: var(--yapi-white); color: var(--yapi-ink); }
.hero-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--yapi-red); width: 0; z-index: 6; }
.hero-counter { position: absolute; right: 0; top: -4px; color: var(--yapi-white); font-weight: 800; font-size: 13px; }
.hero-counter { display: none !important; }

/* Sections & Features */
.section { padding: 95px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-kicker { text-transform: uppercase; letter-spacing: .18em; color: var(--yapi-red); font-size: 12px; font-weight: 900; }
.section-title { font-size: clamp(32px, 4vw, 50px); line-height: 1.05; margin: 10px 0 14px; font-weight: 900; }
.section-lead { color: var(--yapi-muted); font-size: 17px; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { padding: 30px; background: var(--yapi-white); border: 1px solid var(--yapi-border); box-shadow: var(--yapi-shadow); }
.feature-number { font-size: 42px; line-height: 1; font-weight: 900; color: var(--yapi-red); }
.feature-card h3 { margin: 12px 0 6px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--yapi-muted); font-size: 14px; }

/* CTA Band */
.cta-band { background: var(--yapi-ink); color: var(--yapi-white); padding: 70px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; margin: 0 0 10px; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .72); }

/* Tour Cards Shortcode */
.feature-card.feature-card--tour { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.feature-card.feature-card--tour:hover { box-shadow: 0 22px 60px rgba(17, 28, 38, .16); transform: translateY(-2px); }
.tour-card-media { position: relative; aspect-ratio: 4/3; background-color: var(--yapi-light); background-position: center; background-size: cover; background-repeat: no-repeat; flex-shrink: 0; }
.tour-card-duration-badge { position: absolute; top: 14px; left: 14px; background: var(--yapi-white); color: var(--yapi-ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
.tour-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.feature-card--tour h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
.tour-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.tour-duration { margin: 0; color: var(--yapi-muted); font-size: 13px; }
.tour-price { margin: 0; color: var(--yapi-red); font-size: 20px; font-weight: 900; white-space: nowrap; }
.feature-card--tour .btn-primary,
.feature-card--tour a.btn,
.feature-card--tour .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  background-color: var(--yapi-red) !important;
  color: var(--yapi-white) !important;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--yapi-radius);
  border: none;
}

.feature-card--tour .btn-primary:hover,
.feature-card--tour a.btn:hover,
.feature-card--tour .btn:hover {
  background-color: var(--yapi-red-dark) !important;
  color: var(--yapi-white) !important;
}

/* Footer */
.site-footer { background: #0e171e; color: var(--yapi-white); padding: 55px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 35px; }
.site-footer h3 { margin: 0 0 14px; font-size: 16px; }
.site-footer p, .site-footer li { color: rgba(255, 255, 255, .65); font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 7px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 35px; padding-top: 20px; color: rgba(255, 255, 255, .5); font-size: 13px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.copyright { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.copyright a, .footer-legal a { color: var(--yapi-red); transition: opacity 0.2s ease; }
.copyright a:hover, .footer-legal a:hover { opacity: 0.8; }
.footer-brand-img { height: 35px; width: auto; vertical-align: middle; }

/* Keyframes & Media Queries */
@keyframes heroZoom { from { transform: scale(1.01); } to { transform: scale(1.08); } }

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

@media (max-width: 960px) {
  .main-navigation { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { width: min(680px, 90vw); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--yapi-container)); }
  .header-inner { min-height: 72px; }
  .hero { min-height: 650px; height: 760px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(8, 15, 21, .88), rgba(8, 15, 21, .52)); }
  .hero-title { font-size: 44px; }
  .hero-text { font-size: 16px; }
  .hero-controls { bottom: 22px; }
  .hero-dot { width: 18px; }
  .hero-dot.is-active { width: 34px; }
  .hero-counter { display: none; }
  .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { display: block; }
  .cta-inner .btn { margin-top: 22px; }
  .tour-card-media { aspect-ratio: 16 / 10; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 15px; }
}
/* Footer Social Media Icons */
.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.footer-social-links li {
  margin: 0 !important; 
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--yapi-red);
  font-size: 20px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-links a:hover {
  background: #fff;
  color: var(--yapi-red);
  transform: translateY(-2px);
}
.site-footer ul li a i {
  margin-right: 8px;
  color: var(--yapi-red);
}
/* CTA Band Centering */
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.cta-inner h2 {
  margin: 0 0 12px;
}

.cta-inner p {
  max-width: 720px;
  margin: 0 auto;
}