/* --- VARIABLES --- */
:root {
    --ocean-blue: #0077b6;
    --deep-ocean: #023e8a;
    --midnight-dive: #03045e;
    --soft-sand: #f5deb3;
    --warm-sand: #e9c46a;
    --sunny-yellow: #ffb703;
    --sunset-orange: #fb8500;
    --white: #ffffff;
    --text-dark: #2b2d42;
    --text-muted: #6c757d;
    --light-bg: #fdfaf4;
    --card-bg: #ffffff;
    
    --font-heading: 'Comfortaa', display;
    --font-body: 'Nunito', sans-serif;
    
    --radius-blob: 40% 60% 70% 30% / 40% 50% 60% 50%;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    --shadow-soft: 0 10px 30px rgba(2, 62, 138, 0.08);
    --shadow-hover: 0 15px 40px rgba(2, 62, 138, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--midnight-dive);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; font-size: 1.1rem; }
.lead-text { font-size: 1.25rem; color: var(--text-muted); font-weight: 400; }
.text-highlight { color: var(--sunny-yellow); text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.center { text-align: center; }
.meta-date { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Links & Buttons */
a { text-decoration: none; color: var(--ocean-blue); transition: var(--transition); }
a:hover { color: var(--sunset-orange); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    min-height: 48px;
    text-align: center;
}

.btn-primary {
    background-color: var(--sunny-yellow);
    color: var(--midnight-dive);
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4);
}
.btn-primary:hover {
    background-color: var(--sunset-orange);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 133, 0, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid var(--white);
}
.btn-secondary:hover {
    background-color: var(--white);
    color: var(--midnight-dive);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--ocean-blue);
    color: var(--ocean-blue);
}
.btn-outline:hover {
    background: var(--ocean-blue);
    color: var(--white);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--ocean-blue);
}
.link-arrow::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s;
}
.link-arrow:hover::after { transform: translateX(5px); }

/* --- LAYOUT & SECTIONS --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.w-100 { width: 100%; }

.section { padding: 80px 0; position: relative; }
.section-light { background-color: var(--light-bg); }
.section-dark {
    background-color: var(--midnight-dive);
    color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--sunny-yellow); }

.pattern-sand {
    background-image: radial-gradient(var(--warm-sand) 1px, transparent 1px);
    background-size: 30px 30px;
    background-color: var(--light-bg);
}
.pattern-waves {
    background: linear-gradient(135deg, var(--midnight-dive) 25%, transparent 25%) -50px 0,
    linear-gradient(225deg, var(--midnight-dive) 25%, transparent 25%) -50px 0,
    linear-gradient(315deg, var(--midnight-dive) 25%, transparent 25%),
    linear-gradient(45deg, var(--midnight-dive) 25%, transparent 25%);
    background-size: 100px 100px;
    background-color: var(--deep-ocean);
}

/* --- NAVIGATION --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo svg { height: 45px; width: 45px; }
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--midnight-dive);
}
.logo-text .highlight { color: var(--sunset-orange); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}
.nav-item {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--midnight-dive);
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 0; width: 0; height: 2px;
    background: var(--sunset-orange);
    transition: width 0.3s;
}
.nav-item:hover::after { width: 100%; }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}
.dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-weight: 600;
}
.dropdown-menu li a:hover { background: var(--light-bg); color: var(--ocean-blue); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle .bar {
    width: 30px; height: 3px;
    background: var(--midnight-dive);
    border-radius: 3px;
    transition: var(--transition);
}

/* --- HERO SECTIONS --- */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}
.hero-home { min-height: 100vh; }
.hero-interior { min-height: 50vh; padding: 140px 20px 80px; }
.hero-404 { height: 80vh; padding-top: 100px; }

.hero-content { max-width: 800px; padding: 0 20px; }
.hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.hero-subtext { color: var(--soft-sand); font-size: 1.3rem; margin-bottom: 40px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* --- GRID & CARDS --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--sunny-yellow), var(--sunset-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--light-bg);
    width: 80px; height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto; margin-right: auto;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.article-img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .article-img { transform: scale(1.05); }
