/* ===========================
   PUBLIC WEBSITE — ViService
   Inspired by viessmann.co.uk
   =========================== */

:root {
    --brand: #d01b0a;
    --brand-dark: #a81508;
    --brand-light: #e8342a;
    --navy: #1a1a2e;
    --navy-light: #16213e;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --gray-900: #212529;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
}

/* === TOP BAR === */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}
.top-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.top-bar a:hover { color: #fff; }

/* === NAVIGATION === */
.pub-nav {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    padding: 0.75rem 0;
    z-index: 1030;
}
.pub-nav .nav-logo { height: 38px; }
.pub-nav .nav-link {
    color: var(--gray-800) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.15s;
}
.pub-nav .nav-link:hover,
.pub-nav .nav-link.active {
    color: var(--brand) !important;
}
.btn-cta {
    font-weight: 600;
    border-radius: 0.5rem;
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--brand-dark) 100%);
    color: #fff;
    padding: 5rem 0 4.5rem;
    position: relative;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.hero-sub {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.hero-btns .btn-lg {
    padding: 0.8rem 1.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
}
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.9rem;
    opacity: 0.8;
}
.hero-highlights i {
    color: #4ade80;
    margin-right: 0.3rem;
}
.hero-visual {
    font-size: 12rem;
    opacity: 0.08;
    line-height: 1;
}
.hero-video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,0.4);
    background: #000;
}
/* Iframe sized noticeably larger than container so every piece of YouTube
   chrome (logo, controls bar, title hooks, prev/next, pause flash on start)
   sits OUTSIDE the visible window — what stays is just the video frame. */
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 180%; height: 180%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
    filter: brightness(0.92) saturate(0.95);
    /* Stay hidden until JS toggles .is-playing — this is set only after
       the YouTube IFrame API reports the PLAYING state, so the initial
       overlay (prev / pause / next icons that flash on autoplay) is never
       visible to the user. */
    opacity: 0;
    transition: opacity 0.5s ease;
}
.hero-video.is-playing { opacity: 1; }
/* Transparent layer above the iframe — eats any stray click/tap so a viewer
   can't accidentally open the YouTube context menu or share button. */
.hero-video-click-block {
    position: absolute; inset: 0;
    z-index: 3;
    background: transparent;
}

/* === SECTIONS === */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }
.section-dark {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
}
.section-cta {
    background: var(--brand);
    padding: 4rem 0;
}
.sec-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.section-dark .sec-title { color: #fff; }
.sec-sub {
    color: var(--gray-600);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* === WHY US CARDS === */
.why-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.why-icon {
    width: 56px; height: 56px;
    border-radius: 0.75rem;
    background: rgba(208,27,10,0.08);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.why-card h5 { font-weight: 600; margin-bottom: 0.5rem; }
.why-card p { color: var(--gray-600); margin-bottom: 0; font-size: 0.95rem; }

/* === SERVICE CARDS === */
.svc-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--brand-light);
}
.svc-icon {
    width: 48px; height: 48px;
    border-radius: 0.625rem;
    background: rgba(208,27,10,0.08);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.svc-card h5 { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; }
.svc-card p { color: var(--gray-600); margin-bottom: 0; font-size: 0.9rem; }

/* === STEP CARDS === */
.step-card-pub {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.step-card-pub h5 { font-weight: 600; margin-bottom: 0.5rem; }
.step-card-pub p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 0; }

/* === REQUEST FORM === */
.request-form-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* === VIESSMANN SECTION === */
.vi-point {
    padding: 0.5rem 0;
    font-weight: 500;
    font-size: 0.95rem;
}
.vi-visual {
    background: var(--gray-50);
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid var(--gray-200);
}
.vi-logo-big {
    height: 60px;
    margin-bottom: 1.5rem;
}
.vi-trust-badge {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* === PARTS SECTION === */
.parts-icon {
    font-size: 3.5rem;
    color: var(--brand);
}

/* === FAQ === */
.accordion-item { border: 1px solid var(--gray-200); border-radius: 0.75rem !important; margin-bottom: 0.75rem; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: 1rem; }
.accordion-button:not(.collapsed) { background: var(--gray-50); color: var(--navy); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 0.15rem rgba(208,27,10,0.15); }

/* === FOOTER === */
.pub-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 1.5rem;
}
.footer-logo { height: 32px; filter: brightness(0) invert(1); }
.footer-desc { font-size: 0.9rem; line-height: 1.6; }
.pub-footer h6 { color: #fff; font-weight: 600; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--brand-light); }
.footer-links i { color: rgba(255,255,255,0.4); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; margin-top: 2rem; }
.footer-trust .badge { font-weight: 500; padding: 0.4rem 0.75rem; margin-right: 0.5rem; font-size: 0.8rem; }

/* === MOBILE CTA BAR === */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    display: flex;
    gap: 1px;
    z-index: 1050;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.mobile-cta .btn {
    border-radius: 0;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* === PAGE HEADERS === */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.7; font-size: 1.1rem; }

/* === SERVICE PAGE DETAIL CARDS === */
.svc-detail {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.2s;
}
.svc-detail:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.svc-detail .svc-icon-lg {
    width: 64px; height: 64px;
    border-radius: 1rem;
    background: rgba(208,27,10,0.08);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

/* === BLOG/NEWS CARDS === */
.blog-card {
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    background: #fff;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.blog-card-body { padding: 1.5rem; }
.blog-card h5 { font-weight: 600; font-size: 1.05rem; }
.blog-card p { color: var(--gray-600); font-size: 0.9rem; }
.blog-date { color: var(--gray-600); font-size: 0.8rem; }

/* === CONTACT PAGE === */
.contact-card {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--gray-200);
}
.contact-card i { color: var(--brand); font-size: 1.5rem; }

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 3.5rem 0 3rem; }
    .section { padding: 3.5rem 0; }
    .sec-title { font-size: 1.6rem; }
}
@media (max-width: 575.98px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-sub { font-size: 1rem; }
    .hero-highlights { flex-direction: column; gap: 0.5rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; }
    body { padding-bottom: 56px; }
}
