/* main.css - cleaned & fixed full-page background
   Sections: reset, layout, header, nav, hero, activities, tours/places, contact,
   why, reviews, contact-strip, footer, responsive
*/

/* === Reset & base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  color: #222;
  /* Full-page desert gradient */
  background: linear-gradient(180deg, #f8e7c2 0%, #ffffff 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 2rem; }

/* === Utility containers === */
.container, .wrap, .header-inner { width:100%; max-width:1200px; margin:0 auto; }

/* === Header (overlay + sticky) ===== */
.site-header { background: rgba(255,255,255,0.98); border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1100; transition: background .22s ease, box-shadow .22s ease; }
.site-header.overlay { position: absolute; top: 0; left: 0; width: 100%; background: transparent; border-bottom: none; padding: 0.9rem 0; z-index: 1200; }
.header-inner { padding: .8rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-branding a { color: #333; text-decoration: none; font-weight:700; font-size:1.05rem; display:flex; align-items:center; gap:.6rem; }
.site-branding img { max-height:48px; width:auto; display:block; }
.site-header.overlay .site-branding a, .site-header.overlay .primary-nav .menu li a { color: #fff; }
.site-header.scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 6px 18px rgba(0,0,0,0.06); border-bottom: 1px solid #eee; }
.site-header.scrolled .site-branding a, .site-header.scrolled .primary-nav .menu li a { color: #222; }

/* === Primary Navigation (desktop) ===== */
.primary-nav { display:flex; align-items:center; gap:1rem; position:relative; }
.primary-nav .menu { list-style:none; margin:0; padding:0; display:flex; gap:1rem; align-items:center; }
.primary-nav .menu li a { color:#333; text-decoration:none; font-weight:500; padding:6px 4px; }
.primary-nav .menu li a:hover { opacity:.9; }
.primary-nav .nav-cta { background:#e58a1f; color:#fff; padding:.45rem .9rem; border-radius:6px; text-decoration:none; font-weight:600; }
.primary-nav .nav-cta:hover { background:#cf7616; }
.menu-toggle { display:none; font-size:1.5rem; background:none; border:none; cursor:pointer; color: inherit; }

/* === HERO ===== */
.hero { position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center; background-repeat: no-repeat; background-size: cover; background-position: center center; background-color: #f6efe6; color: #fff; overflow: hidden; padding: 0; }
.hero-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.35); pointer-events:none; }
.hero-inner { position:relative; z-index:2; width:100%; max-width:1100px; margin:0 auto; padding:4rem 1.25rem; text-align:left; }
.hero-title { font-size:3rem; margin:0 0 12px; line-height:1.05; text-transform:capitalize; color:#fff; }
.hero-sub { margin:0 0 20px; font-size:1.1rem; color:rgba(255,255,255,0.95); }
.btn { display:inline-block; padding:.6rem 1rem; border-radius:8px; text-decoration:none; font-weight:600; }
.btn-primary { background:#e04f1a; color:#fff; }
.btn-primary:hover { filter:brightness(.95); }

/* Hero slider layers */
.hero-slider { position:absolute; inset:0; width:100%; height:100%; z-index:1; overflow:hidden; }
.hero-slider .slide { position:absolute; top:0; left:0; width:100%; height:100%; background-size:cover; background-position:center; opacity:0; transform:translateZ(0); animation:slideShow 15s infinite; }
.hero-slider .slide:nth-child(1){animation-delay:0s;}
.hero-slider .slide:nth-child(2){animation-delay:5s;}
.hero-slider .slide:nth-child(3){animation-delay:10s;}
@keyframes slideShow { 0%{opacity:0;} 10%{opacity:1;} 30%{opacity:1;} 40%{opacity:0;} 100%{opacity:0;} }
.hero img { display:block; width:100%; height:auto; object-fit:cover; }
.hero .slide-inner { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); text-align: center; width: 100%; max-width: 800px; padding: 0 1rem; z-index: 3; }

/* === Activities ===== */
.home-activities { padding:48px 0; background:transparent; }
.activities-row { display:flex; flex-wrap:wrap; gap:20px; justify-content:center; }

/* legacy activity-card rules (kept for components) */
.activity-card { display:block; width:220px; background:#fff; border-radius:12px; box-shadow:0 4px 14px rgba(0,0,0,0.08); text-decoration:none; color:inherit; transition:transform .18s ease, box-shadow .18s ease; }
.activity-card-inner { padding:18px; }
.activity-card .activity-title { font-weight:700; font-size:18px; margin-bottom:6px; }
.activity-card .activity-desc { font-size:14px; color:#555; line-height:1.4; }
.activity-card:hover { transform:translateY(-5px); box-shadow:0 8px 24px rgba(0,0,0,0.12); }

/* === Tours & Places ===== */
.tours { padding:2.5rem 0; }
.tours-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1.25rem; }
.tour-card { background:#fff; padding:1rem; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.tour-thumb img { width:100%; height:auto; border-radius:6px; }
.tour-title { font-size:1.1rem; margin:.75rem 0 .5rem; }
.places-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:20px; }
.place { background:#fff; padding:20px; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,.06); color:#222; }
.place img { width:100%; height:160px; object-fit:cover; border-radius:6px; }

/* === Contact ===== */
.contact { padding:2rem 0; margin-top:1rem; background:#fff; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.04); }

/* === WHY section ===== */
.why-jeep { padding:56px 0; background:transparent; border-top:1px solid rgba(0,0,0,0.03); color:#111; }

/* === Reviews Section ===== */
.reviews-section { padding:48px 0 28px; background:transparent; position:relative; }

/* === Contact Strip ===== */
.contact-strip { background:transparent; padding:20px 0; margin-top:40px; }

/* ========================= FOOTER — cleaned & fixed Replace existing footer rules with this block ========================= */
.site-footer--creative { width: 100%; box-sizing: border-box; background: linear-gradient(180deg, #f8e7c2 0%, #f1d6a8 50%, #e9c894 100%); color: #3b2a18; padding: 48px 0 28px; border-top: 1px solid rgba(0,0,0,0.05); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; position: relative; z-index: 10; }

/* container for columns — centered and roomy */
.site-footer--creative .footer-inner { display: grid; grid-template-columns: 1.1fr 0.9fr 0.9fr 1fr; gap: 28px; max-width: 1180px; margin: 0 auto; padding: 0 18px; align-items: start; }

/* brand area (jeep image) */
.brand-card { display:flex; gap:18px; align-items:center; }
.site-footer--creative .brand-art { flex: 0 0 84px; max-width: 84px; background: #fff6e9; padding: 6px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.site-footer--creative .brand-art img { display:block; width:100%; height:auto; border-radius:6px; }

/* text next to brand */
.brand-copy { display:block; }
.brand-copy .footer-logo-text { color:#4a2e0d; font-weight:700; font-size:15px; text-decoration:none; }
.brand-copy .footer-tagline { color:#5e4630; font-size:13px; margin-top:6px; }

/* columns content */
.footer-col h4 { color:#3b2a18; margin:0 0 10px; font-size:15px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 8px; color:#4d3c29; }
.footer-links a, .footer-contact a { color:#4d3c29; text-decoration:none; }
.footer-links a:hover, .footer-contact a:hover { color:#e24a00; }

/* newsletter */
.footer-newsletter { display:flex; gap:8px; margin-top:10px; align-items:center; }
.footer-newsletter input[type="email"] { flex:1; padding:10px 12px; border-radius:8px; border: 1px solid rgba(0,0,0,0.08); background:#fff; color:#222; font-size:14px; }
.footer-newsletter .btn-small { background:#e24a00; color:#fff; padding:10px 14px; border-radius:8px; border:none; font-weight:700; cursor:pointer; }
.footer-newsletter .btn-small:hover { filter:brightness(.95); }

/* social icons */
.footer-social { margin-top:12px; display:flex; gap:8px; align-items:center; }
.footer-social a { display:inline-flex; width:36px; height:36px; align-items:center; justify-content:center; background:#fff6e9; color:#4a2e0d; text-decoration:none; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.06); }
.footer-social a:hover { background:#fce5c8; color:#e24a00; }

/* footer bottom row */
.footer-bottom { margin-top: 26px; border-top: 1px solid rgba(0,0,0,0.06); padding-top: 14px; color:#5e4630; font-size:13px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.footer-bottom a { color:#4d3c29; text-decoration:none; }
.footer-bottom a:hover { color:#e24a00; }

/* responsive behavior */
@media (max-width: 992px) {
  .site-footer--creative .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer--creative .footer-inner { grid-template-columns: 1fr; gap:18px; padding: 0 14px; text-align:center; }
  .brand-card { justify-content:center; }
  .footer-bottom { justify-content:center; text-align:center; }
}

/* small polish: ensure cards inside footer remain white and visible */
.site-footer--creative .brand-art, .footer-newsletter input, .footer-newsletter .btn-small, .footer-social a { background-clip: padding-box; }

/* === Google Reviews Section Fix === */
.reviews-section { background: linear-gradient(180deg, #f8e7c2 0%, #fdf3df 100%) !important; padding: 60px 0 40px; border-top: 1px solid rgba(0,0,0,0.04); }
.reviews-section .section-title { color: #3b2a18; font-weight: 700; }

/* individual review cards */
.review-card, .wp-gr-review, .wp-gr-testimonial { background: rgba(255,255,255,0.92) !important; /* soft card effect */ border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); padding: 18px; color: #222; transition: transform .18s ease, box-shadow .18s ease; }
.review-card:hover, .wp-gr-review:hover, .wp-gr-testimonial:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }

/* review text */
.review-card p, .wp-gr-review p { color: #444; line-height: 1.6; }

/* reviewer name */
.review-card .rc-name, .wp-gr-review .wp-google-name { font-weight: 700; color: #222; }

/* arrows */
.reviews-nav { background: #fff6e9 !important; color: #b24a00; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

/* review cards remain soft */
.reviews-section .review-card, .reviews-section .wp-gr-review, .reviews-section .wp-gr-testimonial { background: rgba(255,255,255,0.9) !important; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }

/* ========================= FORCED GRID & ACTIVITIES STYLE OVERRIDES ========================= */

/* FORCE grid layout & card widths for Activities archive - paste at end of stylesheet */
.activities-grid,
body.post-type-archive-activities .activities-grid,
.post-type-archive-activities .activities-grid,
main .activities-grid,
.content .activities-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 30px !important;
  align-items: start !important;
}

/* ensure the container doesn't collapse to tiny width */
.activities-archive .wrap,
.main-wrap,
.site-main,
.content-area {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* ensure cards behave as grid children */
.activities-grid > .activity-card,
.activities-grid > article,
.activity-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 220px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* thumbnail & body enforcement */
.activity-card__thumb img { width:100% !important; height:160px !important; object-fit:cover !important; display:block !important; }
.activity-card__body { padding:18px !important; display:flex !important; flex-direction:column !important; gap:12px !important; flex:1 1 auto !important; }

/* make CTA visible */
.activity-card__cta { background:#c89b3c !important; color:#fff !important; padding:8px 14px !important; border-radius:6px !important; display:inline-block !important; text-decoration:none !important; }

/* Activity card thumbnail styling */
.activity-card__thumb { display:block; width:100%; overflow:hidden; border-top-left-radius:12px; border-top-right-radius:12px; }
.activity-card__thumb img { display:block; width:100%; height:160px; object-fit:cover; }

/* If you want taller cards on desktop */
@media (min-width:900px) {
  .activity-card__thumb img { height:180px; }
}

/* === CLICKABLE CARD OVERLAY (make whole card clickable) === */
/* Add .activity-card__link anchor inside each .activity-card (placed right after <article> opening tag) */

.activity-card { position: relative; overflow: visible; }

/* The overlay link covers whole card but sits below CTA/title (z-index layering) */
.activity-card__link {
  position: absolute;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0; */
  z-index: 1;
  text-decoration: none;
  /* keep visually invisible */
  background: transparent;
  border: 0;
  display:block;
}

/* Ensure interactive elements (CTA, inner links) are above overlay and clickable */
.activity-card__cta,
.activity-card__title a {
  position: relative;
  z-index: 2;
}

/* If title link should also be clickable separately, keep z-index higher */
.activity-card__title a { z-index: 3; }

/* Prevent overlay from blocking focus outlines — good for accessibility */
.activity-card__link:focus { outline: none; }

/* keep card layout same */
.activity-card__thumb img { width:100%; height:160px; object-fit:cover; display:block; }

/* small responsive tweak for cards inside archive */
@media (max-width: 640px) {
  .activity-card { width: 100% !important; }
  .activities-grid { gap: 18px !important; grid-template-columns: 1fr !important; }
}
/* CLICKABLE CARD: overlay + layering */
.activity-card { position: relative; overflow: visible; }

/* overlay covers entire card and handles navigation */
.activity-card__link {
  position: absolute;
  inset: 0;
  z-index: 5;               /* overlay above card content but below header */
  display: block;
  background: transparent;
  text-decoration: none;
  pointer-events: auto;
}

/* keep interactive inner elements above overlay so they remain clickable */
.activity-card__cta,
.activity-card__title a {
  position: relative;
  z-index: 7;               /* higher than overlay so CTA & title links work */
}

/* optional: show pointer on whole card (UX) */
.activity-card { cursor: pointer; }

/* ensure overlay doesn't block keyboard focus outlines (accessibility) */
.activity-card__link:focus { outline: none; }

/* If header (sticky) overlaps visually and blocks clicks,
   ensure header does not accidentally lay on top of cards.
   Header normally should have higher z-index only when overlapping top area.
   If your header has extremely high z-index and overlaps cards, reduce header z-index or ensure card overlay z-index > header when card is under header.
   Example (only if needed):
   .site-header { z-index: 1100; } 
   .activity-card__link { z-index: 1200; } 
   Use with caution.
*/
