/**
 * Additional landing page styles
 */

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 80px;
}

/* Form styles */
.wpcf7-form .form-group,
.wpcf7-form p {
    margin-bottom: 1.25rem;
}

.wpcf7-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ld-text);
    margin-bottom: 0.5rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--ld-border);
    border-radius: 0.5rem;
    background-color: white;
    transition: border-color 0.2s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--ld-primary);
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    background-color: var(--ld-primary);
    color: white;
    transition: background-color 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: var(--ld-primary-dark);
}

.wpcf7-spinner {
    margin-left: 1rem;
}

.wpcf7-response-output {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.wpcf7-mail-sent-ok {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--ld-success);
    color: var(--ld-success);
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #EF4444;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.service-card {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* WhatsApp pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Legal pages */
.legal-page {
    padding: 8rem 0 4rem;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page p {
    margin-bottom: 1rem;
    color: var(--ld-text-light);
}

.legal-page ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    color: var(--ld-text-light);
}

/* ==========================================================================
 * SPECIAL SECTIONS – custom component CSS
 * Tailwind utility classes are applied via class="" in the renderer; only
 * properties that Tailwind cannot cover with its defaults are defined here.
 * ========================================================================== */

/* Color aliases for Tailwind's custom `primary` color token  */
.bg-primary      { background-color: var(--ld-primary); }
.text-primary    { color: var(--ld-primary); }
.bg-primary-dark { background-color: var(--ld-primary-dark); }
.hover\:bg-primary-dark:hover { background-color: var(--ld-primary-dark); }
.ring-primary\/30 { box-shadow: 0 0 0 4px rgba(37,99,235,.3); }

/* ── TEAM ─────────────────────────────────────────────────────────────── */
.ld-team-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-team-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.ld-team-photo {
    border: 4px solid var(--ld-primary);
}
.ld-team-avatar {
    background-color: var(--ld-primary);
}

/* ── TIMELINE ─────────────────────────────────────────────────────────── */
.ld-timeline {
    position: relative;
    padding-left: 2.5rem;
}
.ld-timeline::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--ld-primary), transparent);
}
.ld-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 4.5rem 1.25rem 1fr;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.ld-timeline__year {
    font-size: .875rem;
    font-weight: 700;
    color: var(--ld-primary);
    text-align: right;
    padding-top: .15rem;
}
.ld-timeline__dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--ld-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--ld-primary);
    flex-shrink: 0;
    margin-top: .2rem;
}
.ld-timeline__content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: .875rem 1rem;
    font-size: .9375rem;
    color: #374151;
    line-height: 1.6;
}

/* ── COVERAGE ─────────────────────────────────────────────────────────── */
.ld-coverage-zone {
    transition: transform .15s ease;
}
.ld-coverage-zone:hover {
    transform: scale(1.04);
}

