/* ============================================
   MONTELEONE TONSOR — HOMEPAGE STYLES
   ============================================ */

/* ─── HERO SECTION ─── */
.hero {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(60px, 6vh, 80px) var(--margin) var(--space-8);
    position: relative;
}

.hero > * {
    position: relative;
    z-index: 1;
}

/* ─── HERO TITLE — Brushed white iron, always visible ─── */
.hero-title {
    font-family: 'Outfit', var(--font-family);
    font-size: var(--display-size);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: rgba(196, 199, 205, 0.78);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06),
        0 -1px 0 rgba(0, 0, 0, 0.2),
        0 3px 7px rgba(0, 0, 0, 0.24);
    margin-top: 0;
    margin-bottom: var(--space-3);
    transform: none;
    transition: color 520ms ease, text-shadow 520ms ease;
}

@keyframes titleLedFlicker {
    0% {
        color: rgba(196, 199, 205, 0.78);
        text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.06),
            0 -1px 0 rgba(0, 0, 0, 0.2),
            0 3px 7px rgba(0, 0, 0, 0.24);
    }
    6% {
        color: rgba(244, 246, 252, 0.98);
        text-shadow:
            0 -6px 26px rgba(248, 250, 255, 0.58),
            0 -2px 10px rgba(248, 250, 255, 0.34),
            0 0 28px rgba(248, 250, 255, 0.12),
            0 1px 0 rgba(255, 255, 255, 0.12),
            0 11px 14px rgba(0, 0, 0, 0.42),
            0 28px 36px rgba(0, 0, 0, 0.22);
    }
    10% {
        color: rgba(204, 207, 212, 0.82);
        text-shadow:
            0 -1px 6px rgba(248, 250, 255, 0.08),
            0 1px 0 rgba(255, 255, 255, 0.06),
            0 5px 9px rgba(0, 0, 0, 0.28),
            0 13px 20px rgba(0, 0, 0, 0.12);
    }
    17% {
        color: rgba(242, 244, 250, 0.96);
        text-shadow:
            0 -5px 25px rgba(248, 250, 255, 0.5),
            0 -2px 9px rgba(248, 250, 255, 0.3),
            0 0 24px rgba(248, 250, 255, 0.1),
            0 1px 0 rgba(255, 255, 255, 0.11),
            0 10px 13px rgba(0, 0, 0, 0.38),
            0 25px 34px rgba(0, 0, 0, 0.2);
    }
    24% {
        color: rgba(205, 208, 214, 0.82);
        text-shadow:
            0 -1px 7px rgba(248, 250, 255, 0.1),
            0 1px 0 rgba(255, 255, 255, 0.07),
            0 6px 10px rgba(0, 0, 0, 0.31),
            0 15px 23px rgba(0, 0, 0, 0.15);
    }
    52% {
        color: rgba(218, 221, 228, 0.87);
        text-shadow:
            0 -2px 10px rgba(248, 250, 255, 0.16),
            0 -1px 7px rgba(248, 250, 255, 0.1),
            0 1px 0 rgba(255, 255, 255, 0.08),
            0 7px 11px rgba(0, 0, 0, 0.34),
            0 17px 26px rgba(0, 0, 0, 0.17);
    }
    68% {
        color: rgba(230, 233, 240, 0.92);
        text-shadow:
            0 -3px 14px rgba(248, 250, 255, 0.28),
            0 -1px 8px rgba(248, 250, 255, 0.18),
            0 1px 0 rgba(255, 255, 255, 0.09),
            0 8px 12px rgba(0, 0, 0, 0.36),
            0 20px 30px rgba(0, 0, 0, 0.18);
    }
    84% {
        color: rgba(236, 239, 245, 0.94);
        text-shadow:
            0 -4px 19px rgba(248, 250, 255, 0.36),
            0 -2px 8px rgba(248, 250, 255, 0.22),
            0 0 20px rgba(248, 250, 255, 0.08),
            0 1px 0 rgba(255, 255, 255, 0.1),
            0 9px 12px rgba(0, 0, 0, 0.37),
            0 23px 32px rgba(0, 0, 0, 0.19);
    }
    100% {
        color: rgba(242, 244, 250, 0.97);
        text-shadow:
            0 -5px 24px rgba(248, 250, 255, 0.5),
            0 -2px 9px rgba(248, 250, 255, 0.3),
            0 0 26px rgba(248, 250, 255, 0.1),
            0 1px 0 rgba(255, 255, 255, 0.12),
            0 10px 13px rgba(0, 0, 0, 0.4),
            0 26px 36px rgba(0, 0, 0, 0.22);
    }
}

