/* ==========================================================
   DPF Soluções para Obras
   ──────────────────────────────────────────────────────────
   Aesthetic: Refined Industrial
   Display font: Space Grotesk (geometric, confident)
   Body font:    DM Sans (warm humanist, very legible)
   Dominant:     Near-black (#0A0A0A)
   Accent:       Warm amber (#D4A017) — golden, not neon
   Neutral:      Zinc scale
   ========================================================== */

:root {
    /* ── Palette ── */
    --black:       #0A0A0A;
    --surface:     #111111;
    --surface-2:   #1A1A1A;
    --border:      #262626;
    --border-light:#E5E5E5;
    --zinc-100:    #F4F4F5;
    --zinc-200:    #E4E4E7;
    --zinc-400:    #A1A1AA;
    --zinc-500:    #71717A;
    --zinc-600:    #52525B;
    --zinc-800:    #27272A;
    --white:       #FAFAFA;
    --accent:      #D4A017;
    --accent-soft: rgba(212, 160, 23, 0.12);
    --accent-hover:#BF8F10;
    --green:       #22C55E;
    --green-soft:  rgba(34, 197, 94, 0.12);
    --green-hover: #16A34A;

    /* ── Type ── */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    /* ── Spacing (8px base) ── */
    --s1: 0.25rem;   /* 4  */
    --s2: 0.5rem;    /* 8  */
    --s3: 0.75rem;   /* 12 */
    --s4: 1rem;      /* 16 */
    --s5: 1.5rem;    /* 24 */
    --s6: 2rem;      /* 32 */
    --s7: 3rem;      /* 48 */
    --s8: 4rem;      /* 64 */
    --s9: 6rem;      /* 96 */

    /* ── Radius ── */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-full: 9999px;

    /* ── Motion ── */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --dur: 0.25s;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--zinc-800);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding-inline: var(--s5);
}

/* ── Section title ── */
.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: var(--s2);
}

.section__title + .section__subtitle {
    margin-top: calc(-1 * var(--s1));
}

.section__subtitle {
    font-size: 0.9375rem;
    color: var(--zinc-500);
    margin-bottom: var(--s7);
    max-width: 480px;
}

/* ─────────────────────────────────────────
   HEADER
   ───────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease);
}

.header.scrolled {
    border-bottom-color: var(--border-light);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.header__logo img { height: 30px; }

/* Nav hidden on mobile */
.header__nav {
    display: none;
    position: fixed;
    inset: 56px 0 0;
    background: var(--white);
    padding: var(--s6) var(--s5);
    flex-direction: column;
    gap: var(--s2);
    z-index: 99;
    animation: fadeIn var(--dur) var(--ease);
}

.header__nav.active { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.header__links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header__links a {
    display: block;
    padding: var(--s3) var(--s4);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--zinc-600);
    border-radius: var(--r-md);
    transition: color var(--dur), background var(--dur);
}

.header__links a:hover,
.header__links a:active {
    color: var(--black);
    background: var(--zinc-100);
}

.header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--s3);
    padding: var(--s3) var(--s5);
    background: var(--black);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--r-full);
    transition: background var(--dur);
}

.header__cta:hover { background: var(--zinc-800); }

/* Hamburger – two lines, clean */
.header__toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: none;
    border: none;
    z-index: 110;
}

.header__toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--black);
    border-radius: 2px;
    transition: all var(--dur) var(--ease);
    transform-origin: center;
}

.header__toggle.active span:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
}
.header__toggle.active span:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: 14px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--r-full);
    border: none;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    line-height: 1;
}

.btn--primary {
    background: var(--green);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--green-hover);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--zinc-400);
    border: 1.5px solid var(--border);
}

.btn--ghost:hover {
    color: var(--white);
    border-color: var(--zinc-500);
}

.btn--light {
    background: var(--white);
    color: var(--black);
}

.btn--light:hover {
    background: var(--zinc-100);
    transform: translateY(-1px);
}

.btn--ghost-light {
    background: transparent;
    color: rgba(250, 250, 250, 0.7);
    border: 1.5px solid rgba(250, 250, 250, 0.2);
}

.btn--ghost-light:hover {
    color: var(--white);
    border-color: rgba(250, 250, 250, 0.5);
}

