/* ======================================================================
   CAPE TOURS & EVENTS - MAIN STYLESHEET
   ======================================================================
   This stylesheet contains all the CSS for the CAPE Tours & Events website.
   It uses a mobile-first approach with Corporate Luxury Travel styling.
   
   IMPORTANT FOR PRODUCTION:
   1. All images are currently hotlinked. For production:
      - Download and convert to WebP format.
      - Host locally or on a CDN.
   2. Test on actual mobile devices (360px-412px width).
   ====================================================================== */

/* ===== CSS Variables (Corporate Luxury Theme) ===== */
:root {
    --royal: #0B3D91;
    --royal-dark: #072a66;
    --accent: #D4AF37;
    --accent-light: #f4e8c1;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(11, 61, 145, 0.08);
    --shadow-lg: 0 10px 30px rgba(11, 61, 145, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 70px; /* Compact mobile header */
    --ff-heading: 'Poppins', sans-serif;
    --ff-body: 'Inter', sans-serif;
}

/* ===== Base & Mobile-First Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem */
}

body {
    font-family: var(--ff-body);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px mobile padding */
}

@media (min-width: 600px) {
    .container {
        padding: 0 2rem; /* 32px tablet+ */
    }
}

section {
    padding: 4rem 0; /* 64px mobile */
}

@media (min-width: 600px) {
    section {
        padding: 5rem 0; /* 80px tablet+ */
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Mobile-First Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--ff-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--royal-dark);
}

h1 {
    font-size: 2.25rem; /* 36px mobile */
    margin-bottom: 1rem;
}

@media (min-width: 600px) {
    h1 {
        font-size: 3rem; /* 48px tablet+ */
    }
}

@media (min-width: 992px) {
    h1 {
        font-size: 3.5rem; /* 56px desktop */
    }
}

h2 {
    font-size: 1.75rem; /* 28px mobile */
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 600px) {
    h2 {
        font-size: 2.25rem; /* 36px tablet+ */
    }
}

h3 {
    font-size: 1.375rem; /* 22px mobile */
}

@media (min-width: 600px) {
    h3 {
        font-size: 1.625rem; /* 26px tablet+ */
    }
}

h4 {
    font-size: 1.125rem; /* 18px */
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

@media (max-width: 599px) {
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
}

/* ===== Buttons (Mobile Stacked) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-family: var(--ff-body);
    font-weight: 600;
    padding: 0.75rem 0.875rem; /* 12px 14px mobile */
    border-radius: 0.625rem; /* 10px */
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    width: 100%; /* Full width on mobile */
    margin-bottom: 0.75rem; /* Space for stacking */
}

@media (min-width: 600px) {
    .btn {
        width: auto;
        padding: 1rem 2rem; /* 16px 32px tablet+ */
        margin-bottom: 0;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    outline: 3px solid rgba(11, 61, 145, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--royal);
    border-color: var(--royal);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(11, 61, 145, 0.05);
    outline: 3px solid rgba(11, 61, 145, 0.3);
}

.btn-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 600px) {
    .btn-cta-group {
        flex-direction: row;
        gap: 1.25rem;
    }
}

/* ===== Header & Mobile Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo {
    height: 2.5rem; /* 40px mobile */
    width: auto;
}

@media (min-width: 600px) {
    .brand-logo {
        height: 3rem; /* 48px tablet+ */
    }
}

.brand-text h1 {
    font-size: 1.25rem; /* 20px mobile */
    margin-bottom: 0.125rem;
    color: var(--royal);
}

.brand-text .tagline {
    font-size: 0.75rem; /* 12px mobile */
    color: var(--gray);
    font-weight: 500;
}

@media (min-width: 600px) {
    .brand-text h1 {
        font-size: 1.5rem; /* 24px tablet+ */
    }
    .brand-text .tagline {
        font-size: 0.875rem; /* 14px tablet+ */
    }
}

