/* ========================================
   RP Vehicle Repairs - Styles
   Mobile-first responsive design
   ======================================== */

/* ---- Reset & Variables ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --dark-light: #222222;
    --red: #E31937;
    --red-dark: #B8142D;
    --white: #FFFFFF;
    --silver: #C0C0C0;
    --gray: #888888;
    --gray-dark: #333333;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background-color: var(--black);
    color: var(--silver);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ---- Utility ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-red {
    color: var(--red);
}

.section {
    padding: 80px 0;
}

.section--dark {
    background-color: var(--dark);
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section__title--center {
    text-align: center;
}

.section__subtitle {
    color: var(--gray);
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn--red {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn--red:hover {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(227, 25, 55, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn--outline:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: background-color var(--transition), padding var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.header__logo img {
    height: 165px;
    width: auto;
}

.header__nav {
    display: none;
}

.header__links {
    display: flex;
    gap: 32px;
}

.header__link {
    color: var(--silver);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition);
    text-transform: uppercase;
}

.header__link:hover {
    color: var(--red);
}

.header__cta {
    display: none;
    padding: 10px 20px;
    font-size: 0.85rem;
}

.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all var(--transition);
    border-radius: 2px;
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.header__nav.open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
}

.header__nav.open .header__links {
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.header__nav.open .header__link {
    font-size: 1.1rem;
}

/* Desktop */
@media (min-width: 768px) {
    .header__cta {
        display: inline-flex;
    }
}

@media (min-width: 1024px) {
    .header__nav {
        display: flex;
    }

    .header__hamburger {
        display: none;
    }
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(227, 25, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(227, 25, 55, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.7);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--silver);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--gray);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== TRUST BAR ========== */
.trust-bar {
    background-color: var(--dark);
    border-top: 1px solid var(--dark-light);
    border-bottom: 1px solid var(--dark-light);
    padding: 28px 0;
}

.trust-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.trust-bar__item svg {
    flex-shrink: 0;
    color: var(--red);
    stroke: var(--red);
}

.trust-bar__item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--white);
}

.trust-bar__item span {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .trust-bar__inner {
        grid-template-columns: repeat(4, 1fr);
        text-align: center;
    }

    .trust-bar__item {
        justify-content: center;
    }
}

/* ========== ABOUT ========== */
.about .section__title {
    text-align: center;
}

.about__content {
    max-width: 700px;
    margin: 0 auto;
}

/* ========== GALLERY / RECENT WORK ========== */
.gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.gallery__post {
    overflow: hidden;
    border-radius: var(--radius);
}

/* Make all Instagram embeds uniform and hide captions */
.gallery__post .instagram-media {
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}

.gallery__post iframe.instagram-media {
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: var(--radius) !important;
}

.gallery__cta {
    text-align: center;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.about__text {
    font-size: 1.05rem;
    margin-bottom: 32px;
    color: var(--silver);
    line-height: 1.8;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about__feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about__feature svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.about__feature strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.about__feature p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}


/* ========== SERVICES ========== */
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: var(--black);
    border: 1px solid var(--dark-light);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-dark);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card__icon {
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

@media (min-width: 600px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Center the last card when there are 7 items */
    .service-card:last-child {
        grid-column: 2 / 3;
    }
}

/* ========== HOW IT WORKS ========== */
.timeline {
    display: grid;
    gap: 32px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline__step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.timeline__number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.timeline__step:not(:last-child) .timeline__number::after {
    content: '';
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 32px);
    background: var(--gray-dark);
    z-index: -1;
}

.timeline__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.timeline__desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        text-align: center;
    }

    .timeline__step {
        flex-direction: column;
        align-items: center;
    }

    .timeline__step:not(:last-child) .timeline__number::after {
        top: 50%;
        left: 52px;
        transform: translateY(-50%);
        width: calc(100% + 24px);
        height: 2px;
    }
}

/* ========== REVIEWS ========== */
.reviews__carousel {
    overflow: hidden;
    position: relative;
}

.reviews__track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    cursor: grab;
}

.reviews__track:active {
    cursor: grabbing;
}

