/* ============================================
   TOP NAVIGATION STYLES - Updated with buttons in nav container
   ============================================ */

/* Global reset like in the video */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 110%;
}

/* ============================================
   CSS CUSTOM PROPERTIES (design tokens)
   ============================================ */
:root {
    --color-primary:    #1E3EA1;   /* main blue — used for text, buttons, footer */
    --color-secondary:  #2b7afc;   /* bright blue — used for header, highlights */
    --color-accent:     #f5b63a;   /* gold/amber */
    --color-mid-blue:   #3655b4;   /* section backgrounds */
    --color-light-blue: #EEF2FE;   /* tint / light bg */
    --color-muted-blue: #C4D0F5;   /* muted text on dark */
    --color-text:       #333333;   /* body text */
    --color-text-gray:  #666666;   /* secondary text */
    --color-bg-cream:   #f9f7f2;   /* cream page backgrounds */
    --color-bg-light:   #f8f9fa;   /* card backgrounds */
    --radius-card:      12px;
    --radius-btn:       8px;
    --shadow-card:      0 5px 20px rgba(0,0,0,0.08);
    --shadow-hover:     0 15px 35px rgba(0,0,0,0.15);
    --transition:       0.3s ease;
}

/* ============================================
   GLOBAL CONTAINER - caps width on large screens
   ============================================ */
.container {
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* make all images responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


.top-nav-rectangle {
    background-color: var(--color-primary);   /* flat color — required for smooth rgba transition */
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(15, 30, 92, 0.4);
    transition: background-color 0.5s ease, box-shadow 0.5s ease,
                border-bottom 0.5s ease;
}

/* (Removed the old liquid-glass header state — it's no longer used; replaced by
   the V4 transparent-over-hero header. See the V4 block at the end of this file.) */


/* Header container — full-width, scales with screen size */
.top-nav-rectangle .container {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

/* Logo styles - kept your animations */
.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: auto;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 42px;
    width: 42px;
    margin-right: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 32px;
    margin-right: 12px;
    color: #ffffff;
    transition: transform 0.5s ease;
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.club-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: linear-gradient(90deg, #ffffff, #EEF2FE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.club-tagline {
    font-size: 11px;
    font-weight: 300;
    color: var(--color-muted-blue);
    margin-top: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation container - holds both links and buttons */
.nav-container {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-left: 2%;
    padding-right: 0;
}

/* Navigation menu */
.nav_links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav_links li {
    display: inline-block;
}

.nav_links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.nav_links li a:hover {
    color: #EEF2FE;
}

.nav_links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav_links li a:hover::before {
    width: 100%;
}

/* Buttons - inside the nav container */
.nav-buttons {
    display: flex;
    gap: 25px;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 14px;
    border: 2px solid transparent;
}

/* Wide buttons only in hero/section CTAs, not in the navbar */
.hero-buttons .btn,
.tour-content-simple .btn,
.view-all-tours .btn {
    min-width: 160px;
}

.btn-primary {
    background: #f5b63a;
    color: var(--color-primary);
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 182, 58, 0.35);
}

/* Visible keyboard-focus ring for interactive elements (accessibility).
   :focus-visible only shows for keyboard users, not mouse clicks. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* ============================================
   RESPONSIVE DESIGN - LARGE SCREENS (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    .nav_links li a {
        font-size: 18px;
    }

    .btn {
        padding: 13px 32px;
        font-size: 15px;
    }

    .hero-buttons .btn,
    .tour-content-simple .btn,
    .view-all-tours .btn {
        min-width: 175px;
    }

    .logo-icon {
        font-size: 36px;
    }

    .club-name {
        font-size: 26px;
    }

    .club-tagline {
        font-size: 12px;
    }

    .nav-container {
        gap: 70px;
    }

    .nav_links {
        gap: 50px;
    }

    .nav-buttons {
        gap: 28px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (max-width: 992px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .top-nav-rectangle .container {
        padding: 0 3%;
    }

    .nav-container {
        gap: 30px;
    }

    .nav_links {
        gap: 20px;
    }

    .nav-buttons {
        gap: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .top-nav-rectangle .container {
        padding: 0 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        display: none;
    }

    /* When mobile menu is active */
    .mobile-active .nav-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: rgba(30, 62, 161, 0.98);
        padding: 30px 20px;
        gap: 25px;
    }

    .mobile-active .nav_links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .mobile-active .nav-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .mobile-active .nav_links li a {
        display: block;
        padding: 15px;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
}

/* ============================================
   HERO BANNER SECTION
   ============================================ */
.hero {
    background: linear-gradient(rgba(65, 105, 225, 0.85), rgba(30, 60, 160, 0.95)),
                url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 15px auto 0;
}

/* ============================================
   WHO WE ARE SECTION - Enhanced & Prettier
   ============================================ */
.who-we-are {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.who-we-are::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(65,105,225,0.03)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.who-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.who-text {
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(30, 62, 161, 0.1);
    border-left: 5px solid #f5b63a;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.who-text:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(30, 62, 161, 0.15);
}

.who-text::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    opacity: 0.1;
}

.who-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.who-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f5b63a, #1E3EA1);
    border-radius: 2px;
}