/* Desktop Navigation (Hidden on Mobile) */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(11, 61, 145, 0.08);
    color: var(--royal);
}

/* Mobile Hamburger & Menu */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--royal);
    cursor: pointer;
    padding: 0.5rem;
    width: 44px; /* Minimum touch target */
    height: 44px;
    border-radius: var(--radius-sm);
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle:hover,
.mobile-toggle:focus {
    background-color: rgba(11, 61, 145, 0.08);
    outline: 3px solid rgba(11, 61, 145, 0.3);
}

.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
    font-size: 1.1rem;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    color: var(--royal);
    padding-left: 0.5rem;
    outline: none;
}

/* ===== Compact Hero (Mobile-First) ===== */
.hero {
    padding-top: calc(var(--header-height) + 2rem); /* Compact spacing */
    padding-bottom: 3rem;
    background: var(--white);
}

@media (min-width: 600px) {
    .hero {
        padding-top: calc(var(--header-height) + 3rem);
        padding-bottom: 4rem;
    }
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .hero .container {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content > p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Hero Decor Image (Above CTA) */
.hero-decor {
    max-height: 4.75rem; /* ~76px mobile */
    width: auto;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
}

@media (min-width: 600px) {
    .hero-decor {
        max-height: 7.5rem; /* ~120px desktop */
        margin-bottom: 2rem;
    }
}

/* WhatsApp Contact Card */
.hero-aside {
    order: 3; /* Moves below CTAs on mobile */
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--gray-light);
}

@media (min-width: 992px) {
    .hero-aside {
        order: initial;
        flex: 0 0 300px;
        background: var(--white);
        box-shadow: var(--shadow-lg);
    }
}

.hero-aside h3 {
    color: var(--royal);
    margin-bottom: 0.75rem;
}

.hero-aside p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-detail i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 1.5rem;
}

/* ===== Slider (Mobile: 1 Slide) ===== */
.slider-wrapper {
    position: relative;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 300px; /* Compact mobile height */
}

@media (min-width: 600px) {
    .slides-container {
        height: 400px;
    }
}

@media (min-width: 992px) {
    .slides-container {
        height: 500px;
    }
}

.slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 1.5rem;
}

@media (min-width: 600px) {
    .slide-overlay {
        padding: 2.5rem;
    }
}

.slide-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

@media (min-width: 600px) {
    .slide-title {
        font-size: 2rem;
    }
}

.slide-desc {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 600px;
}

/* Slider Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: var(--white);
    width: 44px; /* Minimum touch target */
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-nav:hover,
.slider-nav:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: 3px solid rgba(255, 255, 255, 0.5);
}

.slider-nav.prev {
    left: 0.75rem;
}

.slider-nav.next {
    right: 0.75rem;
}

