/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;700&family=Inter:wght@300;400;700;800&display=swap');

/* Root Variables */
:root {
    --body-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --heading-font: "Oswald", sans-serif;
    --base-font-size: 15px;
    --heading-1-size: 6.1rem;
    --heading-2-size: 3.6rem;
    --heading-3-size: 2.4rem;
    --color-background: #ffffff;
    --color-text: #1c1c1c;
    --color-nav: #808080;
    --color-nav-hover: #1c1c1c;
    --header-height: 120px;
    --container-max-width: 1400px;
    --section-spacing: 8rem;
    --content-width: 1200px;
    --nav-spacing: 2rem;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--base-font-size); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 6rem); }
body { font-family: var(--body-font); font-weight: 400; line-height: 1.6; color: var(--color-text); background-color: var(--color-background); -webkit-font-smoothing: antialiased; padding-top: var(--header-height); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); font-weight: 300; margin-bottom: 1rem; color: var(--color-text); }
h1 { font-size: var(--heading-1-size); }
h2 { font-size: 2.5rem; color: #00695c; }
h3 { font-size: var(--heading-3-size); }
p { margin-bottom: 1.5rem; }
a { color: var(--color-nav); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-nav-hover); }

/* Layout */
.container { max-width: var(--container-max-width); width: 100%; margin: 0 auto; padding: 0 max(3vw, 1rem); }