.hero-title.flickering {
    animation: titleLedFlicker 0.56s linear forwards;
}

.hero-title.lit {
    font-family: 'Outfit', var(--font-family);
    font-size: var(--display-size);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: rgba(242, 244, 250, 0.97);
    text-shadow:
        0 -5px 24px rgba(248, 250, 255, 0.5),
        0 -2px 9px rgba(248, 250, 255, 0.3),
        0 0 26px rgba(248, 250, 255, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.12),
        0 10px 13px rgba(0, 0, 0, 0.4),
        0 26px 36px rgba(0, 0, 0, 0.22);
    transform: none;
}

/* ─── SUBTITLE ─── */
.hero-subtitle {
    font-size: var(--body-lg-size);
    font-weight: 300;
    color: rgba(160, 163, 168, 0.45);
    max-width: 480px;
    margin: 0 auto var(--space-5);
    line-height: 1.8;
    letter-spacing: 0.03em;
    font-style: italic;
    transition: color 0.5s ease 0.3s;
}
.hero-subtitle.lit {
    color: rgba(238, 241, 248, 0.96);
    text-shadow:
        0 -2px 12px rgba(248, 250, 255, 0.28),
        0 0 18px rgba(248, 250, 255, 0.12),
        0 7px 16px rgba(0, 0, 0, 0.22);
}

/* ─── BUTTONS CONTAINER ─── */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-actions.lit {
    opacity: 1;
    transform: translateY(0);
}

/* ─── LED-glow button effect ─── */
.btn-led-glow {
    border: 1px solid rgba(140,143,148,0.3);
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.5s ease, color 0.3s ease;
}
.btn-led-glow.lit {
    border-color: rgba(248, 250, 255, 0.8);
    box-shadow:
        0 0 8px 2px rgba(248,250,255,0.4),
        0 0 20px 4px rgba(248,250,255,0.15),
        0 0 40px 8px rgba(248,250,255,0.06),
        inset 0 0 6px 1px rgba(248,250,255,0.1);
    color: #fff;
}

/* Book button — bold */
#hero-book-btn {
    font-weight: 600;
}

/* Products button — smaller, normal weight */
.btn-products {
    padding: 12px 28px;
    font-size: 11px;
    letter-spacing: 0.12em;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.4s ease, border-color 0.3s ease, box-shadow 0.5s ease, color 0.3s ease;
}
.btn-products.lit { opacity: 1; }

/* ─── HERO MOBILE ─── */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        justify-content: flex-start;
        padding: 0 var(--margin) var(--space-6);
    }
    .hero-title {
        font-size: clamp(34px, 9.4vw, 54px);
        letter-spacing: 0.01em;
    }
    .hero-subtitle {
        font-size: 15px;
        max-width: 340px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 82svh;
        padding-top: 0;
        padding-inline: max(18px, var(--margin));
    }
    .hero-title {
        font-size: clamp(32px, 8.8vw, 38px);
        max-width: 100%;
    }
    .hero-subtitle { font-size: 14px; max-width: 300px; }
    .hero-actions {
        width: min(100%, 340px);
        gap: 14px;
    }
    .hero-actions .btn { width: 100%; }
    .hero-actions #hero-book-btn {
        min-height: 52px;
        padding: 12px 22px;
        font-size: 12px;
        letter-spacing: 0.18em;
    }
    .hero-actions #hero-products-btn {
        width: min(100%, 318px);
        min-height: 46px;
        padding: 10px 18px;
        font-size: 10px;
        letter-spacing: 0.15em;
    }

    .services-section,
    .why-section,
    .gallery-section {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }

    .section-header {
        align-items: center;
        flex-direction: column;
        gap: var(--space-1);
        margin-bottom: var(--space-3);
        text-align: center;
    }

    .section-header .view-all {
        justify-content: center;
    }

    .service-card {
        min-height: auto;
        padding: var(--space-3);
    }
}

/* ─── SERVICES SECTION ─── */
.services-section {
    position: relative;
    padding: clamp(72px, 9vw, 128px) 0 clamp(88px, 10vw, 140px);
    margin-top: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-1);
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}