.btn--dark {
    background: var(--black);
    color: var(--white);
}

.btn--dark:hover {
    background: var(--zinc-800);
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.hero {
    background: var(--black);
    color: var(--white);
    padding: var(--s8) 0 var(--s7);
    position: relative;
}

/* Subtle gradient orb — restrained, not flashy */
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 50vw;
    height: 50vw;
    max-width: 400px;
    max-height: 400px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero__tag {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zinc-500);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--s4);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: var(--s5);
}

.hero__title span {
    color: var(--accent);
}

.hero__desc {
    font-size: 1rem;
    color: var(--zinc-400);
    max-width: 460px;
    line-height: 1.65;
    margin-bottom: var(--s6);
}

.hero__price {
    margin-bottom: var(--s6);
}

.hero__price-inner {
    display: inline-flex;
    flex-direction: column;
    padding: var(--s4) var(--s5);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.hero__price-label {
    font-size: 0.75rem;
    color: var(--zinc-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero__price-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-top: var(--s1);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

/* ─────────────────────────────────────────
   TRUST STRIP
   ───────────────────────────────────────── */
.trust {
    padding: var(--s5) 0;
    border-bottom: 1px solid var(--border-light);
}

.trust__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s4);
}

.trust__item {
    display: flex;
    align-items: center;
    gap: var(--s2);
    flex: 1 1 140px;
}

.trust__item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.trust__item span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zinc-600);
}

/* ─────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────── */
.services {
    padding: var(--s8) 0;
    background: var(--zinc-100);
}

.services__grid {
    display: grid;
    gap: var(--s3);
    margin-bottom: var(--s6);
}

.services__card {
    display: flex;
    gap: var(--s4);
    padding: var(--s5);
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    transition: border-color var(--dur);
}

.services__card:active { border-color: var(--accent); }

.services__card--featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--white) 0%, rgba(212, 160, 23, 0.04) 100%);
}

.services__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--r-md);
    color: var(--accent);
}

.services__card--featured .services__icon {
    background: var(--accent);
    color: var(--black);
}

.services__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: var(--s1);
}

.services__content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: var(--s1);
}

.services__content p {
    font-size: 0.875rem;
    color: var(--zinc-500);
    line-height: 1.55;
    margin-bottom: var(--s2);
}

.services__price {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent);
}

.services__consult {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zinc-400);
}

.services__action {
    text-align: center;
}

/* ─────────────────────────────────────────
   STEPS
   ───────────────────────────────────────── */
.steps {
    padding: var(--s8) 0;
}

.steps__grid {
    display: grid;
    gap: var(--s3);
}

.steps__card {
    padding: var(--s5);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    transition: border-color var(--dur);
}

.steps__card:active { border-color: var(--accent); }

.steps__num {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: var(--s2);
}

.steps__card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: var(--s1);
}

.steps__card p {
    font-size: 0.875rem;
    color: var(--zinc-500);
    line-height: 1.55;
}

/* ─────────────────────────────────────────
   PRICING
   ───────────────────────────────────────── */
.pricing {
    padding: var(--s8) 0;
    background: var(--zinc-100);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s3);
    margin-bottom: var(--s5);
}

.pricing__card {
    background: var(--white);
    padding: var(--s5) var(--s4);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    transition: border-color var(--dur);
}

.pricing__card:active { border-color: var(--accent); }

.pricing__card--accent {
    border-color: var(--accent);
}

.pricing__tag {
    position: absolute;
    top: calc(-1 * var(--s3));
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--black);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pricing__card h3 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zinc-600);
    margin-bottom: var(--s3);
}

.pricing__value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: var(--s1);
}

.pricing__value small {
    font-size: 1rem;
    font-weight: 600;
}

.pricing__from {
    font-size: 0.75rem;
    color: var(--zinc-500);
}

.pricing__note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--zinc-500);
    margin-bottom: var(--s4);
}

.pricing__guarantee {
    display: flex;
    align-items: center;
    gap: var(--s2);
    width: fit-content;
    margin: 0 auto var(--s5) auto;
    padding: var(--s3) var(--s4);
    background: var(--accent-soft);
    border-radius: var(--r-md);
    font-size: 0.875rem;
    color: var(--black);
    text-align: left;
}

