/*--------Buffalo River Adventure Co. Style Guide ---- */

/*------Color Scheme 

#4b3520 - Dark Chocolate CTA Buttons
#f2f2f2 - Light bg used for primary nav
#4f4f4f - primary nav
#C2A878 - footer bg
-----*/


:root {
    --body-text: #383737;
    --body-text-inverse: #EBEBEF;
    --light-bg: #f2f2f2;
    --dark-bg: #416276;
    --cta-button-color:#4b3520;
    --accent-color: #416276;
    --dark-bg-opacity: rgba(2, 30, 1, 0.7);
    --standard-padding: 30px;
    --min-padding: 10px;
  }

html {
    color: var(--body-text);
    font-size: 1em;
    line-height: 1.5;
    box-sizing: border-box;
  }
  
  *,
    *:before,
    *:after {
      box-sizing: inherit;
    }
  
    /* #region global styles ------------- */

body {
    /* DESIGN TIME CONTAINER */
    /*max-width: 375px; */
    /*border: 3px solid; */
    font-size: 1rem;
    font-family: poppins;
    margin: 0px;
    padding: 0px;
}

a {
    color: var(--body-text);
    text-decoration: none;
  }

a:hover {
    text-decoration: underline;
}

  h1,h2,h3,h4 {
    font-family: merriweather;
   }
  
   /* Base (mobile-first) */
h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

/* Scale up for tablets and desktops */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
}

   /* ---- This makes our images responsive but they still need to be optimized ----*/
    img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
  }

   /* #endregion global styles---------- */

   /* #region utility ----------------*/

.container{
    width:80vw;
    margin: 0px auto 0px auto;
    max-width: 1000px;
  }

.cta-button {
    color: var(--body-text-inverse);
    text-decoration: none;
    background: var(--cta-button-color);
    padding: 1em;
    margin-top: 10px;
    border-radius: 8px;
   }

.img-right{
    float: right;
    margin: 10px 0 10px 20px;
    border: 4px double #20627d;
    padding: 5px;
}

.img-left {
    float: left;
    margin: 10px 20px 10px 0px;
    border: 4px double #20627d;
    padding: 5px;
}

.img-center {
    display: block;
    margin: 20px auto;
    border: 4px solid #20627d;
    padding: 5px;
}

.card-grid {
  display: flex;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 1rem;
  margin-bottom: 40px;
}

.card-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-item img {
  width: 100%;
  height: auto;
  display: block;
  
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

section.two-col-layout {
  max-width: 1200px;
  width: 80vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

   /* #endregion utility ------*/


/* #region main css*/

/* Hide checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger Icon */
.hamburger {
  font-size: 2rem;
  cursor: pointer;
  display: block;
  margin-left: auto;
}

/* Hide nav menu by default on mobile */
.nav ul {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

/* Show menu when checkbox is checked */
#menu-toggle:checked + .hamburger + .nav ul {
  display: flex;
}

/* Styled nav-button */
.nav-button {
  background-color: var(--accent-color);
  color: var(--body-text-inverse);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
}

.nav-button:hover {
  text-decoration: none;
  background: rgba(65, 98, 118, 0.9);
  transition: .4s;
}
/* Styled secondary nav-button */ 

/*
 .weather-button {
  background-color: #4A6D8C; 
  border: 1px solid white;
  padding: 6px 12px;
  border-radius: 4px;
  color: white;
  text-decoration: none; 
} 
 .weather-button:hover {
  background-color: #365776; 
}
*/

/* Top bar */
header.primary nav.secondary {
  font-size: .9rem;
  text-align: center;
  padding: 0.5rem 1rem;
  color: var(--body-text-inverse);
}



header.primary nav.secondary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    column-gap: 1rem;
    row-gap: 2rem;
    width: 100%;
    height: 2.9rem;
    background: var(--dark-bg);
  }

  nav.secondary a {
    color: var(--body-text-inverse);
    text-decoration: none;
  }

  nav.secondary a:hover {
    text-decoration: underline;
  }

  .phone::before {
    content: '';
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.053 15.053 0 006.59 6.59l2.2-2.2a1 1 0 011.11-.21 11.72 11.72 0 003.66.58 1 1 0 011 1v3.61a1 1 0 01-1 1A16 16 0 013 5a1 1 0 011-1h3.61a1 1 0 011 1 11.72 11.72 0 00.58 3.66 1 1 0 01-.21 1.11l-2.36 2.36z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
  }

  header.primary nav ul li {
    list-style-type: none;
  }

  header.primary nav ul li a {
    font-size: 1.3em;
  }

  header {
    background: var(--light-bg);
    position: relative;
  }
  
  header::after {
    content: '';
    clear: both;
    display: block;
  }
  
  header.primary h1 {
    float: left;
  }
  
  header.primary h1 a {
    background: url(../img/logo.png) no-repeat;
    display: block;
    width: 300px;
    height: 200px;
    margin: 0px auto 0px 10px;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
  }

header.primary div#primary-hero {
    background-image: url(https://digital-natives-rule.github.io/buffalo-river-adventure-co/assets/img/canoe-fun-475.jpg);
    height: 300px;
}

#featured-grid {
  padding: 2rem 1rem;
}

