/*
Theme Name: Gus Marine
Theme URI: https://gusmarine.co.za
Author: Pixelweb
Author URI: https://pixelweb.co.za
Description: Custom theme for Gus Marine - Boats, Bikes, Trucks & Accommodation
Version: 1.0.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gus-marine
Requires at least: 6.0
Requires PHP: 8.2
*/

/* ==========================================================================
   CSS Custom Properties (Matched to current Mobirise site)
   ========================================================================== */

:root {
    /* Brand Colors - Extracted from current site */
    --color-primary: #232b45;           /* Dark navy (footer bg) */
    --color-primary-dark: #181e30;      /* Darker navy for hovers */
    --color-accent: #f4d02c;            /* Gold/yellow (buttons, theme-color) */
    --color-accent-dark: #d4b420;       /* Darker gold for hovers */
    --color-info: #47b5ed;              /* Info blue (outline buttons) */
    --color-light: #f8f9fa;             /* Light backgrounds */
    --color-dark: #212529;              /* Dark text */
    --color-muted: #6c757d;             /* Muted text */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-body-text: #424a4d;         /* Body text from current site */

    /* WhatsApp Brand Color */
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;

    /* Typography - Oswald from current site */
    --font-heading: 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;

    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --header-height: 105px;
    --logo-height: 4.5rem;
    --nav-font-size: 1.15rem;
    --container-max: 1200px;
    --container-wide: 1400px;

    /* Borders & Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-whatsapp: 600;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-body-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-dark);
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p { margin-bottom: var(--space-md); }

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

a:hover { color: var(--color-accent-dark); }

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--wide { max-width: var(--container-wide); }
.container-fluid { width: 100%; padding: 0 var(--space-lg); }

.section { padding: var(--space-4xl) 0; }
.section--light { background-color: var(--color-light); }
.section--dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.row > * {
    padding: 0 15px;
}

/* ==========================================================================
   Buttons (Matched to current gold/yellow style)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 26px;
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn--warning,
.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
    border-color: var(--color-accent);
}

.btn--warning:hover,
.btn--primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-dark);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn--info-outline {
    background-color: transparent;
    color: var(--color-info);
    border-color: var(--color-info);
}

.btn--info-outline:hover {
    background-color: var(--color-info);
    color: var(--color-white);
}

.btn--whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    border-color: var(--color-whatsapp);
}

.btn--whatsapp:hover {
    background-color: var(--color-whatsapp-dark);
    border-color: var(--color-whatsapp-dark);
}

.btn--lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
}

/* ==========================================================================
   Header & Navigation (Matched to current site)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgb(248, 247, 243);
    box-shadow: var(--shadow-md);
    z-index: var(--z-fixed);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
}

.main-nav--left {
    flex: 1;
}

.site-logo {
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-logo img,
.site-logo .custom-logo {
    height: var(--logo-height);
    width: auto;
    object-fit: contain;
}

.site-logo__text {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: var(--nav-font-size);
    font-weight: var(--font-weight-medium);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-sm) 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-accent);
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    z-index: var(--z-fixed);
    padding: var(--space-xl);
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
}

.mobile-nav .nav-menu a {
    font-size: var(--font-size-2xl);
}

.mobile-nav .nav-buttons {
    flex-direction: column;
    margin-top: var(--space-xl);
    width: 100%;
}

.mobile-nav .nav-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   Hero Section (Full-screen parallax like current site)
   ========================================================================== */

.hero {
    position: relative;
    height: 70vh;
    margin-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero--medium {
    height: 60vh;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    background-color: var(--color-primary);
}

.hero__background img,
.hero__background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Hero Sound Toggle Button */
.hero-sound-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.hero-sound-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--color-warning);
    transform: scale(1.1);
}

.hero-sound-toggle svg {
    width: 24px;
    height: 24px;
}

.hero-sound-toggle .icon-unmuted {
    display: none;
}

.hero-sound-toggle .icon-muted {
    display: block;
}

.hero-sound-toggle.unmuted .icon-unmuted {
    display: block;
}

.hero-sound-toggle.unmuted .icon-muted {
    display: none;
}

.hero-sound-toggle.unmuted {
    background: var(--color-warning);
    border-color: var(--color-warning);
}

@media (max-width: 768px) {
    .hero-sound-toggle {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .hero-sound-toggle svg {
        width: 20px;
        height: 20px;
    }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-xl);
    max-width: 800px;
}

.hero__title {
    font-size: var(--font-size-5xl);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Page-specific hero backgrounds (fallback when no featured image) */
#boats-hero .hero__background {
    background-image: url('assets/images/boatsheader1-1200x600.webp');
    background-size: cover;
    background-position: center;
}

#bikes-hero .hero__background {
    background-image: url('assets/images/header-1-1920x1080.webp');
    background-size: cover;
    background-position: center;
}

#trucks-hero .hero__background {
    background-image: url('assets/images/htruckseader-1-1920x1080.webp');
    background-size: cover;
    background-position: center;
}

/* ==========================================================================
   Content Section (used on category/about pages)
   ========================================================================== */

