/*
Theme Name: Revanta Solutions
Description: A responsive WordPress theme for Revanta Strategic Solutions LLC, with editable starter pages and regional essential-cookie notice.
Version: 1.1.2
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: revanta-solutions
*/

:root {
    --ink: #171b2c;
    --muted: #4d554f;
    --line: #d9ded4;
    --paper: #f8f9f5;
    --lime: #a3e635;
    --lime-hover: #b9f45f;
    --wash: #eff2ea;
    --white: #fff;
    --gutter: clamp(1.125rem, 4vw, 3.75rem);
    --wrap: 1180px;
    --radius: .6rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, .editor-styles-wrapper {
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #45740d; outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 20; padding: .7rem 1rem; background: var(--white); }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
#main:focus { outline: none; }
.site-wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); position: relative; }
.header-layout { min-height: 5.15rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.35rem; }
.site-brand a { display: inline-flex; align-items: center; vertical-align: middle; }
.site-brand img { width: 146px; max-width: 100%; height: auto; display: block; }
.nav-list { display: flex; gap: clamp(.8rem, 2.6vw, 2.3rem); list-style: none; padding: 0; margin: 0; }
.nav-list a { display: block; padding: .45rem 0; font-size: .91rem; font-weight: 600; text-decoration: none; }
.nav-list a:hover, .nav-list [aria-current="page"] { text-decoration: underline; text-decoration-color: #557e21; text-decoration-thickness: 2px; text-underline-offset: .46em; }
.header-cta { justify-self: end; }
.button, .revanta-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .55rem 1.05rem;
    border: 1px solid var(--ink);
    border-radius: .32rem;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}
