/* ============================================================
   ABC Travels Clone – style.css
   Brand accent: #80151c  (dark red)
   ============================================================ */

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

:root {
  --accent:   #80151c;
  --accent-h: #77141a;
  --accent-s: #661116;
  --white:    #ffffff;
  --off-white:#f7f7f7;
  --light-bg: #f4f4f4;
  --text:     #4d4d4d;
  --muted:    #a3a3a3;
  --font-body: 'Open Sans', sans-serif;
  --font-hero: 'Abel', sans-serif;
  --font-quote:'Merriweather', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  font-size: 0.85rem;
  box-shadow: 0 3px 0 0 var(--accent-s);
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-h); }

/* ── HEADER ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 90px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img { height: 55px; width: auto; }

#main-nav ul { list-style: none; display: flex; gap: 0; }
#main-nav li { position: relative; }
#main-nav a {
  display: block;
  padding: 0 16px;
  line-height: 90px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}
#main-nav a:hover,
#main-nav a.active { color: var(--accent); }
#main-nav .fa-chevron-down { font-size: 0.65rem; margin-left: 4px; }

/* dropdown */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
  flex-direction: column;
}
.has-dropdown:hover .dropdown { display: flex; flex-direction: column; }
.dropdown li a {
  line-height: 1;
  padding: 12px 20px;
  font-size: 0.78rem;
}
.dropdown li a:hover { background: var(--off-white); color: var(--accent); }

/* mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ── HERO SLIDER ── */
#hero {
  position: relative;
  margin-top: 90px;
  height: 600px;
  overflow: hidden;
}

.slider { height: 100%; position: relative; }

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.slide-overlay.dark { background: rgba(0,0,0,0.5); }

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.slide-tag {
  font-family: var(--font-hero);
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.slide-title {
  font-family: var(--font-hero);
  font-size: 4.5rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 12px;
}
.slide-sub {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* slider controls */
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  width: 48px; height: 48px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.slider-btn:hover { background: rgba(255,255,255,0.3); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 8px;
}
.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.slider-dots button.active { background: var(--white); }

/* ── SERVICES ── */
#services {
  padding: 70px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-box { text-align: center; padding: 20px; }

.service-icon {
  width: 80px; height: 80px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
  font-size: 2rem;
  transition: background 0.2s;
}
.service-box:hover .service-icon { background: var(--accent); color: var(--white); }

.service-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.service-box p { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; }

.learn-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.learn-more:hover { border-color: var(--accent); }

/* ── PARALLAX CTA ── */
#parallax-cta {
  height: 450px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

/* ── PLAN TRIP CTA ── */
#plan-trip {
  background: var(--light-bg);
  padding: 40px 0;
}

/* ── FOOTER ── */
#site-footer {
  background: var(--light-bg);
  border-top: 1px solid #ddd;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 50px;
  padding: 60px 20px 40px;
}

.footer-about img { height: 70px; width: auto; margin-bottom: 20px; }
.footer-about p { font-size: 0.85rem; color: var(--text); line-height: 1.8; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-cta { display: flex; flex-direction: column; gap: 16px; }

#sub-footer {
  background: #333;
  color: var(--white);
  padding: 16px 0;
  text-align: center;
}
#sub-footer span { font-size: 0.8rem; }
#sub-footer a { color: var(--white); text-decoration: underline; }

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  z-index: 999;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative;
  margin-top: 90px;
  height: 220px;
  background: linear-gradient(135deg, var(--accent) 0%, #3a0a0d 100%);
  display: flex; align-items: center; justify-content: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
}
.page-hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
}
.page-hero-content h1 {
  font-family: var(--font-hero);
  font-size: 2.6rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 8px;
}
.breadcrumb { font-size: 0.8rem; opacity: 0.8; }
.breadcrumb a { color: var(--white); text-decoration: underline; }

/* ── INNER PAGE CONTENT ── */
.page-content { padding: 70px 0; }
.content-section { margin-bottom: 60px; }
.content-section:last-child { margin-bottom: 0; }