/* Header */
header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background-color: var(--color-background); padding: 1rem 3vw; z-index: 100000; border-bottom: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; }
.header-inner { width: 100%; max-width: var(--container-max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.header-logo { flex-shrink: 0; }
.header-logo a { color: var(--color-nav); text-decoration: none; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-fast); font-weight: 500; }
.header-logo a:hover { color: var(--color-nav-hover); }
.header-nav { display: flex; align-items: center; }
.header-nav-list { display: flex; gap: var(--nav-spacing); list-style: none; margin: 0; padding: 0; }
.header-nav-link { color: var(--color-nav); text-decoration: none; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-fast); padding: 0.5rem 0; font-weight: 500; position: relative; }
.header-nav-link:hover { color: var(--color-nav-hover); }
.header-nav-link.active { font-weight: 700; }
.header-nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: var(--color-nav-hover); transform: scaleX(0); transition: transform var(--transition-medium); }
.header-nav-link:hover::after, .header-nav-link.active::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; }
.header-actions a { display: flex; align-items: center; color: #0077B5; transition: color var(--transition-fast); }
.header-actions a:hover { color: #005885; }
.header-actions svg { width: 24px; height: 24px; fill: currentColor; }

/* Main Content */
main { margin-top: var(--header-height); padding: 0; min-height: calc(100vh - var(--header-height)); }
.sections { display: flex; flex-direction: column; gap: var(--section-spacing); }
.page-section { padding: 4rem 0; }
.content-wrapper { max-width: var(--content-width); margin: 0 auto; padding: 0 max(3vw, 1rem); text-align: center; }
.content { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.content h3 { font-size: 2rem; line-height: 1.3; letter-spacing: 0.02em; margin: 0; }

/* Hero Section */
.hero-headline { font-size: 2.8rem; line-height: 1.3; text-align: center; margin-bottom: 1rem; }
.hero-mission { font-size: 2.8rem; line-height: 1.3; text-align: center; margin-bottom: 2rem; font-weight: 400; }
.hero-image { width: 100vw; max-width: 100vw; height: 100vh; display: block; margin: 0 calc(-50vw + 50%) -6rem; object-fit: cover; border-radius: 0; box-shadow: none; }

/* Services Preview */
.services-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: var(--container-max-width); margin: 2rem auto 1rem; padding: 0 max(3vw, 1rem); }
.service-card { text-align: center; padding: 2rem; background: #fff; border-radius: 8px; transition: transform 0.3s ease; }
.service-card:hover { transform: translateY(-5px); }
.service-title { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: 0.02em; }
.service-description { color: var(--color-text); line-height: 1.6; margin-bottom: 1.5rem; font-size: 1.1rem; }

/* About Preview */
.about-preview { background-color: transparent; padding: 3rem 0; text-align: center; margin-top: -6rem; border-top: 1px solid rgba(0,0,0,0.1); }
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 2.5rem; color: var(--color-text); }
.about-cta { margin-top: 2rem; }

/* Testimonials */
.testimonials-section { background-color: var(--color-background); padding: 4rem 0; position: relative; border-top: 1px solid rgba(0,0,0,0.1); margin-top: -6rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; max-width: var(--content-width); margin: 0 auto; padding: 0 max(3vw, 1rem); }
.testimonial-item { position: relative; padding: 2rem; }
.testimonial-content { position: relative; padding: 2rem; background: #00695c; border: 1px solid rgba(28, 28, 28, 0.1); }
.testimonial-content::before { content: '"'; position: absolute; top: -1.5rem; left: -1rem; font-size: 5rem; color: rgba(255, 255, 255, 0.2); opacity: 0.5; font-family: var(--heading-font); }
.testimonial-text { font-size: 1.1rem; line-height: 1.7; color: #ffffff; margin-bottom: 1.5rem; }
.testimonial-author { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.25rem; color: #ffffff; }
.testimonial-role { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }

/* Section Titles */
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; letter-spacing: 0.02em; }

/* CTA Section */
.cta-section { padding: 6rem 0; background-color: transparent; border-top: 1px solid rgba(0,0,0,0.1); margin-top: -6rem; }
.cta-grid { display: flex; align-items: center; gap: 4rem; max-width: 1200px; margin: 0 auto; padding: 0 3vw; }
.cta-image { flex: 0 0 500px; }
.cta-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.cta-content { flex: 1; text-align: left; }
.cta-title { font-size: 2.5rem; margin-bottom: 2rem; }
.cta-text { font-size: 1.1rem; color: var(--color-text); margin-bottom: 2rem; }

/* Services Layout (mes-services.html) */
.services-layout { display: flex; gap: 4rem; max-width: 1800px; margin: 0 auto; padding: 2rem 4rem; height: calc(100vh - var(--header-height)); align-items: flex-start; }
.services-sidebar { flex: 0 0 750px; position: sticky; top: calc(var(--header-height) + 2rem); height: calc(100vh - var(--header-height) - 4rem); overflow-y: auto; padding-right: 1rem; scrollbar-width: none; -ms-overflow-style: none; }
.services-sidebar::-webkit-scrollbar { display: none; }
.services-sidebar::after { content: '↓'; position: fixed; bottom: 40px; left: 375px; transform: translateX(-50%); font-size: 2.5rem; color: #00695c; animation: bounce 2s infinite; pointer-events: none; opacity: 0.6; z-index: 1; font-weight: bold; transition: opacity 0.3s ease; }
.services-sidebar.scrolled-to-bottom::after { opacity: 0; }
.services-main { flex: 0 0 750px; height: calc(100vh - var(--header-height) - 4rem); overflow-y: auto; padding-right: 1rem; scroll-padding-top: 2rem; scrollbar-width: none; -ms-overflow-style: none; position: relative; margin-top: 0; }
.services-main::-webkit-scrollbar { display: none; }
.services-main::after { content: '↓'; position: fixed; bottom: 40px; right: 375px; transform: translateX(50%); font-size: 2.5rem; color: #00695c; animation: bounce 2s infinite; pointer-events: none; opacity: 0.6; font-weight: bold; transition: opacity 0.3s ease; }
.services-main.scrolled-to-bottom::after { opacity: 0; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }
.services-layout + .cta-section { margin-top: 4rem; }
.approach-section { background-color: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 3rem; margin-top: 0; }
.approach-section h2 { text-align: center; margin-bottom: 2rem; text-transform: uppercase; font-weight: 300; letter-spacing: 0.05em; }
.approach-section img { max-width: 100%; height: auto; margin: 1rem 0; }
.service-section { padding: 3rem; background-color: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; scroll-margin-top: 2rem; margin-bottom: 3rem; }
.services-main .service-section:first-child { margin-top: 0; }
.service-section h2 { margin-bottom: 2rem; text-transform: uppercase; text-align: center; font-weight: 300; letter-spacing: 0.05em; }
.service-content { font-size: 1.1rem; max-width: 800px; margin: 0 auto; }
.service-content ul { list-style-type: none; padding: 0; margin: 2rem 0; }
.service-content ul li { padding: 0.5rem 0; padding-left: 2rem; position: relative; }
.service-content ul li:before { content: "→"; position: absolute; left: 0; color: var(--color-nav); }
.service-content p strong em { font-size: 1.3rem; color: var(--color-text); display: inline-block; margin: 0.5rem 0; }
.service-content em { font-style: normal; font-weight: bold; color: var(--color-text); }

/* About Page */
.about { max-width: 1200px; margin: 0 auto; padding-top: 0; }
.about .section-title:first-child { margin-top: 0; margin-bottom: 1rem; }
.about-intro, .about-expertise { margin-bottom: 4rem; }
.about-expertise { max-width: 1200px; margin: 0 auto 4rem; padding: 3rem 2rem; border-top: 1px solid rgba(0,0,0,0.1); }
.about-expertise h2 { margin-bottom: 2rem; text-transform: uppercase; text-align: center; color: #00695c; }
.about-expertise p { text-align: justify; }
.bio-grid { display: flex; align-items: flex-start; gap: 3rem; max-width: 1200px; margin: 1rem auto 4rem; padding: 0 2rem; }
.bio-grid .bio-portrait { flex: 0 0 280px; max-width: 280px; }
.bio-grid .bio-portrait img { width: 100%; margin: 0; }
.bio-grid .about-intro { flex: 1 1 auto; font-size: 1.1rem; line-height: 1.7; }
.brand-name { font-family: var(--heading-font); font-weight: 500; font-style: normal; text-transform: uppercase; letter-spacing: 0.05em; }

/* Images */
img { max-width: 100%; height: auto; display: block; margin: 2rem auto; }
.section-image { max-width: 900px; width: 100%; margin: 1.25rem auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

/* Footer */
footer { background-color: #f8f8f8; padding: 4rem 0 0; margin-top: 6rem; border-top: 1px solid rgba(0,0,0,0.1); }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 3vw 3rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-section h3 { font-size: 1.2rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-section p { margin-bottom: 0.5rem; line-height: 1.6; }
.footer-registration { font-size: 0.9rem; color: var(--color-nav); margin-top: 1rem; }
.footer-section a { color: var(--color-text); transition: color var(--transition-fast); }
.footer-section a:hover { color: var(--color-nav-hover); }
.footer-linkedin { display: inline-flex; align-items: center; color: #0077B5 !important; }
.footer-linkedin:hover { color: #005885 !important; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-bottom { background-color: var(--color-text); color: var(--color-background); text-align: center; padding: 1.5rem 0; }
.footer-bottom p { margin: 0; font-size: 0.9rem; }
.copyright-text { color: #999; }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.5rem; font-family: var(--heading-font); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; border: 2px solid #00695c; color: #ffffff !important; background: #00695c; cursor: pointer; transition: all var(--transition-medium); }
.btn:hover { background-color: transparent; color: #00695c !important; border-color: #00695c; }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 200000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); }
.lightbox.active { display: flex; justify-content: center; align-items: center; }
.lightbox-content { max-width: 90%; max-height: 90%; object-fit: contain; cursor: pointer; }
.lightbox-close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: #ccc; }

/* Responsive Design */
@media (max-width: 1300px) {
    .services-layout { flex-direction: column; padding: 0 1rem; }
    .services-sidebar, .services-main { position: relative; height: auto; flex: 0 0 auto; width: 100%; max-width: 600px; margin: 0 auto; }
    .services-sidebar { margin-bottom: 2rem; }
}

@media (max-width: 1024px) {
    :root { --content-width: 90vw; --section-spacing: 4rem; }
    .header-nav-list { gap: 1.5rem; }
}

@media (max-width: 900px) {
    .bio-grid { flex-direction: column; align-items: center; text-align: center; }
    .bio-grid .about-intro { text-align: left; max-width: 700px; }
    .bio-grid .bio-portrait { flex: 0 0 auto; }
    .cta-grid { flex-direction: column; }
    .cta-image { flex: 0 0 auto; max-width: 400px; }
    .cta-content { text-align: center; }
}

@media (max-width: 768px) {
    :root { --header-height: auto; --base-font-size: 14px; }
    body { padding-top: 180px; }
    header { height: auto; }
    .header-inner { flex-wrap: wrap; gap: 1rem; padding: 0.5rem 0; }
    .header-logo { order: 1; flex: 1 1 100%; text-align: center; }
    .header-logo a { font-size: 0.85rem; }
    .header-nav { order: 3; width: 100%; justify-content: center; margin-top: 0; }
    .header-nav-list { flex-direction: row; justify-content: center; gap: 1rem; }
    .header-actions { order: 2; width: 100%; justify-content: center; gap: 1rem; flex-wrap: nowrap; }
    .header-actions .btn { padding: 0.5rem 1rem; font-size: 0.75rem; white-space: nowrap; }
    .content h3 { font-size: 1.5rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-image { height: 60vh; margin-bottom: -3rem; }
    .hero-headline, .hero-mission { font-size: 1.8rem; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 2rem; }
    .services-preview { grid-template-columns: 1fr; }
    .service-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    body { padding-top: 190px; }
    .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .content h3 { font-size: 1.3rem; }
    .hero-headline, .hero-mission { font-size: 1.5rem; }
    .hero-image { height: 50vh; margin-bottom: -2rem; }
    h2 { font-size: 1.8rem; }
    .cta-title { font-size: 1.8rem; }
    .cta-image { flex: 0 0 auto; width: 100%; }
    .header-logo a { font-size: 0.75rem; }
    .header-nav-list { gap: 0.5rem; font-size: 0.85rem; }
    .header-actions .btn { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
    .header-actions-action--social svg { width: 20px; height: 20px; }
}
