/* =========================
   Reset + Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "museo-sans";
  min-height: 100vh;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   TYPE SYSTEM (GLOBAL)
   - Titles/subtitles consistent across page
   - ALL titles aligned LEFT
========================= */
:root {
  --title-mobile: 2rem;
  --title-tablet: 2.5rem;
  --title-desktop: 3rem;

  --subtitle-mobile: 0.875rem;
  --subtitle-tablet: 1rem;
  --subtitle-desktop: 1.125rem;

  --body-mobile: 0.875rem;
  --body-tablet: 1rem;
  --body-desktop: 1.125rem;
}

/* Global titles: LEFT */
.section-title {
  font-size: var(--title-mobile);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-align: left;
  justify-content: flex-start;
  display: block;
  color: #2f3135;
}

/* Subtitles: LEFT + consistent */
.section-subtitle {
  font-size: var(--subtitle-mobile);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
  color: rgba(47, 49, 53, 0.8);
  font-weight: 300;
}

/* Body copy consistency */
.content-text {
  font-size: var(--body-mobile);
  line-height: 1.6;
  font-weight: 300;
}

/* Responsive sizing for type system */
@media (min-width: 640px) {
  .section-title {
    font-size: var(--title-tablet);
  }
  .section-subtitle {
    font-size: var(--subtitle-tablet);
  }
  .content-text {
    font-size: var(--body-tablet);
  }
}

/* Desktop: FORCE all titles to exactly 3rem */
@media (min-width: 1024px) {
  .section-title {
    font-size: var(--title-desktop);
  }
  .section-subtitle {
    font-size: var(--subtitle-desktop);
  }
  .content-text {
    font-size: var(--body-desktop);
  }
}

/* =========================
   Hero Section
========================= */
@media (min-width: 1024px) {
  .hero-section {
    position: relative;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: -3rem;
  }
}

