/* ========================================
   AquaCore Adventures - Main Stylesheet
   Colors from original WordPress site
   ======================================== */

/* --- Variables --- */
:root {
    --primary: #0088bb;
    --primary-dark: #046ca4;
    --secondary: #413e8e;
    --secondary-dark: #3d3f8a;
    --accent: #feff00;
    --dark: #0a2540;
    --text: #333333;
    --text-light: #545a5f;
    --gray: #6b7280;
    --light-bg: #f8f3ef;
    --white: #ffffff;
    --success: #22c55e;
    --whatsapp: #25d366;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* NOTE: .btn-accent and .btn-whatsapp visual styles have been
   migrated to the canonical button system in aquacore-v2.css
   (pill shape, unified sizing, hover states). These legacy rules
   are intentionally removed so they don't override the canonical. */

/* ========================================
   NAVBAR (Bootstrap overrides)
   ======================================== */
#navbar {
    padding: 15px 0;
    transition: all var(--transition);
    background: transparent;
    z-index: 1050;
}

#navbar.scrolled {
    background: rgba(10, 37, 64, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

#navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

#navbar .navbar-brand:hover {
    color: var(--white);
}

#navbar .navbar-brand img {
    height: 40px;
    width: auto;
}

#navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px !important;
    transition: all var(--transition);
}

#navbar .nav-link:hover,
#navbar .nav-link:focus {
    color: var(--accent) !important;
}

#navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
}

#navbar .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 20px;
    transition: all var(--transition);
}

#navbar .dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary);
    padding-left: 24px;
}

#navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

#navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, #00b4d8 100%);
    z-index: 0;
}

.hero-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 37, 64, 0.45) 0%,
        rgba(4, 108, 164, 0.25) 50%,
        rgba(10, 37, 64, 0.55) 100%
    );
    z-index: 1;
}

/* Animated water wave effect */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
}

.hero-waves svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero .tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-header .accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 15px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

/* SVG icon fallback for cards without PNG icons (windsurf, surf) */
.service-card-img--icon {
    background: var(--white);
    padding: 10px;
}

.service-card-img--icon svg {
    width: 100%;
    height: 100%;
    max-width: 140px;
    max-height: 140px;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-img--icon svg {
    transform: scale(1.08);
}

.service-card-body {
    padding: 20px;
    text-align: center;
}

.service-card-body h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 6px;
    font-weight: 700;
}

.service-card-body p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.service-card-link svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-link {
    color: var(--secondary);
}

.service-card:hover .service-card-link svg {
    transform: translateX(3px);
}

/* ========================================
   ABOUT / CTA SECTION
   ======================================== */
.about-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #00b4d8 100%);
    color: var(--white);
    text-align: center;
}

.about-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-cta p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 0.95;
    line-height: 1.8;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    position: relative;
    background: var(--dark);
    color: var(--white);
}

.footer-wave {
    position: relative;
    margin-top: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-logo {
    width: 80px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
    color: white;
    font-size: 1.6rem;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Bootstrap navbar mobile override */
@media (max-width: 991.98px) {
    #navbar .navbar-collapse {
        background: var(--dark);
        padding: 20px;
        border-radius: 0 0 var(--radius) var(--radius);
        margin-top: 10px;
    }
    #navbar .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    #navbar .dropdown-menu {
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
    }
    #navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
    }
    #navbar .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent);
    }
    #navbar .btn-accent {
        margin-top: 10px;
        text-align: center;
        display: block;
    }
}

/* ========================================
   PAGE HERO (Internal Pages)
   ======================================== */
.page-hero {
    padding: 140px 0 60px;
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.8;
}

.aq-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.aq-breadcrumb a {
    color: var(--accent);
}

.aq-breadcrumb span {
    opacity: 0.7;
}

/* ========================================
   VIDEO SHOWCASE
   ======================================== */
.video-showcase {
    margin: 30px 0 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-showcase video {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    max-height: 500px;
    object-fit: cover;
}

/* ========================================
   CONTENT 2-COLUMN LAYOUT
   ======================================== */
.content-2col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.content-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.features-list {
    margin-top: 30px;
}

.feature-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid var(--primary);
}

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   YACHT CATEGORIES
   ======================================== */
.yacht-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.yacht-cat-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.yacht-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.yacht-cat-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.yacht-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yacht-cat-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.yacht-cat-body {
    padding: 25px;
    text-align: center;
}

.yacht-cat-body h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.yacht-cat-price {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.yacht-cat-body p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Category Tabs */
.cat-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    transition: all var(--transition);
}

.cat-tab:hover, .cat-tab.active {
    background: var(--primary);
    color: var(--white);
}

.cat-tab small {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.8;
}

.catalog-info {
    text-align: center;
    padding: 40px;
    background: var(--light-bg);
    border-radius: var(--radius);
}

.catalog-info p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Location Cards */
.location-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.location-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.location-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   BOOKING FORMS
   ======================================== */
.booking-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.booking-section .container > h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.booking-section .container > p.form-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    padding: 0;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 28px 40px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.form-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.form-header h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
}

.form-header p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 2px 0 0;
}

.form-body {
    padding: 36px 40px 40px;
}

