:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-alt: #eef3f9;
    --text: #18324a;
    --muted: #5e7388;
    --primary: #0066cc;
    --primary-dark: #004499;
    --border: rgba(24, 50, 74, 0.12);
    --shadow: 0 18px 40px rgba(10, 31, 58, 0.08);
    --radius: 20px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(0, 102, 204, 0.08), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
}

a {
    color: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(24, 50, 74, 0.08);
}

.site-nav,
.section,
.footer-inner,
.hero-inner,
.page-hero-inner {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 1.5rem;
}

.logo {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo-image .custom-logo-link {
    display: inline-flex;
}

.logo .custom-logo {
    max-height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    color: var(--text);
}

.site-main {
    min-height: calc(100vh - 220px);
}

.hero,
.page-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero {
    padding: 7rem 0 6rem;
}

.page-hero {
    padding: 4.5rem 0 4rem;
}

.hero-inner,
.page-hero-inner {
    text-align: center;
}

.eyebrow {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    opacity: 0.75;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    line-height: 1.15;
}

.hero h1 {
    max-width: 900px;
    margin-inline: auto;
    font-size: clamp(2.4rem, 4.5vw, 4.4rem);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.hero-copy {
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 132px;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.btn-light {
    background: #fff;
    color: var(--primary);
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(238, 243, 249, 0.95) 100%);
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
}

.section-heading p,
.intro-copy,
.entry-content p,
.entry-content li,
.post-meta {
    color: var(--muted);
}

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

.card-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.card,
.team-card,
.post-card,
.contact-info-panel,
.contact-form-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    grid-column: span 6;
    padding: 2rem;
}

.compact-grid .card {
    grid-column: span 4;
}

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

.card h3,
.service-copy h2,
.team-card h3,
.contact-grid h2 {
    margin-top: 0;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

.two-column,
.service-item,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}

.image-panel {
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-panel img,
.wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-shell {
    width: min(100%, var(--max-width));
    margin: 0 auto;
}

.narrow-shell {
    max-width: 860px;
}

.entry-content h2 {
    margin-top: 2rem;
}

.entry-content ul,
.check-list {
    padding-left: 1.2rem;
}

.service-stack {
    display: grid;
    gap: 2rem;
}

.service-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    border-radius: 28px;
}

.service-item.reverse .service-copy {
    order: 2;
}

.service-item.reverse .image-panel {
    order: 1;
}

.team-card {
    grid-column: span 4;
    padding: 2rem;
    text-align: center;
}

.team-avatar,
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-grid {
    align-items: stretch;
}

.contact-info-panel,
.contact-form-panel {
    padding: 2rem;
}

.notice {
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    background: rgba(0, 102, 204, 0.08);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-top: 1.4rem;
    align-items: flex-start;
}

.info-item .info-icon {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.demo-form {
    display: grid;
    gap: 1rem;
}

.contact-form-live .wpcf7-form {
    display: grid;
    gap: 1rem;
}

.contact-form-live p {
    margin: 0;
    color: var(--muted);
}

.contact-form-live .wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.contact-form-live input,
.contact-form-live textarea,
.contact-form-live select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fbff;
    color: var(--text);
    font: inherit;
}

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

.contact-form-live input:focus,
.contact-form-live textarea:focus,
.contact-form-live select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12);
}

.contact-form-live .wpcf7-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 132px;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.contact-form-live .wpcf7-submit:hover {
    background: var(--primary-dark);
}

.contact-form-live .wpcf7-spinner {
    margin: 0.75rem 0 0 0.75rem;
}

.contact-form-live .wpcf7-not-valid-tip {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #c62828;
}

.contact-form-live .wpcf7-response-output {
    margin: 0.5rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
}

.wide-image {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 280px;
}

.post-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.site-footer {
    background: #10263b;
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem 0;
}

.site-footer a {
    color: #fff;
}

.version-note {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .card,
    .compact-grid .card,
    .team-card {
        grid-column: span 12;
    }

    .two-column,
    .service-item,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-item.reverse .service-copy,
    .service-item.reverse .image-panel {
        order: initial;
    }
}

@media (max-width: 768px) {
    .site-nav {
        padding: 0.75rem 0;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0 0.5rem;
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero {
        padding: 6rem 0 5rem;
    }

    .section {
        padding: 4rem 0;
    }
}
