:root {
    --green: #1E8E3E;
    --red: #C62828;
    --yellow: #F4B400;
    --black: #111111;
    --white: #FFFFFF;
    --ink: #1d2520;
    --muted: #647067;
    --line: #e6ece8;
    --soft: #f6f8f4;
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Montserrat", Arial, sans-serif; line-height: 1.08; margin: 0 0 1rem; letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 5.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; color: var(--muted); }
.material-symbols-rounded {
    font-family: "Material Symbols Rounded";
    font-weight: normal;
    font-style: normal;
    font-size: 1.15em;
    line-height: 1;
    display: inline-flex;
    vertical-align: middle;
}
.material-link { display: inline-flex; align-items: center; gap: .45rem; }
.material-link.inline { gap: .25rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 5vw, 4rem);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--black));
    border-radius: 8px;
    font-weight: 800;
    font-family: "Montserrat", Arial, sans-serif;
}
.brand-logo {
    width: auto;
    height: 48px;
    max-width: 150px;
    object-fit: contain;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--red); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; font-size: .94rem; font-weight: 600; }
.site-nav a { color: #26332a; }
.nav-cta { padding: .75rem 1rem; border-radius: var(--radius); background: var(--black); color: var(--white) !important; }
.nav-toggle { display: none; border: 0; background: var(--black); color: var(--white); border-radius: 8px; width: 42px; height: 42px; font-size: 1.2rem; }

.hero {
    position: relative;
    min-height: 86vh;
    display: grid;
    align-items: end;
    isolation: isolate;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(17,17,17,.86), rgba(17,17,17,.35), rgba(30,142,62,.22)),
        url("https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=1800&q=85") center/cover;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(transparent, rgba(17,17,17,.72));
    z-index: -1;
}
.hero-content {
    width: min(980px, calc(100% - 2rem));
    padding: 8rem 0 6rem;
    margin: 0 auto;
    color: var(--white);
}
.hero-content p { color: rgba(255,255,255,.86); max-width: 760px; font-size: 1.08rem; }
.eyebrow {
    color: var(--green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: .78rem;
}
.hero .eyebrow { color: var(--yellow); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.8rem; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .82rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 700;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn::after,
.material-action::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 0;
    height: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
    transform: translate(-50%, -50%);
    transition: width .34s ease, height .34s ease;
}
.btn:hover,
.material-action:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(17,17,17,.14); }
.btn:active::after,
.material-action:active::after { width: 220px; height: 220px; }
.btn.primary { background: var(--green); color: var(--white); }
.btn.light { background: var(--white); color: var(--black); }
.btn.outline { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn.whatsapp { background: #25D366; color: var(--white); }
.btn.full { width: 100%; margin: 1rem 0; }

.content-section { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 5.5rem 0; }
.content-section.narrow { width: min(820px, calc(100% - 2rem)); font-size: 1.05rem; }
.content-section.soft { width: 100%; padding-inline: max(1rem, calc((100vw - 1180px) / 2)); background: var(--soft); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-head h2 { max-width: 780px; }

.card-grid, .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature-card, .project-card, .values article, blockquote, .contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(17,17,17,.06);
}
.feature-card img, .project-card img { width: 100%; height: 230px; object-fit: cover; }
.feature-card div, .project-card div { padding: 1.35rem; }
.feature-card p:first-child, .project-card span { color: var(--red); font-weight: 800; font-size: .78rem; text-transform: uppercase; }
.feature-card h2,
.project-card h2 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.22;
    margin-bottom: .75rem;
}
.feature-card h3,
.project-card h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.24;
    margin-bottom: .7rem;
}
.feature-card a, .project-card a { color: var(--green); font-weight: 800; }

.stats-band {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--black);
    color: var(--white);
}
.stats-band div { padding: 2rem; border-right: 1px solid rgba(255,255,255,.14); }
.stats-band strong { display: block; font-family: "Montserrat", Arial, sans-serif; font-size: 2.6rem; color: var(--yellow); }
.stats-band span { color: rgba(255,255,255,.76); }

.cta-section {
    width: min(1180px, calc(100% - 2rem));
    margin: 5rem auto;
    padding: 2.2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, var(--black), #26332a);
    color: var(--white);
    border-radius: var(--radius);
}
.cta-section p { color: rgba(255,255,255,.78); }
.newsletter {
    padding: 3rem 1rem 5rem;
    text-align: center;
    background: #fff9e8;
}
.newsletter form { display: flex; gap: .5rem; justify-content: center; max-width: 580px; margin: 1rem auto 0; }
.newsletter input, .newsletter button, .contact-form input, .contact-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    font: inherit;
}
.newsletter button { width: auto; background: var(--red); color: var(--white); font-weight: 800; border: 0; }

