/* ==========================================================================
   DIECOTEC – modern.css
   Clean, modern layer loaded AFTER templatemo-festava-live.css.
   Pellet page = warm (orange) accent, Heat pump page = cool (blue) accent.
   ========================================================================== */

:root {
    --ink: #0f172a;
    --ink-2: #1e293b;
    --muted: #64748b;
    --line: #e6e8ec;
    --soft: #f6f7f9;
    --white: #ffffff;
    --accent: #ee5007;
    --accent-2: #ff8a3d;
    --accent-soft: rgba(238, 80, 7, 0.1);
    --radius: 20px;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.05), 0 28px 60px -20px rgba(15, 23, 42, 0.3);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.theme-cool {
    --accent: #1f7ae0;
    --accent-2: #5bb4ff;
    --accent-soft: rgba(31, 122, 224, 0.1);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 84px; }

body {
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Outfit", system-ui, sans-serif;
    letter-spacing: -0.02em;
}

::selection { background: var(--accent); color: #fff; }

.section-padding { padding: clamp(64px, 9vw, 120px) 0 !important; }

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

/* ---------- Navigation ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    padding-top: 12px;
    padding-bottom: 12px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.navbar.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.25);
}

.navbar-brand img { height: 40px; width: auto; object-fit: contain; }

.navbar .nav-link {
    position: relative;
    color: var(--ink) !important;
    font-size: 0.86rem;
    font-weight: 400;
    letter-spacing: 0;
    padding: 0.5rem 0.65rem !important;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--accent) !important; }

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler { border: 0; box-shadow: none !important; }

@media (min-width: 992px) and (max-width: 1199px) {
    .navbar .nav-link { font-size: 0.78rem; padding: 0.5rem 0.4rem !important; }
}

@media (max-width: 991px) {
    .navbar-collapse { padding: 12px 0 8px; }
    .navbar .nav-link::after { left: 0; right: auto; width: 24px; }
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-section .section-overlay {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    background:
        radial-gradient(60% 60% at 50% 100%, var(--accent-soft), transparent 70%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.38) 45%, rgba(15, 23, 42, 0.8) 100%) !important;
}

.hero-section .container { position: relative; z-index: 2; }
.hero-section .date-wrap { display: none !important; }

.hero-section .location-wrap h1 {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 18ch;
    margin: 0 auto;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
    animation: mdRise 1s var(--ease) 0.1s backwards;
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 2px;
    height: 44px;
    background: linear-gradient(var(--white), transparent);
    transform-origin: top;
    animation: mdScrollCue 2.2s ease-in-out infinite;
    z-index: 2;
}

@keyframes mdRise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
}

@keyframes mdScrollCue {
    0%   { transform: scaleY(0); opacity: 1; }
    60%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Alternating section backgrounds ---------- */
.about-section,
.about-section2,
.heatpump-section { background: var(--white) !important; }

.schedule-section,
#gallery { background: var(--soft) !important; }

#gallery { padding: clamp(56px, 8vw, 100px) 0; }

/* ---------- Product intro sections ---------- */
.services-info h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--ink) !important;
    margin-bottom: 1.25rem !important;
}

.services-info h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    margin-top: 18px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.services-info h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: 0.02em;
    max-width: 42ch;
    margin-top: 0 !important;
}

.about-text-wrap {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.about-text-wrap:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-text-wrap > .about-image {
    display: block;
    width: 100%;
    height: auto;
    padding: clamp(16px, 3vw, 32px);
    background: radial-gradient(70% 70% at 50% 40%, var(--accent-soft), transparent 75%), var(--soft);
    transition: transform 0.6s var(--ease);
}

.about-text-wrap:hover > .about-image { transform: scale(1.03); }

.about-text-info {
    align-items: center;
    gap: 8px;
    padding: 18px 24px 22px;
    border-top: 1px solid var(--line);
    background: var(--white);
    position: relative;
    z-index: 1;
}

.about-text-info h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 2px; color: var(--ink); }
.about-text-info p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.about-text-info .d-flex { align-items: center; }