.section-header::before {
    content: '';
    width: 64px;
    height: 1px;
    margin-bottom: var(--space-1);
    background: linear-gradient(90deg, transparent, rgba(248, 250, 255, 0.86), transparent);
    box-shadow: 0 0 18px rgba(248, 250, 255, 0.45);
}

.section-header h2 {
    font-family: 'Outfit', var(--font-family);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 250;
    line-height: 1.05;
    letter-spacing: 0;
    margin-bottom: 0;
    text-shadow: 0 -2px 18px rgba(248, 250, 255, 0.18), 0 18px 42px rgba(0, 0, 0, 0.38);
}

.section-header .view-all {
    margin-top: var(--space-1);
    font-size: var(--body-sm-size);
    color: var(--on-surface-variant);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.section-header .view-all:hover {
    color: var(--cool-led);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2vw, 32px);
    max-width: 1120px;
    margin: 0 auto;
}

.service-card {
    cursor: default;
    position: relative;
    min-height: 264px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(28px, 3vw, 44px);
    border-color: rgba(248, 250, 255, 0.34);
    background:
        radial-gradient(circle at 50% 0%, rgba(248, 250, 255, 0.08), transparent 44%),
        rgba(18, 20, 18, 0.54);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(130deg, transparent 0%, rgba(248, 250, 255, 0.12) 42%, transparent 64%);
    opacity: 0;
    transform: translateX(-30%);
    transition: opacity var(--transition), transform var(--transition-slow);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(248, 250, 255, 0.78);
    box-shadow: 0 0 28px rgba(248, 250, 255, 0.22), 0 28px 90px rgba(0, 0, 0, 0.34);
}

.service-card:hover::before {
    opacity: 1;
    transform: translateX(24%);
}

.service-card .service-icon {
    width: 52px;
    height: 52px;
    margin-inline: auto;
    margin-bottom: var(--space-3);
    background: rgba(248, 250, 255, 0.04);
    box-shadow: inset 0 0 18px rgba(248, 250, 255, 0.06);
}

.service-card .service-name {
    font-size: var(--headline-sm-size);
    font-weight: 400;
    color: var(--soft-white);
    margin-bottom: var(--space-2);
    letter-spacing: 0;
}

.service-card .service-desc {
    font-size: var(--body-sm-size);
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.service-card .service-duration {
    font-size: var(--body-sm-size);
    color: var(--outline);
}

.services-action {
    display: flex;
    justify-content: center;
    margin-top: clamp(32px, 5vw, 56px);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
}

/* ─── WHY CHOOSE US ─── */
.why-section {
    position: relative;
    padding: clamp(88px, 10vw, 140px) 0;
}

.why-section > h2 {
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
    font-family: 'Outfit', var(--font-family);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 250;
    line-height: 1.08;
    letter-spacing: 0;
}

.why-section > h2::before {
    content: '';
    display: block;
    width: 64px;
    height: 1px;
    margin: 0 auto var(--space-2);
    background: linear-gradient(90deg, transparent, rgba(248, 250, 255, 0.86), transparent);
    box-shadow: 0 0 18px rgba(248, 250, 255, 0.45);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 30px);
    max-width: 1120px;
    margin: 0 auto;
}

.why-item {
    position: relative;
    text-align: center;
    padding: clamp(22px, 3vw, 36px) var(--space-2);
    border-top: 1px solid rgba(248, 250, 255, 0.24);
    transition: transform var(--transition), border-color var(--transition);
}

.why-item::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--cool-led);
    box-shadow: var(--led-glow);
    transform: translateX(-50%);
    transition: width var(--transition-slow);
}

.why-item:hover {
    transform: translateY(-4px);
    border-color: transparent;
}

.why-item:hover::after {
    width: min(92px, 58%);
}

.why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-2);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--on-surface-variant);
    background: rgba(18, 20, 18, 0.36);
    transition: color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.why-item:hover .why-icon {
    color: var(--cool-led);
    border-color: rgba(248, 250, 255, 0.72);
    box-shadow: 0 0 28px rgba(248, 250, 255, 0.18);
    transform: translateY(-3px);
}

.why-item h3 {
    font-size: var(--body-lg-size);
    font-weight: 500;
    margin-bottom: var(--space-1);
}

