/* ==========================================================================
   Olive Resources — site design system
   Scoped under .or so legacy template pages keep their own styling.
   ========================================================================== */

:root {
    --or-paper: #f6f5ef;
    --or-surface: #ffffff;
    --or-ink: #15201a;
    --or-ink-2: #3a463f;
    --or-muted: #66706a;
    --or-line: #e3e2d8;
    --or-olive: #8fa43e;
    --or-olive-deep: #56651c;
    --or-olive-tint: #eef1df;
    --or-forest: #18241c;
    --or-forest-2: #223127;

    --or-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --or-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --or-radius: 14px;
    --or-radius-lg: 22px;
    --or-shadow: 0 1px 2px rgba(21, 32, 26, .04), 0 12px 32px -12px rgba(21, 32, 26, .12);
    --or-wrap: 1200px;
}

body { margin: 0; background: var(--or-paper); }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

.or, .or * { box-sizing: border-box; }
.or {
    font-family: var(--or-sans);
    color: var(--or-ink-2);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.or h1, .or h2, .or h3, .or h4 {
    font-family: var(--or-serif);
    color: var(--or-ink);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.12;
    margin: 0 0 .5em;
}
.or h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
.or h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.or h3 { font-size: 1.35rem; letter-spacing: -.01em; }
.or h4 { font-family: var(--or-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
:where(.or) p { margin: 0 0 1em; }
.or a { color: var(--or-olive-deep); text-decoration: none; }
.or a:hover { color: var(--or-ink); }
:where(.or) ul, :where(.or) ol { margin: 0; padding: 0; list-style: none; }
.or img { max-width: 100%; height: auto; display: block; }
.or em.or-accent { font-style: italic; color: var(--or-olive-deep); }
.or :focus-visible { outline: 3px solid var(--or-olive); outline-offset: 3px; border-radius: 6px; }

.or-wrap { width: 100%; max-width: var(--or-wrap); margin: 0 auto; padding: 0 24px; }
.or-section { padding: clamp(64px, 9vw, 112px) 0; }
.or-section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.or-section--white { background: var(--or-surface); }
.or-section--dark { background: var(--or-forest); color: #c9d0c6; }
.or-section--dark h2, .or-section--dark h3 { color: #fff; }

.or-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--or-olive-deep); margin-bottom: 18px;
}
.or-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--or-olive); }
.or-section--dark .or-eyebrow { color: var(--or-olive); }

.or-lead { font-size: 1.15rem; color: var(--or-ink-2); max-width: 62ch; }
.or-head { max-width: 760px; margin-bottom: 48px; }
.or-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.or-head--center .or-lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.or-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
    font: 700 .98rem/1 var(--or-sans); cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.or a.or-btn--primary, .or-btn--primary { background: var(--or-ink); color: #fff; }
.or a.or-btn--primary:hover, .or-btn--primary:hover { background: var(--or-olive-deep); color: #fff; transform: translateY(-1px); }
.or a.or-btn--olive, .or-btn--olive { background: var(--or-olive); color: var(--or-forest); }
.or a.or-btn--olive:hover, .or-btn--olive:hover { background: #a3b84f; color: var(--or-forest); }
.or a.or-btn--ghost, .or-btn--ghost { border-color: var(--or-ink); color: var(--or-ink); background: transparent; }
.or a.or-btn--ghost:hover, .or-btn--ghost:hover { background: var(--or-ink); color: #fff; }
.or-btn svg { width: 18px; height: 18px; }
.or-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.or-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.or-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 245, 239, .88);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.or-header.is-scrolled { border-bottom-color: var(--or-line); }
.or-header__bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.or-header__logo img { width: 190px; height: auto; mix-blend-mode: multiply; }
.or-nav { display: flex; align-items: center; gap: 6px; }
.or-nav a {
    padding: 10px 14px; border-radius: 999px; color: var(--or-ink-2);
    font-weight: 600; font-size: .95rem;
}
.or-nav a:hover, .or-nav a[aria-current="page"] { color: var(--or-ink); background: rgba(21, 32, 26, .06); }
.or-header .or-btn { padding: 12px 20px; font-size: .92rem; }
.or-menu-btn {
    display: none; width: 44px; height: 44px; border: 1px solid var(--or-line); border-radius: 12px;
    background: var(--or-surface); color: var(--or-ink); align-items: center; justify-content: center; cursor: pointer;
}
.or-mobile { display: none; }

@media (max-width: 960px) {
    .or-nav, .or-header__cta { display: none; }
    .or-menu-btn { display: inline-flex; }
    .or-mobile {
        position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); overflow-y: auto;
        background: var(--or-paper); padding: 24px;
        display: flex; flex-direction: column; gap: 4px;
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
    }
    .or-mobile.is-open { transform: none; opacity: 1; visibility: visible; }
    .or-mobile a:not(.or-btn) {
        font-family: var(--or-serif); font-size: 1.7rem; color: var(--or-ink);
        padding: 12px 0; border-bottom: 1px solid var(--or-line);
    }
    .or-mobile .or-btn { margin-top: 24px; }
}

/* Breadcrumb */
.or-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--or-muted); margin-bottom: 22px; }
.or-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--or-line); }
.or-crumbs a { color: var(--or-muted); }

