/* CSS Variables */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;
    --text-muted: #475569;
    
    --brand-blue: #0b3c9b;
    --brand-blue-light: #2563eb;
    --brand-blue-dark: #1e3a8a;
    
    --brand-orange: #e05615;
    --brand-orange-light: #f97316;
    --brand-orange-dark: #c2410c;

    --blue-glow: rgba(11, 60, 155, 0.15);
    --orange-glow: rgba(224, 86, 21, 0.2);
    --shadow-soft: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-medium: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.04);

    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; color: var(--text-main); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; color: var(--text-main); }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-main); }

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.text-copper { color: var(--brand-orange); }
.text-center { text-align: center; }

/* Utility */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
    color: #fff;
    box-shadow: 0 4px 15px var(--blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 60, 155, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
}

.btn-outline:hover {
    background: var(--brand-blue);
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--brand-orange);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-color: var(--bg-main);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-bg-accent {
    position: absolute;
    right: -10%;
    top: 10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(11, 60, 155, 0.06) 0%, rgba(224, 86, 21, 0.03) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.dark-section {
    background-color: var(--bg-alt);
    border-top: 1px solid rgba(15, 23, 42, 0.02);
    border-bottom: 1px solid rgba(15, 23, 42, 0.02);
}

/* Grid layout */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(11, 60, 155, 0.15);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Services */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-content p {
    margin-top: 1rem;
}

.service-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: var(--bg-alt);
    border: 1px solid rgba(15, 23, 42, 0.02);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(224, 86, 21, 0.15);
    box-shadow: var(--shadow-medium);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 20px rgba(11, 60, 155, 0.15);
}

.team-bio {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.glass-panel {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(11, 60, 155, 0.1);
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
    box-shadow: 0 4px 15px var(--orange-glow);
}

.contact-form .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(224, 86, 21, 0.35);
}

/* Footer */
footer {
    background: #0f172a;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-text-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
}

.footer-logo {
    height: 120px;
}

.footer-links h4 {
    color: #ffffff;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    margin-top: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    line-height: 2;
}

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

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

.mb-2 { margin-bottom: 1.5rem; }

/* Interactive Manifesto */
.manifesto-cta {
    padding-top: 3rem;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.manifesto-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-manifesto {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.btn-manifesto-blue:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--blue-glow);
}

.btn-manifesto-orange:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--orange-glow);
}

.btn-manifesto:active {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: var(--text-muted) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
    transform: scale(0.98) !important;
}

.hidden-section {
    display: none !important;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--brand-orange);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#modal-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

#modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.7;
}

#modal-body li {
    margin-bottom: 0.5rem;
}

/* --- Manifesto Cards Interactive --- */
.manifesto-card {
    cursor: pointer;
    position: relative;
}

.read-more-link {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
    transition: color 0.2s;
}

.manifesto-card:hover .read-more-link {
    color: var(--brand-orange);
}

.hidden {
    display: none !important;
}

/* --- Service Accordions --- */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.service-details.expanded {
    max-height: 1200px;
}

.btn-toggle-service {
    background: none;
    border: none;
    color: var(--brand-orange);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    display: inline-block;
    transition: color 0.2s;
}

.btn-toggle-service:hover {
    color: var(--brand-blue);
}

.btn-toggle-service.active {
    color: var(--brand-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
        box-shadow: var(--shadow-medium);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .hamburger {
        display: flex;
    }

    .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);
    }

    .service-item, .service-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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