.pricing__guarantee svg {
    color: var(--accent);
    flex-shrink: 0;
}

.pricing__action {
    text-align: center;
}

/* ─────────────────────────────────────────
   FAQ — native <details> for zero-JS
   ───────────────────────────────────────── */
.faq {
    padding: var(--s8) 0;
}

.faq__list {
    max-width: 640px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border-light);
}

.faq__item[open] .faq__q {
    color: var(--black);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--s4) 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--zinc-600);
    cursor: pointer;
    list-style: none;
    transition: color var(--dur);
    -webkit-tap-highlight-color: transparent;
}

.faq__q::-webkit-details-marker { display: none; }

/* Chevron via CSS pseudo-element */
.faq__q::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--dur) var(--ease);
    flex-shrink: 0;
    margin-left: var(--s4);
}

.faq__item[open] .faq__q::after {
    transform: rotate(-135deg);
}

.faq__a {
    padding: 0 0 var(--s4);
    font-size: 0.875rem;
    color: var(--zinc-500);
    line-height: 1.65;
}

/* ─────────────────────────────────────────
   CTA
   ───────────────────────────────────────── */
.cta {
    background: var(--black);
    color: var(--white);
    padding: var(--s8) 0;
}

.cta__inner {
    text-align: center;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent);
    margin-bottom: var(--s2);
}

.cta__desc {
    font-size: 1.0625rem;
    color: var(--zinc-400);
    margin-bottom: var(--s6);
}

.cta__actions {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    align-items: center;
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.footer {
    background: var(--surface);
    color: var(--zinc-400);
    padding: var(--s7) 0 var(--s5);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: var(--s6);
    padding-bottom: var(--s5);
    border-bottom: 1px solid var(--border);
}

.footer__logo {
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    margin-bottom: var(--s3);
}

.footer__brand p {
    font-size: 0.8125rem;
    color: var(--zinc-500);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zinc-400);
    transition: color var(--dur);
}

.footer__link:hover { color: var(--white); }

.footer__bottom {
    padding-top: var(--s5);
}

.footer__bottom small {
    font-size: 0.75rem;
    color: var(--zinc-600);
}

/* ─────────────────────────────────────────
   FAB (Floating Action Button)
   ───────────────────────────────────────── */
.fab {
    position: fixed;
    bottom: var(--s5);
    right: var(--s5);
    width: 52px;
    height: 52px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
    z-index: 90;
    transition: transform var(--dur), box-shadow var(--dur);
}

.fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.45);
}

/* ─────────────────────────────────────────
   TABLET — min 600px
   ───────────────────────────────────────── */
@media (min-width: 600px) {
    .hero__actions {
        flex-direction: row;
        align-items: center;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta__actions {
        flex-direction: row;
        justify-content: center;
    }

    .footer__links {
        flex-direction: row;
        gap: var(--s5);
    }
}

/* ─────────────────────────────────────────
   DESKTOP — min 900px
   ───────────────────────────────────────── */
@media (min-width: 900px) {
    .header__toggle { display: none; }

    .header__nav {
        display: flex !important;
        position: static;
        inset: unset;
        background: none;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: var(--s1);
        animation: none;
    }

    .header__links {
        flex-direction: row;
        gap: 0;
    }

    .header__links a {
        font-size: 0.875rem;
        padding: var(--s2) var(--s3);
    }

    .header__cta {
        margin-top: 0;
        margin-left: var(--s3);
    }

    .header__inner { height: 64px; }
    .header__logo img { height: 34px; }

    /* Hero */
    .hero { padding: var(--s9) 0; }

    .hero__title {
        max-width: 580px;
    }

    .hero__desc {
        font-size: 1.0625rem;
    }

    .hero__price-value { font-size: 2.5rem; }

    /* Services */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s4);
    }

    .services__card:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
    }

    /* Steps */
    .steps__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--s4);
    }

    .steps__card:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
    }

    /* Pricing */
    .pricing__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--s4);
    }

    .pricing__card:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
    }

    /* Footer */
    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .fab {
        width: 56px;
        height: 56px;
        bottom: var(--s6);
        right: var(--s6);
    }
}

/* ─────────────────────────────────────────
   ACCESSIBILITY & MOTION
   ───────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