.review-card {
    flex: 0 0 calc(100% - 20px);
    background: var(--black);
    border: 1px solid var(--dark-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    min-width: 0;
}

.review-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.review-card__text {
    font-size: 0.95rem;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__author strong {
    color: var(--white);
    font-size: 0.95rem;
}

.review-card__badge {
    display: inline-block;
    background: rgba(227, 25, 55, 0.15);
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.reviews__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.reviews__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-dark);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    padding: 0;
}

.reviews__dot.active {
    background: var(--red);
}

@media (min-width: 768px) {
    .review-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (min-width: 1024px) {
    .review-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

/* ========== FAQ ========== */
.faq__list {
    max-width: 740px;
    margin: 0 auto;
}

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

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: color var(--transition);
}

.faq__question:hover {
    color: var(--red);
}

.faq__chevron {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq__item.open .faq__chevron {
    transform: rotate(180deg);
}

.faq__item.open .faq__question {
    color: var(--red);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.open .faq__answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq__answer p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

.faq__answer a {
    color: var(--red);
}

/* ========== CONTACT ========== */
.contact__inner {
    display: grid;
    gap: 40px;
}

.contact__form {
    background: var(--black);
    border: 1px solid var(--dark-light);
    border-radius: var(--radius);
    padding: 32px 24px;
}

.form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    background: var(--dark);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23888888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__info-card {
    background: var(--black);
    border: 1px solid var(--dark-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 20px;
}

.contact__info-card h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact__details li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-light);
}

.contact__details li:last-child {
    border-bottom: none;
}

.contact__details li svg {
    flex-shrink: 0;
}

.contact__details a,
.contact__details span {
    color: var(--silver);
    font-size: 0.9rem;
}

.contact__details a:hover {
    color: var(--red);
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .contact__inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    border-top: 1px solid var(--dark-light);
    padding-top: 48px;
}

.footer__inner {
    display: grid;
    gap: 32px;
    padding-bottom: 40px;
}

.footer__brand p {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--gray);
    max-width: 300px;
    line-height: 1.6;
}

.footer__brand img {
    height: 44px;
    width: auto;
}

.footer__links h4,
.footer__contact h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer__links li,
.footer__contact li {
    margin-bottom: 10px;
}

.footer__links a,
.footer__contact a {
    color: var(--gray);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--red);
}

.footer__bottom {
    border-top: 1px solid var(--dark-light);
    padding: 20px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--gray);
}