/* ── MENU ─────────────────────────────────────────────────────────────── */
.ld-menu-tab {
    padding: .5rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all .15s ease;
}
.ld-menu-tab:hover {
    border-color: var(--ld-primary);
    color: var(--ld-primary);
}
.ld-menu-tab--active {
    background: var(--ld-primary);
    border-color: var(--ld-primary);
    color: #fff;
}
.ld-menu-item {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-menu-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

/* ── PRICELIST ────────────────────────────────────────────────────────── */
.ld-pricelist-item {
    transition: background .15s ease;
}
.ld-pricelist-item:hover {
    background: #f9fafb;
    border-radius: .5rem;
    padding-left: .5rem;
    padding-right: .5rem;
}

/* ── SCHEDULE TABLE ───────────────────────────────────────────────────── */
.ld-schedule-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ld-schedule-table thead tr th:first-child { border-top-left-radius: .75rem; }
.ld-schedule-table thead tr th:last-child  { border-top-right-radius: .75rem; }

/* ── PLANS ────────────────────────────────────────────────────────────── */
.ld-plan-card {
    transition: transform .2s ease, box-shadow .2s ease;
}
.ld-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.ld-plan-card--highlighted {
    background-color: var(--ld-primary);
}

/* ── PORTFOLIO / BEFORE-AFTER ────────────────────────────────────────── */
.ld-portfolio-card {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-portfolio-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.ld-before-after__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    aspect-ratio: 16 / 9;
}
.ld-before-after__before,
.ld-before-after__after {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ld-before-after__labels {
    display: flex;
}
.ld-before-after__label {
    flex: 1;
    text-align: center;
    padding: .3rem;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.ld-before-after__label--before {
    background: rgba(0,0,0,.72);
    color: #fff;
}
.ld-before-after__label--after {
    background: var(--ld-primary);
    color: #fff;
}

/* ── COURSES ──────────────────────────────────────────────────────────── */
.ld-course-card {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-course-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* ── PACKAGES ─────────────────────────────────────────────────────────── */
.ld-package-card {
    transition: transform .2s ease, box-shadow .2s ease;
}
.ld-package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

/* ── REPAIR PRICES ────────────────────────────────────────────────────── */
.ld-repair-table {
    border-radius: .5rem;
    overflow: hidden;
}

/* ── CATALOG ──────────────────────────────────────────────────────────── */
.ld-catalog-cat,
.ld-featured-product {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-catalog-cat:hover,
.ld-featured-product:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* ==========================================================================
 * SPECIAL SECTIONS – LAYOUT B & C VARIANTS
 * ========================================================================== */

/* ── TEAM-B: Horizontal card ──────────────────────────────────────────── */
.ld-team-card-h {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-team-card-h:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* ── TIMELINE-B: Milestone cards ─────────────────────────────────────── */
.ld-timeline-card {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-timeline-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* ── TIMELINE-C: Horizontal steps ────────────────────────────────────── */
.ld-timeline-step {
    padding-right: 1rem;
}
.ld-timeline-step__head {
    display: flex;
    align-items: center;
}
.ld-timeline-step__num {
    flex-shrink: 0;
    transition: transform .2s ease;
}
.ld-timeline-step:hover .ld-timeline-step__num {
    transform: scale(1.1);
}

/* ── COVERAGE-B: Zone cards ──────────────────────────────────────────── */
.ld-coverage-card {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-coverage-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.09);
    transform: translateY(-2px);
}

/* ── MENU-B: Accordion ───────────────────────────────────────────────── */
.ld-menu-accordion {
    transition: box-shadow .2s ease;
}
.ld-menu-accordion:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ld-menu-accordion__btn {
    background: #fff;
    cursor: pointer;
    transition: background .15s ease;
}
.ld-menu-accordion__btn:hover {
    background: #f9fafb;
}
.ld-acc-icon {
    transition: transform .2s ease;
}

/* ── PRICELIST-B: Service cards ──────────────────────────────────────── */
.ld-pricelist-card {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-pricelist-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* ── PRICELIST-C: Table ──────────────────────────────────────────────── */
.ld-pricelist-table {
    border-collapse: collapse;
}
.ld-pricelist-table tbody tr {
    transition: background .15s ease;
}
.ld-pricelist-table tbody tr:hover {
    background: #f9fafb !important;
}

/* ── SCHEDULE-B: Class cards by day ──────────────────────────────────── */
.ld-class-card {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-class-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* ── SCHEDULE-C: Week grid ───────────────────────────────────────────── */
.ld-week-class {
    transition: background .15s ease;
}
.ld-week-class:hover {
    background: rgba(var(--ld-primary-rgb, 37,99,235),.2);
}

/* ── PORTFOLIO-B: Gallery with hover overlay ─────────────────────────── */
.ld-portfolio-overlay {
    cursor: pointer;
}

/* ── PORTFOLIO-C: Large project cards ────────────────────────────────── */
.ld-portfolio-project {
    transition: box-shadow .2s ease;
}
.ld-portfolio-project:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

/* ── COURSES-C: Table ────────────────────────────────────────────────── */
.ld-course-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ld-course-table thead tr th:first-child { border-top-left-radius: .75rem; }
.ld-course-table thead tr th:last-child  { border-top-right-radius: .75rem; }

/* ── PACKAGES-B: Horizontal cards ────────────────────────────────────── */
.ld-packages-h {
    transition: transform .2s ease, box-shadow .2s ease;
}
.ld-packages-h:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

/* ── PACKAGES-C: Comparison table ────────────────────────────────────── */
.ld-packages-compare {
    border-collapse: separate;
    border-spacing: 0;
}
.ld-packages-compare thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}
.ld-packages-compare tbody tr {
    transition: background .15s ease;
}
.ld-packages-compare tbody tr:hover td {
    background: #f9fafb !important;
}

/* ── REPAIR-B: Cards ─────────────────────────────────────────────────── */
.ld-repair-card {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-repair-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* ── REPAIR-C: Accordion ─────────────────────────────────────────────── */
.ld-repair-accordion {
    transition: box-shadow .2s ease;
}
.ld-repair-accordion:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── CATALOG-B: Product grid ─────────────────────────────────────────── */
.ld-product-grid {
    transition: box-shadow .2s ease, transform .2s ease;
}
.ld-product-grid:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* ── CATALOG-C: Hero product ─────────────────────────────────────────── */
.ld-catalog-hero {
    transition: box-shadow .2s ease;
}
.ld-catalog-hero:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}