/* ==========================================================================
   Novarise Clean - Premium CSS System
   ========================================================================== */

/* --- CSS Variables & Tokens --- */
:root {
    /* Colors */
    --color-primary: #0f766e;     /* Eco Teal */
    --color-primary-light: #115e59;
    --color-secondary: #0ea5e9;   /* Clean Sky Blue */
    --color-secondary-hover: #0284c7;
    --color-accent: #fcd5ce;      /* Warm soft accent (optional) */
    
    --color-bg-main: #f8f9fa;     /* Off-white */
    --color-bg-alt: #ffffff;
    --color-text-main: #333333;
    --color-text-muted: #6c757d;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--color-text-muted); }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition-normal);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(15, 118, 110, 0.39);
}
.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(15, 118, 110, 0.5);
}

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

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

/* --- Header & Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.logo {
    display: inline-flex;
    align-items: center;
}
.site-logo {
    max-height: 90px;
    width: auto;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-normal);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    color: white;
    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;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.85) 0%, rgba(15, 118, 110, 0.4) 100%);
}

.hero-content {
    max-width: 650px;
    padding: 2rem 0;
}
.hero-content h1 { color: white; margin-bottom: 1.5rem; }
.hero-content p { color: rgba(255, 255, 255, 0.9); font-size: 1.2rem; margin-bottom: 2.5rem; }

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

/* --- Trust Badges --- */
.trust-badges {
    background-color: white;
    padding: 3rem 0;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.05); /* Slight overlap illusion */
    position: relative;
    z-index: 10;
}
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.badge-item {
    padding: 1rem;
}
.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--color-bg-alt);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .card-image img {
    transform: scale(1.05);
}

.service-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-content h3 { margin-bottom: 0.5rem; }
.card-content .btn { margin-top: auto; width: 100%; }

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}
.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* --- Eco Section --- */
.eco-section {
    background-color: var(--color-primary);
    color: white;
}
.eco-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.eco-text, .eco-image { flex: 1; }
.eco-text h2 { color: white; }
.eco-text p { color: rgba(255,255,255,0.8); }
.eco-text ul { margin: 2rem 0; }
.eco-text li {
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}
.eco-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* --- How it Works --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}
.step-card {
    text-align: center;
    position: relative;
}
.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.3);
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--color-bg-main);
    padding: 6rem 0;
}
.contact-form {
    max-width: 500px;
    margin: 2rem auto 0;
}
.input-group {
    display: flex;
    gap: 1rem;
}
.form-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}
.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

/* --- Footer --- */
.footer {
    background-color: #064e3b; /* Dark emerald background */
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; display: inline-block; }
.footer-brand .site-logo {
    max-height: 260px;
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}
.footer-brand p { margin-top: 1rem; font-size: 0.95rem; color: white; }
.footer-links h4 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links a:hover { color: var(--color-secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Footer Trust Badges */
.footer-trust {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    margin-top: -1rem;
    margin-bottom: 2rem;
}
.footer-trust-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 0 1rem;
}
.footer-trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(255,255,255,0.2);
}
.footer-trust-item svg {
    width: 42px;
    height: 42px;
    stroke: var(--color-secondary);
    stroke-width: 1.5;
}
.footer-trust-item span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.3;
}

/* --- Animations (Scroll Reveal) --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fade-in { opacity: 0; transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fade-left { opacity: 0; transform: translateX(-30px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fade-right { opacity: 0; transform: translateX(30px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slide-up { opacity: 0; transform: translateY(50px); transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fade-up.visible, .fade-in.visible, .fade-left.visible, .fade-right.visible, .slide-up.visible { opacity: 1; transform: translate(0) scale(1); }

/* --- FAQ Accordion --- */
.faq-accordion {
    margin-top: 2.5rem;
}
.accordion-item {
    background-color: var(--color-bg-alt);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: var(--transition-normal);
}
.accordion-item:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.04);
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}
.accordion-header:hover {
    color: var(--color-secondary);
}
.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f1f5f9;
    border-radius: 50%;
    color: var(--color-primary);
}
.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
    background-color: var(--color-secondary);
    color: white;
}
.accordion-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}
.accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Responsive Layout --- */
@media (max-width: 992px) {
    .eco-container { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .input-group { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-normal);
    }
    .nav-links.active { left: 0; }
    .mobile-toggle { display: flex; }


    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    
    .footer-grid { grid-template-columns: 1fr; }
    
    .footer-trust { flex-direction: column; gap: 2.5rem; }
    .footer-trust-item:not(:last-child)::after { display: none; }
}

/* --- Pricing Box --- */
.price-box {
    margin: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    text-align: center;
}
.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0.5rem 0;
    font-family: var(--font-heading);
    line-height: 1;
}
.price-original {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.rut-notice {
    background-color: var(--color-primary-light);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}
