/* ==========================================================================
   Watmov Australia - Mobile-First Design System
   Aesthetic: Aquatic/Earthy Glassmorphism
   Rebuilt with mobile-first responsive architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Color Palette */
    --aquatic-deep: #0073A8;
    --aquatic-mid: #1B9CE5;
    --aquatic-light: #71C7EC;
    --earthy-growth: #3A7A33;
    --earthy-light: #6EB85C;
    --slate-engineered: #4A5568;
    --slate-light: #A0AEC0;

    /* Functional Colors */
    --primary: var(--aquatic-deep);
    --secondary: var(--earthy-growth);
    --accent: var(--aquatic-deep);
    --bg-dark: #051923;
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #ffffff;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Gradients */
    --grad-aquatic: linear-gradient(135deg, var(--aquatic-deep) 0%, var(--aquatic-mid) 100%);
    --grad-earthy: linear-gradient(135deg, var(--earthy-growth) 0%, var(--earthy-light) 100%);
    --grad-mixed: linear-gradient(135deg, var(--aquatic-deep) 0%, var(--earthy-growth) 100%);
    --grad-text-light: linear-gradient(135deg, #71C7EC 0%, #6EB85C 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Motion */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE RESET (Mobile-First)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ==========================================================================
   TYPOGRAPHY (Mobile-First)
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

.text-gradient {
    background: var(--grad-mixed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   LAYOUT UTILITIES (Mobile-First)
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.section {
    padding: 3rem 0;
    position: relative;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    padding-bottom: 2rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

/* ==========================================================================
   GLASS COMPONENTS
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    padding: 2rem;
}

/* Hover only on devices that support it */
@media (hover: hover) {
    .glass-card:hover {
        transform: translateY(-10px);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.45);
    }
}

/* Fallback for backdrop-filter on low-end devices */
@supports not (backdrop-filter: blur(16px)) {
    .glass-card {
        background: rgba(30, 50, 60, 0.92);
    }

    .nav-header {
        background: rgba(5, 25, 35, 0.95) !important;
    }
}

/* ==========================================================================
   NAVIGATION (Mobile-First)
   ========================================================================== */
.nav-header {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 1200px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(5, 25, 35, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.nav-header.scrolled {
    background: #051923 !important;
    padding: 0.6rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* --- Nav Links: Hidden on mobile, shown via slide-in panel --- */
.nav-links {
    display: none;
    list-style: none;
}

/* --- Hamburger Button --- */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-fast);
    transform-origin: center;
}

/* Hamburger → X animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Slide-In Menu --- */
.nav-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 25, 35, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 5rem 2rem 2rem;
    gap: 0;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-header.nav-open .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-header.nav-open .nav-links .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
}

/* --- Mobile Overlay --- */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
}

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

/* --- Nav Link Styles --- */
.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

/* ==========================================================================
   BUTTONS (Mobile-First — touch-friendly)
   ========================================================================== */
.btn {
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--grad-mixed);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(11, 58, 83, 0.3);
}

@media (hover: hover) {
    .btn-primary:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(11, 58, 83, 0.4);
    }
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    min-height: 44px;
}

