:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #f0f2f5;
    --text: #1f2937;
    --muted: #667085;
    --line: #dfe3e8;
    --brand: #f0a500;
    --brand-dark: #d99100;
    --dark: #20252c;
    --dark-2: #161a1f;
    --success: #13795b;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(20, 24, 32, .10);
    --radius: 22px;
    --radius-sm: 14px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    transform: translateY(-160%);
    background: #fff;
    color: #111;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.skip-link:focus { transform: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(22,26,31,.97);
    border-bottom: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(16px);
}
.header-inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}
.brand img { width: min(320px, 32vw); }
.header-actions { display: flex; align-items: center; gap: 14px; order: 3; }
.header-phone { text-decoration: none; text-align: right; line-height: 1.2; color: #fff; }
.header-phone-label { display: block; color: rgba(255,255,255,.62); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.header-phone strong { font-size: 1rem; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.primary-nav a {
    text-decoration: none;
    color: rgba(255,255,255,.78);
    font-weight: 700;
    padding: 11px 14px;
    border-radius: 10px;
    transition: .2s ease;
}
.primary-nav a:hover, .primary-nav a.active { color: #fff; background: rgba(255,255,255,.10); }
.primary-nav .nav-cta { background: var(--brand); color: #191919; margin-left: 6px; }
.primary-nav .nav-cta:hover, .primary-nav .nav-cta.active { background: #ffc13d; color: #191919; }
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.07);
    border-radius: 12px;
}
.menu-toggle-lines { width: 20px; display: grid; gap: 4px; }
.menu-toggle-lines span { height: 2px; width: 100%; background: #fff; display: block; transition: .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
    position: relative;
    min-height: 560px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #1b2026;
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(20,25,30,.92) 0%, rgba(20,25,30,.78) 45%, rgba(20,25,30,.28) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding-block: 90px; }
.hero h1 { max-width: 800px; font-size: clamp(2.5rem, 5vw, 4.9rem); line-height: 1.02; letter-spacing: -.045em; margin: 16px 0 20px; }
.hero-copy { max-width: 680px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255,255,255,.82); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.eyebrow { margin: 0; color: #ffd16d; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-dark { color: #8a6200; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #171717; }
.btn-primary:hover { background: #ffb312; }
.btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.36); }
.btn-secondary:hover { background: rgba(255,255,255,.14); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #11151a; }
.btn-light { background: #fff; color: var(--dark); }
.btn-block { width: 100%; }

.section { padding: 90px 0; }
.section-soft { background: var(--surface-soft); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); gap: clamp(48px, 7vw, 90px); align-items: center; }
.section-copy h2, .section-heading h2, .cta-band h2, .contact-info h2, .service-group h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -.035em;
    margin: 12px 0 22px;
}
.section-copy p { font-size: 1.07rem; color: var(--muted); }
.text-link { display: inline-flex; gap: 8px; margin-top: 10px; text-decoration: none; font-weight: 800; color: #795400; }
.image-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #ddd; }
.image-card img { width: 100%; aspect-ratio: 1.28 / 1; object-fit: cover; }
.image-card-tall img { aspect-ratio: 1.15 / .82; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 28px; }
.feature-number { display: inline-flex; color: #9b6a00; font-size: .78rem; font-weight: 900; letter-spacing: .1em; margin-bottom: 34px; }
.feature-card h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.25; }
.feature-card p { margin: 0; color: var(--muted); }
.section-cta { margin-top: 28px; }

.page-hero { background: var(--dark); color: #fff; padding: 86px 0; }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .5fr); gap: 60px; align-items: end; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.03; letter-spacing: -.045em; margin: 14px 0 0; }
.page-hero-inner > p { color: rgba(255,255,255,.72); font-size: 1.08rem; margin: 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values-grid article { background: #fff; border: 1px solid var(--line); padding: 30px; border-radius: var(--radius-sm); }
.values-grid span { color: #9b6a00; font-weight: 900; font-size: .78rem; }
.values-grid h2 { margin: 34px 0 8px; font-size: 1.6rem; }
.values-grid p { margin: 0; color: var(--muted); }

.services-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 56px; align-items: start; }
.services-main { display: grid; gap: 22px; }
.service-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 42px); }
.service-group h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: #4d5867; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #8a6200; font-weight: 900; }
.sticky-card { position: sticky; top: 112px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sticky-card img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; }
.sticky-card-copy { padding: 28px; }
.sticky-card-copy h2 { font-size: 2rem; line-height: 1.12; margin: 10px 0 12px; }
.sticky-card-copy p:not(.eyebrow) { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); gap: 64px; align-items: start; }
.contact-info > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.contact-cards { display: grid; gap: 12px; margin-top: 30px; }
.contact-card { display: grid; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; transition: .2s ease; }
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,24,32,.08); }
.contact-card-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { margin: 3px 0; font-size: 1.14rem; }
.contact-card > span:last-child { color: #8a6200; font-size: .9rem; font-weight: 800; }
.broadcast-note { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.broadcast-note p { color: var(--muted); margin-bottom: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); }
.form-heading h2 { margin: 8px 0 4px; font-size: 2rem; }
.form-heading > p:last-child { color: var(--muted); margin-top: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { margin-top: 18px; }
.field label { display: block; font-weight: 800; margin-bottom: 7px; }
.field input, .field textarea {
    width: 100%;
    border: 1px solid #cfd5dd;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 13px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input { min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: #b47700; box-shadow: 0 0 0 4px rgba(240,165,0,.13); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: block; min-height: 1.2em; color: var(--danger); font-size: .84rem; margin-top: 5px; }
.btn-submit { margin-top: 22px; border: 0; min-width: 170px; }
.btn-loading { display: none; }
.btn-submit.is-loading .btn-label { display: none; }
.btn-submit.is-loading .btn-loading { display: inline; }
.btn-submit:disabled { opacity: .72; cursor: wait; transform: none; }
.form-status { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-weight: 700; }
.form-status.success { background: #e8f6f1; color: var(--success); }
.form-status.error { background: #fff0ef; color: var(--danger); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cta-band { background: var(--brand); color: #171717; padding: 68px 0; }
.cta-band .eyebrow { color: #6f4b00; }
.cta-band h2 { margin-bottom: 0; max-width: 820px; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }

.site-footer { background: var(--dark); color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .8fr; gap: 60px; padding-block: 64px; }
.footer-logo { width: min(280px, 100%); filter: brightness(0) invert(1); opacity: .92; margin-bottom: 18px; }
.footer-grid p { max-width: 480px; color: rgba(255,255,255,.62); }
.footer-grid h2 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 14px; }
.footer-links, .footer-contact { display: grid; gap: 8px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.74); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); background: var(--dark-2); }
.footer-bottom-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-bottom p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.52); }
.cuby-credit { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: rgba(255,255,255,.66); font-size: .82rem; }
.cuby-credit img { width: 18px; height: 15px; object-fit: contain; }
.cuby-credit strong { color: #ff6b20; font-size: .88rem; }
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: .2s ease;
    z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 980px) {
    .header-inner { grid-template-columns: 1fr auto; min-height: 78px; }
    .brand img { width: min(300px, 56vw); }
    .header-actions { grid-column: 2; grid-row: 1; }
    .header-phone { display: none; }
    .menu-toggle { display: inline-flex; }
    .primary-nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 16px;
    }
    .primary-nav.open { display: flex; }
    .primary-nav a { padding: 12px 14px; }
    .primary-nav .nav-cta { margin-left: 0; }
    body.menu-open { overflow: hidden; }
    .intro-grid, .contact-grid, .services-layout { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .sticky-card { position: static; display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; }
    .sticky-card img { height: 100%; aspect-ratio: auto; }
    .page-hero-inner { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1.3fr .7fr 1fr; gap: 32px; }
}

@media (max-width: 700px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section { padding: 68px 0; }
    .hero { min-height: 610px; }
    .hero-overlay { background: linear-gradient(90deg, rgba(20,25,30,.91), rgba(20,25,30,.66)); }
    .hero-content { padding-block: 74px; }
    .hero h1 { font-size: clamp(2.35rem, 12vw, 3.6rem); }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .page-hero { padding: 68px 0; }
    .page-hero h1 { font-size: clamp(2.25rem, 11vw, 3.4rem); }
    .feature-grid, .values-grid, .form-row { grid-template-columns: 1fr; }
    .sticky-card { grid-template-columns: 1fr; }
    .sticky-card img { aspect-ratio: 1.5 / 1; }
    .cta-band-inner { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; padding-block: 50px; }
    .footer-bottom-inner { min-height: auto; padding-block: 20px; flex-direction: column; align-items: flex-start; }
    .cuby-credit { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
