:root {
    --brand-red: #d04a02;
    --brand-orange: #eb8c00;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --bg: #ffffff;
    --bg-soft: #f4f4f4;
    --bg-dark: #2d2d2d;
    --line: #d9d9d9;
    --container: 1160px;
    --radius: 14px;
    --shadow: 0 10px 24px rgba(26, 26, 26, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

body.admin-bar .site-header {
    top: 32px;
}

h1,
h2,
h3 {
    margin: 0 0 0.75rem;
    line-height: 1.15;
    font-family: "Montserrat", "Source Sans 3", sans-serif;
}

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

h2 {
    font-size: clamp(1.65rem, 2.8vw, 2.65rem);
}

h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container), 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(22, 22, 22, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.nav-wrap {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 46px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: #fff;
}

.brand-text strong {
    font-size: 1rem;
}

.brand-text small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.main-nav a:not(.btn):hover {
    color: #ffba66;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 2rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    margin: 0.36rem 0;
}

.hero {
    --hero-background-image: none;
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(110deg, rgba(45, 45, 45, 0.72), rgba(45, 45, 45, 0.85)),
        var(--hero-background-image),
        linear-gradient(120deg, #4a4a4a, #1f1f1f);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 100%;
    opacity: 0.35;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 5.5rem 0 4.5rem;
    max-width: 850px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 1rem;
}

.hero .eyebrow {
    color: #ffd39a;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    max-width: 720px;
}

.hero-detail {
    color: #f0f0f0;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-dark {
    background: var(--bg-dark);
    color: #fff;
}

.section-dark .eyebrow {
    color: #ffba66;
}

.section-muted {
    background: var(--bg-soft);
}

.split {
    display: grid;
    gap: 1.5rem;
}

.two-col {
    grid-template-columns: 1.2fr 0.8fr;
}

.grid {
    display: grid;
    gap: 1rem;
}

.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.service-card,
.member-card,
.pillar,
.value-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    background: #fff;
}

.card.accent {
    border-top: 4px solid var(--brand-red);
}

.dark-card {
    background: #3b3b3b;
    border-color: #555;
}

.service-card {
    border-top: 4px solid var(--brand-orange);
}

.service-card ul,
.case-list,
.contact-list {
    margin: 0;
    padding-left: 1rem;
}

.service-card li,
.case-list li,
.contact-list li {
    margin-bottom: 0.55rem;
}

.pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar {
    background: #fff;
    border-top: 4px solid var(--brand-red);
}

.number {
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--brand-red);
    border: 1px solid var(--line);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.value-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.value-grid article {
    background: #383838;
    border-color: #575757;
}

.contact-highlight {
    display: grid;
    align-content: start;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.closing-message {
    margin: 1.3rem 0 0;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--brand-red);
    background: #f8f8f8;
    font-weight: 700;
}

.section-contact {
    background: linear-gradient(180deg, #f9f9f9, #fff);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.2rem;
}

.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #c8c8c8;
    border-radius: 0.5rem;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.9rem;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(208, 74, 2, 0.2);
    border-color: var(--brand-red);
}

.contact-trap {
    position: absolute;
    left: -100vw;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-alert {
    margin-bottom: 1rem;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font-weight: 600;
}

.form-alert.success {
    background: #eaf8ed;
    color: #166534;
    border: 1px solid #b5e3c1;
}

.form-alert.error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.form-alert.warning {
    background: #fff7e8;
    color: #8a4b00;
    border: 1px solid #f5d08b;
}



.form-debug-detail {
    margin: 0 0 0.9rem;
    border: 1px solid #f0a8b4;
    border-radius: 8px;
    background: #fffafa;
    padding: 0.6rem 0.7rem;
}

.form-debug-detail summary {
    cursor: pointer;
    font-weight: 700;
    color: #7a1326;
}

.form-debug-detail pre {
    margin: 0.6rem 0 0;
    max-height: 220px;
    overflow: auto;
    font-size: 0.78rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    color: #3a0d15;
}

.form-debug-code {
    margin: 0 0 0.9rem;
    font-size: 0.86rem;
    color: #7a1326;
    background: #fff4f5;
    border: 1px dashed #f0a8b4;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
}

.form-note {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.64rem 1.15rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand-red), var(--brand-orange));
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(0.95);
}

.btn-secondary {
    border-color: #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.site-footer {
    background: #171717;
    color: #fff;
    padding: 1.1rem 0;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
}

@media (max-width: 1080px) {
    .cards-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .value-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .brand-text {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        inset: 80px 0 auto 0;
        background: #1d1d1d;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 1rem 4vw;
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav.open {
        display: flex;
    }

    .two-col,
    .two-up,
    .pillars,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 560px) {
    .cards-3,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}
