/* Global styles */
:root {
    --bg: #F1F4F7;
    --surface: #ffffff;
    --text: #0D2B45;
    --muted: #5f6b7a;
    --accent: #1E5B6E;
    --accent-light: #d7eff4;
    --border: #e1e5ea;
    --shadow: 0 18px 40px rgba(15, 33, 53, 0.08);
    --gradient: linear-gradient(135deg, #ffffff 0%, #eef4f6 100%);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f9fbfc 100%);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23e1e5ea" opacity="0.1"/></svg>') repeat;
    line-height: 1.6;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e7ebf0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

..logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    max-height: 106px;
    width: auto;
    display: block;
}

@media (max-width: 767px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
    }

    .logo {
        justify-content: center;
    }

    .logo img {
        max-height: 106px;
    }

    .nav-toggle {
        order: 2;
    }

    .site-nav {
        width: 100%;
    }

    .nav-links {
        width: 100%;
        border-radius: 14px;
    }

    .nav-links li a {
        text-align: center;
    }
}

.site-nav {
    width: 100%;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.nav-links.open {
    max-height: 500px;
    opacity: 1;
}

.nav-links li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text);
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: var(--accent-light);
    color: var(--accent);
}

.nav-toggle {
    border: none;
    background: transparent;
    display: inline-flex;
    gap: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    display: block;
    border-radius: 2px;
}

.hero {
    position: relative;
}

.hero-image {
    display: block;
    position: static;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.hero-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    padding: 3rem 0;
}

.trust-card {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 250px;
}

.trust-card h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: var(--text);
}

.trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.icon {
    color: var(--accent);
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-buttons .button {
    width: 100%;
}

.button::after {
    content: " →";
    font-weight: normal;
}

.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--surface);
}

.section-header {
    margin-bottom: 2rem;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
}

h2 {
    font-size: 1.8rem;
    margin-top: 0.5rem;
}

p {
    margin: 0 0 1rem;
}

.grid-3,
.grid-2,
.feature-grid {
    display: grid;
    gap: 1.5rem;
}

.section-footer,
.section .button,
.section-alt .button {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.section+.section,
.section+.section-alt,
.section-alt+.section,
.section-alt+.section-alt {
    margin-top: 2rem;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.card,
.feature-box,
.contact-card,
.contact-form,
.testimonial {
    background: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card {
    animation: slideInLeft 0.7s ease-out forwards;
}

.card:nth-child(odd) {
    animation: slideInLeft 0.7s ease-out forwards;
}

.card:nth-child(even) {
    animation: slideInRight 0.7s ease-out forwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.25s;
}

.card:nth-child(3) {
    animation-delay: 0.4s;
}

.card:nth-child(4) {
    animation-delay: 0.55s;
}

.feature-box {
    animation: slideInUp 0.7s ease-out 0.2s forwards;
    margin-top: 1.5rem;
}

.contact-card,
.contact-form {
    animation: slideInUp 0.7s ease-out forwards;
}

.contact-card {
    animation-delay: 0.15s;
}

.contact-form {
    animation-delay: 0.3s;
}

.testimonial {
    animation: slideInUp 0.7s ease-out forwards;
}

.testimonial:nth-child(1) {
    animation-delay: 0.15s;
}

.testimonial:nth-child(2) {
    animation-delay: 0.3s;
}

.card:hover,
.feature-box:hover,
.contact-card:hover,
.contact-form:hover,
.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(15, 33, 53, 0.12);
}

.section-footer {
    margin-top: 2rem;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.feature-list li::before {
    content: "•";
    margin-right: 0.5rem;
    color: var(--accent);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    font-weight: 600;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 77, 95, 0.3);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #163d50 100%);
    color: #ffffff;
}

.button-primary:hover {
    background: linear-gradient(135deg, #163d50 0%, var(--accent) 100%);
}

.button-secondary {
    background: linear-gradient(135deg, var(--accent-light) 0%, #c7e8f0 100%);
    color: var(--accent);
}

.button-secondary:hover {
    background: linear-gradient(135deg, #c7e8f0 0%, var(--accent-light) 100%);
}

.testimonials .testimonial-author {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--muted);
}

.contact-grid {
    display: grid;
    gap: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f9fbfc;
    margin-bottom: 1rem;
    appearance: none;
}

.contact-form select {
    background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%),
        linear-gradient(135deg, var(--text) 50%, transparent 50%);
    background-position: calc(100% - 1rem) calc(50% - 0.15em), calc(100% - 0.65rem) calc(50% - 0.15em);
    background-size: 0.45em 0.45em, 0.45em 0.45em;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}

.site-footer {
    padding: 2rem 0;
    background: #ffffff;
    border-top: 1px solid #e7ebf0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .nav-links {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-left: auto;
        max-height: none;
        opacity: 1;
        overflow: visible;
    }

    .nav-links li a {
        padding: 0.35rem 0.5rem;
        border-radius: 8px;
        color: var(--accent);
        text-transform: uppercase;
        font-size: 0.9rem;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 0.06em;
    }

    .nav-links li a.button-primary,
    .nav-links li a.button-primary:hover {
        color: #ffffff;
    }

    .nav-cta {
        margin-left: auto;
        padding: 0.35rem 0.75rem;
    }

    .nav-toggle {
        display: none;
    }

    .card:nth-child(odd) {
        animation: slideInUp 0.6s ease-out forwards;
    }

    .card:nth-child(even) {
        animation: slideInUp 0.6s ease-out forwards;
    }

    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        display: block;
    }

    .hero-image img {
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        position: relative;
        z-index: 2;
    }

    .two-column {
        align-items: start;
    }

    .hero-right {
        display: flex;
        justify-content: flex-end;
    }

    .mobile-hero-image {
        display: none;
    }

    .trust-card {
        position: static;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-width: 250px;
    }

    .hero-buttons .button {
        width: auto;
    }

    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .container {
        width: min(1200px, calc(100% - 3rem));
    }

    .hero-content {
        gap: 3rem;
    }

    .section {
        padding: 4rem 0;
    }
}