/* Integre design system. Source of truth: approved home LP, December 2026.
   Load after legacy/page CSS. Catalog: /design-system.php. */
:root {
    --color-ink: #111111;
    --color-green: #45e5aa;
    --color-paper: #edede8;
    --color-white: #ffffff;
    --bg-color: var(--color-ink);
    --accent-color: var(--color-green);
    --text-primary: var(--color-white);
    --text-secondary: #e2e8f0;
    --text-muted: rgba(255, 255, 255, .76);
    --text-subtle: rgba(255, 255, 255, .68);
    --text-faint: rgba(255, 255, 255, .56);
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: var(--font-main);
    --fs-display: clamp(3.25rem, 4.2vw, 4.25rem);
    --fs-page-title: clamp(2.5rem, 3.55vw, 3.1875rem);
    --fs-h2: clamp(2.35rem, 3.2vw, 3.25rem);
    --fs-h3: clamp(1.35rem, 1.8vw, 1.85rem);
    --fs-body: 1rem;
    --fs-small: .875rem;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --section-space: 120px;
    --intro-space-top: 184px;
    --intro-space-bottom: 112px;
    --content-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --rule-color: rgba(255, 255, 255, .15);
    --button-radius: 999px;
}
html { scroll-padding-top: 144px; }
body { font-family: var(--font-main); }
body .animate-on-scroll { transition-property: opacity, transform; }
body .container { width: min(var(--content-width), 100%); max-width: var(--content-width); padding-inline: 20px; margin-inline: auto; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 4px; }
::selection { background: var(--color-green); color: var(--color-ink); }

