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

:root {
    /* Color Palette */
    --primary: #0a2a4a;
    /* Deep Blue */
    --secondary: #0cbaba;
    /* Turquoise */
    --accent: #e8734a;
    /* Sunset Coral */
    --bg-light: #f5efe6;
    /* Sandy Beige */
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

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

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 5rem 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Navigation (No-Hamburger) ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background: transparent; /* Initially transparent */
}

nav.scrolled {
    background: var(--primary); /* Opaque dark blue */
    padding: 1rem 0;
    box-shadow: var(--shadow);
}


.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #7ee8e8 0%, #f8ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a:not(.cta-button) {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #7ee8e8 0%, #f8ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:not(.cta-button):hover::after {
    width: 100%;
}

.cta-button {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.8rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 115, 74, 0.2);
    vertical-align: middle;
}

.card .cta-button {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent) !important;
    box-shadow: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #ef8a6a;
    box-shadow: 0 6px 20px rgba(232, 115, 74, 0.3);
}

.card .cta-button:hover {
    background: var(--accent);
    color: var(--white) !important;
    box-shadow: 0 6px 20px rgba(232, 115, 74, 0.3);
}

/* Tablet / Mobile Navigation Overrides */
@media (max-width: 1200px) {
    nav {
        background: transparent; /* Start transparent on mobile too */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.scrolled {
        padding: 0.75rem 0;
        background: var(--primary);
    }

    .nav-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .menu-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
        padding: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        background: transparent !important;
    }

    .nav-links.active {
        transform: none;
    }

    .nav-links a:not(.cta-button) {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        flex: 0 1 auto;
    }

    nav.scrolled .nav-links a:not(.cta-button) {
        background: linear-gradient(135deg, #7ee8e8 0%, #f8ffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .cta-button {
        flex: 0 1 auto !important;
        padding: 0.8rem 1.2rem !important;
        font-size: 0.9rem !important;
        border-radius: 50px !important;
    }

    /* Adjust hero/header sections for stacked mobile nav */
    .hero,
    .hero-section,
    header.section {
        padding-top: 18rem !important; /* Increased to avoid overlap with 3-line nav */
        height: auto !important;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center !important;
    }
}

@media (max-width: 600px) {
    .nav-content {
        gap: 1rem;
    }

    .nav-links {
        gap: 0.8rem 1.2rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links a:not(.cta-button) {
        font-size: 0.8rem;
    }

    .hero,
    .hero-section,
    header.section {
        padding-top: 22rem !important; /* High enough to avoid overlap with wrapped grid nav */
    }
}

/* Hero Section */

.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--primary);
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 42, 74, 0.3), rgba(10, 42, 74, 0.5)), url('images/bari-hero.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 2.5rem;
    font-weight: 500;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-button {
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    border: 2px solid var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    vertical-align: middle;
}

.secondary-button:hover {
    background: var(--white);
    color: var(--primary);
}

/* Trust Row */
.trust-row {
    margin-top: 3rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== Cards & Sections ===== */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card-img {
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* ===== Footer ===== */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    background: none;
    -webkit-text-fill-color: var(--white);
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--secondary);
}

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

/* ===== Animations & Utilities ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.badge {
    background: var(--secondary);
    color: var(--white);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: inline-block;
    align-self: flex-start;
    line-height: 1;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}