/* HappyMac.gr — homepage below-the-fold styles (split from inline, C2 2026-07-09) */
/* ===== ABOUT ===== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 3.5rem;
}

.about-photo {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--grey-300);
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 0 0 0 var(--accent);
    transition: box-shadow 0.3s ease;
}

.about-photo:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1), -4px 4px 0 0 var(--accent);
}

.about-photo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--grey-600);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-caption {
    grid-column: 1 / -1;
    font-size: 1.05rem;
    color: var(--grey-600);
    line-height: 1.75;
    margin: 0.5rem 0 0;
}

.about-extended {
    margin-top: 3rem;
    columns: 2;
    column-gap: 3rem;
}

.about-extended p {
    font-size: 0.95rem;
    color: var(--grey-600);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    break-inside: avoid;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    position: sticky;
    top: 7rem;
    align-self: start;
}

.stat-card {
    background: var(--grey-100);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--grey-300);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: default;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(232, 96, 28, 0.08);
    border-color: rgba(232, 96, 28, 0.25);
}

.stat-card.accent {
    border-color: rgba(232, 96, 28, 0.15);
    background: linear-gradient(135deg, var(--grey-100) 0%, rgba(232, 96, 28, 0.03) 100%);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number.accent {
    color: var(--accent);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--grey-600);
    font-weight: 500;
}

/* ===== SERVICES ===== */
.services {
    background: var(--grey-100);
    border-top: 1px solid var(--grey-300);
    border-bottom: 1px solid var(--grey-300);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 3.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--grey-300);
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(232, 96, 28, 0.15);
    border-left-color: var(--accent);
}

.service-card:hover .service-icon {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.service-icon {
    width: 44px;
    height: 44px;
    background: var(--grey-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--accent);
    border: 1px solid var(--grey-300);
}

.service-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--grey-600);
    line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--grey-100);
    border-top: 1px solid var(--grey-300);
    padding-bottom: 0;
    justify-content: flex-start;
    padding-top: 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: var(--grey-100);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--grey-300);
    color: var(--grey-600);
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-item-label {
    font-size: 0.72rem;
    color: var(--grey-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-item-value {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
}

.contact-item-value a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item-value a:hover {
    color: var(--accent);
}

.contact-social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--grey-100);
    border: 1px solid var(--grey-300);
    color: var(--grey-600);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.contact-social-link svg {
    width: 20px;
    height: 20px;
}

.contact-social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-cta-box {
    background: var(--dark);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.contact-cta-box::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 96, 28, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-cta-box h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.contact-cta-box p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.btn-cta-portal {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.btn-cta-portal:hover {
    background: var(--accent-light);
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(232, 96, 28, 0.35);
}

.btn-cta-portal svg {
    transition: transform 0.2s ease;
}

.btn-cta-portal:hover svg {
    transform: translateX(4px);
}

/* ===== FAQ ===== */
.faq {
    background: var(--white);
    border-top: 1px solid var(--grey-300);
}

.faq-list {
    margin-top: 3rem;
    max-width: 760px;
}

.faq-item {
    border-bottom: 1px solid var(--grey-300);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--grey-100);
    border: 1px solid var(--grey-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-icon svg {
    width: 14px;
    height: 14px;
    color: var(--grey-600);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    background: var(--accent);
    border-color: var(--accent);
}

.faq-item.open .faq-icon svg {
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 1.4rem 0;
    font-size: 0.95rem;
    color: var(--grey-600);
    line-height: 1.75;
    max-width: 640px;
}

.faq-answer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    color: var(--accent-dark);
}

/* ===== TIPS ===== */
.tips {
    background: var(--grey-100);
    border-top: 1px solid var(--grey-300);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.tip-card {
    background: var(--white);
    border: 1px solid var(--grey-300);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.tip-card-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* ΟΧΙ var(--accent): σε λευκό card το #E8601C βγάζει 3.43:1 — θέλει ≥4.5:1 (WCAG AA) */
    color: #C04A11;
}

.tip-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.tip-card p {
    font-size: 0.88rem;
    color: var(--grey-600);
    line-height: 1.65;
    flex: 1;
}

.tip-card-arrow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #C04A11; /* βλ. σχόλιο στο .tip-card-label */
    margin-top: 0.4rem;
    transition: gap 0.2s ease;
}

.tip-card:hover .tip-card-arrow {
    gap: 0.7rem;
}

.tips-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.2rem;
    border: 2px solid var(--accent);
    border-radius: 980px;
    /* ΟΧΙ var(--accent): σε φόντο --grey-100 (#f9fafb) το #E8601C βγάζει 3.28:1 — το κείμενο θέλει ≥4.5:1 (WCAG AA)· το border αρκεί 3:1 */
    color: #C04A11;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tips-see-all:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232,96,28,0.25);
}

.tips-see-all:hover svg {
    transform: translateX(2px);
}

.tips-see-all svg {
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
    .tips-see-all {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}

/* ===== CONTACT MAP ===== */
.contact-map {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--grey-300);
}

.contact-map #map {
    width: 100%;
    height: 400px;
    display: block;
}

.map-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding: 16px 20px;
    background: var(--grey-100);
    border-top: 1px solid var(--grey-300);
    border-radius: 0 0 20px 20px;
}

