/* ================== GLOBAL VARIABLES ================== */
:root {
    /* Mínimalist & Warm Palette */
    --bg-main: #FAFAFA;
    /* Off-white / Paper-like */
    --bg-secondary: #F0F3EF;
    /* Slightly darker cream for sections */
    --bg-white: #FFFFFF;
    /* Pure white for cards */

    --text-main: #2F3E46;
    /* Dark slate gray (softer than black) */
    --text-muted: #5E6D74;
    /* Medium gray for subtitles */

    --accent-primary: #8DB596;
    /* Warm pastel green */
    --accent-secondary: #0ea5e9;
    /* Digital blue */
    --accent-secondary-hover: #0284c7;
    /* Darker digital blue */
    --accent-hover: #759B7D;
    /* Darker mint/green for hover */
    --accent-light: #E8F0E9;
    /* Very light green for subtle backgrounds */

    --border-color: #E2E8F0;
    /* Very light gray for crisp borders */

    /* Shadows - Extremely subtle, Apple style */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 6rem 0;
}

/* ================== NAVBAR ================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 250, 250, 0.85);
    /* Frost effect on light bg */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo .accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-main);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher iOS Style */
.lang-switcher {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    padding: 3px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--bg-white);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.hamburger {
    display: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ================== BUTTONS ================== */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-secondary);
    color: #fff !important;
    /* Forces white on buttons even if links */
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Slight crisp edge */
}

.btn-primary:hover {
    background-color: var(--accent-secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: #d1d9e0;
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

.w-full {
    width: 100%;
    display: block;
    border: none;
    cursor: pointer;
}

.link-arrow {
    color: var(--accent-secondary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow:hover {
    gap: 0.7rem;
    color: var(--accent-secondary-hover);
}

/* ================== INDEX: HERO ================== */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
    /* Account for navbar */
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    background: var(--accent-light);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Abstract Background Visual for index */
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.soft-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -10%;
    right: -10%;
}

/* ================== INDEX: QUICK VALUES ================== */
.quick-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.value-item i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    background: var(--accent-light);
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
}

.value-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ================== INTERIOR PAGES COMMON ================== */
.padding-top-large {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.page-header {
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
}

.text-center {
    text-align: center;
}

.center-text {
    margin-left: auto;
    margin-right: auto;
}

.max-w-sm {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ================== FILOSOFIA ================== */
.content-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.text-block h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.text-block h2:first-child {
    margin-top: 0;
}

.text-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.callout-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.callout-box i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.callout-box h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.callout-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ================== SERVEIS ================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card-clean {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card-clean:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.sc-icon {
    font-size: 1.75rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.service-card-clean h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card-clean p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.cta-banner {
    background: var(--accent-light);
    border-radius: var(--radius-md);
    padding: 4rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-banner h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ================== CONTACTE ================== */
.bg-offwhite {
    background-color: #F8F9FA;
}

/* slightly different for contact */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.method-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.method-card i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    background: var(--bg-white);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.method-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.method-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-clean {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-clean:focus {
    border-color: var(--accent-primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ================== FOOTER ================== */
footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================== MEDIA QUERIES ================== */
@media (max-width: 900px) {

    .content-section,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .quick-values {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem 0;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .services-grid,
    .quick-values {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        margin: 0 auto;
    }
}