/* Hero */
.or-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.or-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.or-hero h1 { margin-bottom: 24px; }
.or-hero .or-lead { margin-bottom: 32px; }
.or-hero__media { position: relative; }
.or-hero__photo {
    border-radius: 200px 200px var(--or-radius-lg) var(--or-radius-lg);
    overflow: hidden; aspect-ratio: 4 / 5; background: var(--or-olive-tint);
}
.or-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.or-hero__note {
    position: absolute; left: -28px; bottom: 40px; max-width: 260px;
    background: var(--or-surface); border-radius: var(--or-radius); padding: 18px 20px; box-shadow: var(--or-shadow);
    display: flex; gap: 14px; align-items: flex-start; font-size: .92rem; line-height: 1.45; color: var(--or-ink-2);
}
.or-hero__note strong { display: block; color: var(--or-ink); font-size: 1rem; }
.or-hero__note .or-dot {
    width: 40px; height: 40px; border-radius: 50%; background: var(--or-olive-tint); color: var(--or-olive-deep);
    display: grid; place-items: center; flex-shrink: 0;
}
.or-hero__ring {
    position: absolute; right: -14%; top: -18%; width: 520px; height: 520px; border-radius: 50%;
    border: 1px solid var(--or-line); pointer-events: none;
}
.or-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: .92rem; color: var(--or-ink-2); }
.or-trust li { display: inline-flex; align-items: center; gap: 8px; }
.or-trust .or-icon { color: var(--or-olive-deep); width: 18px; height: 18px; }

/* Page hero (inner pages) */
.or-page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--or-line); }
.or-page-hero h1 { max-width: 18ch; }

/* Quick answer box — the short, quotable summary AI engines pick up */
.or-answer {
    display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
    background: var(--or-surface); border: 1px solid var(--or-line); border-left: 4px solid var(--or-olive);
    border-radius: var(--or-radius); padding: 24px 28px; max-width: 880px;
}
.or-answer__label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--or-olive-deep); padding-top: 4px; }
.or-answer p { margin: 0; color: var(--or-ink); font-size: 1.08rem; }

/* Logos */
.or-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.or-logos img { max-height: 34px; width: auto; filter: grayscale(1); opacity: .6; transition: opacity .2s, filter .2s; }
.or-logos img:hover { filter: none; opacity: 1; }
.or-logos__label { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--or-muted); margin-bottom: 24px; text-align: center; }

/* Cards / grids */
.or-grid { display: grid; gap: 20px; }
.or-grid--3 { grid-template-columns: repeat(3, 1fr); }
.or-grid--2 { grid-template-columns: repeat(2, 1fr); }
.or-grid--4 { grid-template-columns: repeat(4, 1fr); }

