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

:root {
    --primary: #1F4788;
    --primary-dark: #142A52;
    --primary-light: #E8EFFF;
    --secondary: #444444;
    --accent: #6C757D;
    --dark: #1A1A1A;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--secondary);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.btn-header {
    padding: 10px 24px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-header:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    padding: 5px;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, rgba(31, 71, 136, 0.5) 0%, rgba(31, 71, 136, 0.3) 100%), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 70px;
    position: relative;
}

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

.hero h1 {
    font-size: 54px;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
    line-height: 1.6;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

section.light-bg {
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 17px;
    color: var(--accent);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.service-card:hover {
    border-left-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.service-card p {
    color: var(--accent);
    line-height: 1.8;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h2 {
    font-size: 40px;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--accent);
    line-height: 1.8;
    font-size: 15px;
}

.about-content .btn {
    margin-top: 20px;
}

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

.team-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.team-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-content {
    padding: 25px;
    text-align: center;
}

.team-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-content p {
    color: var(--accent);
    font-size: 14px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-style: italic;
    font-size: 15px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.testimonial-company {
    color: var(--accent);
    font-size: 13px;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    flex-shrink: 0;
}

.contact-details strong {
    display: block;
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 14px;
}

.contact-details span {
    color: var(--accent);
    font-size: 14px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-message {
    margin: 5px 0 15px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.form-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background: linear-gradient(135deg, #d4f4dd 0%, #e8f9ed 100%);
    color: #0d6832;
    border: 2px solid #52c77c;
    border-left: 5px solid #0d6832;
}

.form-message.success::before {
    content: '✓';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: #0d6832;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    margin-right: 10px;
    font-weight: bold;
}

.form-message.error {
    background: linear-gradient(135deg, #ffe5e5 0%, #fff0f0 100%);
    color: #b42318;
    border: 2px solid #f5c2c0;
    border-left: 5px solid #b42318;
}

.form-message.error::before {
    content: '✕';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: #b42318;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    margin-right: 10px;
    font-weight: bold;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: var(--white);
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    nav ul {
        gap: 20px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 34px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        padding: 15px 0;
        flex-wrap: wrap;
    }

    nav {
        order: 3;
        width: 100%;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        gap: 0;
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        padding: 12px 0;
        display: block;
        border-bottom: 1px solid var(--light);
    }

    nav a::after {
        display: none;
    }

    .phone-link {
        display: none;
    }

    .btn-header {
        padding: 8px 16px;
        font-size: 11px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        margin-top: 70px;
        padding: 60px 0;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 15px;
    }

    section {
        padding: 50px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 17px;
        margin-left: -5px;
        margin-right: 5px;
    }

    .btn-header {
        padding: 6px 12px;
        font-size: 10px;
    }

    .hero {
        margin-top: 65px;
        padding: 40px 0;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .section-header p {
        font-size: 14px;
    }

    section {
        padding: 40px 0;
    }

    .service-card,
    .testimonial-card {
        padding: 20px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .about-content p {
        font-size: 14px;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-info h3 {
        font-size: 20px;
    }

    .contact-item {
        margin-bottom: 20px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    footer {
        padding: 40px 0 15px;
    }

    .footer-col h4 {
        font-size: 16px;
    }

    .testimonial-text {
        font-size: 14px;
    }
}