/* The logo is the original image, never inverted, recolored or regenerated. */
body #header.site-header {
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    padding: 32px 0;
    background: rgba(17, 17, 17, .92) !important;
    box-shadow: none !important;
    border-radius: 0;
    transform: none;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 180ms ease;
}
body #header.site-header.scrolled { padding-block: 24px; background: rgba(17, 17, 17, .96) !important; }
body #header.site-header::after { background: rgba(255,255,255,.08); opacity: 1; }
body #header.site-header .container { position: static; }
body.traffic-page .container { width: min(var(--content-width),100%); max-width: var(--content-width); padding-inline: 20px; }
.site-header nav { position: static; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
body #header.site-header .logo img { height: 56px; width: auto; max-width: none; filter: none !important; }
body footer .logo img { filter: none !important; }
body #header.site-header .nav-links { display: flex; position: static; gap: 40px; align-items: center; margin: 0; }
body #header.site-header .nav-links a:not(.btn) { color: #e2e8f0 !important; font-size: 1rem; font-weight: 500; }
body #header.site-header .nav-links a:not(.btn):hover { color: #fff !important; }
body #header.site-header .hamburger { display: none; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; }
body #header.site-header .hamburger span { display: block; width: 25px; height: 3px; margin: 5px auto; background: #fff; }

/* Emphasis on dark/light surfaces is green. Green surfaces invert the pair. */
.text-highlight {
    display: inline-block;
    max-inline-size: 100%;
    padding: .06em .16em .1em;
    margin-block: .06em;
    background: var(--highlight-background, var(--color-green));
    color: var(--highlight-color, var(--color-ink));
    font: inherit;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: break-word;
    -webkit-text-fill-color: currentColor;
    border-radius: 0;
}
.text-highlight-dark { --highlight-background: var(--color-ink); --highlight-color: var(--color-green); }
.surface-light {
    --text-primary: #111111;
    --text-secondary: #41524a;
    --text-muted: #41524a;
    --text-subtle: #53635b;
    --rule-color: rgba(17,17,17,.2);
    background: var(--color-paper);
    color: var(--text-primary);
}
.surface-green, .stats-section {
    --text-primary: #111111;
    --text-secondary: #173c2f;
    --text-muted: #173c2f;
    --text-subtle: #173c2f;
    --highlight-background: var(--color-ink);
    --highlight-color: var(--color-green);
    --rule-color: rgba(17,17,17,.25);
    background: var(--color-green);
    color: var(--text-primary);
}
.surface-green :is(h1,h2,h3,p) { color: inherit; }
.surface-green .btn-primary { background: var(--color-ink) !important; color: var(--color-green) !important; border-color: var(--color-ink) !important; }
.surface-green .btn-primary:hover { background: #263b31 !important; }

/* Shared hierarchy and comfortable spacing, including page introductions. */
.site-page-intro { padding: var(--intro-space-top) 0 var(--intro-space-bottom) !important; }
.site-page-intro h1 { font-family: var(--font-display); font-size: var(--fs-page-title) !important; font-weight: 700; letter-spacing: -.035em; line-height: 1.16 !important; margin-block: 32px 40px !important; text-wrap: balance; }
.site-page-intro > .container > p,
.site-page-intro .intro-copy { max-width: 60ch; font-size: var(--fs-body) !important; line-height: 1.85; color: var(--text-muted); }
.site-page-intro :is(.badge,.geo-eyebrow) { margin-bottom: 0; }
body .services-page-header { text-align: left; background: var(--color-ink); }
body .services-page-header :is(h1,p) { margin-inline: 0 !important; }
body :is(.traffic-hero,.geo-hero) { padding-block: var(--intro-space-top) var(--intro-space-bottom) !important; min-height: auto; }
body :is(.traffic-hero,.geo-hero) h1 { font-size: var(--fs-page-title); line-height: 1.16; letter-spacing: -.035em; font-weight: 700; margin-bottom: 40px; }
body .geo-hero h1 { max-width: 1000px; margin-inline: auto; }
body :is(.traffic-section,.geo-page section:not(.geo-hero):not(.geo-proof-strip):not(.geo-references),.lp-video-testimonial) { padding-block: var(--section-space); }
body :is(.traffic-section h2,.geo-section-head h2,.geo-copy h2,.geo-contact-copy h2,.lp-video-copy h2) { font-size: var(--fs-h2); line-height: 1.16; letter-spacing: -.035em; }
body.traffic-page p, body :is(.geo-hero p,.geo-copy > p,.geo-card p,.geo-data-card p,.geo-step p,.geo-question .answer,.geo-contact-copy p,.geo-section-head p,.geo-form > p,.lp-video-copy p) { font-size: var(--fs-body); line-height: 1.85; color: var(--text-muted); }
body :is(.geo-source,.geo-reference-list,.geo-microcopy) { color: var(--text-subtle) !important; }
body.traffic-page .traffic-light { background: var(--color-paper); }
body.traffic-page .traffic-light p { color: #41524a; }
body.traffic-page .traffic-light .text-highlight { color: var(--color-ink); }
body :is(.services-page-header,.geo-contact) { background-image: none; }
body .geo-hero { background: var(--color-ink); }
.geo-hero::before { display: none; }
body :is(.badge,.geo-eyebrow) { border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; color: var(--text-subtle); font-size: .6875rem; font-weight: 700; letter-spacing: .16em; }
body .geo-eyebrow .fas { display: none; }
body .text-gradient { background: none; color: var(--color-green); -webkit-text-fill-color: currentColor; filter: none; }

/* Service and process lists follow the open, divided rows of the home LP. */
body .services-full-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding-bottom: var(--section-space); }
body .service-card-full { min-width: 0; background: transparent; border: 0; border-top: 1px solid var(--rule-color); border-radius: 0; padding: 40px 48px 48px 0; box-shadow: none; }
body .service-card-full:nth-child(even) { padding-inline: 48px 0; border-left: 1px solid var(--rule-color); }
body .service-card-full::before { display: none; }
body .service-card-full:hover { transform: none; box-shadow: none; border-color: var(--rule-color); }
body .service-icon-lg { width: 44px; height: 44px; justify-content: flex-start; margin-bottom: 32px; background: none; border: 0; border-radius: 0; }
body .service-card-full h2 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.025em; }
body .service-card-full p { color: var(--text-muted); font-size: var(--fs-body); line-height: 1.85; }
body :is(.geo-card,.geo-data-card,.geo-step) { border: 0; border-top: 1px solid var(--rule-color); border-radius: 0; padding: 32px 24px 32px 0; background: transparent; box-shadow: none; }
body :is(.geo-card,.geo-data-card):hover { transform: none; box-shadow: none; border-color: var(--rule-color); }
body .geo-card .icon { background: none; border-radius: 0; place-items: start; }
body .geo-question { border: 1px solid var(--rule-color); border-radius: var(--radius-md); box-shadow: none; }
body .geo-truth { padding: var(--section-space) 0 !important; }
body .geo-truth-box { border: 0; border-radius: 0; padding: 0; background: transparent; }
body .geo-truth-box p { color: #173c2f; line-height: 1.85; }
body .geo-truth-box h2 { font-size: var(--fs-h2); line-height: 1.16; margin-bottom: 32px; }

/* Blog and articles: the same dark branded header/intro, with a light reading surface. */
body:is(.blog-page,.article-page) { background: var(--color-paper); color: var(--color-ink); }
body.blog-page .blog-header, body.article-page .post-hero { background: var(--color-ink); color: #fff; text-align: left; }
body.blog-page .blog-header { padding: var(--intro-space-top) 0 88px !important; }
body.blog-page .blog-header h1 { font-size: 51px !important; max-width: none; margin: 32px 0 40px !important; line-height: 1.16 !important; letter-spacing: -.035em; }
body.blog-page .blog-header .badge { color: var(--text-subtle); background: none; border: 0; }
body.blog-page .blog-header p { margin-inline: 0 !important; color: var(--text-muted) !important; font-size: var(--fs-body); line-height: 1.85; }
body.blog-page .featured-post { max-width: var(--content-width); margin: 0 auto; padding: 72px 20px; }
body.blog-page :is(.featured-post-link,.blog-card,.sidebar-widget) { background: transparent; box-shadow: none; border-color: #cbd0c9; border-radius: var(--radius-sm); }
body.blog-page .featured-post-copy h2 { font-size: var(--fs-h2); line-height: 1.16; letter-spacing: -.035em; }
body.blog-page .blog-content h2 { font-size: var(--fs-h3) !important; line-height: 1.25 !important; letter-spacing: -.025em; }
body.blog-page .blog-content p { font-size: var(--fs-body) !important; line-height: 1.85 !important; color: #41524a !important; }
body.blog-page .featured-post-copy p { font-size: var(--fs-body); line-height: 1.85; color: #41524a; }
body.blog-page .featured-post-label, body.blog-page .blog-content > div > span:first-child { color: #086541 !important; }
body.blog-page .sidebar-widget[style*="border-color"] { background: var(--color-green) !important; color: var(--color-ink); border: 0 !important; --highlight-background: #111; --highlight-color: #45e5aa; }
body.blog-page .sidebar-widget[style*="border-color"] p { color: #173c2f !important; }
body.blog-page .sidebar-widget[style*="border-color"] .btn-primary { background: var(--color-ink) !important; border-color: var(--color-ink) !important; color: var(--color-green) !important; }
body.blog-page .widget-title { font-size: 1.125rem; line-height: 1.4; }
body.blog-page .search-input { background: transparent; border-color: #9aa79e; color: #17241e; font: inherit; }
body.article-page .post-hero { min-height: auto; padding: var(--intro-space-top) 20px 80px; }
body.article-page .post-hero-inner { max-width: 1160px; }
body.article-page .post-hero h1 { max-width: 980px; margin: 32px 0 40px; font-size: 51px; line-height: 1.16; letter-spacing: -.035em; }
body.article-page .post-author, body.article-page .post-author strong { color: var(--text-muted); }
body.article-page .post-article { max-width: var(--content-width); margin: 0 auto; padding: 64px 20px 96px; }
body.article-page .post-image { border-radius: var(--radius-sm); box-shadow: none; margin-bottom: 48px; border: 0; }
body.article-page .post-content { max-width: 78ch; margin-inline: auto; background: transparent; border-radius: 0; padding: 0; font-size: var(--fs-body); line-height: 1.85; color: #33483c; overflow-wrap: anywhere; }
body.article-page .post-content h2 { margin-block: 48px 24px; font-size: var(--fs-h2); line-height: 1.25; }
body.article-page .post-content h3 { font-size: var(--fs-h3); line-height: 1.3; }
body.article-page .post-content a { color: #086541; }
body.article-page .post-content table { display: block; max-width: 100%; overflow-x: auto; }
body.article-page .back-btn { box-shadow: none; background: transparent; border: 1px solid #728d7d; }
body:is(.blog-page,.article-page) footer { --text-primary: #fff; --text-secondary: #e2e8f0; background: var(--color-ink); color: #fff; }

/* Dourados uses the same hierarchy. Its statistics have their own row markup. */
body.local-page .hero { min-height: max(760px, 94svh); padding-block: var(--intro-space-top) var(--intro-space-bottom); }
body.local-page .hero h1 { max-width: 900px; margin-inline: auto; margin-bottom: 0; font-size: 51px; font-weight: 700; line-height: 1.16; letter-spacing: -.035em; }
body.local-page .hero-content { max-width: 1000px; }
body.local-page .hero p { margin-block: 12px 44px; font-size: var(--fs-body); line-height: 1.85; color: var(--text-muted); }
body.local-page .hero-buttons { justify-content: center; margin-bottom: 0; }
body.local-page .section-glow, body.local-page .glow-bg { display: none; }
body.local-page .section-header { margin-bottom: 64px; }
body .stats-grid { text-align: left; }
body.local-page .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.local-page .stats-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; }
body.local-page .stats-cards .stat-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 0; }
body.local-page .stats-cards .stat-card p { max-width: none; font-size: var(--fs-body); }
body.local-page .stats-content .btn { margin-top: 8px; }
body.local-page .stats-cards .stat-card:hover { padding-left: 0; }
body.local-page .lp-video-testimonial-grid { grid-template-columns: minmax(0,340px) minmax(0,1fr); gap: 96px; }
body.local-page .lp-video-frame { border-radius: var(--radius-md); background: #222; box-shadow: none; padding: 6px; }
body.local-page .lp-video-frame-inner { border-radius: var(--radius-sm); }
body.local-page .lp-video-play, body.local-page .lp-video-play::before, body.local-page .lp-video-play::after { animation: none; box-shadow: none; }
body.local-page .lp-video-quote { border: 0; padding: 24px 0; background: transparent; }
body.local-page .lp-video-testimonial { background: var(--color-ink); }
body.local-page .lp-video-testimonial::before { display: none; }
body.local-page .contact-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; }
body.local-page .contact-info h2 { overflow-wrap: break-word; }

/* Each repeated gallery set keeps its full width so the copies never overlap. */
.agency-gallery-marquee .marquee-track { flex: 0 0 auto; width: max-content; }
.agency-gallery-marquee .marquee-set { flex: 0 0 auto; width: max-content; }
.agency-gallery-marquee .gallery-photo { flex: 0 0 525px; width: 525px; height: 350px; border-radius: var(--radius-sm); box-shadow: none; }
.agency-gallery-marquee .gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.agency-gallery-marquee::before, .agency-gallery-marquee::after, .agency-gallery-marquee .gallery-photo::after { display: none; }
.agency-gallery-marquee:hover .marquee-track, .agency-gallery-marquee:focus-within .marquee-track { animation-play-state: paused; }
body:is(.local-page,.services-page) .contact-info .info-card { background: transparent; border: 0; border-top: 1px solid var(--rule-color); border-radius: 0; padding: 28px 0; margin-bottom: 0; gap: 24px; box-shadow: none; }
body:is(.local-page,.services-page) .contact-info .info-icon { width: 32px; height: 32px; flex: 0 0 32px; font-size: 1.25rem; background: transparent; border: 0; }
body:is(.local-page,.services-page) .contact-info .info-text h3 { color: #fff; font-size: 1.125rem; line-height: 1.4; margin-bottom: 12px; }
body:is(.local-page,.services-page) .contact-info .info-text p { color: var(--text-muted); line-height: 1.85; }

/* Forms share legible type and simple ruled fields without changing submission logic. */
body :is(.geo-form,.traffic-form) { padding: 40px; border: 1px solid var(--rule-color); border-radius: var(--radius-md); background: rgba(255,255,255,.025); box-shadow: none; }
body :is(.geo-form,.traffic-form,.contact-form) :is(input,select) { font-size: 1rem; min-height: 50px; }
body :is(.geo-form,.traffic-form) :is(input,select) { padding-inline: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); border-radius: 0; }
body :is(.geo-form,.traffic-form) label { font-size: var(--fs-small); color: var(--text-muted); }
body footer { padding-block: 72px 32px; }
body.confirmation-page h1 { font-size: var(--fs-page-title); line-height: 1.16; letter-spacing: -.035em; margin-bottom: 40px; }
body.confirmation-page .brand img { height: 56px; }
body.confirmation-page .lead, body.confirmation-page .contact-note span { color: var(--text-muted); line-height: 1.85; }
body.confirmation-page footer { padding-top: 32px; color: var(--text-subtle); }

@media (max-width: 1050px) {
    :root { --fs-display: clamp(3rem,5.5vw,3.5rem); --fs-h2: clamp(2.2rem,4.5vw,2.8rem); }
    body #header.site-header .hamburger { display: block; flex-shrink: 0; cursor: pointer; }
    body #header.site-header .nav-links { display: none; position: absolute; inset: 100% 0 auto; width: 100%; height: auto; max-height: calc(100dvh - 110px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 16px; padding: 28px 24px 32px; background: #111; border-top: 1px solid var(--rule-color); box-shadow: none; backdrop-filter: none; }
    body #header.site-header .nav-links.active { display: flex; }
    body #header.site-header .nav-links a { display: flex; min-height: 44px; align-items: center; justify-content: center; }
    body.local-page :is(.stats-grid,.contact-grid) { grid-template-columns: minmax(0,1fr); gap: 64px; }
    body.local-page .lp-video-testimonial-grid { grid-template-columns: minmax(0,280px) minmax(0,1fr); gap: 48px; }
}
@media (max-width: 768px) {
    :root { --fs-display: clamp(2.5rem,10vw,3rem); --fs-page-title: clamp(2rem,8vw,2.4rem); --fs-h2: clamp(2rem,8vw,2.4rem); --fs-h3: clamp(1.25rem,5.5vw,1.55rem); --fs-body: .9375rem; --section-space: 86px; --intro-space-top: 160px; --intro-space-bottom: 88px; }
    body .container { padding-inline: 18px; }
    body.traffic-page .container { padding-inline: 18px; }
    body #header.site-header { padding-block: 24px; }
    body #header.site-header.scrolled { padding-block: 20px; }
    body #header.site-header .logo img { height: 46px; }
    body .services-full-grid { grid-template-columns: minmax(0,1fr); }
    body .service-card-full, body .service-card-full:nth-child(even) { padding: 32px 0 40px; border-left: 0; }
    body .site-page-intro h1 { margin-bottom: 32px !important; }
    body.blog-page .blog-header h1, body.article-page .post-hero h1, body.local-page .hero h1 { font-size: var(--fs-page-title) !important; }
    body.blog-page .featured-post { padding-block: 48px; }
    body.blog-page .featured-post-link { grid-template-columns: minmax(0,1fr); }
    body.blog-page .featured-post-copy { padding: 32px 0; }
    body.blog-page .blog-wrapper { grid-template-columns: minmax(0,1fr); gap: 48px; }
    body.blog-page .blog-grid { grid-template-columns: minmax(0,1fr); }
    body.article-page .post-hero { padding-bottom: 64px; }
    body.article-page .post-article { padding-block: 48px 64px; }
    body.local-page .services-grid { grid-template-columns: minmax(0,1fr); }
    body.local-page .hero { min-height: max(680px, 94svh); }
    .agency-gallery-marquee .gallery-photo { flex-basis: 330px; width: 330px; height: 220px; }
    body.local-page .lp-video-testimonial-grid { grid-template-columns: minmax(0,1fr); gap: 48px; }
    body.local-page .lp-video-frame { justify-self: start; }
    body.local-page .lp-video-copy { text-align: left; }
    body.confirmation-page .brand img { height: 46px; }
    body :is(.fade-left,.fade-right) { transform: translateY(24px); }
    body :is(.geo-form,.traffic-form) { padding: 28px 24px; }
    body .geo-truth-box { padding: 0; }
    body footer { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .site-header, .site-header * { transition: none; }
    .agency-gallery-marquee .marquee-track { animation: none; }
}
