/* Explain: Styles for various UI components, including buttons, header, and service cards. */
/* Actions */
.btn-accent,
.btn-whatsapp,
.btn-outline,
.btn-outline-light,
.btn-ghost-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
    min-height: 48px;
    height: auto;
    max-width: 100%;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.btn-accent { background: var(--accent-color); color: var(--on-accent); }
.btn-whatsapp { background: var(--whatsapp-color); color: var(--text-on-dark); }
.btn-outline { background: transparent; color: var(--primary-dark); border-color: var(--border-strong); }
.btn-outline-light { background: transparent; color: var(--text-on-dark); border-color: var(--border-dark); }
.btn-ghost-phone { background: var(--surface-2); color: var(--primary-dark); border-color: var(--border-strong); }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 1rem; }
.btn-accent i, .btn-whatsapp i, .btn-outline i, .btn-outline-light i { flex-shrink: 0; }
.btn:disabled { cursor: not-allowed; opacity: 0.6; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--surface-color);
    color: var(--navy);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(4, 44, 27, 0.05);
}
.header-row { min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--navy); }
.brand-mark {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 44px;
    border-inline-start: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.4rem;
}
.brand-logo {
    display: block;
    flex-shrink: 0;
    width: auto;
    height: 44px;
    max-width: 56px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    object-fit: contain;
    box-shadow: 0 6px 16px rgba(4, 44, 27, 0.12);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.brand-line1 { font-size: 1.05rem; font-weight: 800; }
.brand-line2 { font-size: 0.72rem; color: var(--text-muted); }
.header-call { background: var(--primary-color); color: var(--text-on-dark); }
.nav-link {
    padding: 12px 11px;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 180ms ease, background-color 180ms ease;
}
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-height: 46px;
    height: auto;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--navy);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: none;
}
.mobile-menu { display: none; border-top: 1px solid var(--border-color); background: var(--surface-color); }
.mobile-menu.is-open { display: block; max-height: calc(100dvh - var(--header-height) - 90px); overflow-y: auto; }
.mobile-link { display: block; min-height: 48px; padding: 11px 12px; border-radius: var(--radius-xs); color: var(--navy); font-weight: 700; }
@media (min-width: 1280px) {
    .mobile-menu, .mobile-menu.is-open { display: none; }
}

/* First screen */
.diesel-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero-background); color: #ffffff; }
.hero-swiper { position: relative; }
.hero-swiper .swiper-wrapper { align-items: stretch; }
.hero-swiper .swiper-slide { position: relative; display: flex; align-items: stretch; min-width: 0; height: auto; background: var(--hero-background); }
.hero-swiper .swiper-slide > .hero-inner { width: 100%; flex: 1 1 auto; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(4, 44, 27, 0.9) 0%, rgba(4, 44, 27, 0.72) 46%, rgba(4, 44, 27, 0.24) 100%),
        linear-gradient(180deg, rgba(4, 44, 27, 0.28) 0%, rgba(4, 44, 27, 0.08) 45%, rgba(4, 44, 27, 0.62) 100%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: min(90svh, 940px);
    padding-top: 56px;
    padding-bottom: 56px;
}
.hero-copy { min-width: 0; max-width: 50rem; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-pill);
    background: rgba(4, 44, 27, 0.62);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.7;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-color); flex-shrink: 0; }
