/* Modern CSS Reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scrollbar-gutter: static;
}

body {
  min-height: 100svh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ol,
ul {
  list-style: none;
}

a {
  text-decoration-skip-ink: auto;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* End of CSS reset */

:root {
    --primary:#1A3A5C;
    --hovers:#2C5282; 
    --accent1:#5B9BAA;
    --accent2:#7FBFCC;
    --accent3:#C8A97A;
    --accent4:#E8D8BE;
    --sagegreen:#DBE1D7;
    --background:#F5F2EC;
    --whatsapp:#128C7E;
    --text:#3a3a3a;
    --white:#FFF;
    --alt-background:#F8F7F3;
    --alt2-background:#E2E3E4;
    --black:#000;
    --container-width:1280px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-script: 'Dancing Script', cursive;
    --font-body: 'Lato', sans-serif;
}

.primary{
  color:var(--primary);
}

.secondary{
  color:var(--accent1);
}

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

body:has(dialog[open]) {
  overflow: hidden;
}

dialog:not([open]) > * {
  display: none;
}

body{
    background-color:var(--sagegreen);
    font-family: var(--font-body);
    font-size:clamp(1.125rem, 1.036rem + 0.238vw, 1.25rem);
    line-height: 1.4em;
}

h1{
  font-size: clamp(2rem, 0.929rem + 2.857vw, 3.5rem);
  line-height: 1.2em;
}

h2{
  font-size:clamp(1.6rem, 0.6rem + 2.667vw, 3rem);
  line-height: 1.1em;
}

h3{
  font-size:clamp(1.3rem, 0.8rem + 1.333vw, 2rem);
  line-height: 1em;
}

html{
    font-size:100%;
}

header, main, footer{
    width: 100%;
    display: block;
    overflow: hidden;
}

.cta{
  display:flex;
  gap:0.5rem;
  flex-direction: row;
  justify-content: space-evenly;
}