#featured-grid h2{
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Grid container */
.hero-photo-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.carousel img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

/* Create the hover overlay */
.image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #4b3520;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  z-index: 1;
}

.image-wrapper img {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 0;
  border-radius: 8px;
}

.image-wrapper:hover::after {
  opacity: 0.2;
}

.image-text {
  font-size: 1.2rem;
  font-weight: 600;
}

.about {
  display: block;
  padding: 1rem;
}

.about-img {
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

.about-content {
  text-align: left;
}

.info-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  border-radius: 4px;
}

.testimonial {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: #fafafa;
  margin-bottom: 1rem;
}

.testimonial header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-style: italic;
  color: #333;
}

.testimonial div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial span {
  display: block;
  font-size: 0.9rem;
  color: var(--light-bg);
}

.cta-section {
  background-color: var(--light-bg);
  color: var(--body-text);
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0.5rem;
  margin-top: 75px;
}

.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--cta-button-color);
  color: var(--body-text-inverse);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  font-weight: bold;
  border-radius: 0.375rem;
  margin: 0.5rem 0.25rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #241910;
  text-decoration: none;
}


#colophon {
  background: #C2A878;
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-left .site-name {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-left ul li {
  margin-bottom: 0.5rem;
}

.footer-right form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-right input,
.footer-right textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

/*  ABOUT PAGE */


/*rental subpages */

.intro {
  padding: 2rem 1rem;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.intro h1, .intro p {
  margin-bottom: 0.5rem;
  padding-left:40px;

}

.intro .subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body-text);
}

.info-feature {
  padding: 2rem 1rem;
}

.info-feature h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-feature figure {
  margin: 0 0 1.5rem 0;
}

.info-feature figcaption {
  background-color: #f0f0f0; /* light gray */
  padding: 0.5rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.info-feature ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.info-feature li {
  margin-bottom: 0.75rem;
}

/* Clearfix to fix float issues */
.info-feature::after {
  content: "";
  display: block;
  clear: both;
}



/* #endregion main css */

/* Weather and Water page */
.cards{
  display:flex; 
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap:2rem;
}

.flipthecard {
  background-color: transparent;
  width: 450px;
  height: 400px;
  perspective: 1000px;
  position: relative;
}

.frontcard, .frontcard2, .returntofrontcard {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
  top: 0;
  left: 0;
  border-radius: 12px;
  overflow: hidden;
}

.frontcard {
  background-color: var(--body-text);
  z-index: 2;
  transform: rotateY(0deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.frontcard2{
  background-color: var(--dark-bg);
  z-index: 2;
  transform: rotateY(0deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.returntofrontcard {
  background-color: white;
  color: #fff;
  transform: rotateY(180deg);
  z-index: 1;
  padding: 1em;
  box-sizing: border-box; 
  display:flex;
  align-items:center;
  justify-content: center;
  padding:0;
}

.flipthecard:hover .frontcard, .flipthecard:hover .frontcard2 {
  transform: rotateY(-180deg);
}

.flipthecard:hover .returntofrontcard {
  transform: rotateY(0deg);
  z-index: 2;
}

.flipthecard h3{
  color:white;
}

.returntofrontcard canvas{
  width: 100%;
  height:100%;
  display:block;
}


.chart-panel {
  background-color: #ffff;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width:450px;
  max-width: 100%;
  margin-bottom: 20px;
}

.chart-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem; 
  padding:1rem;
  justify-items: center;
}

#weather-table-container, .canoe-rental {
  background-color: #ffff;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding:20px;
  display:block;
  width:90%;
  max-width: 500%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}

#weather-table-container table, .canoe-rental table {
  border-collapse: collapse;
  width: 100%;
}

#weather-table-container th, #weather-table-container td, .canoe-rental th, .canoe-rental td{
  padding:20px;
  text-align:center;
  border-bottom: 1px solid #ddd;
}

.safety-tips {
  padding-bottom: 5rem;
}

.safety-tips th, .safety-tips td{
  border-bottom: 1px solid #ddd;
  text-align: center;
  padding: 10px 12px;
}
#weather-table-container tr:nth-child(even){
  background-color: var(--light-bg);
}

#weather-table-container tr:hover{
  background-color: #C2A878;
}

/* Back to top button ---*/
#backToTop{
  position: fixed;
  right:20px;
  bottom: 20px;
  color:white;
  background-color: transparent;
  height:50px;
  width:50px;
  border-radius: 50%;
  display:flex;
  float: right;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility:hidden;
  transition:  opacity 0.8s ease, visibility 0.4s;
}

#backToTop.show{
  opacity: 1;
  visibility: visible;

}
/* #region media queries -----------------------------------------*/