.form-section-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-bg);
}

.form-section-label:not(:first-child) {
    margin-top: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label .label-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 13px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.2s ease;
    background: #f9fafb;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 136, 187, 0.1);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group input[type="date"] {
    cursor: pointer;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-full {
    margin-top: 20px;
}

/* GDPR / Checkbox */
.form-consent {
    margin-top: 24px;
    padding: 18px 20px;
    background: #f0f9ff;
    border-radius: 10px;
    border: 1px solid #bae6fd;
}

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray);
    cursor: pointer;
    line-height: 1.5;
}

.form-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-consent a {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: var(--gray) !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Submit Button */
.form-submit {
    margin-top: 28px;
}

/* NOTE: .form-submit .btn-submit visual style (pill, sky gradient,
   full-width) is now owned by the canonical button system in
   aquacore-v2.css. Only the SVG icon sizing remains here because
   it's scoped to this specific container. */
.form-submit .btn-submit svg {
    width: 20px;
    height: 20px;
}

.form-note {
    text-align: center;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--gray);
}

.form-note svg {
    vertical-align: middle;
    margin-right: 4px;
}

.form-actions {
    margin-top: 25px;
    text-align: center;
}

/* Form responsive */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-body {
        padding: 24px 20px 28px;
    }
    .form-header {
        padding: 22px 20px;
    }
}

/* Confirmation */
.confirmation-box {
    padding: 40px 20px;
}

.confirmation-box h2 {
    margin-top: 20px;
    color: var(--dark);
}

.confirmation-box p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 10px;
}

.alert-error {
    background: #fef2f2;
    border: 2px solid #ef4444;
    padding: 30px;
    border-radius: var(--radius);
    color: #b91c1c;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE - Internal Pages
   ======================================== */
@media (max-width: 1024px) {
    .yacht-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .location-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-2col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .content-image {
        order: -1;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
    .yacht-categories {
        grid-template-columns: 1fr;
    }
    .location-cards {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .booking-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   SERVICE PAGE COMPONENTS
   ======================================== */

/* Content 2-column layout */
.content-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.content-2col.reverse {
    direction: rtl;
}

.content-2col.reverse > * {
    direction: ltr;
}

.content-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Check list */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    color: #444;
    line-height: 1.6;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Programs grid */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.program-card {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.program-card.featured {
    border-color: var(--secondary);
}

.program-header {
    padding: 20px 25px;
    color: white;
}

.program-header.beginner {
    background: linear-gradient(135deg, var(--primary) 0%, #00b4d8 100%);
}

.program-header.advanced {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.program-level {
    font-size: 1.3rem;
    font-weight: 700;
}

.program-body {
    padding: 25px;
}

.program-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.program-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.program-list li {
    padding: 8px 0;
    padding-left: 22px;
    position: relative;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.program-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
}

.program-price {
    font-size: 1.1rem;
    color: var(--primary);
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

/* Instructor grid */
.instructor-grid,
.equipment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.instructor-item,
.equip-item {
    padding: 15px;
    border-left: 3px solid var(--primary);
    background: #f8f9fa;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.instructor-item h4,
.equip-item h4 {
    color: #333;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.instructor-item p,
.equip-item p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Location features */
.location-features {
    margin-top: 20px;
}

.loc-feature {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.loc-feature strong {
    color: var(--primary);
    font-size: 0.95rem;
}

.loc-feature span {
    color: #666;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Photo gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 3/4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Alt background */
.alt-bg {
    background: #f5f7fa;
}

/* Page hero with background image */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, #00b4d8 100%);
}

.page-hero .hero-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 37, 64, 0.55) 0%, rgba(4, 108, 164, 0.35) 50%, rgba(10, 37, 64, 0.6) 100%);
    z-index: 1;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* Responsive service pages */
@media (max-width: 768px) {
    .content-2col,
    .content-2col.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .instructor-grid,
    .equipment-grid {
        grid-template-columns: 1fr;
    }

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

/* ========================================
   YACHT DETAIL PAGES
   ======================================== */
.yacht-gallery img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
}

.yacht-gallery-item {
    display: none;
}

.yacht-gallery-item.active {
    display: block;
}

.yacht-thumbs img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.yacht-thumbs img.active,
.yacht-thumbs img:hover {
    opacity: 1;
    border-color: var(--primary);
}

.yacht-price-card,
.yacht-specs-card {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 24px;
}

.yacht-price-card {
    border-color: var(--primary);
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f0f9ff;
    border-radius: 8px;
}

.price-duration {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.price-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.price-note {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
    font-style: italic;
}

.price-dock {
    font-size: 0.82rem;
    color: var(--gray);
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.92rem;
}

.spec-row span {
    color: var(--gray);
}

.yacht-includes li {
    padding: 8px 12px;
    background: #f8fafb;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text);
}

/* Yacht listing cards (for hub pages) */
.yacht-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.yacht-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.yacht-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.yacht-card-body {
    padding: 20px;
}

.yacht-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.yacht-card-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.yacht-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.yacht-card .btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .yacht-gallery img {
        height: 280px;
    }
    section .container > div[style*="grid-template-columns: 1fr 380px"] {
        grid-template-columns: 1fr !important;
    }
}
