/* General Styles */
:root {
    --primary-blue: #0077be;
    --primary-red: #d32f2f;
    --accent-teal: #219ebc;
    --white: #ffffff;
    --light-gray: #f4f4f4;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* Promotion  */
.promo-banner {
    background-color: #d32f2f; /* A bold, professional red */
    color: #ffffff;            /* Clean white text */
    text-align: center;
    padding: 10px 0;           /* Vertical spacing */
    width: 100%;
    font-family: sans-serif;   /* Matches standard web fonts */
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.promo-banner p {
    margin: 0;                 /* Removes default paragraph margins */
    padding: 0;
}

.promo-banner strong {
    text-transform: uppercase; /* Makes the '20% OFF' pop */
}



/* Navigation */
header {
    background: #ffffff;         /* Changed to solid white */
    color: var(--dark-navy);     /* Text defaults to dark */
    padding: 0.5rem 0;           /* Slightly tighter padding for sticky bars */
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Adds a subtle shadow so the white bar stands out against the page */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
    height: 70px;                /* Consistent height for the bar */
}

/* Logo Image Styling */
.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;                /* Standard height for menu logos */
    width: auto;
    display: block;
}

/* Updated Link Colors for White Background */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    color: var(--dark-navy);     /* Links now dark navy to be readable */
    text-decoration: none;
    font-weight: 500;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent-teal);   /* Keeps your branding on hover */
}

/* Maintain button visibility */
.btn-primary {
    background: var(--accent-teal);
    color: white !important;     /* Ensures "Book Now" stays white on the teal button */
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
}

.btn-book {
    background: gold;
    color: black !important;     /* Ensures "Book Now" stays white on the teal button */
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
    height: 3rem;
}



/* Hero Section */
.hero-container {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr; 
    grid-template-columns: 1fr 80px 1fr;
    height: 70vh;
    background: url('./LadyGoDiver_scuba_diving_boat.webp') no-repeat center center/cover;
    text-align: left;
    align-items: center; /* Centers content vertically within its assigned row */
}


.hero-content {
  /* This forces the text into the top 1/3 of the hero image */
  grid-column: 1; 
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
}

.hero-title {
  font-size: 2.5rem;
  margin: 2rem; 
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  color: white;
}

.hero-subtitle {
    grid-column: 3;
    grid-row: 2;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white;
    margin-bottom: 1.5rem; /* Space before the CTA button */
}


/* Button Container */
.hero-btns {
    display: flex;
    gap: 15px;
}

/* Basic Button Styles */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.vibrant-hero-btn {
  /* Colors: A rich gold gradient */
  background: linear-gradient(135deg, #FFD700 0%, #FFB800 100%);
  color: black;
  
  /* Typography */
  font-family: 'Arial', sans-serif; /* Or your site's font */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  
  /* Shape & Sizing */
  padding: 16px 32px;
  border: none;
  display: inline-block;
  cursor: pointer;
  
  /* Shadow for "Lift" and Contrast */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 
              0 0 10px rgba(255, 215, 0, 0.4);
  
  /* Smooth transition for hover effects */
  transition: all 0.3s ease;
}

/* Hover State: Grows slightly and brightens */
.vibrant-hero-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #FFEC8B 0%, #FFD700 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 
              0 0 20px rgba(255, 215, 0, 0.6);
}

/* Active State: "Pushed" effect when clicked */
.vibrant-hero-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #0077be;
    color: #0077be;
}

@media only screen 
  and (min-width: 360px) 
  and (max-width: 412px) 
  and (orientation: portrait) {

    .hero-container {
        height: 100vh; 
        padding: 3rem 1.5rem; /* More top/bottom padding for thumb-reach */
        
        /* The grid setup */
        display: grid;
        grid-template-rows: auto 1fr auto;
        justify-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: .85rem;
        max-width: 90%; /* Prevents text from touching the screen edges */
        margin: 0 auto;
        line-height: 1;
    }

    .hero-subtitle {
       visibility: hidden;
    }

    .vibrant-hero-btn {
        width: 100%; /* Make the button full-width for easier tapping on mobile */
        max-width: 300px;
        padding: 15px;
    }
}




/* OVERLAP THE HERO SECTION */
.overlap-section {
  position: relative;
  z-index: 10;          /* Forces it to stay on top of the hero */
  margin-top: -100px;   /* Moves the entire section UP 400px */
  width: 100%;
  pointer-events: none; /* Allows clicking "through" the empty space to the hero */
}

.overlap-container {
  max-width: 1632px;    /* Matches your image width */
  margin: 0 0 0 auto;   /* Right justifies the container */
  text-align: right;    /* Right justifies the image inside */
}

.overlap-img {
  display: inline-block;
  max-width: 100%;      /* Ensures it stays responsive on smaller screens */
  height: auto;
  aspect-ratio: 1632 / 550;
  pointer-events: auto; /* Re-enables clicking on the image itself */
  
  /* Optional: adds a nice shadow to define it against the hero */
  box-shadow: 0 15px 35px rgba(0,0,0,0.2); 
}


