:root {
    --primary: #0F172A;
    --secondary: #F97316;
    --text: #334155;
    --light-grey: #F1F5F9;
    --white: #ffffff;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

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

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--primary);
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* UI Elements */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 0;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #e65d00;
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.section {
    padding: 100px 0;
}

.bg-grey {
    background-color: var(--light-grey);
}

/* Header */
.main-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.dot {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links li a:hover,
.nav-cta {
    color: var(--secondary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
}

/* Hero */
.hero {
    height: 90vh;
    background: url('../img/hero-main.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 600px;
    margin-left: 20px; /* Offset for container */
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* Method (ZigZag) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.divider {
    height: 4px;
    width: 80px;
    background-color: var(--secondary);
    margin: 0 auto;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.method-item.reverse {
    flex-direction: row-reverse;
}

.method-text {
    flex: 1;
}

.method-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.method-image {
    flex: 1;
    position: relative;
}

.method-image img {
    border-radius: 5px;
    box-shadow: 20px 20px 0 var(--primary);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-bottom: 4px solid var(--secondary);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
}

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

.card-body {
    padding: 25px;
}

.category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 10px;
    display: block;
}

.card-body h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.read-more {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
}

/* Team */
.team-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.team-content {
    flex: 1;
}

.team-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.team-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.team-img-wrapper {
    flex: 1;
}

.team-img-wrapper img {
    filter: grayscale(100%);
    transition: 0.3s;
}

.team-img-wrapper img:hover {
    filter: grayscale(0);
}

/* Newsletter */
.newsletter-box {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px;
    text-align: center;
    border-radius: 20px;
    max-width: 800px;
}

.newsletter-box h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-newsletter {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-newsletter input[type="email"] {
    padding: 15px;
    border: none;
    font-family: var(--font-body);
}

.check-container {
    text-align: left;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.check-container a {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: #020617;
    color: var(--white);
    padding: 80px 0 20px;
}

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

.branding h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.f-col h5 {
    color: var(--secondary);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.f-col ul {
    list-style: none;
}

.f-col ul li {
    margin-bottom: 10px;
}

.f-col a:hover {
    color: var(--secondary);
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transform: translateY(0);
    transition: transform 0.3s;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: block;
        padding: 10px; /* Touch target */
    }

    .nav-links {
        display: flex; /* Override existing display settings if needed */
        flex-direction: column;
        position: fixed;
        top: 78px;
        right: -100%;
        width: 80%; /* Drawer style */
        height: calc(100vh - 78px);
        background-color: var(--primary);
        padding: 40px 0;
        text-align: center;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links li a {
        font-size: 1.1rem;
        padding: 10px; /* Touch target */
        display: block;
    }
    
    .nav-cta {
        margin-top: 20px;
    }

    /* Layout */
    .hero {
        height: auto;
        min-height: 600px;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        margin-left: 0;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .method-item, .method-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .method-image {
        width: 100%;
    }

    .method-item.reverse .method-image {
        order: -1; /* Image first on mobile */
    }
    
    .team-flex {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }
}