@media (min-width: 600px) {
    .slider-nav {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    .slider-nav.prev {
        left: 1.5rem;
    }
    .slider-nav.next {
        right: 1.5rem;
    }
}

/* Chips (Horizontal Scroll on Mobile) */
.chips-container {
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.chips-container::-webkit-scrollbar {
    display: none;
}

.chips-track {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    padding: 0 0.25rem;
}

.chip {
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    background: var(--light);
    color: var(--dark);
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    flex: 0 0 auto;
    min-height: 44px; /* Minimum touch target */
    display: flex;
    align-items: center;
}

.chip.active {
    background: var(--royal);
    color: var(--white);
    border-color: var(--royal);
}

.chip:hover:not(.active),
.chip:focus:not(.active) {
    border-color: var(--gray-light);
    outline: none;
}

@media (min-width: 600px) {
    .chips-container {
        overflow: visible;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .chips-track {
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== Domestic Auto-Scroll Strip ===== */
.domestic-track-container {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

/* Show partial neighbor on mobile */
@media (max-width: 599px) {
    .domestic-track-container {
        padding-left: 1.25rem;
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        width: calc(100% + 2.5rem);
    }
}

.domestic-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.5s linear;
    will-change: transform;
}

.domestic-card {
    flex: 0 0 auto;
    width: 260px; /* Fixed card width */
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

@media (max-width: 599px) {
    .domestic-card {
        width: calc(100vw - 3rem); /* ~1.5 cards visible */
    }
}

.domestic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.domestic-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.domestic-content {
    padding: 1.25rem;
}

.domestic-content h4 {
    margin-bottom: 0.5rem;
    color: var(--royal-dark);
}

.domestic-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== Why Choose Cards ===== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column mobile */
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns tablet */
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns desktop */
    }
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e6efff, #d4e1ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--royal);
    font-size: 1.75rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Partners ===== */
.partners-section {
    background-color: var(--light);
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.partner-logo {
    height: 50px;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0) opacity(1);
}

/* ===== Footer (4-Column Collapsible) ===== */
footer {
    background: var(--royal-dark);
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

@media (min-width: 600px) {
    footer {
        padding: 5rem 0 2.5rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column mobile */
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns tablet */
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns desktop */
        gap: 3rem;
    }
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    font-size: 1.25rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background: var(--accent);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent);
    padding-left: 0.25rem;
    outline: none;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-info i {
    color: var(--accent);
    margin-top: 0.25rem;
    width: 1.25rem;
}

.newsletter input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #334155;
    background: #1e293b;
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.newsletter input:focus {
    outline: 3px solid rgba(212, 175, 55, 0.3);
    border-color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
    outline: 3px solid rgba(37, 211, 102, 0.3);
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* ===== Accessibility & Focus States ===== */
button:focus,
a:focus,
input:focus {
    outline: 3px solid rgba(11, 61, 145, 0.5);
    outline-offset: 2px;
}

/* ===== Quick: hide duplicate centered logo / brand text and refine header ===== */
/* Hides any mid-page logo text block that might be showing in header/hero */
.brand-text, .logo-center, .center-logo, .header-large-logo {
  display: none !important;
}

/* Make header slimmer and logo only on left */
header { height: 64px; }
.brand-logo { height: 44px !important; width: auto !important; }

/* Ensure header elements align: logo left, menu right */
.header-container { align-items: center; justify-content: space-between; }

/* Optional: if brand area created extra spacing, remove it */
header + main { padding-top: calc(var(--header-height) + 1.25rem); }


/* ===== Banner + Hero overlay styles (paste at end of style.css) ===== */
.banner-hero { position: relative; margin-top: calc(var(--header-height)); }
.banner-media { position: relative; width: 100%; overflow: hidden; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
.banner-media img { display:block; width:100%; height: 260px; object-fit: cover; object-position: center; filter: saturate(1.02) contrast(1.02); transform-origin:center; transition: transform 10s linear; }
.banner-media img:hover { transform: scale(1.02); }

/* soft blue gradient overlay (the blue box look) */
.banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,61,145,0.45) 0%, rgba(11,61,145,0.25) 30%, rgba(11,61,145,0.08) 55%, rgba(0,0,0,0.0) 100%);
  pointer-events: none;
}

/* content placed on top of banner */
.banner-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; padding: 0 1rem; z-index: 5; }
.banner-inner { max-width: 980px; margin: 0 auto; text-align: center; color: #ffffff; padding: 1.25rem; border-radius: 12px; backdrop-filter: blur(4px); }

/* text styling inside banner */
.banner-inner h1 { color: var(--white); font-size: 2rem; letter-spacing: 0.2px; margin-bottom: 0.5rem; text-shadow: 0 6px 18px rgba(2,6,23,0.25); }
.banner-inner .lead { color: rgba(255,255,255,0.92); font-size: 1rem; max-width: 900px; margin: 0 auto 1.25rem; }

/* CTA buttons centered inside the banner with slight glass effect */
.banner-inner .btn { min-width: 180px; max-width: 360px; margin: 0.35rem; box-shadow: 0 8px 30px rgba(2,6,23,0.12); }
.banner-inner .btn-primary { background: linear-gradient(135deg, rgba(11,61,145,0.95), rgba(7,42,102,0.95)); }
.banner-inner .btn-secondary { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.18); }

/* place the contact card under banner (keeps page flow) */
.banner-contact { margin-top: 1.25rem; padding: 0 1.25rem; }

/* responsive tweaks */
@media (min-width: 600px) {
  .banner-media img { height: 360px; }
  .banner-inner h1 { font-size: 2.75rem; }
  .banner-inner .lead { font-size: 1.125rem; }
  .banner-content { top: 55%; }
}
@media (min-width: 992px) {
  .banner-media img { height: 460px; }
  .banner-inner h1 { font-size: 3.25rem; }
  .banner-content { top: 55%; }
}

/* Accessibility: ensure readable contrast for CTA */
.banner-inner .btn:focus { outline: 3px solid rgba(212,175,55,0.28); outline-offset: 2px; }

/* ---- PASTE THIS AT THE VERY END OF style.css ---- */
/* (Replace any older .banner-* rules; do NOT duplicate) */

:root { --banner-offset: calc(var(--header-height)); }

.banner-hero { position: relative; margin: 0; padding: 0; width: 100%; box-sizing: border-box; }
.banner-media { position: relative; width: 100%; overflow: hidden; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; transform: translateZ(0); }
.banner-media img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: center; filter: saturate(1.03) contrast(1.02); transition: transform 10s linear, filter 0.6s ease; }
@media(min-width:600px){ .banner-media img { height: 360px; } }
@media(min-width:992px){ .banner-media img { height: 460px; } }
.banner-media:hover img { transform: scale(1.02); }
.banner-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,61,145,0.55) 0%, rgba(11,61,145,0.35) 18%, rgba(11,61,145,0.18) 36%, rgba(255,255,255,0.02) 60%, rgba(0,0,0,0) 100%); pointer-events: none; mix-blend-mode: normal; }

