/*HI AVISHKA :) LOVE U LOL */

/*Original Green Color Scheme:
#123524 - Darkest Green
#3E7B27 - Green
#85A947 - Light Green
#EFE3C2 - Beige
*/

/*UPDATED Blue/ Fijian Color Scheme:
#8BC0E0 - Light Blue (Color used to fade into image on homepage)
#0B619C - Main Blue (Heading Text, Link Hover Color)
#092A40 - Dark Blue (Footer background color at bottom of page)
*/

/* Defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: sans-serif;
  line-height: 1.6;
  background-color: #EFE3C2;
  font-family: 'Montserrat';
  overflow-x: hidden;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

/*Corner Ribbon Styling*/

.ribbon {
  position: fixed;
  background: radial-gradient(
  circle,
  #8BC0E0 0%,       /* center color */
  #8BC0E0 60%,      /* middle, still #8BC0E0 */
  #0B619C 100%      /* outer edge color */
);
  color: white;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  box-shadow: 0 0 0 999px #0B619C;
  clip-path: inset(0 -100%);
  z-index: 1002;
  padding: 10px 0px;
  font-size: 0.9rem;
}

.left {
  inset: 0 auto auto 0; /* top and left equal to 0 */
  transform-origin: 100% 0; /* OR top right */
  transform: translate(-29.3%) rotate(-45deg);
}

.right {
  inset: 0 0 auto auto; /* top and right equal to 0 */
  transform-origin: 0 0; /* OR top left */
  transform: translate(29.3%) rotate(45deg);
}

/* Header */
header {
  background: #225d81;
  color: #fff;
  padding: 1rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  padding-bottom: 20px;/* adjust based on image height */; /* Add padding to prevent content overlap */
  border-bottom: 1px solid #000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center; /* Center nav as a whole */
  position: relative;
}

/* Logo container */
.logo {
  position: absolute;
  left: 1rem;
}

.logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 0 white) drop-shadow(0 0 5px white);
}

/* Center nav-links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.navbar li:hover {
  animation: navBounce 0.5s ease forwards;
  will-change: transform;
}

.nav-links a:hover {
  background-color: #0B619C;
  color: white;
  border-radius: 4px; /* optional, looks nicer */
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

.menu-toggle-checkbox {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li {
  position: relative;
  text-align: center;
}

.nav-links a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
}

.dropdown-menu a {
  color: #225d81;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  color: #225D81;
  min-width: 150px;
  top: 100%;
  left: 0;
  z-index: 10;
}

.dropdown-menu {
  list-style: none;
}

.dropdown-menu li {
    background-color: #fff;
    color: #225d81;
}

.dropdown-menu li a:hover {
    background-color: #0B619C;
    color: white;
    border-radius: 0px;
}

.navbar .dropdown-menu li:hover {
  animation: none;
}

@keyframes navBounce {
    0% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(2px);
    }
    50% {
        transform: translateY(-4px); /* Move up a bit */
    }
    70% {
        transform: translateY(-2px);
    }
    100% {
        transform: translateY(0); /* Final position */
    }
}

@keyframes imgRotate {
    50% {transform: rotate(-1deg);}
}

.intro {
  margin: 0 auto;
  display: block;
  text-align: center;
  width: 80%;
}

.intro h1 {
  font-size: 40px;
}

.tagline {
  font-size: 25px;
  margin-top: -10px;
}

.divider {
  background-image: url('images/masi2.jpg');
  background-repeat: repeat-x;
  background-position: center;
  background-size: 200px auto;
  background-color: rgba(18, 53, 36, 0.85);
  width: 100%;
  height: 20px;
}

/* Hero Section */
.hero-split {
  display: flex;
  flex-wrap: nowrap;
  min-height: 70vh;
  width: 100%;
  overflow: hidden;
}

