/*
 * Carolina Catfish Yachts - Custom Stylesheet
 * Author: Your Name/Company
 * Version: 1.0
 */

/* ======================= VARIABLES & GLOBAL STYLES ======================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Roboto:wght@400;500&display=swap');

:root {
    --primary-color: #0d6efd; /* A strong, modern blue */
    --secondary-color: #6c757d; /* Metallic grey */
    --dark-color: #0a192f; /* Deep ocean navy */
    --dark-alt-color: #112240;
    --light-color: #f8f9fa;
    --text-color: #ccd6f6;
    --text-muted: #8892b0;
    --border-color: #233554;
    --font-family-heading: 'Roboto Condensed', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--light-color);
    color: #333;
    line-height: 1.6;
}

/* ======================= UTILITY CLASSES ======================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 80px 0; }
.bg-dark { background-color: var(--dark-color); color: var(--text-color); }
.bg-light { background-color: #f1f3f5; }
.text-center { text-align: center; }
.text-light { color: var(--light-color); }
.text-muted { color: var(--text-muted); }
.img-fluid { max-width: 100%; height: auto; }
.rounded-img { border-radius: 8px; box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7); }

.grid { display: grid; }
.grid-2-cols { grid-template-columns: repeat(2, 1fr); }
.grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.grid-4-cols { grid-template-columns: repeat(4, 1fr); }
.gap-md { gap: 2rem; }
.gap-lg { gap: 4rem; }
.align-center { align-items: center; }

h1, h2, h3, h4 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--light-color); }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: #0b5ed7; }
ul { list-style: none; }

.section-title { font-size: 2.5rem; }
.section-subtitle { font-size: 1.1rem; color: #666; margin-top: -1rem; margin-bottom: 3rem; }
.bg-dark .section-subtitle { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: #0b5ed7; transform: translateY(-3px); }
.btn-secondary { border-color: var(--primary-color); color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: #fff; transform: translateY(-3px); }
.bg-dark .btn-secondary { border-color: var(--light-color); color: var(--light-color); }
.bg-dark .btn-secondary:hover { background-color: var(--light-color); color: var(--dark-color); }

/* ======================= HEADER / NAVBAR ======================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}
.header.scrolled {
    background-color: var(--dark-alt-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    height: 70px;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    transition: height 0.3s ease-in-out;
}
.header.scrolled .navbar { height: 70px; }
.nav-logo img { height: 40px; transition: height 0.3s ease; }
.header.scrolled .nav-logo img { height: 35px; }

.nav-menu {
    display: flex;
    gap: 2rem;
}
.nav-link {
    color: var(--light-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-color);
    transition: all 0.3s ease-in-out;
}

/* ======================= HERO SECTION ======================= */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    overflow: hidden;
}
.hero-bg-video, .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7);
    z-index: -1;
}
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* ======================= CARD STYLES ======================= */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.5rem; }
.card-text { color: #555; }
.link-arrow { font-weight: bold; }
.link-arrow i { margin-left: 5px; transition: margin-left 0.3s ease; }
.link-arrow:hover i { margin-left: 10px; }


/* ======================= VALUE ITEMS ======================= */
.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.value-title {
    font-size: 1.5rem;
}

/* ======================= TESTIMONIALS ======================= */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 100px 0;
}
.parallax-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
}
.parallax-section .container { position: relative; z-index: 2; }
.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 150px;
}
.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.testimonial-slide.active { display: block; }
.testimonial-slide p { font-size: 1.2rem; font-style: italic; }
.testimonial-slide .author {
    margin-top: 1rem;
    font-weight: bold;
    font-style: normal;
    color: var(--primary-color);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ======================= ABOUT PAGE ======================= */
.page-header {
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--light-color);
    text-align: center;
}
.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.5));
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: 3.5rem; color: #fff; }
.page-header p { font-size: 1.2rem; color: #fff; }

.team-card {
    text-align: center;
}
.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
}
.team-card h4 {
    margin-bottom: 0.25rem;
}

/* ======================= BOATS PAGE ======================= */
.tabs {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s;
}
.tab-link.active, .tab-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.boat-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    gap: 1.5rem;
}
.boat-card img {
    width: 40%;
    object-fit: cover;
}
.boat-card-content { padding: 1.5rem; flex: 1; }
.boat-specs {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.boat-specs li { margin-bottom: 0.5rem; color: #555; }
.boat-specs i { color: var(--primary-color); margin-right: 10px; width: 20px; }
.boat-card-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* ======================= BOATS PAGE (Text-Only Version) ======================= */
.boat-grid-text {
    display: grid;
    grid-template-columns: 1fr; /* Each listing takes a full row */
    gap: 1.5rem; /* Space between listings */
}

.boat-listing {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.boat-listing:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.boat-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.boat-listing-header h3 {
    margin-bottom: 0; /* Remove default margin from h3 */
}

/* Make the specs list more prominent */
.boat-listing .boat-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid for specs */
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.boat-listing .boat-specs li {
    background-color: #f9f9f9;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: #333;
}

.boat-listing .boat-specs li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Optional: a smaller button for this context */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    animation: slideIn 0.3s;
}
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* ======================= GALLERY PAGE ======================= */
.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}
.gallery-item {
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
}
.gallery-item img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
}
.gallery-item img:hover {
    transform: scale(1.03);
    filter: brightness(0.8);
}
/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}
.lightbox-close {
    position: absolute;
    top: 15px; right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    padding: 16px;
    user-select: none;
}
.lightbox-next { right: 0; }
.lightbox-prev { left: 0; }

/* ======================= CONTACT PAGE ======================= */
.contact-form .form-group {
    margin-bottom: 1rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}
.contact-info p { font-size: 1.1rem; }
.map-section {
    padding: 0;
    height: 450px;
}
.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* ======================= FOOTER ======================= */
.footer { padding: 60px 0 20px 0; }
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo { max-width: 200px; margin-bottom: 1rem; }
.footer-col h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    height: 2px;
    width: 50px;
    background-color: var(--primary-color);
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--primary-color); }
.footer-col p { color: var(--text-muted); }
.social-icons a {
    display: inline-block;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s;
}
.social-icons a:hover { color: var(--primary-color); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ======================= BACK TO TOP BUTTON ======================= */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ======================= RESPONSIVE DESIGN ======================= */
@media(max-width: 992px) {
    .grid-2-cols, .grid-3-cols, .grid-4-cols {
        grid-template-columns: 1fr;
    }
    .boat-card { flex-direction: column; }
    .boat-card img { width: 100%; height: 250px; }
    .gallery-grid { column-count: 2; }
}

@media(max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--dark-alt-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 2rem;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 16px 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .gallery-grid { column-count: 1; }
}