@media (min-width: 768px) {
    .footer__inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ========== FLOATING ACTION BUTTONS ========== */
.fab {
    position: fixed;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition), box-shadow var(--transition);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.fab--whatsapp {
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    animation: pulse 2s infinite;
}

.fab--call {
    bottom: 92px;
    right: 24px;
    background-color: var(--red);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Hide call FAB on desktop (header CTA serves that purpose) */
@media (min-width: 768px) {
    .fab--call {
        display: none;
    }
}

/* ========== SELECTION & SCROLLBAR ========== */
::selection {
    background: var(--red);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* ========================================
   MOBILE REFINEMENTS
   ======================================== */

/* ---- Small phones (up to 380px) ---- */
@media (max-width: 380px) {
    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 1.65rem;
    }

    .hero__ctas .btn--lg {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .trust-bar__item strong {
        font-size: 0.95rem;
    }

    .trust-bar__item span {
        font-size: 0.7rem;
    }

    .service-card {
        padding: 24px 18px;
    }

    .review-card {
        padding: 22px 18px;
    }

    .contact__form {
        padding: 24px 16px;
    }
}

/* ---- General mobile (up to 767px) ---- */
@media (max-width: 767px) {
    /* Reduce section padding on mobile */
    .section {
        padding: 56px 0;
    }

    .section__subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
        padding: 0 8px;
    }

    /* Header */
    .header {
        padding: 12px 0;
    }

    .header.scrolled {
        padding: 8px 0;
    }

    .header__logo img {
        height: 97px;
    }

    /* Hero - better mobile spacing */
    .hero {
        min-height: 100svh;
    }

    .hero__content {
        padding: 100px 16px 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100svh;
    }

    .hero__title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 16px;
    }

    .hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
        line-height: 1.6;
    }

    .hero__ctas {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 12px;
    }

    .hero__ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__scroll {
        bottom: 20px;
    }

    /* Trust bar - 2x2 grid, tighter */
    .trust-bar {
        padding: 20px 0;
    }

    .trust-bar__inner {
        gap: 16px 12px;
    }

    .trust-bar__item {
        gap: 8px;
    }

    .trust-bar__item svg {
        width: 22px;
        height: 22px;
    }

    /* About */
    .about__inner {
        gap: 32px;
    }

    .about__text {
        font-size: 0.95rem;
        margin-bottom: 24px;
        text-align: center;
    }

    .about__features {
        gap: 20px;
    }

    .about__feature {
        gap: 12px;
    }

    .about__feature strong {
        font-size: 0.95rem;
    }

    .about__feature p {
        font-size: 0.85rem;
    }

    /* Services */
    .service-card {
        padding: 24px 20px;
    }

    .service-card__icon svg {
        width: 32px;
        height: 32px;
    }

    .service-card__icon {
        margin-bottom: 14px;
    }

    .service-card__title {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .service-card__desc {
        font-size: 0.85rem;
    }

    /* Timeline - centered vertical layout on mobile */
    .timeline {
        gap: 0;
        padding-left: 0;
        max-width: 320px;
    }

    .timeline__step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding-bottom: 40px;
        position: relative;
    }

    .timeline__number {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .timeline__step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 52px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: calc(100% - 52px);
        background: var(--gray-dark);
        z-index: 0;
    }

    .timeline__step:not(:last-child) .timeline__number::after {
        display: none;
    }

    .timeline__title {
        font-size: 1.1rem;
    }

    .timeline__desc {
        font-size: 0.9rem;
        max-width: 260px;
    }

    /* Reviews */
    .review-card {
        flex: 0 0 100%;
    }

    .review-card__text {
        font-size: 0.9rem;
    }

    /* FAQ */
    .faq__question {
        font-size: 0.95rem;
        padding: 16px 0;
    }

    .faq__answer p {
        font-size: 0.9rem;
    }

    /* Contact form */
    .contact__form {
        padding: 24px 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .contact__info-card {
        padding: 24px 20px;
    }

    .contact__map iframe {
        height: 200px;
    }

    /* Footer */
    .footer {
        padding-top: 36px;
    }

    .footer__inner {
        gap: 28px;
        padding-bottom: 28px;
    }

    .footer__bottom {
        padding: 16px 0;
    }

    .footer__bottom p {
        font-size: 0.75rem;
    }

    /* Floating buttons - make sure they don't overlap content */
    .fab {
        width: 50px;
        height: 50px;
    }

    .fab--whatsapp {
        bottom: 20px;
        right: 16px;
    }

    .fab--whatsapp svg {
        width: 24px;
        height: 24px;
    }

    .fab--call {
        bottom: 80px;
        right: 16px;
    }

    .fab--call svg {
        width: 20px;
        height: 20px;
    }
}

/* ---- Mobile nav overlay backdrop ---- */
.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

.nav-backdrop.active {
    display: block;
}

/* ---- Touch-friendly tap targets ---- */
@media (pointer: coarse) {
    .header__link {
        padding: 8px 4px;
    }

    .faq__question {
        min-height: 48px;
    }

    .reviews__dot {
        width: 12px;
        height: 12px;
        padding: 0;
    }

    .contact__details li {
        padding: 14px 0;
    }

    .footer__links li,
    .footer__contact li {
        margin-bottom: 14px;
    }
}

/* ========== MAINTENANCE TIPS ========== */
.tips__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.tip-card {
    background: var(--black);
    border: 1px solid var(--dark-light);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.tip-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-dark);
}

.tip-card:hover::after {
    transform: scaleX(1);
}

.tip-card__icon {
    margin-bottom: 20px;
}

.tip-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.tip-card__content {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

@media (min-width: 600px) {
    .tips__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tips__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Safe area insets for notched phones ---- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .fab--whatsapp {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .fab--call {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .footer__bottom {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}
