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

:root {
    --primary: #415050;
    --primary-dark: #2e3a3a;
    --primary-light: #536464;
    --accent: #dcdcbe;
    --accent-dark: #c8c8a4;
    --accent-hover: #b8b890;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: #333;
}

/* ── Popup ── */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeInOverlay 0.4s ease;
}

.popup-overlay.hidden {
    display: none;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.popup-box {
    background: #fff;
    border-radius: 18px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    animation: slideUpPopup 0.45s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}

@keyframes slideUpPopup {
    from { transform: translateY(60px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0)     scale(1);   opacity: 1; }
}

.popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 99999;
    line-height: 1;
    padding: 0;
}

.popup-close:hover {
    background: rgba(255,255,255,0.4);
}

.popup-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2.2rem 2.5rem 1.8rem;
    text-align: center;
}

.popup-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.popup-header h2 {
    color: white;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.popup-header h2 span {
    color: var(--accent);
    font-size: 3rem;
    display: block;
}

.popup-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.popup-body {
    padding: 1.8rem 2.5rem 2rem;
}

.popup-body p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
    text-align: center;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.popup-form input,
.popup-form textarea {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.popup-form input:focus,
.popup-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(65,80,80,0.12);
}

.popup-form textarea {
    resize: vertical;
    min-height: 90px;
}

.popup-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.popup-submit:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(65,80,80,0.35);
}

.popup-disclaimer {
    font-size: 0.78rem !important;
    color: #999 !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
}

.popup-success {
    text-align: center;
    padding: 1rem 0;
}

.popup-success .checkmark {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.popup-success h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.popup-success p {
    color: #666;
    font-size: 0.95rem;
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(0px);
    z-index: 1000;
    padding: 1.4rem 2rem;
    box-shadow: none;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

nav.scrolled .logo { color: var(--primary); }

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    transition: color 0.4s ease;
}

.lang-switch {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.lang-switch:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

nav.scrolled .lang-switch {
    background: var(--primary);
    border-color: transparent;
    color: white;
}

/* ── Hero ── */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.50) 60%,
        rgba(0,0,0,0.72) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: heroFadeUp 1s ease both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(220,220,190,0.15);
    border: 1px solid rgba(220,220,190,0.35);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.15;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    opacity: 0.92;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-button {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(220,220,190,0.35);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220,220,190,0.5);
}

.cta-button-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 30px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.cta-button-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: block;
}

.hero-stat-label {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 0.25rem;
    display: block;
}

.hero-stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.25);
    align-self: stretch;
}

/* ── Stats Banner ── */
.stats-banner {
    background: var(--primary-dark);
    color: white;
    padding: 3.5rem 2rem;
}

.stats-banner-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 0.5rem;
    display: block;
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── About ── */
.about {
    padding: 100px 2rem;
    background: white;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.credential-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.credential-card:hover { transform: translateY(-5px); }

.credential-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ── Services ── */
.services {
    padding: 100px 2rem;
    background: var(--accent);
}

.services h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(65,80,80,0.15);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(65,80,80,0.15);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* ── Testimonials ── */
.testimonials {
    padding: 100px 2rem;
    background: white;
}

.testimonials h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.testimonials .section-subtitle {
    text-align: center;
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(65,80,80,0.15);
}

.quote-mark {
    font-size: 5rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 0.75rem;
    left: 1.5rem;
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    color: #2c2c2c;
    font-size: 0.95rem;
}

.author-info span {
    color: #888;
    font-size: 0.85rem;
}

.star-rating {
    color: var(--accent-dark);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

/* ── Contact ── */
.contact {
    padding: 100px 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(220,220,190,0.15);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220,220,190,0.2);
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.contact-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
}

/* ── Inline Contact Form ── */
.contact-form-wrap {
    max-width: 600px;
    margin: 3rem auto 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(220,220,190,0.2);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(8px);
}

.contact-form-wrap h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.15);
}

.contact-form textarea {
    grid-column: 1 / -1;
    resize: vertical;
    min-height: 100px;
}

.contact-form-submit {
    grid-column: 1 / -1;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    padding: 0.95rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.contact-form-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.contact-success {
    text-align: center;
    padding: 1.5rem 0;
    display: none;
}

.contact-success .big-check { font-size: 2.5rem; margin-bottom: 0.5rem; }
.contact-success h3 { color: var(--accent); font-size: 1.3rem; margin-bottom: 0.4rem; }
.contact-success p  { opacity: 0.8; font-size: 0.95rem; }

/* ── Footer ── */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(220,220,190,0.25);
    color: var(--accent);
    text-decoration: none;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.social-icon:hover {
    background: rgba(220,220,190,0.2);
    border-color: var(--accent);
    transform: translateY(-3px);
    color: #fff;
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; word-wrap: break-word; hyphens: auto; }
    .hero p  { font-size: 1rem; }

    nav  { padding: 1rem; }
    .logo { font-size: 1.2rem; }

    .about h2, .services h2, .testimonials h2, .contact h2 { font-size: 2rem; }
    .about p, .service-card p { font-size: 1rem; }
    .service-card h3 { font-size: 1.3rem; }
    .credential-card h3 { font-size: 1.2rem; }
    .contact p { font-size: 1rem; }
    .contact-info { gap: 1.5rem; }
    .hero-content { padding: 1rem; }
    .testimonial-grid { grid-template-columns: 1fr; }

    .popup-header h2  { font-size: 1.6rem; }
    .popup-header h2 span { font-size: 2.4rem; }
    .popup-body   { padding: 1.4rem 1.5rem 1.6rem; }
    .popup-header { padding: 1.8rem 1.5rem 1.4rem; }

    .hero-stats { gap: 1.2rem; }
    .hero-stat-divider { display: none; }
    .hero-stat-number  { font-size: 1.5rem; }
    .hero-cta-group    { flex-direction: column; align-items: center; }

    .contact-form      { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 1.5rem; }

    .stats-banner-inner { grid-template-columns: 1fr 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