/* Container to keep things aligned and responsive */
.charters .container {
    display: flex;
    align-items: center; /* Centers content vertically */
    flex-wrap: wrap;
    gap: 40px; /* Space between image and text */
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure image takes up roughly half and stays responsive */
.charter-image {
    flex: 1 1 400px; /* Grows, shrinks, and starts at 400px */
}

.charter-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Content styling */
.charter-content {
    flex: 1 1 400px;
}

.charter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.charter-content p {
    margin-bottom: 1rem;
}

.charter-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.charter-content li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

/* Subtle custom bullet point */
.charter-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Button Styling */
.btn-primary {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* TRAINING SECTION */
.training-section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  min-height: 500px; /* Adjust based on your image height */
  align-items: center;
  
  /* Background Image Setup */
  background-image: url('./padi_scuba_training.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px;
}

.training-content {
  /* This stays in the first column by default */
  max-width: 800px; 
  color: white;
}

.training-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.training-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.training-list {
  margin-bottom: 2rem;
  padding-left: 20px;
}

.training-list li {
  margin-bottom: 0.5rem;
}


@media screen and (max-width: 360px) {
    .training-section {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Slightly smaller gap */
        padding: 1.5rem; /* Slightly smaller padding */
        text-align: center;
        background-image: url('./padi_scuba_training-600x400.webp');
        background-size: 100% 100%; /* Fills the box without the 'zoom' of cover */
        background-position: center;
    }


    .training-spacer {
        grid-row: 1; /* Moves the spacer/image to the very top */
        width: 100%;
        max-width: 500px; /* Limits the size as requested */
        aspect-ratio: 1 / 1; /* Ensures it stays 500x500 square */
        margin: 0 auto; /* Centers the square on the screen */
    }

    .training-content {
        grid-row: 2; /* Moves the text content below the image */
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the list and button */
    }

    .training-list {
        text-align: left; /* Keeps list items readable while centered in the container */
        margin-bottom: 1.5rem;
    }

    .vibrant-hero-btn {
        display: inline-block;
        width: fit-content;
    }
}



/* REEF AND WRECK */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 50px 5%;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.reef p, 
.wreck p {
        margin-bottom: 1rem;
    }


@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        /* Single column */
    }

    .reef,
    .wreck {
        display: grid;
    }

    

    /* Specific Mobile Order: Image at bottom (per your h1, p, button, image request) */
    .image-box {
        grid-row: 2;
    }

    .content-box {
        grid-row: 1;
        display: flex;
        flex-direction: column;
        text-align: center;
        
    }
}



/* BULK SAVINGS TRIP CARD */

.bulk-save-banner {
  width: 100%;
  background-color: var(--primary-red);
  color: #ffffff;
  /* Increased padding from 20px to 30px to add 20px total height */
  padding: 30px 0; 
  font-family: 'Arial Black', Gadget, sans-serif;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.banner-text h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 1.2;
}


.banner-text p {
  margin: 5px 0 0;
  font-size: 15px;
  font-family: sans-serif;
  font-weight: normal;
}

.save-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #e63946;
  text-decoration: none;
  padding: 14px 32px; /* Slightly larger button to match height */
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
  border: 2px solid #ffffff;
}

.save-btn:hover {
  background-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .banner-container {
    text-align: center;
    justify-content: center;
    flex-direction: column;
  }
}




/* ABOUT SECTION */
.about {
    padding: 5rem 0;
}

/* Grid Layout for Desktop */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 4rem;
    align-items: center;
}


/* Image Handling */
.about-img {
    width: 100%;
    height: 400px; /* Adjust height as needed */
    object-fit: cover; /* Keeps aspect ratio while filling space */
    border-radius: 2px;
    display: block;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
}

.features-list li {
    margin-bottom: 0.5rem;
}

.features-list i {
    color: var(--primary-blue);
    margin-right: 10px;
}

/* MEDIA QUERY FOR SMARTPHONES */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Stack columns on top of each other */
        gap: 2rem;
    }

    .about-img {
        height: 300px; /* Slightly shorter image for mobile screens */
    }

    .about-text {
        text-align: center; /* Optional: centers text for a mobile-friendly look */
    }

    .features-list {
        display: inline-block;
        text-align: left; /* Keeps list items aligned left while container is centered */
    }
}


/* CONTACT SECTION */
.contact-section {
    padding: 60px 20px;
    background-color: #f4f7f9; /* Outer page background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background-color: #333333; /* Charcoal Gray */
    padding: 40px;
    border-radius: 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* Sets default text to white */
}

.contact-info h2 {
    color: #3498db; /* A bright "Diver Blue" for contrast */
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: #cccccc; /* Soft gray for body text */
    line-height: 1.6;
}


/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.form-group input, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #555;
    border-radius: 2px;
    font-size: 1rem;
    background-color: #fdfdfd; /* Light input fields for readability */
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Basic CSS to hide the honeypot field visually */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}


/* Footer */
footer {
    background-color: #333333; /* Charcoal Gray */
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}

.socials a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.copyright {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

a {
  color: #4db8ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #80ccff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Add a hamburger menu for real use cases */
}