.who-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #4a5568;
}

.highlight {
    color: var(--color-primary);
    font-weight: 700;
    background: linear-gradient(120deg, rgba(65, 105, 225, 0.12) 0%, rgba(65, 105, 225, 0.04) 100%);
    padding: 2px 8px;
    border-radius: 4px;
    border-left: 3px solid #f5b63a;
}

.who-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.4s ease;
}

.who-image:hover {
    transform: scale(1.02);
}

.who-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.who-image:hover img {
    transform: scale(1.05);
}

/* ============================================
   TRAVEL FORMATS SECTION
   ============================================ */
.travel-formats {
    background-color: var(--color-light-blue);
}

.formats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.format-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.format-image {
    height: 200px;
    overflow: hidden;
}

.format-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.format-content {
    padding: 25px;
}

.format-content h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* ============================================
   SIMPLE TOURS GRID
   ============================================ */

.selected-tours {
    background-color: white;
    padding: 80px 0;
}

.simple-tours-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.tour-card-simple {
    background-color: var(--color-bg-cream);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 280px;
    max-width: calc(33.333% - 20px);
}

.tour-card-simple:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tour-image-simple {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.tour-image-simple::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.tour-image-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tour-card-simple:hover .tour-image-simple img {
    transform: scale(1.08);
}

.tour-content-simple {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tour-content-simple h3 {
    color: var(--color-primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.tour-content-simple p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.tour-price-simple {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 22px;
    margin: 15px 0;
    font-family: 'Playfair Display', serif;
}

.tour-content-simple .btn {
    align-self: flex-start;
    margin-top: 10px;
}

.view-all-tours {
    text-align: center;
    margin-top: 40px;
}

.view-all-tours .btn {
    padding: 14px 40px;
    font-size: 16px;
}

/* ============================================
   RESPONSIVE DESIGN FOR SIMPLE GRID
   ============================================ */

@media (max-width: 992px) {
    .tour-card-simple {
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .tour-card-simple {
        flex: 1 1 100%;
        max-width: 420px;
    }
}

/* Active link in navigation */
.nav_links li a.active {
    color: #ffffff;
    font-weight: 600;
}

.nav_links li a.active::before {
    width: 100%;
    background: #ffffff;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
    background: var(--color-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: #EEF2FE;
}

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

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

.footer-column a {
    color: var(--color-muted-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-primary);
    color: var(--color-muted-blue);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (max-width: 992px) {
    .logo {
        margin-right: 40px;
    }

    .nav-container {
        gap: 30px;
    }

    .nav-buttons {
        gap: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .who-content {
        grid-template-columns: 1fr;
    }

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

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

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .top-nav-rectangle .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }

    .mobile-active .nav-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: rgba(30, 62, 161, 0.98);
        padding: 30px 20px;
        gap: 25px;
    }

    .logo {
        flex: 1;
        margin-right: 0;
    }

    .logo-icon {
        font-size: 28px;
    }

    .club-name {
        font-size: 20px;
    }

    .club-tagline {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

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

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

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

/* extra small phones */
@media (max-width: 480px) {
    .hero h1, .travels-hero h1, .club-hero h1, .news-hero h1, .about-hero h1 {
        font-size: 28px;
    }
    .hero p, .travels-hero p, .club-hero p, .news-hero p, .about-hero p {
        font-size: 14px;
    }
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    .nav_links {
        gap: 15px;
    }
}

/* ============================================
   MOBILE — prevent iOS auto-zoom on input focus
   ============================================ */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* ============================================
   MOBILE — hamburger tap target
   ============================================ */
.mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
}

/* ============================================
   MOBILE — footer padding on small screens
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .footer-column {
        padding-bottom: 10px;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        min-width: unset;
    }
}

/* Gray button — "see more" style */
.btn-gray {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    background: #6c757d;
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-gray:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.view-tours-btn {
    text-align: center;
    margin-top: 30px;
}

/* Hint text under selected tours on main page */
.cards-hint {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: -20px;
    margin-bottom: 30px;
    font-style: italic;
    opacity: 0.8;
}

/* ============================================
   FLOATING CONTACT BUTTONS (site-wide)
   ============================================ */
.floating-contacts {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
}

.floating-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E3EA1, #2b7afc);
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(30, 62, 161, 0.45);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.floating-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(30, 62, 161, 0.55);
}

.floating-toggle .toggle-icon {
    transition: transform 0.35s ease;
}

.floating-contacts.open .floating-toggle .toggle-icon {
    transform: rotate(45deg);
}

.floating-popup {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.floating-contacts.open .floating-popup {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    position: relative;
}

.floating-btn::after {
    content: attr(data-label);
    position: absolute;
    right: 62px;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.floating-btn:hover::after {
    opacity: 1;
}

.floating-btn:hover {
    transform: scale(1.15) translateX(-3px);
}

.floating-phone    { background: #1E3EA1; }
.floating-whatsapp { background: #25D366; }
.floating-telegram { background: #0088cc; }

@media (max-width: 768px) {
    .floating-contacts {
        bottom: 20px;
        right: 18px;
    }
    .floating-toggle {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    .floating-btn::after {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY — respect OS reduced-motion preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== FIELD-LEVEL VALIDATION ===== */
.field-error {
    display: block;
    color: #dc3545;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
}
.form-group input.input-invalid,
.form-group textarea.input-invalid,
.form-group select.input-invalid,
input.input-invalid,
textarea.input-invalid,
select.input-invalid {
    border-color: #dc3545 !important;
    outline-color: #dc3545;
}

/* ============================================================
   V4 "TRANSPARENT OVER HERO" HEADER  (site-wide, opt-in)
   Pages that add class="nav-overlay" to <body> get a header that
   is transparent over their (dark photo) hero at the top of the
   page, then turns solid navy once scrolled — using the .scrolled
   class already toggled site-wide by includes/footer.php
   (scrollY > 50). No backdrop-filter, so no lag.
   Pages WITHOUT .nav-overlay (e.g. 404, admin) keep the stock
   solid header, so nothing illegible appears over a light page.
   Delete this block + the body classes to revert.
   ============================================================ */
/* dark page backing so no white sliver shows behind the transparent header
   at the very top (the header can be a hair taller than the hero pull-up) */
body.nav-overlay { background-color: #0a1530; }
body.nav-overlay .top-nav-rectangle {
    /* Fixed (out of flow) so the hero can start at the very top of the page and
       fully fill the area behind the transparent header — no dark sliver at the
       top regardless of how tall the header gets (e.g. when zoomed/wrapped).
       See the hero rule below: heroes are NOT pulled up with a negative margin. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(6, 11, 28, 0.55), transparent 92%);
    box-shadow: none;
    border-bottom: none;
}
body.nav-overlay .top-nav-rectangle.scrolled {
    background-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(15, 30, 92, 0.4);
}
/* gold underline accent + faint ghost-button fill so it reads on the photo */
body.nav-overlay .nav_links li a::before { background: var(--color-accent); }
body.nav-overlay .nav-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}
/* pull each page's hero up so the transparent header overlaps the photo.
   Child combinator (>) targets only the top-level page hero, NOT nested
   heroes like the .td-hero mini-hero inside the travels detail panel. */
body.nav-overlay > .hero,
body.nav-overlay > .about-hero,
body.nav-overlay > .news-hero,
body.nav-overlay > .club-hero,
body.nav-overlay > .travels-hero,
body.nav-overlay > .privacy-hero,
body.nav-overlay > .td-hero {
    margin-top: -80px;
}

/* ============================================================
   FIX: dark sliver / line across the very top of every hero.
   The header is now position:fixed (out of flow, see the rule
   above), so heroes must NOT be pulled up with a negative margin
   anymore — they start at the very top of the page and fill the
   whole area behind the transparent header. Each hero's own
   top padding (>=120px) keeps content clear of the header.
   This overrides the older -80px pull-up rule above.
   Delete this block + the position:fixed lines to revert.
   ============================================================ */
body.nav-overlay > .hero,
body.nav-overlay > .about-hero,
body.nav-overlay > .news-hero,
body.nav-overlay > .club-hero,
body.nav-overlay > .travels-hero,
body.nav-overlay > .privacy-hero,
body.nav-overlay > .td-hero {
    margin-top: 0;
}
