:root {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --surface-color-glass: rgba(30, 41, 59, 0.7);
    --primary-color: #84cc16;
    /* Lime 500 */
    --primary-hover: #65a30d;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #84cc16 0%, #10b981 100%);
    --font-family: 'Outfit', sans-serif;
    --container-width: 1200px;
    --radius: 16px;
    --transition: all 0.3s ease;
}

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

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

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

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: var(--surface-color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

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

.site-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.site-title .highlight {
    color: var(--primary-color);
}

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

.site-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
}

.site-nav a:hover {
    color: var(--primary-color);
}

/* Mobile Nav Trigger (Simple Implementation) */
.nav-trigger {
    display: none;
}

.menu-icon {
    display: none;
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
        cursor: pointer;
    }

    .menu-icon svg path {
        fill: var(--text-main);
    }

    .site-nav .trigger {
        display: none;
        /* Simple toggle logic would require JS or checkbox hack better implemented */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-color);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-trigger:checked~.trigger {
        display: flex;
    }
}

/* Page Content */
.page-content {
    padding-top: 80px;
    /* Header height */
    min-height: 80vh;
}

/* Hero Section (Common Utility) */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(132, 204, 22, 0.1), transparent 40%);
}

.hero-home {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    padding: 12rem 0 10rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #0f172a;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.4);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(132, 204, 22, 0.5);
}

/* Cards / Services */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

/* Footer */
.site-footer {
    background: var(--surface-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-col p,
.footer-col a {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-col a:hover {
    color: var(--primary-color);
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.about-grid {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    align-items: start;
}

.whatsapp-card-container {
    grid-column: 2;
    grid-row: 1 / span 6;
}

.contact-intro,
.contact-address,
.contact-details,
.contact-hours,
.contact-legal {
    grid-column: 1;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .whatsapp-card-container,
    .contact-intro,
    .contact-address,
    .contact-details,
    .contact-hours,
    .contact-legal {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Legal Pages Styling */
.legal-page {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.legal-page h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.legal-page-content {
    max-width: 800px;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-page h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.legal-page p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Ensure URLs wrap correctly */
.legal-page a {
    color: var(--primary-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
    /* Forces break on long URLs without spaces */
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .legal-page h1 {
        font-size: 2rem !important;
        /* Force override if inline style remains (though we will remove it) */
    }

    .legal-page h2 {
        font-size: 1.35rem !important;
    }

    .legal-page h3 {
        font-size: 1.15rem !important;
    }

    .legal-page p {
        font-size: 1rem !important;
    }
}