.banner-content { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 100%; z-index: 6; padding: 0 1rem; box-sizing: border-box; }
.banner-inner { margin: 0 auto; max-width: 1024px; text-align: center; padding: 1rem 1.25rem; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); backdrop-filter: blur(6px) saturate(1.05); -webkit-backdrop-filter: blur(6px); box-shadow: 0 18px 60px rgba(2,6,23,0.18); color: var(--white); }

.banner-inner h1 { color: #ffffff; font-size: 2rem; line-height: 1.05; margin-bottom: 0.35rem; letter-spacing: 0.6px; text-shadow: 0 10px 30px rgba(3,7,18,0.45); font-weight: 800; }
@media(min-width:600px){ .banner-inner h1 { font-size: 2.75rem; } }
@media(min-width:992px){ .banner-inner h1 { font-size: 3.25rem; } }

.banner-inner .lead { color: rgba(255,255,255,0.92); max-width: 900px; margin: 0 auto 1rem; font-size: 0.98rem; line-height: 1.6; opacity: 0.95; }
@media(min-width:600px){ .banner-inner .lead { font-size: 1.05rem; } }

.banner-inner .btn-cta-group { display: flex; gap: 0.75rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
.banner-inner .btn { width: auto !important; min-width: 160px; padding: 0.75rem 1.25rem; border-radius: 10px; font-weight: 700; box-shadow: 0 12px 30px rgba(2,6,23,0.18); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.banner-inner .btn-primary { background: linear-gradient(135deg,#0b3d91 0%, #072a66 100%); color: #fff; border: 1px solid rgba(255,255,255,0.06); }
.banner-inner .btn-primary:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(7,34,80,0.3); }
.banner-inner .btn-secondary { background: rgba(255,255,255,0.12); color: #ffffff; border: 1px solid rgba(255,255,255,0.18); }
.banner-inner .btn-secondary:hover { transform: translateY(-3px); }

.banner-contact { margin-top: 1.25rem; padding: 0 1.25rem; z-index: 4; }
.banner-contact .hero-aside { max-width: 980px; margin: 0 auto; }

header { z-index: 1100; }
main { margin-top: 0; }

.banner-inner .btn:focus { outline: 3px solid rgba(212,175,55,0.25); outline-offset: 3px; }
@media(min-width:1200px){ .banner-inner { padding: 1.5rem 2rem; } .banner-content { top: 55%; } }

/* ===== Banner stacking & spacing fix (paste at end of style.css) ===== */

/* Ensure banner content is visually centered but doesn't overlap lower contact card */
.banner-hero {
  position: relative;
  overflow: visible; /* allow contact card to appear below */
}

/* keep the image behind everything */
.banner-media { z-index: 1; position: relative; }

/* banner content sits visually over image but with limited height to avoid overlap */
.banner-content {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 5;
  pointer-events: none; /* allow clicks to pass through empty areas to elements below */
  padding: 0 1rem;
  box-sizing: border-box;
}

/* inner area receives pointer events for buttons only */
.banner-inner {
  pointer-events: auto; /* enable clicks on CTAs */
  margin: 0 auto;
  max-width: 1024px;
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 60px rgba(2,6,23,0.18);
  color: var(--white);
}

/* limit the visual height of the floating banner card so it won't cover the contact card */
@media (max-width: 991px) {
  .banner-inner { padding: 1rem; max-height: 320px; overflow: hidden; }
  .banner-content { top: 44%; } /* nudge upwards on small screens */
}
@media (min-width: 992px) {
  .banner-inner { max-height: 340px; padding: 1.25rem 1.5rem; }
  .banner-content { top: 50%; }
}

/* Make CTA buttons sit nicely and not full-width mobile-only */
.banner-inner .btn-cta-group { display:flex; gap:0.75rem; justify-content:center; flex-wrap:wrap; margin-top:0.6rem; }
.banner-inner .btn { width: auto !important; min-width:160px; }

/* CONTACT CARD: ensure it sits below banner and never hidden under it */
.banner-contact {
  position: relative;
  z-index: 4;
  margin-top: -12px; /* slight pull-up so it visually touches banner, but not overlap */
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* increase spacing on mobile so CTAs don't visually overlap the contact card */
@media (max-width: 599px) {
  .banner-contact { margin-top: 0.5rem; }
  .banner-content { top: 42%; transform: translate(-50%, -50%); }
  .banner-inner { padding-bottom: 1.25rem; }
}

/* desktop: make contact card centered with nice margin */
@media (min-width: 992px) {
  .banner-contact { margin-top: 1.5rem; }
  .banner-inner { padding-bottom: 1rem; }
}

/* safety: make hero-aside background and z-index clear so contact details are clickable */
.hero-aside {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow);
  color: var(--dark);
  z-index: 6;
}

/* if any leftover absolute-positioned contact card exists, force it below */
.hero-aside[style], .banner-contact[style] { position: relative !important; }

/* Remove accidental big transparent boxes below buttons (prevents empty white rectangle) */
.banner-inner .btn:not(.btn-primary):not(.btn-secondary) { display:none; }

/* final accessibility/focus styles for CTAs */
.banner-inner .btn:focus { outline: 3px solid rgba(212,175,55,0.25); outline-offset: 4px; }

/* ===== Mobile fix: prevent banner CTAs overlapping contact card =====
   Paste at end of style.css ===== */

/* Target only small screens first (mobile) */
@media (max-width: 599px) {
  /* Lower the visual banner so it doesn't cover the contact card */
  .banner-content {
    top: 38% !important;         /* move the floating content higher on page */
    transform: translate(-50%, -50%) !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Strong limit on height to avoid covering element below */
  .banner-inner {
    max-height: 240px !important; /* smaller max height on mobile */
    overflow: hidden !important;  /* hide overflow text so banner doesn't grow */
    padding: 0.9rem 1rem !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(2,6,23,0.16) !important;
  }

  /* Give CTAs room inside the floating card (stacked) */
  .banner-inner .btn-cta-group {
    flex-direction: column !important;
    gap: 0.65rem !important;
    margin-top: 0.6rem !important;
    align-items: center;
  }

  .banner-inner .btn {
    width: 88% !important;
    min-width: 0 !important;
  }

  /* Make sure contact card sits below with visible gap */
  .banner-contact {
    margin-top: 1.1rem !important;   /* push contact card down on mobile */
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Ensure the contact card itself is fully visible & clickable */
  .hero-aside {
    position: relative !important;
    z-index: 7 !important;
    margin-top: 0.5rem !important;
    padding: 1rem !important;
  }

  /* Avoid pointer blocking from banner: ensure only inner controls accept clicks */
  .banner-content { pointer-events: none !important; }
  .banner-inner { pointer-events: auto !important; }

  /* Reduce backdrop blur/opacity to make text readable and smaller */
  .banner-inner { background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.12)) !important; color: #fff !important; }

  /* Slightly shrink heading on small view to avoid multi-line explosion */
  .banner-inner h1 {
    font-size: 1.6rem !important;
    line-height: 1.05 !important;
    margin-bottom: 0.25rem !important;
  }

  .banner-inner .lead {
    font-size: 0.95rem !important;
    opacity: 0.95 !important;
  }

  /* Ensure the WhatsApp float doesn't cover the contact card text */
  .whatsapp-float { right: 0.9rem !important; bottom: 1.1rem !important; }
}

/* ===== minor polish for medium small screens (600-991px) ===== */
@media (min-width: 600px) and (max-width: 991px) {
  .banner-content { top: 44% !important; }
  .banner-inner { max-height: 300px !important; padding: 1rem 1.25rem !important; }
  .banner-contact { margin-top: 0.9rem !important; }
}

/* Safety: if any empty/ghost CTA element exists, hide it on mobile */
@media (max-width: 991px) {
  .banner-inner .btn[aria-hidden="true"],
  .banner-inner a.btn:empty { display: none !important; }
}

@media(min-width:992px){
  .partners-section .feature-card { flex-direction: row; }
  .partners-section .feature-card img { width: 40%; }
}

/* === MOBILE: FORCE STACK + RESPONSIVE IMAGES ===
   Paste at the END of style.css (after everything) === */

@media (max-width: 991px) {
  /* make any partner/feature cards stack vertically */
  .partners-section .feature-card,
  .partners-section .card,
  .partners-section .ship-card,
  .partners-section .partner-card,
  .partners-section .slide,
  .partners-section .slide .slide-overlay {
    display: block !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }

  /* force any images inside those cards to be full width */
  .partners-section img,
  .partners-section .feature-card img,
  .partners-section .ship-card img,
  .partners-section .slide-image,
  .partners-section .partner-logo {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* make slide container not overflow horizontally */
  .partners-section .slider-wrapper,
  .partners-section .slides-container,
  .partners-section .slides-container .slide {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  /* logos row: allow horizontal scroll instead of stretching page */
  .partners-section .partners-logos {
    display: flex !important;
    gap: 0.75rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0.5rem !important;
  }
  .partners-section .partners-logos .partner-logo {
    flex: 0 0 auto !important;
    height: 44px !important;
    width: auto !important;
  }

  /* hide any accidental large left/right margins creating whitespace */
  .partners-section [style*="margin-left"],
  .partners-section [style*="margin-right"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* safety: prevent body horizontal scroll */
  html, body {
    overflow-x: hidden !important;
  }
}

/* Keep whatsapp float above everything */
.whatsapp-float {
  z-index: 2000 !important;
  right: 1rem !important;
  bottom: 1.25rem !important;
}

/* small desktop polish */
@media (min-width: 992px) {
  .partners-section .partner-logo { height:50px; }
} 