.or-card {
    background: var(--or-surface); border: 1px solid var(--or-line); border-radius: var(--or-radius-lg);
    padding: 32px; display: flex; flex-direction: column; height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.or-card:hover { transform: translateY(-3px); box-shadow: var(--or-shadow); border-color: transparent; }
.or-card__icon {
    width: 52px; height: 52px; border-radius: 16px; background: var(--or-olive-tint); color: var(--or-olive-deep);
    display: grid; place-items: center; margin-bottom: 24px;
}
.or-card__icon .or-icon { width: 24px; height: 24px; }
.or-card p { font-size: .98rem; }
.or-card__link { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; }
.or-card__link .or-icon { width: 16px; height: 16px; transition: transform .2s; }
.or-card:hover .or-card__link .or-icon { transform: translateX(3px); }

.or-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: .96rem; }
.or-checks .or-icon { width: 18px; height: 18px; color: var(--or-olive-deep); margin-top: 4px; }
.or-section--dark .or-checks .or-icon { color: var(--or-olive); }

/* Split */
.or-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.or-split__media { border-radius: var(--or-radius-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.or-split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Process */
.or-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; border-top: 1px solid rgba(255, 255, 255, .14); }
.or-step { padding: 28px 22px 8px 0; position: relative; counter-increment: step; }
.or-step::before {
    content: counter(step, decimal-leading-zero);
    display: block; font-family: var(--or-serif); font-size: 2.6rem; line-height: 1; color: var(--or-olive); margin-bottom: 18px;
}
.or-step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--or-olive); }
.or-step h3 { font-size: 1.2rem; }
.or-step p { font-size: .95rem; margin: 0; }

/* Reasons */
.or-reason { padding: 28px 0; border-top: 1px solid var(--or-line); }
.or-reason h3 { font-size: 1.25rem; }
.or-reason p { margin: 0; font-size: .98rem; }

/* Chips */
.or-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.or-chips li {
    padding: 10px 18px; border-radius: 999px; border: 1px solid var(--or-line); background: var(--or-surface);
    font-weight: 600; font-size: .93rem; color: var(--or-ink);
}

/* Regions */
.or-regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--or-line); }
.or-regions li { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--or-line); }
.or-regions strong { display: block; font-family: var(--or-serif); font-weight: 500; font-size: 1.3rem; color: var(--or-ink); }
.or-regions span { font-size: .92rem; color: var(--or-muted); }

/* FAQ — native <details> keeps answers in the HTML for crawlers */
.or-faq { max-width: 860px; }
.or-faq--center { margin: 0 auto; }
.or-faq details { border-bottom: 1px solid var(--or-line); }
.or-faq details:first-child { border-top: 1px solid var(--or-line); }
.or-faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 24px 0; font-family: var(--or-serif); font-size: 1.25rem; color: var(--or-ink); line-height: 1.3;
}
.or-faq summary::-webkit-details-marker { display: none; }
.or-faq summary .or-icon { transition: transform .25s ease; color: var(--or-olive-deep); }
.or-faq details[open] summary .or-icon { transform: rotate(45deg); }
.or-faq__a { padding: 0 48px 26px 0; }
.or-faq__a p { margin: 0; }

/* CTA band */
.or-cta {
    background: var(--or-forest); color: #c9d0c6; border-radius: var(--or-radius-lg);
    padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
    position: relative; overflow: hidden;
}
.or-cta h2 { color: #fff; margin-bottom: 12px; }
.or-cta p { margin: 0; max-width: 56ch; }
.or-cta::after {
    content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
    border: 48px solid rgba(143, 164, 62, .14); pointer-events: none;
}

/* Contact */
.or-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.or-contact__list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--or-line); }
.or-contact__list li:first-child { border-top: 1px solid var(--or-line); }
.or-contact__list .or-icon { color: var(--or-olive-deep); margin-top: 3px; }
.or-contact__list small { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or-muted); }
.or-contact__list a, .or-contact__list address { color: var(--or-ink); font-weight: 600; font-style: normal; }