@media (max-width: 1023px) {
  .hero-section {
    position: relative;
    height: 40vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: -3rem;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("https://47115785.fs1.hubspotusercontent-na1.net/hubfs/47115785/hero%20(10).png");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1rem;
}

@media (min-width: 1024px) {
  .hero-icon {
    position: absolute;
    top: -10rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1023px) {
  .hero-icon {
    position: relative;
    height: 48px;
    display: flex;
    justify-content: center;
    top: -5rem;
  }
}

.icon-svg {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

.brand-name {
  font-family: "Brush Script MT", cursive;
  font-size: 3rem;
  margin-bottom: 0.25rem;
}

.adventure-club {
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  background-color: white;
  color: #8b4513;
  padding: 0.25rem 0.75rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 900;
}

/* Responsive SVG logo in hero (clamped) */
.hero-text {
  width: clamp(194px, 84vw, 522px);
  height: clamp(75px, 9vw, 120px);
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.hero-text img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* =========================
   Dividers (Top + Bottom)
========================= */
.divider-top,
.divider-bottom {
  position: relative;
  width: 100%;
  z-index: 20;
  line-height: 0;
}

.divider-top {
  height: 3rem;
}

.divider-bottom {
  height: 2rem;
  margin-top: 0;
  margin-bottom: 0;
  display: block;
}

.divider-img {
  width: 100%;
  height: 100%;
  display: block;
  vertical-align: bottom;
  object-fit: cover;
}

.divider-img--desktop {
  display: none;
}
.divider-img--mobile {
  display: block;
  position: relative;
  top: 1px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .divider-top {
    height: 4rem;
  }
  .divider-bottom {
    height: 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .divider-top {
    height: 5rem;
  }
  .divider-bottom {
    height: 4rem;
  }
}

@media (min-width: 1024px) {
  .divider-img--desktop {
    display: block;
    height: 6rem;
  }
  .divider-img--mobile {
    display: none;
  }

  .divider-top {
    height: 6rem;
  }

  .divider-bottom {
    height: 5rem;
  }
}

/* =========================
   Story Section
========================= */
.story-section {
  background-color: #2f3135;
  color: white;
  padding: 2.5rem 1rem;
  padding-top: 2.5rem;
}

/* =========================
   WHY BOOK Section
========================= */
.why-book-section {
  background: #f2f0e7;
  padding: 2.75rem 1rem;
}

.why-book-section .section-title {
  color: #2f3135;
  text-align: left;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* shared card shell */
.card {
  border-radius: 18px;
  overflow: hidden;
  /* box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); */
  aspect-ratio: auto;
}

.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  min-height: 220px;
}

.text-card {
  background: #b35a2c;
  color: white;
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 260px;
}

.text-card h3 {
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(1.35rem, 4.6vw, 2rem);
}

.text-card p {
  font-size: clamp(0.75rem, 2.7vw, 1.2rem);
  line-height: 1.55;
  opacity: 0.95;
  max-width: 22ch;
  font-weight: 300;
}

.image-card {
  min-height: 260px;
}

.natural-settings-banner {
  background-color: #151515;
  color: white;
  padding: 1rem;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.natural-settings-banner p {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* Grid Order Classes (used to alternate image/text positions) */
.order-1 {
  order: 1;
}
.order-2 {
  order: 2;
}
.order-3 {
  order: 3;
}
.order-4 {
  order: 4;
}
.order-5 {
  order: 5;
}
.order-6 {
  order: 6;
}
.order-7 {
  order: 7;
}
.order-8 {
  order: 8;
}

/* =========================
   Adventures Section
========================= */
.adventures-section {
  background-color: #f2f0e7;
  padding: .5rem 1rem;
}

.adventures-section .container {
  max-width: 79rem;
}

.adventures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Added 3D flip card structure */
.adventure-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: visible;
  aspect-ratio: 4 / 5;
  /* Added explicit min-height for mobile browsers that don't support aspect-ratio */
  min-height: 400px;
  cursor: pointer;
  transition: transform 0.2s;
  perspective: 1000px;
  /* Improved mobile touch behavior */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.adventure-card:hover {
  transform: scale(1.02);
}

.adventure-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.adventure-card.flipped .adventure-card-inner {
  transform: rotateY(180deg);
}

.adventure-card-front,
.adventure-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.adventure-card-back {
  transform: rotateY(180deg);
}

.adventure-card-front:hover,
.adventure-card-back:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.adventure-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adventure-overlay {
  position: absolute;
  inset: 0;
  /* Changed to gradient with lighter top and darker bottom for text readability */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.25) 100%);
}

/* Added darker overlay for flipped side */
.adventure-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75));
}

.adventure-overlay.hells-revenge {
  /* Updated gradient to be lighter at top, darker at bottom */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.3) 100%);
}

.adventure-overlay.rappelling {
  /* optional */
}

.adventure-overlay.zipline {
  /* Updated gradient to be lighter at top, darker at bottom */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.25) 100%);
}

.adventure-content {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: white;
}

/* Added spacing for back content */
.adventure-card-back .adventure-content {
  /* justify-content: space-between; */
}

.adventure-content h3 {
  font-size: 1.125rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.adventure-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 300;
}

.adventure-description {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

/* Updated button to work as link and prevent flip on click */
.book-now-btn {
  width: 100%;
  background-color: #b7562d;
  color: white;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.75rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  text-align: center;
  display: block;
}

.book-now-btn:hover {
  background-color: #9a4624;
}

/* =========================
   Specialists Section
========================= */
.specialists-section {
  background: #f2f0e7;
  padding: 1.5rem 1rem;
}

.specialists-section .container {
  max-width: 520px;
}

/* Keep titles LEFT (matches your global rule) */
.specialists-section .section-title {
  color: #2f3135;
  text-align: left;
}

.specialists-grid {
  grid_template_columns: 1fr;
  gap: 3rem;
  display: grid;
}

.specialist-item {
  text-align: center;
}

.specialist-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
}

.specialist-icon svg {
  width: 110px;
  height: 110px;
  display: block;
}

.specialist-icon img {
  width: 110px;
  height: 110px;
  display: block;
  object-fit: contain;
}

.specialist-item p {
  font-size: 1.05rem;
  font-weight: 900;
  color: #2f3135;
  line-height: 1.35;
  max-width: 24ch;
  margin: 0 auto;
}

/* =========================
   Footer
========================= */
.footer {
  background-color: #2f3135;
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 56rem;
  margin: 0 auto;
  padding-top: 1.5rem;
}