.hero-text {
  flex: 0 0 40%;
  background-color: #8BC0E0;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  text-align: left;
  z-index: 2;
  position: relative;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-button {
  background-color: #ffffff;
  color: #225d81;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  width: fit-content;
  cursor: pointer;
  z-index: 2;
  position: relative;
}

.hero-button:hover {
  background-color: #092A40;
  color: white;
}

.hero-image {
  flex: 0 0 60%;
  background: url('images/storefront.jpg') center center / cover no-repeat;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(
  to right,
  rgba(139, 192, 224, 1) 0%,
  rgba(139, 192, 224, 0.9) 10%,
  rgba(139, 192, 224, 0.6) 25%,
  rgba(139, 192, 224, 0.3) 40%,
  rgba(139, 192, 224, 0) 80%
);
  pointer-events: none;
  z-index: 2;
}

.featured-split {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background-color: #fff;
  text-align: center;
}

.featured-slideshow {
  flex: 0 0 60%;
  position: relative;
  overflow: hidden;
  background-color: #fff;
  text-align: center;
  padding: 2rem 1rem 5rem 1rem;
}

.featured-slideshow h2 {
  color: #0B619C;
  font-size: 2rem;
  padding-bottom: 2vh;
}

.slideshow-container {
  position: relative;
  width: 50vw;       /* Fixed width */
  height: auto;      /* Fixed height (adjust to your preferred ratio) */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide { 
  aspect-ratio: 16 / 9;
  display: none;
  transition: opacity 0.5s ease;
  position: relative;
}

.slide.active {
  display: block;
}

.slide p {
  background-color: rgba(34, 93, 129, 0.79);
  color: #fff;
  padding: 1rem;
  font-weight: bold;
  margin: 0;
}

.caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  color: white;
  background: rgba(0, 77, 0, 0.7); /* semi-transparent dark green */
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  text-align: center;
  z-index: 10; /* above image */
  box-sizing: border-box;
  border-radius: 0 0 12px 12px;
}

.featured-text {
  flex: 0 0 40%;
  background-color: #fff;
  color: #0B619C;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  text-align: left;
}

.featured-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.seo {
  padding: 1%;
}

.seo h2 {
  font-size: 2rem;
  color: #0B619C;
}

.facebook {
  padding-top: 0;
  padding: 2.5vw 5vw 5vw 5vw;
  background-color: #EFE3C2;
}

.facebook-intro {
  color: #0B619C;
  text-align: center;
  padding-bottom: 2%;
}

.facebook-intro h2 {
  font-size: 2rem;
}

.hr hr {
  color: #092A40;
}

/*CONTACT PAGE STYLES*/

.contact-grid-container {
  background: #fff;
  min-height: 100vh;
  max-width: 100vw;
  box-sizing: border-box;
}

.map {
  text-align: center;
  margin: 0 auto;
  width: 95%;
  padding: 10px 0px;
}

.map p {
  width: 80%;
  text-align: center;
  margin: 0 auto;
}


.contact-section {
  background-color: #EFE3C2;
  padding: 3rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.contact-section-heading {
  padding-top: 1rem;
  background-color: white;
  text-align: center;
  color: #092A40;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-form label {
  font-weight: bold;
  color: #092A40;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: white;
}

.contact-form {
  width: clamp(320px, 70vw, 900px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label { width: 100%; }
.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  box-sizing: border-box;
}

.contact-form button {
  background-color: #0B619C;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  width: fit-content;
  align-self: center;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #2f5e1e;
}

.contact-grid {
  display: block;
  width: 100vw;
  padding: 0;
}

.contact-info {
  width: 100%;
}

/* Individual Column Styles */
.contact-info,
.map,
.contact {
  background-color: white;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 80vw;
  margin: 0 auto;
}

.info-item {
  margin: 0 auto;
  width: 80%;
}

.contact h2, .contact-info h2 {
    color: #092A40;
    text-align: center;
}

/* Map section */
.map h2, .contact-info h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #092A40;
}

/*Contact Info Column Styles*/

.contact-info {
  display: flex;
  flex-wrap: wrap;              /* Wraps on smaller screens */
  justify-content: center;      /* Centers cards */
  align-items: stretch;         /* Makes cards equal height */
  gap: 2rem;                    /* Space between cards */
  padding: 2rem;
  margin: 0 auto;
  width: 80vw;
  background-color: #fff;       /* Use #fff, or change to transparent if preferred */
  text-align: left;
}

.contact-info, .map {
    border-bottom: 1px solid black;
}

/* Style each info-item like a card */
.contact-info .info-item {
  flex: 1 1 250px; /* grow/shrink with a minimum of 250px */
  background: #8BC0E0;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-width: 0; /* helps avoid overflow */
}

.contact-info h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #092A40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info p {
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}


/*Store Hours Table Styles*/
.store-hours {
  padding: 2rem;
  background-color: #EFE3C2;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.store-hours h2 {
  font-size: 1.75rem;
  color: #092A40;
  margin-bottom: 1rem;
  text-align: center;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-top: 0.5rem;
  table-layout: fixed;
}

.hours-table td {
  padding: 0.3rem 0.4rem;
  color: #092A40;
}

.hours-table td:first-child {
  font-weight: bold;
}

/*Scroll Animations*/
/* Base hidden state */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When visible */
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}


/*ABOUT PAGE STYLES*/