.hero-title { max-width: none; color: #ffffff; font-size: clamp(1.5rem, 4.4vw, 2.1rem); line-height: 1.5; }
.hero-highlight { color: #ffffff; }
.hero-sub { max-width: 34rem; margin-top: 16px; color: #ffffff; font-size: 1rem; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-features { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border-dark); }
.hero-features-title { margin-bottom: 12px; color: #ffffff; font-size: 0.8rem; font-weight: 700; line-height: 1.7; }
.hero-badges {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hero-badges li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(4, 44, 27, 0.58);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.7;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero-badges li > span { min-width: 0; overflow-wrap: anywhere; }
.hero-badge-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: var(--radius-pill);
    background: rgba(106, 215, 154, 0.16);
    color: var(--accent-color);
    font-size: 0.72rem;
}
@media (min-width: 640px) {
    .hero-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-badge-wide { grid-column: 1 / -1; }
}
.hero-controls {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-dark);
    background: var(--navy);
}
.hero-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    height: auto;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius-pill);
    background: var(--navy-2);
    color: var(--text-on-dark);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 180ms ease, border-color 180ms ease;
}
.hero-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 22px; }
.hero-controls .hero-pagination .swiper-pagination-bullet {
    width: 22px;
    height: 5px;
    margin: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.42);
    opacity: 1;
    transition: width 200ms ease, background-color 200ms ease;
}
.hero-controls .hero-pagination .swiper-pagination-bullet-active { width: 40px; background: var(--accent-color); }
@media (hover: hover) {
    .hero-arrow:hover { border-color: var(--accent-color); background: var(--navy-3); }
}
.scene { margin: 0; }
.scene-photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border: 1px solid var(--border-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-photo); background: var(--navy-2); }
.scene-photo img { width: 100%; height: 100%; object-fit: cover; }
.scene-photo::after { content: ""; position: absolute; inset: 0; background: var(--image-shade); pointer-events: none; }
@media (min-width: 1024px) {
    .hero-inner { padding-top: 76px; padding-bottom: 84px; }
    .hero-title { font-size: clamp(1.45rem, 2.3vw, 2rem); }
    .hero-sub { font-size: 1.05rem; }
    .hero-features { margin-top: 32px; }
}
@media (max-width: 639px) {
    .hero-actions > a { width: 100%; }
    .hero-inner { min-height: 0; padding-top: 44px; padding-bottom: 52px; }
    .hero-copy { max-width: none; }
    .hero-scrim {
        background:
            linear-gradient(180deg, rgba(4, 44, 27, 0.88) 0%, rgba(4, 44, 27, 0.8) 48%, rgba(4, 44, 27, 0.94) 100%);
    }
    .scene-photo { aspect-ratio: 16 / 10; box-shadow: var(--shadow-soft); }
}

/* Services */
.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.service-media { display: block; position: relative; aspect-ratio: 16 / 10; margin: 0; overflow: hidden; background: var(--surface-2); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-media-wide { aspect-ratio: auto; display: flex; align-items: center; justify-content: center; }
.service-media-wide img { height: auto; max-height: 100%; object-fit: contain; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.service-heading { display: flex; align-items: center; gap: 11px; }
.service-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-dark); font-size: 1.05rem; }
.service-title { font-size: 1.08rem; line-height: 1.7; }
.service-desc { margin-top: 14px; margin-bottom: 24px; color: var(--text-muted); font-size: 0.91rem; line-height: 1.95; }
.service-actions { display: flex; align-items: stretch; gap: 10px; margin-top: auto; }
.service-actions .btn-whatsapp { flex: 1 1 auto; min-width: 0; padding: 12px 16px; font-size: 0.9rem; }
.service-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-height: 50px;
    height: auto;
    flex-shrink: 0;
    padding: 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--primary-dark);
    font-size: 1.05rem;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
@media (hover: hover) {
    .service-call:hover { border-color: var(--primary-dark); background: var(--primary-soft); }
}

/* Booking */
.booking-section { background: var(--surface-color); border-block: 1px solid var(--border-color); }
.booking-form { position: relative; background: var(--surface-color); border: 1px solid var(--border-color); border-top: 3px solid var(--primary-dark); border-radius: var(--radius-lg); padding: 24px 18px; box-shadow: var(--shadow-soft); }
.form-intro { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 24px; }
.form-intro h3 { font-size: 1.08rem; }
.form-intro p { color: var(--text-soft); font-size: 0.8rem; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field { display: block; min-width: 0; }
.field.is-hidden { display: none; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 0.88rem; font-weight: 700; line-height: 1.8; }
.field .req { color: var(--danger-color); }
.field .opt { color: var(--text-soft); font-size: 0.76rem; font-weight: 400; }
.field input, .field select, .field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 52px;
    height: auto;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    background-color: var(--surface-2);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    box-shadow: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}
.field select { cursor: pointer; padding-inline-end: 38px; }
.field textarea { resize: vertical; min-height: 114px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--primary-dark); background-color: var(--surface-color); }
.field input.has-error, .field select.has-error, .field textarea.has-error { border-color: var(--danger-color); background-color: var(--danger-soft); }
.field-error { margin-top: 5px; color: var(--danger-color); font-size: 0.8rem; font-weight: 600; }
.field-error:empty { display: none; }
.field-consent { margin-top: 24px; }
.consent-label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; color: var(--text-muted); font-size: 0.84rem; line-height: 1.9; cursor: pointer; }
.consent-label input { width: 23px; height: 23px; margin-top: 4px; flex-shrink: 0; border-color: var(--border-strong); color: var(--primary-dark); }
.consent-label a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.booking-submit { width: 100%; margin-top: 24px; }
.booking-note { margin-top: 12px; color: var(--text-muted); text-align: center; font-size: 0.82rem; line-height: 1.9; }
.booking-status { margin-top: 16px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.9; text-align: center; }
.booking-status:empty { display: none; }
.booking-status.is-success { color: var(--primary-dark); }
.booking-status.is-error { color: var(--danger-color); }
.booking-followup { display: grid; margin-top: 16px; }
.booking-followup.is-hidden { display: none; }
@media (min-width: 768px) {
    .booking-form { padding: 34px; }
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
    .field-wide { grid-column: 1 / -1; }
}