.content-section {
    padding: var(--space-4xl) 0;
}

.content-section .welcome-row {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==========================================================================
   Welcome / About Section
   ========================================================================== */

.welcome-section {
    padding: var(--space-4xl) 0;
}

.welcome-row {
    display: flex;
    align-items: stretch;
}

.welcome-text {
    flex: 0 0 40%;
    max-width: 40%;
    padding: var(--space-2xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-text h1 {
    font-size: var(--font-size-4xl);
}

.welcome-image {
    flex: 1;
    min-width: 0;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Feature Cards (4-column grid like current "What we do")
   ========================================================================== */

.features-section {
    padding: var(--space-4xl) 0;
    position: relative;
    background-color: #fdf5d0;
    overflow: hidden;
}

.features-section .section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/yello1-1920x928.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.features-section > .container,
.features-section > .section-title,
.features-section > * {
    position: relative;
    z-index: 1;
}

.features-section .section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: center;
}

.feature-card {
    flex: 0 1 calc(33.333% - var(--space-xl));
    max-width: calc(33.333% - var(--space-xl));
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    border-radius: var(--border-radius-lg);
}

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

.feature-card__content {
    padding: var(--space-lg);
    text-align: center;
}

.feature-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.feature-card__text {
    font-size: var(--font-size-base);
    color: var(--color-body-text);
    margin-bottom: var(--space-lg);
    text-align: left;
}

/* ==========================================================================
   Enquiry Form Section (Boats page inline form)
   ========================================================================== */

.enquiry-section {
    background-color: rgb(237, 239, 235);
}

.enquiry-section .wpcf7-form {
    max-width: 800px;
    margin: 0 auto;
}

.enquiry-section .wpcf7-form p {
    margin-bottom: var(--space-md);
}

/* 2-column row for Name + Email */
.enquiry-form-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.enquiry-form-col {
    flex: 1;
}

.enquiry-section input[type="text"],
.enquiry-section input[type="email"],
.enquiry-section input[type="tel"],
.enquiry-section textarea {
    width: 100%;
    padding: 19px 32px;
    border: none;
    border-radius: 40px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.enquiry-section textarea {
    height: 88px;
    min-height: 88px;
    resize: vertical;
    border-radius: 40px;
}

.enquiry-section .wpcf7-submit {
    display: block;
    margin: var(--space-md) auto 0;
    background-color: var(--color-accent);
    color: var(--color-dark);
    border: none;
    border-radius: 30px;
    padding: 14px 40px;
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.enquiry-section .wpcf7-submit:hover {
    background-color: var(--color-accent-dark);
}

@media (max-width: 576px) {
    .enquiry-form-row {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ==========================================================================
   Skipper's License / CTA Section
   ========================================================================== */

.cta-section {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section .section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/blu3-1920x1084.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.cta-text {
    flex: 0 0 55%;
    max-width: 55%;
}

.cta-image {
    flex: 1;
    min-width: 0;
}

.cta-image img {
    width: 100%;
    border-radius: var(--border-radius-md);
}

/* ==========================================================================
   Product Cards (WooCommerce)
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-card__content { padding: var(--space-lg); }

.product-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.product-card__price {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.product-card__actions {
    display: flex;
    gap: var(--space-sm);
}

/* Product Inquiry Section */
.product-inquiry {
    background-color: var(--color-light);
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    margin-top: var(--space-xl);
}

.product-inquiry__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info h5 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
}

.contact-info p {
    margin-bottom: var(--space-sm);
}

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

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-details > div {
    background: var(--color-white);
    border: 1px solid #e8e8e8;
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
}

.contact-details .card-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

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

.google-map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: var(--border-radius-md);
}

/* Contact Page Form Styling */
.section--light {
    background-color: rgb(237, 239, 235);
}

.section--light .wpcf7-form {
    max-width: 700px;
    margin: 0 auto;
}

.section--light .wpcf7-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-xs);
    color: var(--color-dark);
}

.section--light .wpcf7-form input[type="text"],
.section--light .wpcf7-form input[type="email"],
.section--light .wpcf7-form input[type="tel"],
.section--light .wpcf7-form textarea {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--space-sm);
}

.section--light .wpcf7-form textarea {
    border-radius: 20px;
    min-height: 120px;
    resize: vertical;
}

.section--light .wpcf7-form .wpcf7-submit {
    display: block;
    margin: var(--space-md) auto 0;
    background-color: var(--color-accent);
    color: var(--color-dark);
    border: none;
    border-radius: 30px;
    padding: 14px 40px;
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.section--light .wpcf7-form .wpcf7-submit:hover {
    background-color: var(--color-accent-dark);
}

.section--light .wpcf7-form p {
    margin-bottom: var(--space-sm);
}

/* ==========================================================================
   WhatsApp Floating Widget
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-whatsapp);
    transition: all var(--transition-fast);
    color: var(--color-white);
}

.whatsapp-float:hover {
    background-color: var(--color-whatsapp-dark);
    transform: scale(1.1);
    color: var(--color-white);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
}

.whatsapp-float::before {
    content: 'Chat with us!';
    position: absolute;
    right: 70px;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Footer (Matched to current navy + overlay style)
   ========================================================================== */

.site-footer {
    position: relative;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-4xl) 0 var(--space-xl);
    background-image: url('assets/images/wp3955166-1920x1200.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.site-footer .mbr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.7;
    background-color: rgb(35, 43, 69);
}

.footer-inner {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-col h4 {
    color: var(--color-white);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-sm); }
.footer-col a { color: rgba(255, 255, 255, 0.8); }
.footer-col a:hover { color: var(--color-white); }

.footer-title-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.footer-title-wrap img {
    width: 108px;
    height: auto;
}

.footer-title-wrap h2 {
    color: var(--color-white);
    margin: 0;
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-border {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: var(--space-xl) 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Footer Contact Form */
.footer-contact-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--space-md);
    border-radius: var(--border-radius-lg);
}

.footer-contact-form .wpcf7 p {
    margin-bottom: var(--space-xs);
}

.footer-contact-form .wpcf7 label {
    font-size: 0.8rem;
    margin-bottom: 2px;
    display: block;
}

.footer-contact-form input,
.footer-contact-form textarea,
.footer-contact-form .wpcf7-form-control {
    width: 100%;
    padding: var(--space-sm);
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.footer-contact-form textarea,
.footer-contact-form .wpcf7-textarea {
    height: 60px;
    min-height: 60px;
    resize: vertical;
}

.footer-contact-form .wpcf7-submit {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* ==========================================================================
   Gallery (Accommodation page)
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox__content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius-md);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
}

.lightbox__close:hover { opacity: 0.7; }

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: background var(--transition-fast);
}

.lightbox__prev { left: 15px; }
.lightbox__next { right: 15px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255, 255, 255, 0.25); }

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    opacity: 0.8;
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */

.woocommerce ul.products li.product a img {
    border-radius: var(--border-radius-md);
}

.woocommerce ul.products li.product .price {
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-heading);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--color-accent);
    color: var(--color-dark);
    border: 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius-sm);
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-dark);
}