/* "Spec" link */
.link-fx-1 {
    display: inline-flex !important;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0 !important;
    color: var(--accent) !important;
    font-weight: 700;
    text-decoration: none !important;
    padding: 0.2rem 0;
}

.link-fx-1::before,
.link-fx-1::after { display: none !important; }

.link-fx-1 .icon {
    width: 2.1rem;
    height: 2.1rem;
    flex: none;
    transform: rotate(180deg);
    transition: transform 0.3s var(--ease);
}

.link-fx-1 .icon circle { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
.link-fx-1:hover .icon { transform: translateY(3px) rotate(180deg); }

/* Catalog buttons */
.viewmodelbtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 28px 0 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--accent) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 1rem !important;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px var(--accent);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s ease;
}

.viewmodelbtn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 30px -10px var(--accent);
}

.viewmodelbtn .nav-link {
    display: block;
    color: #fff !important;
    padding: 14px 30px !important;
}

.viewmodelbtn .nav-link::after { display: none; }

.popup .viewmodelbtn { padding: 14px 30px !important; margin: 20px auto 0 !important; display: flex !important; }

/* Popup */
.popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    padding: 24px;
    overflow: auto;
    background: rgba(15, 23, 42, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.popup.show { display: flex; align-items: center; justify-content: center; animation: mdFade 0.25s ease; }

.popup-content {
    width: min(94vw, 1040px);
    max-height: 92vh;
    margin: 0 !important;
    padding: 24px !important;
    overflow: auto;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    animation: mdRise 0.4s var(--ease);
}

.popup-content h1 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    font-size: 0;
    margin: 0;
}

.popup-content h1 img { width: calc(33.333% - 11px) !important; min-width: 220px; height: auto; border-radius: 14px; }

@keyframes mdFade { from { opacity: 0; } to { opacity: 1; } }

/* Boiler image band */
.video-boiler-wrap {
    background: var(--white);
    padding: 0 20px clamp(48px, 7vw, 90px) !important;
}

.video-boiler-wrap img {
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

/* ---------- Spec tables ---------- */
.schedule-section .table-responsive {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.schedule-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--ink) !important;
    margin-bottom: 1.5rem !important;
}

.schedule-table {
    margin: 0 !important;
    min-width: 640px;
    border-collapse: separate !important;
    border-spacing: 0;
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: transparent;
}

.schedule-table th,
.schedule-table td {
    background: var(--white) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 16px 20px !important;
    font-size: 0.97rem;
    vertical-align: middle;
    transition: background 0.2s ease;
}

.schedule-table tbody tr:nth-child(even) > th,
.schedule-table tbody tr:nth-child(even) > td { background: #fafbfc !important; }

.schedule-table tbody tr:hover > th,
.schedule-table tbody tr:hover > td { background: var(--accent-soft) !important; }

.schedule-table tbody tr:last-child > th,
.schedule-table tbody tr:last-child > td { border-bottom: 0 !important; }

.schedule-table tbody th[scope="row"] {
    text-align: left;
    font-weight: 600;
    color: var(--ink-2) !important;
    position: sticky;
    left: 0;
    z-index: 1;
}

.schedule-table thead th {
    background: var(--ink) !important;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 3px solid var(--accent) !important;
}

.schedule-table thead th:first-child { text-align: left; }

/* ---------- Gallery ---------- */
.gallery_wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    column-count: auto !important;
    columns: auto !important;
}

.gallery_wrapper > div {
    margin: 0 !important;
    overflow: hidden;
    border-radius: 16px;
    background: #e5e7eb;
    box-shadow: var(--shadow);
}

.gallery_wrapper .img2 {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.6s var(--ease), filter 0.3s ease;
}

.gallery_wrapper > div:hover .img2 { transform: scale(1.07); filter: brightness(1.04); }

/* ---------- FAQ / statement band ---------- */
.pricing-section.section-bg {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(50% 120% at 85% 0%, var(--accent-soft), transparent 70%),
        linear-gradient(135deg, var(--ink), var(--ink-2)) !important;
}