/* Order steps */
.order-steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.steps-line { display: none; }
.order-step { position: relative; min-width: 0; border: 1px solid var(--border-dark); border-radius: var(--radius-md); padding: 26px; background: var(--navy-2); }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border: 1px solid var(--border-dark); border-radius: var(--radius-sm); background: var(--navy); color: var(--accent-color); font-size: 1.12rem; font-weight: 800; }
.step-title { color: var(--text-on-dark); font-size: 1.08rem; }
.step-desc { margin-top: 10px; color: var(--text-muted-on-dark); font-size: 0.9rem; line-height: 1.9; }
@media (min-width: 1024px) {
    .order-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .steps-line { display: block; position: absolute; top: 48px; inset-inline: 10%; height: 1px; background: var(--border-dark); }
}

/* Benefits and coverage */
.why-card { min-width: 0; height: 100%; padding: 24px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--surface-color); }
.why-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: var(--radius-sm); color: var(--primary-dark); background: var(--primary-soft); font-size: 1.1rem; }
.why-title { font-size: 1rem; }
.why-desc { margin-top: 10px; color: var(--text-muted); font-size: 0.87rem; line-height: 1.9; }
.areas-card { padding: 34px 22px; text-align: center; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--primary-soft); }
.areas-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; color: var(--primary-dark); font-size: 1.5rem; }
.areas-text { max-width: 40rem; margin: 14px auto 0; color: var(--text-muted); font-size: 0.96rem; line-height: 1.95; }
.areas-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Questions */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--surface-color); }
.faq-item.is-open { border-color: var(--primary-dark); }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 66px;
    height: auto;
    padding: 18px 22px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.8;
    white-space: normal;
    text-align: start;
    cursor: pointer;
    box-shadow: none;
}
.faq-chevron { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; color: var(--primary-dark); font-size: 0.74rem; }
.faq-a { display: none; padding: 0 22px 20px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.95; }
.faq-item.is-open .faq-a { display: block; }
.faq-note { margin-top: 24px; color: var(--text-muted); text-align: center; font-size: 0.9rem; }
.faq-note a { display: inline-block; padding-block: 8px; color: var(--primary-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Privacy and footer */
.privacy-body { padding: 26px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--surface-color); }
.privacy-body h2 { margin-top: 26px; font-size: 1.1rem; }
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body p { margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; line-height: 2; }
.privacy-body a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--border-dark); background: var(--navy); color: var(--text-muted-on-dark); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; max-width: 100%; }
.footer-brand .brand-logo { height: 40px; max-width: 52px; box-shadow: none; }
.footer-brand-name { color: var(--text-on-dark); font-size: 1rem; font-weight: 800; }
.footer-desc { max-width: 25rem; color: var(--text-muted-on-dark); font-size: 0.86rem; line-height: 1.95; }
.footer-title { margin-bottom: 12px; color: var(--text-on-dark); font-size: 0.96rem; }
.footer-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--text-muted-on-dark); font-size: 0.86rem; }
.footer-bottom { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-dark); font-size: 0.78rem; text-align: center; }

/* Mobile actions */
.mobile-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: flex; align-items: stretch; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-color); background: var(--surface-color); }
.mobile-cta > a:first-child { min-width: 0; }
.mobile-cta-call { display: inline-flex; align-items: center; justify-content: center; width: 52px; min-height: 50px; height: auto; flex-shrink: 0; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--navy); background: var(--surface-2); box-shadow: none; cursor: pointer; }
@media (min-width: 1024px) {
    .mobile-cta { display: none; }
}
@media (hover: hover) {
    .btn-accent:hover { background: var(--accent-hover); }
    .header-call:hover { background: var(--primary-hover); }
    .btn-whatsapp:hover { background: var(--whatsapp-dark); }
    .btn-outline:hover { border-color: var(--primary-dark); background: var(--primary-soft); }
    .btn-outline-light:hover { border-color: var(--primary-color); background: var(--light-tint); }
    .btn-ghost-phone:hover { border-color: var(--primary-color); background: var(--primary-soft); }
    .nav-link:hover, .mobile-link:hover, .menu-toggle:hover { color: var(--primary-dark); background: var(--primary-soft); }
    .service-card:hover { border-color: var(--primary-dark); box-shadow: var(--shadow-lift); }
    .footer-links a:hover { color: var(--accent-color); }
}