.map-info svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

.map-info span {
    font-size: 0.85rem;
    color: var(--grey-600);
    line-height: 1.5;
}

.map-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.map-info a:hover {
    color: var(--accent-dark);
}

/* ===== FOOTER (inside contact section) ===== */
.contact footer {
    background: var(--dark);
    padding: 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.footer-logo-img {
    width: 24px;
    height: auto;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-motto {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    font-style: italic;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        position: static;
    }

    .about-extended {
        columns: 1;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}



@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta-box {
        padding: 2rem;
    }

    .footer-top, .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== REVIEWS ===== */
.reviews {
    background: var(--white);
    overflow: clip;
    overflow-x: clip;
    max-width: 100%;
}

.reviews .section-inner {
    overflow: hidden;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.reviews-header .section-label,
.reviews-header .section-title,
.reviews-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.reviews-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.reviews-score-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.04em;
    line-height: 1;
}

.reviews-score-details {
    text-align: left;
}

.reviews-stars {
    display: flex;
    gap: 2px;
    color: #FBBC04;
    margin-bottom: 0.3rem;
}

.reviews-stars svg {
    width: 20px;
    height: 20px;
}

.reviews-count {
    font-size: 0.85rem;
    color: var(--grey-600);
    font-weight: 500;
}

.reviews-count a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.reviews-count a:hover {
    color: var(--accent-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.review-card {
    background: var(--grey-100);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--grey-300);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.review-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.review-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.review-card-stars {
    display: flex;
    gap: 1px;
    color: #FBBC04;
    margin-bottom: 0.8rem;
}

.review-card-stars svg {
    width: 14px;
    height: 14px;
}

.review-text {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.7;
}

.review-quote {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--grey-300);
    font-family: Georgia, serif;
    line-height: 1;
}

.reviews-cta {
    text-align: center;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.reviews-cta a.reviews-cta-btn {
    color: var(--white);
    padding: 0.85rem 2rem;
}

.reviews-cta a.reviews-cta-btn:hover {
    gap: 0.5rem; /* override .reviews-cta a:hover gap growth — το κουμπί δεν "ανοίγει" */
}

.reviews-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: gap 0.2s ease;
    cursor: pointer;
}

.reviews-cta a:hover {
    gap: 0.8rem;
}

@media (max-width: 640px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-score-number {
        font-size: 2.8rem;
    }
}

/* ===== REVIEWS AUTO-SCROLL ===== */
.reviews-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    will-change: transform;
    visibility: hidden;
}
.reviews-track.ready {
    visibility: visible;
}

.reviews-track .review-card {
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
    opacity: 1;
    transform: none;
}

@keyframes reviewsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.reviews-overflow {
    overflow: hidden;
    margin-top: 3rem;
    position: relative;
    max-width: 100vw;
    width: 100%;
}

.reviews-pause {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--grey-300);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-600);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.reviews-pause:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.reviews-pause svg {
    width: 14px;
    height: 14px;
}

/* ===== ECG DIVIDER ===== */
.ecg-divider {
    width: 100%;
    max-width: 100%;
    height: 140px;
    overflow-x: clip;
    overflow-y: visible;
    scroll-snap-align: none;
    position: relative;
    z-index: 10;
    margin-top: 2.5rem;
}

.ecg-divider svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 200%;
    height: 140px;
}

.ecg-divider path {
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

/* ===== FOOTER MOTTO ANIMATION ===== */
.motto-letter {
    display: inline-block;
    opacity: 0;
    animation: mottoFade 0.4s ease forwards;
}

@keyframes mottoFade {
    to { opacity: 1; }
}