.footer-trademark {
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.625rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.footer-links a {
  color: white;
  text-decoration: underline;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #b7562d;
}

.footer-links span {
  color: rgba(255, 255, 255, 0.5);
}

/* =========================
   Responsive Styles (layout + components)
========================= */
/* Added intermediate breakpoint for better scaling between mobile and tablet */
@media (min-width: 500px) {
  .adventures-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .adventure-card {
    min-height: 320px !important;
  }

  .adventure-content {
    padding: 1rem;
  }

  .adventure-content h3 {
    font-size: 1rem;
  }

  .adventure-details {
    font-size: 0.8rem;
  }

  .adventure-description {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .book-now-btn {
    font-size: 0.875rem;
    padding: 0.625rem;
  }
}

@media (min-width: 640px) {
  .hero-section {
    min-height: 500px;
    margin-bottom: -4rem;
  }

  .icon-svg {
    width: 3rem;
    height: 3rem;
  }

  .brand-name {
    font-size: 4rem;
  }

  .adventure-club {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .story-section {
    padding: 3rem 1.5rem;
  }

  /* WHY BOOK */
  .why-book-section {
    padding: 3.25rem 1.5rem;
  }

  .benefits-grid {
    gap: 1.25rem;
  }

  .image-card img {
    min-height: 260px;
  }

  .text-card {
    min-height: 300px;
    padding: 1.85rem 1.6rem;
  }

  .natural-settings-banner p {
    font-size: 1rem;
  }

  .adventures-section {
    padding: 0rem 1.5rem;
  }

  /* Updated to keep 2 columns, not jump to 2 again */
  .adventures-grid {
    gap: 1.25rem;
  }

  /* Increased min-height for tablet */
  .adventure-card {
    min-height: 400px !important;
  }

  .adventure-content {
    padding: 1.5rem;
  }

  .adventure-content h3 {
    font-size: 1.25rem;
  }

  .adventure-details {
    font-size: 1rem;
  }

  .adventure-description {
    font-size: 1rem;
  }

  .book-now-btn {
    font-size: 1rem;
  }

  /* Specialists */
  .specialists-section {
    padding: 4.25rem 1.5rem;
  }

  .specialists-section .container {
    max-width: 640px;
  }

  .specialists-grid {
    gap: 3.25rem;
  }

  .specialist-icon,
  .specialist-icon svg,
  .specialist-icon img {
    width: 120px;
    height: 120px;
  }

  .specialist-item p {
    font-size: 1.1rem;
  }

  .footer {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    padding-top: 2rem;
  }

  .footer-trademark {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .footer-disclaimer {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .footer-links {
    gap: 1rem;
    font-size: 0.75rem;
    margin-top: 2rem;
  }
}

@media (min-width: 768px) {
  .hero-section {
    height: 80vh;
    margin-bottom: -5rem;
  }

  .story-section {
    padding: 4rem 2rem;
  }

  /* WHY BOOK */
  .why-book-section {
    padding: 4rem 2rem;
  }

  .benefits-grid {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .text-card {
    padding: 2.1rem 1.9rem;
  }

  .text-card p {
    max-width: 26ch;
  }

  .natural-settings-banner {
    padding: 1.5rem;
  }

  .natural-settings-banner p {
    font-size: 1.125rem;
  }

  .adventures-section {
    padding: 4rem 2rem;
  }

  .section-subtitle {
    margin-bottom: 2.5rem;
  }

  /* Updated to keep 2-column layout at 768px to prevent card cramping */
  .adventures-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Increased min-height for desktop */
  .adventure-card {
    min-height: 500px;
  }

  .adventure-content {
    padding: 1.75rem;
  }

  /* Specialists */
  .specialists-section {
    padding: 4.75rem 2rem;
  }

  .specialists-grid {
    gap: 3.5rem;
  }

  .specialist-icon,
  .specialist-icon svg,
  .specialist-icon img {
    width: 132px;
    height: 132px;
  }

  .specialist-item p {
    font-size: 1.1rem;
    max-width: 26ch;
  }

  .footer {
    padding: 2.5rem 2rem;
  }

  .footer-content {
    padding-top: 2.5rem;
  }

  .footer-trademark {
    font-size: 1rem;
  }

  .footer-disclaimer {
    font-size: 0.875rem;
  }

  .footer-links {
    gap: 1.5rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    height: 85vh;
    min-height: 600px;
    margin-bottom: -6rem;
  }

  .brand-name {
    font-size: 5rem;
  }

  .adventure-club {
    font-size: 0.875rem;
  }

  .hero-title {
    font-size: 5rem;
  }

  .story-section {
    padding: 5rem 2rem;
  }

  /* WHY BOOK: 4-up on desktop */
  .why-book-section {
    padding: 4.5rem 2rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .card {
    border-radius: 22px;
  }

  .image-card img {
    min-height: 320px;
  }

  .text-card {
    min-height: 340px;
    padding: 2.35rem 2rem;
  }

  .text-card h3 {
    font-size: 1.65rem;
  }

  .text-card p {
    font-size: 1.05rem;
    max-width: 26ch;
  }

  .natural-settings-banner {
    padding: 2rem;
  }

  .adventures-section {
    padding: 0rem 2rem;
  }

  .section-subtitle {
    margin-bottom: 3rem;
  }

  /* Changed to 3-column layout only at 1024px+ to prevent text overlap */
  .adventures-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Specialists: 4-up on desktop */
  .specialists-section {
    padding: 5rem 2rem;
  }

  .specialists-section .container {
    max-width: 1100px;
  }

  .specialists-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.75rem;
  }

  .specialist-icon,
  .specialist-icon svg,
  .specialist-icon img {
    width: 120px;
    height: 120px;
  }

  .specialist-item p {
    font-size: 1rem;
    max-width: 22ch;
  }

  .footer {
    padding: 3rem 0rem;
  }

  .footer-content {
    padding-top: 0rem;
  }

  /* Large screen specific grid ordering */
  .lg-order-1 {
    order: 1;
  }
  .lg-order-2 {
    order: 2;
  }
  .lg-order-3 {
    order: 3;
  }
  .lg-order-4 {
    order: 4;
  }
  .lg-order-5 {
    order: 5;
  }
  .lg-order-6 {
    order: 6;
  }
  .lg-order-7 {
    order: 7;
  }
  .lg-order-8 {
    order: 8;
  }
}

@media (min-width: 1280px) {
  .brand-name {
    font-size: 6rem;
  }

  .hero-title {
    font-size: 6rem;
  }

  .image-card img {
    min-height: 340px;
  }

  .text-card {
    min-height: 360px;
  }

  .specialist-icon,
  .specialist-icon svg,
  .specialist-icon img {
    width: 132px;
    height: 132px;
  }
}

/* =========================
   MOBILE: Match your checkerboard design
   - 2 columns
   - equal tile heights (so it looks like the reference)
   - lock typography so it doesn't blow up
========================= */
@media (max-width: 767px) {
  /* Only target the benefits-grid, not adventures-grid */
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    /* Equal tile height like the design */
    grid-auto-rows: clamp(170px, 46vw, 230px);
  }

  /* Every tile fills its grid row */
  .benefits-grid .card {
    height: 100%;
    border-radius: 18px;
  }

  /* Made these selectors more specific to only target benefits-grid cards */
  /* Kill the desktop min-heights on mobile so grid can control height */
  .benefits-grid .image-card,
  .benefits-grid .text-card {
    min-height: 0 !important;
  }

  /* Images fill the tile cleanly */
  .benefits-grid .image-card img {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: cover;
    object-position: center;
  }

  /* Text fills tile, with tighter padding like the design */
  .benefits-grid .text-card {
    height: 100%;
    padding: 14px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  /* Ensure adventure cards display properly on mobile */
  .adventures-section {
    display: block !important;
    visibility: visible !important;
  }

  .adventures-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .adventure-card {
    display: block !important;
    height: 400px !important;
    min-height: 400px !important;
    width: 100%;
  }

  .adventure-card-inner {
    display: block !important;
    height: 100% !important;
  }

  .adventure-card-front,
  .adventure-card-back {
    display: block !important;
  }
}
