:root {
    --bg: #F3F6FA;
    --panel: #FFFFFF;
    --panel-alt: #E7EDF5;
    --border: #D4DEE9;
    --border-active: #31577D;
    --primary: #31577D;
    --accent: #B8893F;
    --text: #162337;
    --text-dim: #58697D;
    --text-faint: #8A98A8;
    --success: #4F806C;
    --danger: #B84C52;
    --shadow: 0 10px 30px rgba(35, 63, 91, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: var(--primary);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.center-text {
    text-align: center;
    margin: 0 auto;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}

.nav-brand a {
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 32px;
    font-weight: 600;
}

.hero-tag span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #0A5C4A;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 124, 102, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--panel-alt);
}

/* Section Header */
.section-header {
    margin-bottom: 64px;
    max-width: 600px;
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.section-header h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* About */
.about-wrap {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-wrap p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid var(--border);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Services */
.svc-category {
    margin-bottom: 64px;
}

.svc-category h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.svc-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
}

.svc-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(14, 124, 102, 0.12);
}

.svc-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.svc-card h3 i {
    color: var(--accent);
    font-size: 1rem;
}

.svc-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Testimonials */
.test-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 32px;
    scrollbar-width: none;
}

.test-slider::-webkit-scrollbar {
    display: none;
}

.test-card {
    min-width: 350px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    box-shadow: var(--shadow);
}

.test-card p {
    font-style: italic;
    color: var(--text);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.test-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.test-info h4 {
    font-size: 0.95rem;
    color: var(--text);
}

.test-info span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    cursor: pointer;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

.faq-q i {
    color: var(--accent);
    transition: transform 0.3s;
}

.faq-item.active .faq-q i {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-a {
    max-height: 300px;
}

.faq-a p {
    color: var(--text-dim);
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.contact-info,
.contact-form-wrap {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--text);
}

.c-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.c-info-item i {
    width: 40px;
    height: 40px;
    background: var(--panel-alt);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-info-item span {
    color: var(--text-dim);
    font-weight: 500;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: auto;
}

.submit-btn:hover {
    background: #0A5C4A;
    transform: translateY(-2px);
}

/* Newsletter */
.nl-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    box-shadow: var(--shadow);
}

.nl-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    text-align: left;
}

.nl-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nl-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: left;
}

.nl-check input {
    margin-top: 3px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.nl-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.nl-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nl-submit:hover {
    background: #0A5C4A;
}

.nl-submit.unsub {
    background: var(--danger);
}

.nl-submit.unsub:hover {
    background: #8B3940;
}

.nl-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.nl-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Legal Pages (Terms & Privacy) */
.legal-hero {
    padding: 180px 0 60px;
    text-align: center;
    background: var(--panel-alt);
}

.legal-hero h1 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 16px;
}

.legal-hero p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.legal-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.legal-item h6 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.legal-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    margin-top: 80px;
    background: var(--panel);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    color: var(--text-faint);
    font-size: 0.85rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--text);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--success);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--success);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

@media (max-width: 968px) {
    .hero h1 {
        font-size: 3rem;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        display: none;
    }
    .nl-row {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .legal-hero h1 {
        font-size: 2.2rem;
    }
    .nl-container {
        padding: 40px 24px;
    }
}