/* Tablet breakpoint (min-width: 768px) */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem; /* 48px */
  }

  h2 {
    font-size: 2.25rem; /* 36px */
  }

  h3 {
    font-size: 2rem; /* 32px */
  }

  header.primary div#primary-hero {
    background-image: url(https://digital-natives-rule.github.io/buffalo-river-adventure-co/assets/img/canoe-fun-1000.jpg);
    height: 500px;
  }

  .hero-photo-grid {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .hero img, #hero img{
    height:300px;
    width:325px;
  }

  .image-wrapper {
    flex: 1;
    max-width: 400px;
  }

  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2rem;
  }

  .about-img {
    width: 100%;
    height: auto;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    justify-content: start;
  }
  
  .testimonials-wrapper {
    display: flex;
    gap: 1rem;
    
  }

  .testimonial {
    flex: 1;
    margin-bottom: 0; /* remove bottom margin since they're side-by-side */
    
  }

 div.article-footer span {
  color:black;
 }
  .cta-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: left;
  }

  .cta-section h2 {
    margin-bottom: 0;
    font-size: 2rem;
  }

  .info-feature {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .info-feature h2 {
    font-size: 2.5rem;
  }

  /*
  .float-left {
    width: 30%;
    margin-right: 2rem;
  }
    */

  .info-feature ul {
    font-size: 1.1rem;
  }

  .intro {
    max-width: 50%;
    margin-left: 0;
    margin-right: auto;
    padding: 4rem 2rem;
  }

  .intro h2 {
    font-size: 2.5rem;
  }

  .intro .subtitle {
    font-size: 1.5rem;
  }

  .intro p {
    font-size: 1.1rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }

  .footer-left,
  .footer-right {
    flex: 1;
  }

  .footer-left {
    max-width: 300px;
  }

  .footer-right {
    max-width: 400px;
  }
}

/* Desktop layout (min-width: 1024px) */
@media (min-width: 1024px) {
  h1 {
    font-size: 4rem; /* 64px */
  }

  h2 {
    font-size: 3rem; /* 48px */
  }

  h3 {
    font-size: 2.5rem; /* 40px */
  }

  .hamburger {
    display: none;
  }

  .nav ul {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
    gap: 3.5rem;
  }

  #menu-toggle:checked + .hamburger + .nav ul {
    display: flex;
  }

  .secondary {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 2rem;
  }

  .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px, auto, 0px;
  }

  header.primary div#primary-hero {
    background-image: url(https://digital-natives-rule.github.io/buffalo-river-adventure-co/assets/img/canoe-fun-1700.webp);
    height: 400px;
  }

  .info-feature {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .info-feature h2 {
    font-size: 2.5rem;
  }

  .float-left {
    width: 30%;
    margin-right: 2rem;
  }

  .info-feature ul {
    font-size: 1.1rem;
  }


}

/* stay form format -- */
.hero-photo-grid + section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 40px;
  
}

.hero-photo-grid + section .booking-container {
  flex: 1 1 400px;
  max-width: 450px;
  min-height: 250px;
  overflow: visible;
  
 
}

.image-container img{
  height:450px;
  width:625px;
}

.amenities, #amenities{
  position: relative;
  
}

.amenities img, #amenities img{
  position: absolute;
  top:0;
  right:0;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  padding-top: 90px;
  padding-bottom: 60px;

  
}


.amenities h2, #amenities h2{
  margin:0 auto;
  color: #000000;
  display: block;
  width:100%;
  padding-bottom: 10px;
  padding-top: 60px;

  
}

.amenities ul, #amenities ul {
  flex: 1;
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 20px;

}

.amenities p, .wildlife-categories p{
  margin-bottom: 20px;
}


/* Wildlife page */

.two-col-grid{
  display:flex;
  flex-wrap: wrap;
  gap:20px;
  align-items: flex-start;
  width:100%;
}

.tipslist{
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.tipslist  li{
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  
}

.tipslist li p{

  margin: 0;
}
.wildlife-categories {
  display: flex;
  flex-wrap: wrap; 
  justify-content: flex-start; 
  gap: 2rem;
  padding: 0 2rem;
  position: relative;
 


}

.icon{
  width: 50px;
  height: 50px;
  vertical-align: middle;
  
}

.social-card-section h2{
  text-align: center;
}



 /*
.wildlife-categories > img {
  float: right;
  max-width: 300px;
  height: 300px;
  margin-left: 1rem;
  border-radius: 6px;
  object-fit: cover;
  align-self: flex-start; 
  margin-left: auto;
  margin-top: -50px;
  margin-right: 12rem;
  position: absolute;
  right:12rem;
  top:50px;
}


.wildlife-categories h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  margin-left: 0;
  margin-left: 12rem;
  flex-basis: 100%;
  text-align: left;
  

}



.wildlife-categories p{
  margin-left: 12rem;
}
  

.category-grid {
  display:flex;
  gap:1.5rem;
  margin-top: 200px;
  justify-content: space-between;
  margin: 0;
  

}

.category{
  flex: 1 1 30%;
  max-width: 30%;
  text-align: center;
}

.category figure{
  margin: 0;
}

.category img{
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px; 
}
*/

.carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.carousel img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}



/* #endregion media queries ----------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* This makes it responsive */
  gap: 20px;
  padding: 20px;
}

.card-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-item .grid-item {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-item .card-content {
  padding: 15px;
}

.card-item:hover {
  transform: translateY(-5px); /* Slight hover effect */
}

.card-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card-item p {
  font-size: 1rem;
  color: #555;
}