@media (hover: hover) {
    .btn-glass:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* ==========================================================================
   HERO SECTION (Mobile-First)
   ========================================================================== */
.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 25, 35, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 0.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-title-accent {
    background: linear-gradient(135deg, #FFFFFF 0%, #71C7EC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #F8FAFC;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* ==========================================================================
   CAPABILITIES CARDS (Mobile-First)
   ========================================================================== */
.capabilities-grid {
    grid-template-columns: 1fr;
}

.cap-card {
    overflow: hidden;
    padding: 0;
    background: var(--glass-bg);
    text-align: left;
}

.cap-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.cap-card-body {
    padding: 1.25rem;
}

.cap-card h3 {
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-size: 1.35rem;
}

.cap-card p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.cap-card-list {
    color: var(--accent);
    font-size: 0.9rem;
    list-style: none;
    padding: 0;
    font-weight: 500;
}

.cap-card-list li {
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cap-card-list li::before {
    content: "✓";
    font-weight: 800;
}

.cap-card-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SECTOR SECTION (Mobile-First)
   ========================================================================== */
.sectors-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.sector-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
    order: -1;
}

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

.sector-content h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 1.25rem;
}

.sector-block {
    margin-bottom: 1.5rem;
}

.sector-block:last-child {
    margin-bottom: 0;
}

.sector-block h4 {
    margin-bottom: 0.5rem;
}

.sector-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.sector-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   HYBRID MODEL SECTION (Mobile-First)
   ========================================================================== */
.hybrid-section {
    background: var(--aquatic-deep);
    color: var(--white);
    border-radius: var(--radius-md);
    margin: 2rem 0;
    overflow: hidden;
}

.hybrid-grid {
    grid-template-columns: 1fr;
    gap: 0;
}

.hybrid-visual {
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.hybrid-visual-inner {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.hybrid-visual-title {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hybrid-visual-title .accent {
    color: var(--accent);
}

.hybrid-visual-quote {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

.hybrid-info {
    padding: 2rem 1.5rem;
}

.hybrid-info-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.hybrid-info-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.hybrid-features {
    color: white;
    list-style: none;
    padding-left: 0;
}

.hybrid-features li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: start;
    gap: 10px;
}

.hybrid-features .check {
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
    font-weight: 800;
}

/* ==========================================================================
   CTA SECTION (Mobile-First)
   ========================================================================== */
.cta-section {
    background: var(--grad-mixed);
    padding: 4rem 0;
}

.cta-section .hero-title {
    margin-bottom: 1.5rem;
    color: white;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
}

.cta-accent {
    color: var(--aquatic-light);
}

.cta-desc {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-glass {
    padding: 1.2rem 2rem;
    font-size: 1rem;
}

/* ==========================================================================
   FOOTER (Mobile-First)
   ========================================================================== */
.footer {
    background: var(--bg-dark);
    padding: 3rem 0 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-heading {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav .nav-link {
    min-height: 44px;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s forwards;
}

/* Respect reduced motion preferences */
@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;
    }

    .glass-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   RESPONSIVE: LARGE PHONES (≥481px)
   ========================================================================== */
@media (min-width: 481px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-desc {
        padding-bottom: 3rem;
    }

    .hero-buttons {
        flex-direction: row;
        width: auto;
    }

    .cap-card-img {
        height: 200px;
    }

    .sector-image {
        height: 300px;
    }

    .hybrid-visual {
        padding: 3rem 2rem;
    }

    .hybrid-info {
        padding: 3rem 2rem;
    }

    .cta-section {
        padding: 5rem 0;
    }

    .cta-buttons .btn-glass {
        padding: 1.3rem 2.5rem;
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   RESPONSIVE: SMALL TABLETS (≥641px)
   ========================================================================== */
@media (min-width: 641px) {
    .section {
        padding: 4rem 0;
    }

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

    .hybrid-visual {
        padding: 3.5rem;
    }

    .hybrid-info {
        padding: 3.5rem;
    }

    .hybrid-section {
        border-radius: var(--radius-lg);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ==========================================================================
   RESPONSIVE: TABLETS (≥769px)
   ========================================================================== */
@media (min-width: 769px) {
    .container {
        padding: 0 2rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-desc {
        padding-bottom: 4rem;
    }

    .grid {
        gap: 2rem;
    }

    /* --- Desktop nav: hide hamburger, show links --- */
    .mobile-menu-btn {
        display: none;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .nav-header {
        top: 1.5rem;
        width: 90%;
        padding: 1rem 2rem;
    }

    .nav-header.scrolled {
        padding: 0.8rem 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Hero adjustments */
    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        letter-spacing: -0.04em;
    }

    /* Capabilities */
    .capabilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cap-card h3 {
        font-size: 1.5rem;
    }

    /* Sectors */
    .sectors-row {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .sector-image {
        height: 500px;
        order: 0;
    }

    /* Hybrid */
    .hybrid-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hybrid-visual {
        padding: 4rem;
    }

    .hybrid-info {
        padding: 5rem;
    }

    .hybrid-section {
        margin: 4rem 0;
    }

    .hybrid-info-title {
        font-size: 2.2rem;
    }

    .hybrid-info-desc {
        font-size: 1.05rem;
    }

    /* CTA */
    .cta-section {
        padding: 7rem 0;
    }

    /* Footer */
    .footer {
        padding: 6rem 0 3rem;
    }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 4rem;
        margin-bottom: 4rem;
    }
}

/* ==========================================================================
   RESPONSIVE: DESKTOP (≥1025px)
   ========================================================================== */
@media (min-width: 1025px) {
    .nav-links {
        gap: 2.5rem;
    }

    .cta-section {
        padding: 120px 0;
    }

    .cta-buttons .btn-glass {
        padding: 1.5rem 3rem;
        font-size: 1.1rem;
    }
}