.page-hero, .sector-hero {
    padding: clamp(5rem, 10vw, 8rem) 1rem;
    color: var(--white);
    text-align: center;
    background: linear-gradient(135deg, rgba(17,17,17,.86), rgba(30,142,62,.72)), url("https://images.unsplash.com/photo-1495107334309-fcf20504a5ab?auto=format&fit=crop&w=1800&q=85") center/cover;
}
.page-hero.compact h1, .sector-hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.page-hero p, .page-hero span, .sector-hero p { color: rgba(255,255,255,.86); }
.sector-hero.energy { background-image: linear-gradient(135deg, rgba(17,17,17,.8), rgba(198,40,40,.56)), url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1800&q=85"); }
.sector-hero.transport, .sector-hero.logistics { background-image: linear-gradient(135deg, rgba(17,17,17,.82), rgba(244,180,0,.32)), url("https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1800&q=85"); }
.sector-hero.livestock { background-image: linear-gradient(135deg, rgba(17,17,17,.82), rgba(30,142,62,.48)), url("https://images.unsplash.com/photo-1516467508483-a7212febe31a?auto=format&fit=crop&w=1800&q=85"); }

.values { width: min(1180px, calc(100% - 2rem)); margin: 0 auto 5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.values article { padding: 1.5rem; }
.gallery-grid { width: min(1180px, calc(100% - 2rem)); margin: 4rem auto; columns: 3 280px; column-gap: 1rem; }
.gallery-grid figure { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-grid figcaption { padding: .85rem 1rem; font-weight: 700; }
.contact-layout { width: min(1100px, calc(100% - 2rem)); margin: 4rem auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem; }
.contact-form { display: grid; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form label { display: grid; gap: .35rem; font-weight: 700; }
.contact-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hidden-field { position: absolute; left: -9999px; }
.contact-card { padding: 1.5rem; align-self: start; }
.single-hero { width: min(920px, calc(100% - 2rem)); margin: 4rem auto 2rem; }
.single-hero a { color: var(--green); font-weight: 800; }
.single-hero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.single-website { margin-top: 1rem; color: var(--white) !important; }
.single-image { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; max-height: 540px; object-fit: cover; border-radius: var(--radius); }
.project-hero {
    width: min(1180px, calc(100% - 2rem));
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: end;
}
.single-facts,
.single-aside {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    background: var(--white);
    box-shadow: 0 18px 50px rgba(17,17,17,.06);
}
.single-facts span { display: block; color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.single-facts strong { display: block; margin: .15rem 0 1rem; color: var(--black); }
.project-image { aspect-ratio: 16 / 7; }
.single-layout {
    width: min(1180px, calc(100% - 2rem));
    margin: 4rem auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}
.single-body { font-size: 1.06rem; }
.single-aside { position: sticky; top: 96px; }
.single-aside.dark { background: var(--black); color: var(--white); border-color: var(--black); }
.single-aside.dark p { color: rgba(255,255,255,.76); }
.service-single-hero {
    width: min(1180px, calc(100% - 2rem));
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 2rem;
    align-items: center;
}
.service-single-hero h1,
.post-hero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.service-single-hero a,
.post-hero a { color: var(--green); font-weight: 800; }
.service-single-hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}
.post-hero {
    width: min(900px, calc(100% - 2rem));
    margin: 4rem auto 2rem;
    text-align: center;
}
.related-posts { padding-top: 1rem; }
.alert { padding: .85rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; background: #edf7ef; color: #145c2a; }
.alert-danger { background: #fdeaea; color: #9b1f1f; }

.trust-section,
.partners-section { overflow: hidden; }
.partners-section { padding-top: 4rem; }
.carousel {
    position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partners-carousel {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: partnersMarquee 26s linear infinite;
    will-change: transform;
}
.partners-carousel:hover .partners-track { animation-play-state: paused; }
.auto-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: .35rem 0;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}
.auto-scroll:active { cursor: grabbing; }
.auto-scroll::-webkit-scrollbar { display: none; }
.testimonial-card {
    flex: 0 0 min(360px, 82vw);
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(17,17,17,.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    min-height: 360px;
}
.testimonial-card img {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(30,142,62,.16);
    box-shadow: 0 12px 30px rgba(17,17,17,.12);
}
.testimonial-card strong,
.testimonial-card span { display: block; }
.testimonial-card strong { color: var(--black); font-weight: 800; }
.testimonial-card span { color: var(--red); font-size: .88rem; font-weight: 700; }
.testimonial-card p {
    color: var(--ink);
    margin: 0;
    font-style: italic;
    font-size: 1.02rem;
}
.testimonial-card footer { margin-top: auto; }
.partner-logo {
    flex: 0 0 auto;
    height: 72px;
    display: grid;
    place-items: center;
    padding: 0 1.6rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    scroll-snap-align: start;
    box-shadow: none;
}
.partner-logo img {
    width: auto;
    max-width: 180px;
    max-height: 64px;
    object-fit: contain;
}
@keyframes partnersMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-33.333%); }
}

.site-footer { background: var(--black); color: var(--white); padding: 4rem clamp(1rem, 5vw, 4rem) 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 2rem; }
.site-footer p, .site-footer a { display: block; color: rgba(255,255,255,.72); margin-bottom: .55rem; }
.site-footer h3 { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.58); font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; inset: 72px 1rem auto; display: none; flex-direction: column; align-items: stretch; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(17,17,17,.12); }
    .site-nav.open { display: flex; }
    .split, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
    .project-hero, .single-layout, .service-single-hero { grid-template-columns: 1fr; }
    .single-aside { position: static; }
    .card-grid, .project-grid, .values, .stats-band { grid-template-columns: 1fr; }
    .cta-section { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .hero { min-height: 78vh; }
    .hero-content { padding-bottom: 4rem; }
    .newsletter form { flex-direction: column; }
    .newsletter button { width: 100%; }
    .footer-bottom { flex-direction: column; }
}