.cta a{
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta a:last-child{
  background:linear-gradient(180deg, #1a9e8f 0%, #0f7063 100%)
}

button,.button,a.button{
    padding:0.5rem 1.25rem;
    cursor: pointer;
    outline: none;
    border:none;
    min-width: 12rem;
    border-radius: 0.25rem;
    background: var(--primary);
    color:var(--white);
    display: inline-flex;
    justify-content: space-evenly;
    gap:0.5rem;
    text-decoration: none;
    transition: transform 150ms ease, filter 150ms ease;
}

a:hover{
   cursor: pointer; 
}

button:hover,.button:hover,a.button:hover{
    transform: translateY(-2px);
    filter: brightness(1.1);
}

header{
    background:var(--sagegreen);
    z-index: 20;
    position: fixed;
    top: 0;
}

header.sticky{
  background:rgba(219,225,215,1);
  box-shadow: 0 0 5px 3px rgba(0,0,0,.3);
}

section{
    width:100%;
}

.container{
    width: 100%;
    margin:0 auto;
    max-width: var(--container-width);
}

.cflex{
  display:flex;
  gap:1.5rem;
}

div p:first-of-type{
  margin-top:1.5rem;
}

p{
  padding: 0;
  margin-bottom: 1rem;
}

.nav{
    padding:0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height:190px;
    transition: height 300ms ease;
}

header:not(.sticky) .nav .cta{
  flex-direction: column;
}

.sticky .nav{
  height: 80px;
}

.logo{
  text-decoration: none;
}

.logo img{
  width: 100%;
  transition-duration: 300ms;
}

.logo-small {
  display: none;
}

.logo-large {
  display: block;
}

.menu{
    display: flex;
    flex-wrap: wrap;
    column-gap:1rem;
}

.menu a{
    text-decoration: none;
    display: block;
    padding:0.125rem 0.25rem;
    font-size:1.125rem;
    position: relative;
}

.menu a:hover::before{
  position: absolute;
  content:'';
  left:0;
  bottom:-0.75rem;
  width: 100%;
  border-bottom:5px solid var(--accent1);
}

.hero{
    position: relative;
    min-height: calc(85svh - 200px);
    overflow: hidden;
    margin-top:190px;
    background:var(--primary);
}

.hero img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
}

.hero img:first-child{
    opacity: 1;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 11;
  width: 100%;
  height: 100%;
}

.hero-intro{
  max-width: var(--container-width);
  padding:0 3%;
  height: 100%;
  width: 100%;
  margin:0 auto;
  display: flex;
  gap:1.5rem 0;
  flex-direction: column;
  justify-content:center;
  color:#FFF;
  text-shadow: 0 5px 5px var(--hovers),5px 0px 5px var(--hovers);;
}

.hero-intro span{
  display: block;
}

.subtitle-wrap {
  position: relative;
  height: 1.8em;
  overflow: hidden;
}

.subtitle {
  font-style: italic;
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  transform: scale(0.75) translateY(14px);
  transform-origin: left bottom;
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: transform, opacity;
}

.subtitle.visible {
  opacity: 1;
  transform: none;
}

.subtitle.exit {
  opacity: 0;
  transform: scale(0.75) translateY(-14px);
  transform-origin: left top;
}

.hero-buttons{
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-buttons a{
  display: inline-flex;
  text-align: center;
  border-radius: 0.5rem;
  padding:0.5rem 1.5rem;
  gap:0 1rem;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  z-index: 12;
  text-shadow: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 150ms ease, filter 150ms ease;
}

.hero-buttons a::before{
   border-radius:inherit;
}

.hero-buttons a:hover{
   transform: translateY(-2px);
   filter: brightness(1.1);
}

.hero-buttons a *{
  position: relative;
  z-index: inherit;
  display: inline-block;
  color:var(--white);
}

.welcome{
  padding:1rem;
  background-color: #FAF5F6;
  padding-block:3.5rem;
}

.welcome img{
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.introcontent{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:.5rem;
  font-size:1.2rem;
  line-height: 1.4em;
}

section h2{
  font-family: var(--font-script);
}

.whatsapp-button{
  color:#E2E3E4;
  position: relative;
  overflow: hidden;
  border:none;
  background:linear-gradient(180deg, #1a9e8f 0%, #0f7063 100%);
}

.whatsapp-button::before{
  position: absolute;
  content:'';
  inset: 0;
  height: 100%;
  border-radius: inherit;
  z-index: 11;
}

.booking-button{
  flex-direction: column;
}

.booking-button::before{
  position: absolute;
  content:'';
  inset: 0;
  background-color:var(--primary);
  z-index: 11;
}

.house{
  background:#DBE1D7;
}

.house .container{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  padding: 3.5rem 1rem;
}

.house .container span{
  font-size:clamp(1rem, 0.911rem + 0.238vw, 1.125rem);
}

.house .container > *{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap:.5rem;

  & svg{
      max-width: calc(10vh - 1.5rem);
      min-width: 24px;
      height: auto;
      margin-bottom:.5rem;
      flex:1;
      background:var(--alt-background);
      padding:.75rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      border-radius: .5rem;
  }
}

section{
  scroll-margin-top:4rem;
}

.gallery{
  background:#FAF5F6;
  padding:3.5rem 1rem;
}

.activities{
  background: var(--alt2-background);
  padding:3.5rem 1rem;
}

.contact{
  background:var(--hovers);
  color:var(--white);
  padding:3.5rem 1rem;
}

.contact h2{
  color:inherit;
}

.under{
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.under::after{
  content:"";
  position: absolute;
  bottom:0;
  left:0;
  width: 100%;
  margin-bottom:-4px;
  border-bottom:2px solid var(--white);
}

.tdo-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tdo-eyebrow {
  font-style: italic;
  color: #0F6E56;
  letter-spacing: 0.04em;
  margin: 0 0 1.5rem;
  text-align: center;
}

.tdo-header h3 {
  text-align: center;
}

.tdo-header h2 {
  font-weight: 500;
  margin: 0 0 10px;
  color: #1a2e2a;
  text-align: center;
}

.tdo-intro {
  color: #555;
  margin: 0 0 2.5rem;
  line-height: 1.6;
  text-align: center;
}

/* Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "beaches beaches safari"
    "rivers  cruises cruises";
  gap: 1.5rem;
}

.card-beaches { grid-area: beaches; }
.card-safari  { grid-area: safari; }
.card-rivers  { grid-area: rivers; }
.card-cruises { grid-area: cruises; }

/* Cards */
.card {
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card.teal  { background: var(--sagegreen); border-color: var(--accent1); }
.card.green { background: var(--accent4); border-color: var(--accent3); }

/* Icon */
.card-icon {
  width: 28px;
  height: 28px;
}

.card.large .card-icon {
  width: 34px;
  height: 34px;
}

.teal  .card-icon { stroke: var(--primary); }
.green .card-icon { stroke: var(--primary); }

/* Text */
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.card.large .card-title { font-size: 18px; }

.teal  .card-title { color: var(--primary); }
.green .card-title { color: var(--primary); }

.card-desc {
  line-height: 1.6;
  margin: 0;
}

.teal  .card-desc { color: var(--primary); }
.green .card-desc { color: var(--primary); }

/* Card Image Banner */
.card-image {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin: -1.5rem;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.card-image .card-title {
  position: relative;
  z-index: 2;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--white);
  width: 100%;
  padding: 0 1.5rem;
}

.card.large .card-image .card-title {
  font-size: 1.2rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding:1rem .5rem;
}

/* Mobile */
@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "beaches"
      "safari"
      "rivers"
      "cruises";
  }

  .card-image{
    height: 200px;
  }
}

.photogallery {
  display: flex;
  flex-wrap: wrap;
  margin: 0.2em;
  padding: 0;
  list-style-type: none;
}
.photogallery::after {
  content: "";
  display: block;
  flex-grow: 10;
}
@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  .photogallery {
    flex-direction: row;
  }
}
.photogallery li {
  flex-grow: 1;
  height: 300px;
  margin: .75rem;
}
@media (max-aspect-ratio: 1/1) {
  .photogallery li {
    height: 30vh;
  }
}
@media (max-height: 480px) {
  .photogallery li {
    height: 80vh;
  }
}
@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  .photogallery li {
    height: auto;
    width: 100%;
  }
}
.photogallery li img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  .photogallery li img {
    width: 100%;
    max-height: 75vh;
    min-width: 0;
  }
}
.photogallery li img.lazyload {
  opacity: 0;
}
.photogallery li img.lazyload.loaded {
  opacity: 1;
}

header.sticky .logo-large {
  display: none;
}

header.sticky .logo-small {
  display: block;
}

.gallery-link {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: zoom-in;
  border: none;
  background: none;
  padding: 0;
}

.gallery-link img {
  width: 100%;
  height: 100%;
  border-radius: .5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.gallery-link:hover img {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.image-dialog {
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: none;
  position: fixed!important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.image-dialog button{
  min-width: auto;
}


.image-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.dialog-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding: .5rem;
  overflow: auto;
  min-height: 0;
  position: relative;
}

.image-dialog img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

.image-caption {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  padding: 8px 20px;
  border-radius: 20px;
  max-width: calc(100% - 30px);
  margin: 0;
  z-index: 10;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1000;
  pointer-events: auto;
  line-height: 1;
}

.dialog-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.dialog-close:active {
  transform: scale(0.95);
}

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%)!important;
  width: 4rem;
  height: 4rem;
  padding: 0;
  margin-top:0;
  padding-bottom:5px;
  border: none;
  border-radius: 4px;
  font-size: 3rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color:var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  pointer-events: auto;
  user-select: none;
}

.nav-arrow:hover {
  filter: brightness(1.1);
  transition: scale 100ms ease-in-out;
  transform: none;
  scale:1.05;
}

.nav-arrow:active {
  opacity: 0.8;
}

.nav-prev {
  left: calc((100vw - 90vw) / 2 - 20px);
}

.nav-next {
  right: calc((100vw - 90vw) / 2 - 20px);
}

.contactlayout{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}


.contactlayout > div{
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap:.75rem;

  & svg{
      max-width: calc(10vh - 1.5rem);
      min-width: 24px;
      height: auto;
      margin-bottom:.5rem;
      fill:var(--primary);
      background:var(--alt-background);
      padding:.75rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      border-radius: .5rem;
  }

  & img{
      max-width: calc(10vh - 1.5rem);
      min-width: 24px;
      height: auto;
      margin-bottom:.5rem;
      background:var(--alt-background);
      padding:.15rem;
      border-radius: .5rem;
  }
}

@media (max-width : 1400px) {
  .house .container{
      grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width : 1280px) {

  .house .container{
      grid-template-columns: repeat(4, 1fr);
  }

  .contactlayout{
      grid-template-columns: repeat(2, 1fr);
      gap:1.5rem;
  }

  .hero{
    margin-top:80px;
  }

  .nav{
    height: 80px;
    padding-inline: 1rem;
  }

  .logo-small {
    display: block;
  }
  
  .logo-large {
    display: none;
  }

  .nav .cta, header:not(.sticky) .nav .cta{
    flex-direction: row;
  }

  .cta a{
    min-width: auto;
    padding:0.25rem 0.5rem; 
  }

  .logo img{
    min-height:24px;
  }

  .menu a{
    font-size:1.1rem;
  }
}

@media (max-width : 968px) {
  
  .menu{
    display: none;
  }

  .cta{
    flex-wrap: wrap;
  }

  .cta a{
    white-space: nowrap;
    min-width: auto;
  }

  .welcome .cflex{
    flex-direction: column-reverse;
  }

  .welcome img{
    max-height: 40vh;
    margin-inline: auto;
  }

  .house .container{
      grid-template-columns: repeat(2, auto);
      gap:1rem;
      padding-inline: 1rem;
  }

  .house .container > *{
    flex-direction: row;
    gap:.5rem;
    justify-content: flex-start;

    & svg{
        max-width: calc(8vh - 1.5rem);
        margin-bottom:0px;
        padding:.5rem;
    }
  }
}

@media (max-width : 768px) {

  .house .container svg{
      max-width: 36px;
  }
}

@media (max-width : 500px) {
  .cta a div{
    display: none;
  }

  .hero-buttons{
    flex-direction: column;
  }

  .hero-buttons a{
    width:100%;
  }

  .house .container{
      grid-template-columns: repeat(1, 2fr);
  }

  .contactlayout{
      grid-template-columns: repeat(1, 1fr);
      gap:1.5rem;
  }
}



