/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red: #B43B48;
    --red-hover: #9E3340;
    --red-light: rgba(180,59,72,0.06);
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.nav-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
    height: 88px; display: flex; align-items: center; justify-content: space-between;
    transition: height var(--transition);
}

.nav.scrolled .nav-inner { height: 60px; }

.nav-logo img { height: 64px; transition: height var(--transition); }
.nav.scrolled .nav-logo img { height: 44px; }

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

.nav-links a {
    font-size: 0.85rem; font-weight: 500; color: var(--gray-500);
    transition: color var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }

.nav-links a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--red); border-radius: 1px;
}

.nav-cta {
    background: var(--red) !important; color: var(--white) !important;
    padding: 0.5rem 1.25rem !important; border-radius: 6px;
    font-weight: 600 !important; font-size: 0.8rem !important;
    transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--red-hover) !important; }
.nav-cta::after { display: none !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 6px; }
.nav-hamburger span { width: 20px; height: 2px; background: var(--dark); border-radius: 1px; }

.lang-switch {
    display: flex; gap: 0.25rem; margin-left: 0.5rem;
    padding-left: 1rem; border-left: 1px solid var(--gray-200);
}
.lang-switch a {
    font-size: 0.7rem; padding: 0.2rem 0.4rem; border-radius: 3px;
    color: var(--gray-400); font-weight: 600;
}
.lang-switch a.active { background: var(--gray-100); color: var(--dark); }

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 8rem 0 3rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-header .section-tag { margin-bottom: 0.5rem; }

.page-header h1 {
    font-size: 2.5rem; font-weight: 800; color: var(--dark);
    letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1rem; color: var(--gray-500); max-width: 560px; line-height: 1.7;
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section + .section { border-top: 1px solid var(--gray-200); }

.section-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--red);
}

.section-title {
    font-size: 2rem; font-weight: 800; color: var(--dark);
    letter-spacing: -0.02em; margin-top: 0.5rem; margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1rem; color: var(--gray-500); max-width: 520px; line-height: 1.7;
}

.section-header { margin-bottom: 3rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem; border-radius: 8px;
    font-weight: 600; font-size: 0.9rem; font-family: inherit;
    transition: all var(--transition); cursor: pointer; border: none;
}

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(180,59,72,0.25); }

.btn-outline { background: transparent; color: var(--dark); border: 1px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--gray-500); background: var(--gray-50); }

.btn-ghost { background: transparent; color: var(--red); padding: 0; font-size: 0.85rem; }
.btn-ghost:hover { opacity: 0.7; }

/* ===== CARD GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.card {
    padding: 2rem; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    transition: border-color var(--transition);
}
.card:hover { border-color: var(--gray-400); }

.card h3 { font-size: 0.95rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }
.card p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }

.card-icon {
    width: 40px; height: 40px; background: var(--red-light); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; color: var(--red);
}

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}

.about-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 {
    font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem;
}
.about-text p { margin-bottom: 1rem; font-size: 0.925rem; }

.usp-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }

.usp-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.usp-dot { width: 6px; height: 6px; min-width: 6px; background: var(--red); border-radius: 50%; margin-top: 0.5rem; }
.usp-item h4 { font-size: 0.875rem; font-weight: 600; color: var(--dark); margin-bottom: 0.15rem; }
.usp-item p { font-size: 0.825rem; margin: 0; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.contact-detail { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-detail h4 { font-size: 0.8rem; font-weight: 600; color: var(--dark); margin-bottom: 0.1rem; }
.contact-detail p, .contact-detail a { font-size: 0.85rem; color: var(--gray-500); }
.contact-detail a:hover { color: var(--red); }

.contact-form { background: var(--gray-50); border-radius: var(--radius-lg); padding: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.35rem; }

.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.6rem 0.85rem; border: 1px solid var(--gray-200);
    border-radius: 6px; font-family: inherit; font-size: 0.85rem;
    color: var(--gray-700); background: var(--white); transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.btn-submit {
    width: 100%; padding: 0.75rem; background: var(--red); color: var(--white);
    border: none; border-radius: 8px; font-family: inherit; font-size: 0.85rem;
    font-weight: 600; cursor: pointer; transition: background var(--transition);
}
.btn-submit:hover { background: var(--red-hover); }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 560px; }

.team-card {
    border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    overflow: hidden; transition: border-color var(--transition);
}
.team-card:hover { border-color: var(--gray-400); }

.team-card-img { aspect-ratio: 1; overflow: hidden; background: var(--gray-100); }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; }

.team-card-info { padding: 1.25rem; }
.team-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.team-card .role { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.1rem; }
.team-card .linkedin {
    display: inline-block; margin-top: 0.5rem; font-size: 0.75rem;
    color: var(--gray-400); font-weight: 500; transition: color var(--transition);
}
.team-card .linkedin:hover { color: var(--red); }

/* ===== APPLICATION CARDS ===== */
.app-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1;
}
.app-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.app-card:hover img { transform: scale(1.04); }

.app-card-label {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.app-card h3 { color: var(--white); font-size: 0.9rem; font-weight: 600; }

/* ===== CTA STRIP ===== */
.cta-strip {
    padding: 3rem 0; border-top: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: space-between;
}
.cta-strip h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; }
.cta-strip p { font-size: 0.9rem; color: var(--gray-500); }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--gray-200);
    padding: 4rem 0 2.5rem;
    background: var(--gray-50);
}

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

.footer-brand img { height: 36px; }
.footer-brand p {
    font-size: 0.825rem; color: var(--gray-400); margin-top: 1rem;
    max-width: 280px; line-height: 1.6;
}

.footer h4 {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--dark); margin-bottom: 1rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.825rem; color: var(--gray-400); transition: color var(--transition); }
.footer-links a:hover { color: var(--dark); }

.footer-bottom {
    border-top: 1px solid var(--gray-200); padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.75rem; color: var(--gray-400);
}

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--gray-400); transition: color var(--transition); }
.footer-legal a:hover { color: var(--dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }

    /* Mobile nav */
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-inner { height: 60px; padding: 0 1.25rem; }
    .nav-logo img { height: 48px; }
    .nav.scrolled .nav-logo img { height: 40px; }
    .nav.scrolled .nav-inner { height: 52px; }

    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 60px; left: 0; right: 0; background: var(--white);
        padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--gray-200);
        gap: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
    .nav-links.open li[style] {
        margin-left: 0 !important;
    }
    .lang-switch { margin-left: 0; padding-left: 0; border-left: none; }

    /* Grids to single column */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    /* Typography */
    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.5rem; }
    .section-desc { font-size: 0.9rem; }
    .page-header { padding: 5rem 0 2rem; }
    .page-header h1 { font-size: 1.75rem; }
    .page-header p { font-size: 0.9rem; }

    /* Team */
    .team-grid { grid-template-columns: 1fr; max-width: 280px; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer { padding: 3rem 0 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .footer-legal { flex-direction: column; gap: 0.4rem; }

    /* CTA strip */
    .cta-strip { flex-direction: column; text-align: center; gap: 1rem; }
    .cta-strip h3 { font-size: 1.1rem; }

    /* Buttons */
    .btn { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
