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

:root {
    --primary: #1A3C34;
    --primary-light: #2A5A4A;
    --accent: #E1C48B;
    --accent-hover: #D4AF37;
    --bg: #FAF9F6;
    --surface: #FFFFFF;
    --text: #111827;
    --text-muted: #4B5563;
    --border: #E5E7EB;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-links {
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.navbar > * {
    align-self: center;
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 85px;
    /* Increased logo size */
    width: auto;
    display: block;
    /* Removes bottom spacing issue */
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.02);
    /* Slight hover effect for logo */
}

.nav-links {
    display: flex;
    align-items: center;
    /* Safely strict vertical centering */
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--accent-hover);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    margin-left: auto;
    margin-right: 8px;
    width: 44px;
    height: 44px;
    padding: 10px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: 3px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--bg);
    padding: 0.85rem 2rem;
    /* Better aesthetic padding */
    border-radius: 50px;
    /* Pill shape for aesthetics */
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-block;
    border: 1px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Nav specific primary btn */
.navbar .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 60, 52, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 1px solid var(--primary);
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Page Hero */
.page-hero {
    padding: 10rem 10% 4rem;
    background-color: var(--surface);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 10% 0;
    /* Add top padding to account for fixed navbar */
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
    color: white;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 60, 52, 0.9) 0%, rgba(26, 60, 52, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    opacity: 0;
    margin-top: 4rem;
    /* Additional push to clear the logo */
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero h1 {
    font-size: 4rem;
    color: var(--bg);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(250, 249, 246, 0.9);
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* Ensure buttons wrap symmetrically on mobile */
}

.hero-btns .btn-secondary {
    border-color: var(--bg);
    color: var(--bg);
}

.hero-btns .btn-secondary:hover {
    background-color: var(--bg);
    color: var(--primary);
}

/* Authority Signals */
.trust-bar {
    background-color: var(--primary-light);
    padding: 1.5rem 5%;
    color: white;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Sections */
section {
    padding: 6rem 10%;
}

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

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Features/Cards */
.card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--accent);
}

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

.card p {
    color: var(--text-muted);
}

/* Split Image/Text */
.img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.img-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* Text Content */
.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

/* Footers */
footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 10% 2rem;
}

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

.footer-col h3 {
    color: white;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-col p {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.footer-logo {
    height: 24px;
    width: auto;
    display: block;
}

.footer-brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:hover {
    background: var(--primary-light);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(225, 196, 139, 0.85);
    outline-offset: 3px;
}

.whatsapp-icon {
    font-size: 18px;
}

@media (min-width: 992px) {
    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        padding: 10px;
    }

    .whatsapp-label {
        display: none;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.specs-table th,
.specs-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    background-color: rgba(26, 60, 52, 0.05);
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--bg);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(10px);
        justify-content: flex-start;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        margin: 0;
        padding: 6rem 0 2rem 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
        overflow-y: auto;
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation to 'X' */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Keep contact button layout tight on mobile if needed */
    .navbar .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .grid-2,
    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 100px 5% 0;
        /* Fix mobile overlap as well */
    }

    section {
        padding: 4rem 5%;
    }

    .page-hero {
        padding: 8rem 5% 3rem;
    }
}