/* ═══════════════════════════════════════════
   Pipeline & Purpose — Styles
   Palette: Navy #1B3A5C, Coral #E8A89C, White
   ═══════════════════════════════════════════ */

:root {
    --navy: #1B3A5C;
    --navy-dark: #0F2440;
    --navy-light: #2A5280;
    --coral: #E8A89C;
    --coral-dark: #D4897A;
    --coral-light: #F2C4BB;
    --white: #FFFFFF;
    --off-white: #F8F6F3;
    --gray-100: #F5F5F5;
    --gray-200: #E8E8E8;
    --gray-400: #999;
    --gray-600: #666;
    --gray-800: #333;
    --text: #2C2C2C;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 20px rgba(27,58,92,0.08);
    --shadow-lg: 0 8px 40px rgba(27,58,92,0.12);
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

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

/* ─── NAV ────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius) !important;
    transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--navy-light) !important; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

/* ─── BUTTONS ────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-primary:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(27,58,92,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-large { padding: 18px 40px; font-size: 1.05rem; }

/* ─── HERO ───────────────────────────────── */
.hero {
    padding: 140px 24px 80px;
    background: linear-gradient(160deg, var(--off-white) 0%, var(--white) 50%, var(--coral-light) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}
.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--coral-dark);
    margin-bottom: 16px;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--navy-dark);
    margin-bottom: 24px;
}
.hero h1 .accent { color: var(--coral-dark); }
.hero-sub {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 550px;
    object-fit: contain;
    width: 100%;
}

/* ─── SECTIONS ───────────────────────────── */
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--navy-dark);
    margin-bottom: 12px;
}
.section-sub {
    color: var(--gray-600);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 48px;
}

/* ─── SERVICES ───────────────────────────── */
.services {
    padding: 100px 0;
    background: var(--white);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.service-card {
    padding: 40px 32px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--coral-light);
}
.service-icon {
    width: 48px;
    height: 48px;
    color: var(--coral-dark);
    margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 12px;
}
.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ─── HIGHLIGHTS / STATS ─────────────────── */
.highlights {
    padding: 80px 0;
    background: var(--navy-dark);
    color: var(--white);
}
.highlights .section-title { color: var(--white); text-align: center; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}
.stat { text-align: center; }
.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--coral);
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

/* ─── LOGO MARQUEE ───────────────────────── */
.brands {
    padding: 80px 0;
    background: var(--gray-100);
    overflow: hidden;
}
.brands .section-title { text-align: center; margin-bottom: 48px; }
.brands-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 32px;
}
.brands-note code {
    background: var(--gray-200);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}
.logo-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.logo-track {
    display: flex;
    gap: 48px;
    animation: marquee 40s linear infinite;
    width: max-content;
}
.logo-item {
    flex-shrink: 0;
    padding: 16px 32px;
    background: var(--white);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    border: 1px solid var(--gray-200);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── ABOUT ──────────────────────────────── */
.about {
    padding: 100px 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}
.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-height: 550px;
    object-fit: cover;
}
.about-text p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}
.about-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
.social-link {
    padding: 10px 20px;
    background: var(--off-white);
    color: var(--navy);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
}
.social-link:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ─── GAME ───────────────────────────────── */
.game-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--off-white) 0%, #D6EAF8 100%);
}
.game-section .section-title { text-align: center; }
.game-section .section-sub { text-align: center; margin: 0 auto 32px; }
.game-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--navy);
}
#scubaGame {
    display: block;
    width: 100%;
    height: auto;
    background: #0A2E5C;
}
.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,36,64,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.game-overlay h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.game-overlay p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    max-width: 350px;
}
.game-hud {
    position: absolute;
    top: 12px;
    left: 12px; right: 12px;
    display: flex;
    justify-content: space-between;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* ─── CONTACT ────────────────────────────── */
.contact {
    padding: 100px 0;
    background: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info { padding-top: 20px; }
.contact-info p {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.8;
}
.contact-email-hint {
    margin-top: 12px !important;
    font-size: 0.85rem !important;
    color: var(--gray-400) !important;
}
.contact-form {
    background: var(--off-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232,168,156,0.2);
}
.form-group textarea { resize: vertical; }
.contact-form .btn { width: 100%; text-align: center; }

/* ─── FOOTER ─────────────────────────────── */
.footer {
    padding: 32px 0;
    background: var(--navy-dark);
    color: rgba(255,255,255,0.5);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
}
.footer-copy { font-size: 0.8rem; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-image { order: -1; max-width: 300px; margin: 0 auto; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { max-width: 400px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 500px) {
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: 1fr; }
}
