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

:root {
    --navy: #1a2332;
    --navy-light: #2a3a52;
    --blue: #2c5aa0;
    --blue-light: #3a6db5;
    --blue-pale: #e8f0fa;
    --gold: #c8a84e;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-400: #ced4da;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--navy);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--blue-light);
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

/* ===== Layout ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section--gray {
    background: var(--gray-50);
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

.section__title {
    margin-bottom: 20px;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 680px;
    margin-bottom: 48px;
}

.section__subtitle--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

/* ===== Navigation ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
}

.navbar__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar__brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.navbar__brand span {
    color: var(--blue);
}

.navbar__links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.navbar__links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
    color: var(--navy);
    border-bottom-color: var(--blue);
}

.navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 100px 0 110px;
}

.hero__content {
    max-width: 720px;
}

.hero__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 24px;
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 600px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--blue-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn--outline:hover {
    border-color: var(--white);
    color: var(--white);
}

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

.btn--outline-dark:hover {
    background: var(--blue);
    color: var(--white);
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card__icon {
    width: 48px;
    height: 48px;
    background: var(--blue-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card__link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue);
}

.card__link:hover {
    color: var(--blue-light);
}

/* ===== Service Blocks (services page) ===== */
.service-block {
    padding: 48px 0;
    border-bottom: 1px solid var(--gray-200);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--navy);
}

.service-block p {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 820px;
}

/* ===== Feature / About Blocks ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature {
    padding: 36px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.feature__icon {
    width: 56px;
    height: 56px;
    background: var(--blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}

.cta-banner h2 {
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
}

.contact-card__icon {
    width: 56px;
    height: 56px;
    background: var(--blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.4rem;
}

.contact-card h3 {
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.contact-card a {
    font-weight: 600;
}

/* ===== Contact Form ===== */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-400);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn--full {
    width: 100%;
    padding: 16px 32px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success__icon {
    width: 64px;
    height: 64px;
    background: #d4edda;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    font-weight: 700;
}

.form-success h3 {
    margin-bottom: 12px;
    color: var(--navy);
}

.form-success p {
    color: var(--gray-600);
    font-size: 1.05rem;
    max-width: 440px;
    margin: 0 auto;
}

/* ===== Page Header (non-home pages) ===== */
.page-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 56px 0;
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 32px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 32px;
}

.footer__brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.footer__brand span {
    color: var(--gold);
}

.footer__tagline {
    font-size: 0.9rem;
    max-width: 320px;
}

.footer__links h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 8px;
}

.footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: var(--white);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .hero { padding: 64px 0 72px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.05rem; }

    .section { padding: 56px 0; }

    .navbar__links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--gray-200);
        gap: 0;
    }

    .navbar__links.open {
        display: flex;
    }

    .navbar__links li {
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .navbar__links li:last-child {
        border-bottom: none;
    }

    .navbar__toggle {
        display: block;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
    }
}