.pricing-section .main__middle__container { position: relative; z-index: 1; }

.pricing-section h2 {
    font-size: clamp(1.7rem, 3.8vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff !important;
    max-width: 24ch;
    margin: 0 auto;
}

/* ---------- Contact ---------- */
.contact-section { background: var(--white) !important; }

.contact-section h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--ink) !important;
}

.contact-section .nav-tabs {
    gap: 8px;
    padding: 6px;
    border: 0;
    border-radius: 999px;
    background: var(--soft);
}

.contact-section .nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent;
    color: var(--muted) !important;
    padding: 10px 24px;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.contact-section .nav-tabs .nav-link h5 { margin: 0; font-size: 0.95rem; font-weight: 600; }

.contact-section .nav-tabs .nav-link.active {
    background: var(--white);
    color: var(--ink) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.contact-section .tab-content {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg) !important;
}

.contact-section .tab-content iframe { display: block; }

#nav-ContactMap {
    padding: 64px 24px;
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink) !important;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0 !important;
    padding-top: 64px;
}

.site-footer .site-footer-top { display: none; }

.site-footer-title {
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer-links { list-style: none; padding: 0; margin: 0; columns: 2; max-width: 360px; }
.site-footer-link-item { margin-bottom: 10px; break-inside: avoid; }

.site-footer a,
.site-footer-link {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer-link:hover { color: var(--accent-2) !important; }

.site-footer a[href*="wa.me"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 8px 16px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.9rem;
}

.site-footer a[href*="wa.me"] img { width: 24px; height: 24px; object-fit: contain; }

.site-footer .icon-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-right: 10px;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 1.15rem;
    transition: background 0.25s ease, transform 0.25s var(--ease), border-color 0.25s ease;
}

.site-footer .icon-button span { display: none !important; }

.site-footer .icon-button:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: translateY(-3px);
}

.site-footer iframe { border-radius: 14px; background: #fff; margin-top: 12px; }

.site-footer-bottom {
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent !important;
}

.copyright-text { color: rgba(255, 255, 255, 0.5) !important; font-size: 0.85rem; margin: 0; }

/* ---------- Scroll reveal (enabled by js/modern.js) ---------- */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- PDF loading modal ---------- */
.dc-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.66);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.dc-loader.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
}

.dc-loader__card {
    width: min(92vw, 400px);
    padding: 36px 32px 28px;
    border-radius: 24px;
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.35s var(--ease);
}

.dc-loader.is-open .dc-loader__card { transform: none; }

.dc-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 22px;
    border-radius: 50%;
    border: 4px solid var(--accent-soft);
    border-top-color: var(--accent);
    animation: dcSpin 0.9s linear infinite;
}

.dc-loader__title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
}

.dc-loader__label {
    margin: 0 0 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
}

.dc-bar {
    position: relative;
    height: 8px;
    margin: 0 0 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9ecf1;
}

.dc-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.2s ease;
}

.dc-bar.is-indeterminate span {
    width: 40%;
    animation: dcSlide 1.3s ease-in-out infinite;
}

.dc-loader__status {
    margin: 0 0 22px;
    min-height: 1.4em;
    font-size: 0.88rem;
    color: var(--muted);
}

.dc-loader__cancel {
    padding: 9px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dc-loader__cancel:hover,
.dc-loader__cancel:focus-visible {
    color: var(--ink);
    border-color: var(--ink);
    outline: none;
}

@keyframes dcSpin  { to { transform: rotate(360deg); } }
@keyframes dcSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* A loading indicator should keep moving even with reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dc-loader .dc-spinner { animation: dcSpin 1.6s linear infinite !important; }
    .dc-loader .dc-bar.is-indeterminate span { animation: dcSlide 2s ease-in-out infinite !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 575px) {
    .viewmodelbtn { display: flex !important; width: 100%; }
    .site-footer-links { columns: 1; }
    .popup-content h1 img { width: 100% !important; }
    .schedule-table th, .schedule-table td { padding: 13px 14px !important; font-size: 0.9rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js-reveal .reveal { opacity: 1; transform: none; }
}