.about-container {
  background-image: url(images/palms.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

.about {
  width: 100vw;
  min-height: 100vh;
  padding: 2vh 2vh 5vh 2vh;
  justify-content: center;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 10%,
    rgba(255, 255, 255, 1) 20%,
    rgba(255, 255, 255, 1) 80%,
    rgba(255, 255, 255, 0.6) 90%,
    rgba(255, 255, 255, 0) 100%
  );
}

.about h2, .google-reviews h2 {
  font-size: 2rem;
  text-align: center;
  padding: 1vh;
  color: #0B619C;
}

.about p {
  width: 60vw;
  min-width: 250px;
  max-width: 750px;
  margin: 0 auto;
  font-size: 1rem;
  text-indent: 3vw;
}

.about img {
  margin: 0 auto;
  border-radius: 25px;
  padding: 2vh;
  display: block;
  max-width: 80vw;
  height: auto;
  box-shadow: 50px 50px 80px charcoal,
}

.about img:hover {
  animation: imgRotate 0.5s ease forwards 2;
  will-change: transform;;
}

.google-reviews {
  width: 100vw;
  padding: 2vh 2vh 5vh 2vh;
  margin: 0 auto;
  text-align: center;
  background-color: #EFE3C2;
}

.reviews-tagline {
  font-size: 1.2rem;
  width: 30vw;
  margin: 0 auto;
}

.social-footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  background-color: #092A40;
  padding: 0.2rem 0;
  text-align: center;
  z-index: 999;
}

.social-footer a {
  color: white;
  margin: 0 1rem;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.social-footer a:hover {
  color: #0B619C;
}

/*The small section immediately below is for changes to desktop view that do NOT affect mobile or tablet view*/

@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .close-menu {
    display: none;
  }
}


/*Responsive Tablet and Mobile*/
@media (max-width: 768px) {

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 100% of the viewport height */
}

  /* Show hamburger icon */
    .menu-toggle {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    position: relative;
    color: #fff;
    border: none;
    margin-left: 80vw;
  }

  .ribbon {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    height: auto;
    min-height: 100vh;
    width: 250px;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  }

  .menu-toggle-checkbox:checked ~ .nav-links {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    text-align: left;
    padding-left: 1.5rem;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.75rem 0;
    color: #0B619C;
  }

  .nav-links a:hover {
    margin-left: -1.5rem;
    padding-left: 1.5rem;
    border-radius: 0;
  }

  .nav-links li:hover {
    width: 100%;
    padding-left: 1.5rem;
    animation: none;
  }

  .dropdown-menu {
    display: none;
    position: relative !important;  /* important to keep it in flow */
    background: none;
    margin-top: 0.5rem; /* add some spacing */
  }


  .dropdown-menu a:hover {
    margin-left: -3rem;
    padding-left: 3rem;
    /*margin-right: 1.5rem;*/
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown {
    display: block;
  }

  .dropdown > a {
    display: block;
    cursor: pointer;
  }

  .arrow {
    font-size: 0.75em;
    margin-left: 0.3em;
    transition: transform 0.3s ease;
  }

/* Rotate arrow when open (mobile JS sets `.open`) */
  .dropdown.open > a .arrow {
    transform: rotate(180deg);
  }

  .close-menu {
    text-align: right;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
  }

  .close-menu label {
    cursor: pointer;
    color: #0B619C;
    display: inline-block;
  }

  .close-menu label:hover {
    color: #000;
  }

  .hero-split {
    flex-direction: column;
    height: auto;
  }

  .hero-text {
    min-height: 20vh;
    padding: 2rem;
    text-align: center;
    background-color: #8BC0E0;
  }

  .hero-image {
    min-height: 40vh;
  }

  .hero-button {
    display: none;
  }

  .hero-image::before {
    content: "";
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
  to bottom,
  rgba(139, 192, 224, 1) 0%,
  rgba(139, 192, 224, 0.8) 15%,
  rgba(139, 192, 224, 0.5) 25%,
  rgba(139, 192, 224, 0.3) 40%,
  rgba(139, 192, 224, 0.1) 60%,
  rgba(139, 192, 224, 0) 100%
) !important;
    pointer-events: none !important;
    z-index: 999 !important;
  }

  .tagline {
    font-size: 4vw !important;
  }

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

  .hero-text h1 {
    font-size: 7vw !important;
  }

  .hero-text p {
    font-size: 3vw !important;
  }

  .hero-button {
    margin: 0 auto;
  }

  .featured-split {
    flex-direction: column;
    height: auto;
  }

  .featured-text,
  .featured-slideshow {
    flex: 1 1 100%;
    height: 50vh; /* or adjust as needed */
  }

  .slideshow-container {
    position: relative;
    width: auto;
    height: auto;      /* Fixed height (adjust to your preferred ratio) */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .contact-grid {
    display: block !important;
    width: 100vw !important;
    padding: 0 !important;
    background-color: #white;
    overflow: hidden;
  }

  .contact-info, .map, .contact {
    padding: 5vw;
    margin: 0;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid #092A40;
  }

  .reviews-tagline {
    width: 65vw;
  }

    /* Assuming your contact form or wrapper is inside this container */
  .contact-grid, .contact-grid-container, .contact {
    display: flex;
    flex-direction: column;
    align-items: center;       /* horizontal centering */
    justify-content: flex-start; /* adjust vertical alignment */
    padding: 1rem;             /* consistent spacing */
  }

  /* Optional: center-align text within child elements */
  .contact-grid-container, .contact {
    text-align: center;
  }

  .contact input,
  .contact textarea,
  .contact button {
    width: 100%;                /* make form fields fill width neatly */
  }
}