.section-title {
  font-family: var(--font-hero);
  font-size: 1.8rem; font-weight: 400;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.lead { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }

/* blockquote */
.page-quote {
  font-family: var(--font-quote, Georgia, serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 0 auto 40px;
  max-width: 780px;
  text-align: left;
  background: #fdf5f5;
}
.page-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  margin-top: 10px;
  color: var(--muted);
}

/* ── FEATURE GRID (About page) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.feature-item {
  background: var(--off-white);
  padding: 28px;
  border-top: 3px solid var(--accent);
}
.feature-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-item h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.feature-item p { font-size: 0.9rem; }

/* ── INCLUDED LIST (About) ── */
.included-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 40px; }
.included-list li { font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; }
.included-list .fa-check { color: var(--accent); flex-shrink: 0; margin-top: 4px; }

/* ── TOURS CTA CARDS ── */
.tours-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.tours-cta-card {
  display: flex; flex-direction: column;
  border: 2px solid #e0e0e0;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text);
  overflow: hidden;
}
.tours-cta-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(128,21,28,0.12); }
.tours-cta-img {
  width: 100%; height: 260px;
  object-fit: cover; display: block;
}
.tours-cta-text {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; padding: 30px 28px; flex: 1;
}
.tours-cta-icon { font-size: 2.2rem; color: var(--accent); }
.tours-cta-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.tours-cta-card p { font-size: 0.9rem; flex: 1; }

/* ── POSTS GRID (SA Tours / SS Field Trips) ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.2s;
  overflow: hidden;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.post-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.post-card-icon {
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  margin-top: 4px;
}
.post-card-body { flex: 1; padding: 18px; }
.post-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.post-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.post-card .post-date { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.post-card p { font-size: 0.85rem; margin-bottom: 10px; }

/* ── NUMBERED STEPS (School & Teachers) ── */
.numbered-steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 24px; }
.step-number {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--white);
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.step-body h3 { font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.step-body p { font-size: 0.9rem; }

/* ── FAQ LIST (Parents) ── */
.faq-list { display: flex; flex-direction: column; gap: 20px; }
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}
.faq-question {
  background: var(--off-white);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.faq-answer { padding: 16px 20px; }
.faq-answer p { font-size: 0.9rem; margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── DISCOUNT CARDS (Student Discounts) ── */
.discount-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.discount-card {
  text-align: center;
  padding: 40px 28px;
  border: 2px solid #e0e0e0;
}
.discount-card.highlight { border-color: var(--accent); }
.discount-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 10px 24px;
  margin-bottom: 16px;
}
.discount-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.discount-card p { font-size: 0.9rem; }

.ambassador-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.perk {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--off-white);
  font-size: 0.88rem;
}
.perk .fa { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

/* ── CONTACT PAGE ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
}
.contact-item {
  display: flex; gap: 16px;
  margin-bottom: 28px;
}
.contact-item .fa {
  color: var(--accent); font-size: 1.2rem;
  flex-shrink: 0; margin-top: 2px;
}
.contact-item strong { display: block; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 1px; color: var(--accent); }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--text); }
.contact-item a:hover { color: var(--accent); }

/* contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #ccc;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; }
.form-success { color: green; font-weight: 600; margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  #site-header { height: 70px; }
  #hero { margin-top: 70px; height: 380px; }
  .slide-title { font-size: 2.6rem; }

  #main-nav {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    overflow-y: auto;
    padding: 20px;
    z-index: 999;
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; }
  #main-nav a { line-height: 1; padding: 14px 8px; border-bottom: 1px solid #eee; }
  .has-dropdown .dropdown { display: flex; position: static; box-shadow: none; }
  .dropdown li a { padding-left: 24px; }
  .mobile-menu-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  #parallax-cta { background-attachment: scroll; height: 250px; }
  .page-hero { height: 160px; }
  .page-hero-content h1 { font-size: 1.8rem; }
  .included-list { grid-template-columns: 1fr; }
  .tours-cta-grid { grid-template-columns: 1fr; }
  .discount-cards { grid-template-columns: 1fr; }
  .ambassador-perks { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