.woocommerce .woocommerce-message {
    border-top-color: var(--color-accent);
}

.woocommerce .woocommerce-message::before {
    color: var(--color-accent);
}

/* ==========================================================================
   Scroll to Top
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: var(--space-xl);
    left: var(--space-xl);
    width: 44px;
    height: 44px;
    background-color: var(--color-accent);
    color: var(--color-dark);
    border: none;
    border-radius: var(--border-radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: var(--z-whatsapp);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --logo-height: 3.5rem;
        --nav-font-size: 1rem;
    }

    .feature-card {
        flex: 0 1 calc(50% - var(--space-xl));
        max-width: calc(50% - var(--space-xl));
    }

    .nav-menu { gap: var(--space-md); }

    .welcome-text {
        flex: 0 0 50%;
        max-width: 50%;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --logo-height: 3rem;
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }

    .main-nav { display: none; }
    .header-inner > .nav-buttons { display: none; }
    .mobile-menu-toggle { display: flex; }

    .site-logo {
        position: static;
        transform: none;
    }

    .hero__buttons { flex-direction: column; }

    .feature-card {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .welcome-row {
        flex-direction: column;
    }

    .welcome-text {
        flex: 0 0 auto;
        max-width: 100%;
    }

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

    .contact-section {
        grid-template-columns: 1fr;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .cta-row {
        flex-direction: column;
    }

    .cta-image {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 50px;
        height: 50px;
    }

    .whatsapp-float::before {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --space-4xl: 4rem;
        --space-3xl: 3rem;
    }

    .container,
    .container-fluid {
        padding: 0 var(--space-md);
    }

    .btn--lg {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-base);
    }
}

/* ==========================================================================
   Placeholder Images (when no image uploaded)
   ========================================================================== */

.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image span {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.placeholder-image--welcome {
    min-height: 400px;
}

.placeholder-image--cta {
    min-height: 300px;
    border-radius: var(--border-radius-md);
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: var(--space-lg);
    margin-bottom: var(--space-md);
}

.alignright {
    float: right;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-md);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    margin-top: var(--space-xs);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Hide Plugin Conflicts (duplicate WhatsApp, floating cart, share buttons)
   ========================================================================== */

/* Hide plugin WhatsApp share button (we have our own) */
.whatsapp_share_btn,
a.sficn[href*="api.whatsapp.com"],
#sfsiid_whatsapp_icon,
a[href*="api.whatsapp.com/send"]:not(.whatsapp-float) {
    display: none !important;
}

/* Hide floating cart widget from WooCommerce plugin */
.wcspc-count,
.wcspc-area,
.wcspc-overlay,
#wcspc-count,
#wcspc-area,
[class*="wcspc"],
.xoo-wsc-modal,
.xoo-wsc-basket,
[class*="xoo-wsc"],
[class*="floating-cart"],
[class*="cart-widget-floating"] {
    display: none !important;
}

/* Hide SFSI social sharing icons bar */
.sfsi_outerDiv,
.sfsi_widget,
#sfsi_floater {
    display: none !important;
}