.button:hover, .revanta-content .wp-block-button__link:hover { background: #333a4f; }
.header-cta, .menu-toggle, .revanta-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); }
.header-cta:hover, .menu-toggle:hover, .revanta-content .is-style-outline .wp-block-button__link:hover { background: var(--wash); }
.button.button-lime, .revanta-content .button-lime .wp-block-button__link { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.button.button-lime:hover, .revanta-content .button-lime .wp-block-button__link:hover { background: var(--lime-hover); }
.menu-toggle { display: none; justify-self: end; min-height: 44px; border: 1px solid var(--line); border-radius: .32rem; padding: .4rem .85rem; font: inherit; font-weight: 700; cursor: pointer; }

.revanta-content :where(h1, h2, h3), .standard-page :where(h1, h2, h3) { margin: 0 0 .8em; line-height: 1.1; font-weight: 760; letter-spacing: -.045em; }
.revanta-content :where(p, ul, ol), .standard-page :where(p, ul, ol) { margin: 0 0 1em; }
.revanta-content :where(p, li), .standard-page :where(p, li) { color: var(--muted); }
.revanta-content h1, .standard-page h1 { font-size: clamp(2.65rem, 5.55vw, 5.45rem); margin-bottom: .26em; line-height: .99; }
.revanta-content h2, .standard-page h2 { font-size: clamp(1.9rem, 3.4vw, 3.45rem); margin-bottom: .32em; }
.revanta-content h3, .standard-page h3 { font-size: clamp(1.2rem, 2.1vw, 1.65rem); margin-bottom: .4em; letter-spacing: -.024em; }
.revanta-content .section-label { color: #486623; text-transform: uppercase; font-size: .87rem; font-weight: 750; letter-spacing: .09em; margin-bottom: 1.15rem; }
.revanta-content .lead { font-size: clamp(1.06rem, 1.7vw, 1.25rem); max-width: 42rem; line-height: 1.55; }
.revanta-content .wp-block-buttons { margin-top: 1.55rem; gap: .65rem; }
.revanta-content .accent { color: #4a681f; }

.hero { padding-block: clamp(2.4rem, 5.3vw, 5.25rem); }
.hero-layout { display: grid; grid-template-columns: 1.03fr 1fr; gap: clamp(1.4rem, 4.2vw, 4.3rem); align-items: center; }
.hero-layout > * { min-width: 0; }
.hero-copy { padding-block: .65rem; }
.hero-copy h1 { font-size: clamp(2.65rem, 5.05vw, 4.45rem); text-wrap: balance; }
.hero-copy .lead { max-width: 28rem; }
.hero-visual { position: relative; padding: 0 .75rem .75rem 0; }
.hero-visual::before { content: ""; position: absolute; inset: .82rem 0 0 .82rem; background: var(--lime); border-radius: var(--radius); }
.hero-visual .wp-block-image { position: relative; margin: 0; display: block; }
.hero-visual img { display: block; width: 100%; aspect-ratio: 1.23; object-fit: cover; object-position: 53% center; border-radius: var(--radius); }
.service-section, .work-section { border-top: 1px solid var(--line); padding-block: clamp(2.8rem, 5vw, 5rem); }
.section-intro { max-width: 47rem; margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.info-card { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: clamp(1rem, 2.2vw, 1.85rem); }
.info-card::before { display: block; content: ""; width: 1.7rem; height: .23rem; background: var(--lime); margin-bottom: 1.05rem; }
.info-card > :last-child { margin-bottom: 0; }
.revanta-content .card-link { margin-top: 1.2rem; color: var(--ink); font-weight: 700; }
.work-section { background: var(--wash); }
.work-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 6vw, 6rem); }
.work-grid > * { min-width: 0; }
.phase { border-top: 1px solid #cbd3c4; padding: 1rem 0 .55rem; }
.phase h3 { letter-spacing: -.02em; font-size: 1.23rem; }
.phase p { margin-bottom: .65rem; }
.cta-band { background: var(--ink); color: var(--white); padding-block: clamp(2.35rem, 4vw, 3.8rem); }
.cta-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 2rem; }
.cta-layout p { color: #e2e7ed; margin-bottom: 0; }
.cta-layout .wp-block-buttons { margin: 0; }
.cta-layout :focus-visible, .cookie-notice :focus-visible { outline-color: var(--lime); }

.page-intro { background: var(--wash); padding-block: clamp(2.7rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-intro h1 { max-width: 58rem; }
.page-intro .lead { margin: .85rem 0 0; }
.page-section { padding-block: clamp(2.25rem, 5vw, 4.3rem); }
.page-section .info-card ul { padding-left: 1.15rem; }
.text-column { max-width: 750px; }
.content-stack > .wp-block-group + .wp-block-group { margin-top: 2.25rem; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; }
.contact-grid a { overflow-wrap: anywhere; }
.policy-copy { width: min(750px, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 5rem); overflow-wrap: anywhere; }
.policy-copy h1, .standard-page h1 { font-size: clamp(2.65rem, 5vw, 4.5rem); }
.policy-copy h2 { font-size: clamp(1.35rem, 3.1vw, 1.75rem); margin-top: 1.65em; }
.policy-copy ul { padding-left: 1.35rem; }
.policy-copy li + li { margin-top: .4rem; }
.policy-copy .policy-note { border-left: .25rem solid var(--lime); padding-left: 1rem; }
.privacy-opt-out {
    margin-block: 1.6rem;
    padding: clamp(1rem, 3vw, 1.6rem);
    border: 1px solid var(--line);
    border-inline-start: .3rem solid var(--lime);
    border-radius: var(--radius);
    background: var(--white);
}
.policy-copy .privacy-opt-out h2 { margin-top: 0; }
.policy-note:empty { margin: 0; }
.standard-page { padding-block: 3rem; min-height: 42vh; }

.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; background: var(--paper); font-size: .9rem; color: var(--muted); }
.footer-layout { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.4rem; }
.footer-company { margin: 0 0 .35rem; font-weight: 750; color: var(--ink); }
.site-footer address { font-style: normal; margin-bottom: .3rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; }
.site-footer a { overflow-wrap: anywhere; }
.privacy-opt-out-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: .18em;
    cursor: pointer;
}
.revanta-content .opt-out-feedback, .site-footer .opt-out-feedback { margin: .55rem 0 0; }
.opt-out-feedback:empty { margin: 0 !important; }
.cookie-notice { position: fixed; z-index: 25; right: clamp(.75rem, 3vw, 2rem); bottom: clamp(.75rem, 3vw, 2rem); width: min(27rem, calc(100% - 1.5rem)); display: flex; align-items: center; gap: 1rem; background: var(--ink); color: var(--white); border: 1px solid #495169; border-radius: var(--radius); padding: .95rem 1.05rem; box-shadow: 0 .6rem 2rem #171b2c2e; }
.cookie-notice p, .cookie-notice a { font-size: .9rem; margin: .22rem 0; }
.cookie-notice a { color: #d1f4a0; }
.notice-links { display: flex; flex-wrap: wrap; gap: .1rem .8rem; }
.cookie-notice .button { flex: 0 0 auto; max-width: 9rem; text-align: center; }
@media (max-width: 420px) {
    .cookie-notice { align-items: flex-start; flex-direction: column; }
    .cookie-notice .button { max-width: none; }
}
.no-script-notice { margin: 1em; }

@media (max-width: 760px) {
    .header-layout { grid-template-columns: 1fr auto; gap: .45rem 1rem; padding-block: .75rem; min-height: 4.3rem; }
    .site-brand img { width: 124px; }
    .header-cta { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; }
    #primary-navigation { grid-column: 1 / -1; }
    .menu-toggle:not([hidden]) ~ #primary-navigation:not(.is-open) { display: none; }
    .nav-list { gap: .5rem 1.2rem; flex-wrap: wrap; }
    .nav-list a { min-height: 44px; display: inline-flex; align-items: center; }
    .hero-layout, .work-grid, .cta-layout, .contact-grid { grid-template-columns: 1fr; }
    .hero-copy { padding: 0; }
    .hero-visual img { aspect-ratio: 1.45; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-layout { flex-direction: column; }
}

.hero-revised { padding-block: clamp(2.6rem, 6vw, 6rem); }
.hero-revised .hero-copy h1 { max-width: 13ch; }
.hero-revised .hero-visual img { aspect-ratio: 1.23; }
.diagnosis-list, .service-detail-section > .site-wrap { border-bottom: 1px solid var(--line); }
.diagnosis-row, .service-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1rem, 6vw, 5rem);
    padding-block: clamp(1.2rem, 3vw, 2.3rem);
    border-top: 1px solid var(--line);
}
.diagnosis-row .section-label { margin-bottom: .6rem; }
.diagnosis-row h3 { font-size: clamp(1.35rem, 2.45vw, 2.15rem); }
.diagnosis-row > div > :last-child, .service-detail > div > :last-child { margin-bottom: 0; }
.service-detail { align-items: start; }
.service-detail h2 { scroll-margin-top: 1.25rem; font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.service-shortcuts { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; padding-bottom: .8rem; }
.service-shortcuts .card-link { margin: 0 0 .4rem; }
.deliverables-panel {
    padding: clamp(1rem, 3vw, 1.85rem);
    border: 1px solid var(--line);
    border-inline-start: .3rem solid var(--lime);
    border-radius: var(--radius);
    background: var(--white);
}
.deliverables-panel ul, .revanta-content .info-card ul, .work-grid ul { padding-inline-start: 1.25rem; }
.deliverables-panel li + li, .info-card li + li, .work-grid li + li { margin-top: .45rem; }
.deliverables-panel > :last-child { margin-bottom: 0; }
.process-row h2 { font-size: clamp(1.5rem, 2.7vw, 2.4rem); }
.process-row:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 850px) {
    .header-layout { min-height: 4.3rem; }
    .nav-list { gap: .8rem; }
}
@media (max-width: 760px) {
    .hero-revised .hero-visual img { aspect-ratio: 1.45; }
    .diagnosis-row, .service-detail { grid-template-columns: 1fr; gap: .65rem; }
    .diagnosis-row h3 { margin-bottom: 0; }
    .nav-list { gap: .5rem 1.2rem; }
}