.article-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.article-content h3 { font-size: 1.4rem; margin-top: 10px; margin-bottom: 15px; }
.article-content p { color: var(--text-muted); flex-grow: 1; margin-bottom: 20px; }

/* Split Layouts (Text / Image) */
.split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}
.split-content { flex: 1; min-width: 300px; }
.split-image { flex: 1; min-width: 300px; }
.rounded-img { width: 100%; border-radius: var(--radius-lg); }
.shadow-lg { box-shadow: var(--shadow-hover); }

.image-frame.organic-shape {
    border-radius: var(--radius-blob);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: morph 8s ease-in-out infinite;
    position: relative;
    border: 5px solid rgba(255,255,255,0.1);
}
.image-frame img { width: 100%; height: auto; display: block; }
@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Lists and Guides */
.survival-list { list-style: none; margin-top: 30px; }
.survival-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--sunset-orange);
}
.survival-list strong { font-size: 1.2rem; color: var(--sunny-yellow); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }

.styled-list { list-style: none; padding-left: 0; }
.styled-list li { position: relative; padding-left: 30px; margin-bottom: 15px; }
.styled-list li::before {
    content: '🌊';
    position: absolute;
    left: 0; top: 2px;
    font-size: 1.2rem;
}

.guide-steps .step {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
.step-number {
    position: absolute;
    top: -10px; right: 10px;
    font-size: 5rem;
    font-weight: 800;
    color: var(--light-bg);
    z-index: 0;
    font-family: var(--font-heading);
}
.step h3, .step p { position: relative; z-index: 1; }

/* Gear Showcase */
.gear-showcase { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.gear-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.gear-item.reverse { flex-direction: row-reverse; }
.gear-image { flex: 1; min-width: 300px; height: 100%; }
.gear-image img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.gear-details { flex: 1.5; min-width: 300px; padding: 40px; }

/* Forms */
.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--midnight-dive); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5eb;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-bg);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--ocean-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

/* Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card-bordered { border: 1px solid #eee; padding: 25px; border-radius: var(--radius-md); background: var(--white); }
.disclaimer-alert {
    background: rgba(251, 133, 0, 0.1);
    border-left: 4px solid var(--sunset-orange);
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 30px;
}
.info-panel {
    background: var(--white);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 30px 0;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.02);
}
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.phil-box { border-top: 2px solid var(--ocean-blue); padding-top: 20px; }
.legal-text h2 { margin-top: 40px; font-size: 1.8rem; }

/* --- FOOTER --- */
.site-footer {
    background-color: var(--midnight-dive);
    color: var(--white);
    position: relative;
    margin-top: auto;
}
.footer-wave {
    position: absolute;
    top: -49px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.footer-wave svg { display: block; width: calc(100% + 1.3px); height: 50px; }
.footer-wave .shape-fill { fill: var(--midnight-dive); }

.footer-content { padding: 60px 20px 20px; max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h4 { color: var(--sunny-yellow); font-size: 1.5rem; }
.footer-brand .tagline { color: var(--soft-sand); font-style: italic; margin-bottom: 20px; }
.footer-links h4 { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 15px; color: var(--white); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #a1b0c0; }
.footer-links a:hover { color: var(--sunny-yellow); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #8b99a8;
}
.footer-bottom p { margin-bottom: 10px; max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* --- RESPONSIVE MOBILE FIRST ADJUSTMENTS --- */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-home { min-height: 80vh; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: left 0.4s ease;
        overflow-y: auto;
    }
    .nav-links.active { left: 0; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-item { display: block; padding: 15px; font-size: 1.2rem; }
    
    .dropdown-menu {
        position: static;
        opacity: 1; visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-bg);
        display: none;
    }
    .dropdown.active .dropdown-menu { display: block; }
    
    .split-layout { flex-direction: column; }
    .gear-item { flex-direction: column !important; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    .section { padding: 50px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero-interior { padding: 100px 20px 50px; min-height: auto; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .container { padding: 0 15px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-subtext { font-size: 1.1rem; }
    .feature-card { padding: 30px 20px; }
    .form-card { padding: 25px 15px; }
}