.or-form { background: var(--or-surface); border: 1px solid var(--or-line); border-radius: var(--or-radius-lg); padding: clamp(24px, 4vw, 40px); }
.or-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.or-field { margin-bottom: 18px; }
.or-field label { display: block; font-size: .88rem; font-weight: 700; color: var(--or-ink); margin-bottom: 8px; }
.or-field label span { color: var(--or-muted); font-weight: 500; }
.or-field input, .or-field textarea {
    width: 100%; font: 500 1rem/1.4 var(--or-sans); color: var(--or-ink);
    background: var(--or-paper); border: 1.5px solid transparent; border-radius: 12px; padding: 14px 16px;
    transition: border-color .2s, background-color .2s;
}
.or-field textarea { resize: vertical; min-height: 130px; }
.or-field input:focus, .or-field textarea:focus { outline: none; border-color: var(--or-olive); background: #fff; }
.or-field.has-error input, .or-field.has-error textarea { border-color: #b4412f; }
.or-field__error { color: #b4412f; font-size: .85rem; margin-top: 6px; min-height: 0; }
.or-form__note { font-size: .85rem; color: var(--or-muted); margin: 14px 0 0; }
.or-form__status { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.or-form__status.is-ok { background: var(--or-olive-tint); color: var(--or-olive-deep); }
.or-form__status.is-err { background: #f8e7e3; color: #8d2f20; }
.or-form .or-btn { width: 100%; }

/* Service detail blocks */
.or-service { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 72px); padding: 56px 0; border-top: 1px solid var(--or-line); scroll-margin-top: 96px; }
.or-service:first-child { border-top: 0; padding-top: 0; }
.or-service h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Prose (legal pages) */
.or-prose { max-width: 760px; }
.or-prose h2 { font-size: 1.6rem; margin-top: 2em; }
.or-prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.or-prose li { margin-bottom: .4em; }

/* Footer */
.or-footer { background: var(--or-forest); color: #a9b3a7; padding: 80px 0 32px; font-size: .95rem; }
.or-footer a { color: #d9ded5; }
.or-footer a:hover { color: var(--or-olive); }
.or-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.or-footer__brand img { width: 190px; background: var(--or-paper); border-radius: 10px; padding: 10px 12px; margin-bottom: 20px; }
.or-footer h2 { font-family: var(--or-sans); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.or-footer li { padding: 5px 0; }
.or-footer address { font-style: normal; }
.or-footer__bottom {
    margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .88rem;
}
.or-social { display: flex; gap: 10px; }
.or-social a {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
    display: grid; place-items: center;
}
.or-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Reveal on scroll (only when JS is running) */
.or-js .or-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.or-js .or-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .or-js .or-reveal { opacity: 1; transform: none; transition: none; }
    .or *, .or *::before { transition: none !important; }
}

.or-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Responsive */
@media (max-width: 1080px) {
    .or-steps { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
    .or-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .or-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .or-hero__grid, .or-split, .or-contact, .or-service, .or-cta { grid-template-columns: 1fr; }
    .or-hero__media { max-width: 460px; }
    .or-hero__note { left: 12px; }
    .or-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .or-regions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .or { font-size: 16px; }
    .or-wrap { padding: 0 16px; }
    .or-grid--3, .or-grid--2, .or-grid--4, .or-form__row, .or-regions, .or-footer__grid { grid-template-columns: 1fr; }
    .or-steps { grid-template-columns: 1fr; }
    .or-answer { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
    .or-card { padding: 26px; }
    .or-faq__a { padding-right: 0; }
    .or-header__logo img { width: 160px; }
    .or-hero__ring { display: none; }
    .or-logos { justify-content: center; }
}