.why-item p {
    font-size: var(--body-sm-size);
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* ─── GALLERY PREVIEW ─── */
.gallery-section {
    padding: clamp(88px, 10vw, 144px) 0;
}

.gallery-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: stretch;
    gap: clamp(18px, 2vw, 30px);
    max-width: 1040px;
    margin: 0 auto;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 1.8vw, 24px);
}

.gallery-img {
    position: relative;
    min-height: 248px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(248, 250, 255, 0.18);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-3);
    color: var(--outline);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.gallery-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 0 32%, rgba(248, 250, 255, 0.12) 39%, transparent 46%),
        radial-gradient(circle at 50% 18%, rgba(248, 250, 255, 0.16), transparent 44%),
        linear-gradient(180deg, rgba(56, 58, 55, 0.64), rgba(13, 15, 13, 0.72));
    transition: transform 900ms ease, opacity var(--transition);
}

.gallery-img-content::before {
    background:
        linear-gradient(180deg, rgba(8, 10, 9, 0.08), rgba(8, 10, 9, 0.62)),
        var(--gallery-image) center / cover no-repeat;
}

.gallery-img::after {
    content: '';
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(248, 250, 255, 0.74), transparent);
    opacity: 0.7;
}

.gallery-img span {
    position: relative;
    z-index: 1;
}

.gallery-img-a::before {
    background:
        linear-gradient(135deg, transparent 0 28%, rgba(248, 250, 255, 0.13) 36%, transparent 44%),
        radial-gradient(circle at 42% 20%, rgba(248, 250, 255, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(56, 58, 55, 0.7), rgba(13, 15, 13, 0.72));
}

.gallery-img-b::before {
    background:
        linear-gradient(35deg, transparent 0 34%, rgba(248, 250, 255, 0.12) 43%, transparent 52%),
        radial-gradient(circle at 62% 18%, rgba(248, 250, 255, 0.2), transparent 38%),
        linear-gradient(180deg, rgba(42, 45, 43, 0.78), rgba(13, 15, 13, 0.68));
}

.gallery-img-c::before {
    background:
        linear-gradient(150deg, transparent 0 30%, rgba(248, 250, 255, 0.12) 40%, transparent 50%),
        radial-gradient(circle at 50% 26%, rgba(248, 250, 255, 0.14), transparent 46%),
        linear-gradient(180deg, rgba(50, 53, 51, 0.72), rgba(13, 15, 13, 0.74));
}

.gallery-img:hover {
    transform: translateY(-4px);
    border-color: rgba(248, 250, 255, 0.72);
    box-shadow: 0 0 30px rgba(248, 250, 255, 0.16), 0 26px 80px rgba(0, 0, 0, 0.3);
}

.gallery-img:hover::before {
    transform: scale(1.06);
}

.gallery-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-4);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: all var(--transition);
    text-align: center;
    justify-content: center;
    min-height: 248px;
    background:
        radial-gradient(circle at 50% 16%, rgba(248, 250, 255, 0.1), transparent 44%),
        rgba(18, 20, 18, 0.42);
}

.gallery-cta:hover {
    border-color: var(--cool-led);
    color: var(--cool-led);
}

.gallery-cta .label-caps {
    font-size: 11px;
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-preview {
        grid-template-columns: 1fr;
    }

    .gallery-images {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-img,
    .gallery-cta {
        min-height: 180px;
    }
}

@media (max-width: 560px) {
    .services-section,
    .why-section,
    .gallery-section {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }

    .why-grid,
    .gallery-images {
        grid-template-columns: 1fr;
    }

    .gallery-img,
    .gallery-cta {
        min-height: 156px;
    }

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

/* ─── FOOTER ─── */
.site-footer {
    border-top: 1px solid var(--outline-variant);
    padding: var(--space-4) 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.footer-info {
    display: flex;
    gap: var(--space-8);
}

.footer-block h4 {
    font-size: var(--label-size);
    font-weight: var(--label-weight);
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    color: var(--outline);
    margin-bottom: var(--space-1);
    font-size: 10px;
}

.footer-block p {
    font-size: var(--body-sm-size);
    color: var(--on-surface-variant);
    line-height: 1.5;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-3);
}

.footer-contact-label {
    font-size: var(--label-size);
    font-weight: var(--label-weight);
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    color: var(--outline);
}

.footer-contact a {
    font-size: var(--body-sm-size);
    color: var(--on-surface-variant);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info { flex-direction: column; gap: var(--space-3); }
    .footer-contact { flex-direction: column; }
}
