/* ==========================================================================
   ELPRO Solutions — site styles (on top of Bootstrap 5.3)

   Colour system (2026 theme): Capri Blue 60% · Swan White 30% · Watermelon Neon 10%.
   ALL colours are defined once below; components only use var(--…).
   Contrast notes (WCAG 2.1 AA, 4.5:1 for body text):
     white on Capri #2C6FD1 = 4.9:1 ✓ · white on Capri-700 = 8.1:1 ✓
     Capri #2C6FD1 text on Swan = 4.3:1 ✗ → small blue text uses --capri-600 (6.1:1 on Swan, 7.0:1 on white)
     white on Watermelon #FF2E63 = 3.6:1 ✗ → text-bearing CTA buttons use --watermelon-cta #E0164C (4.8:1);
     pure #FF2E63 is used for highlights, active/selected states and decorative accents.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL / Apache 2.0) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-400.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-500.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-700.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-600.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.ttf") format("truetype"); }

:root {
    /* Brand palette */
    --capri: #2C6FD1;            /* 60% — primary brand */
    --capri-rgb: 44, 111, 209;
    --capri-600: #1F57AB;        /* blue text/links on light backgrounds */
    --capri-700: #17448A;        /* hover, deep blue surfaces */
    --capri-700-rgb: 23, 68, 138;
    --capri-900: #0E2A57;        /* footer / navy */
    --capri-50: #EAF1FB;         /* soft blue tint (icon chips) */
    --swan: #F3F0E9;             /* 30% — secondary background */
    --swan-200: #E6E0D3;         /* borders on Swan */
    --watermelon: #FF2E63;       /* 10% — accent */
    --watermelon-rgb: 255, 46, 99;
    --watermelon-cta: #E0164C;   /* accessible CTA background (white text 4.8:1) */
    --watermelon-hover: #C21043;

    /* Neutrals */
    --white: #FFFFFF;
    --ink: #14213D;              /* headings — dark navy */
    --ink-body: #2D3748;         /* body text — charcoal */
    --ink-muted: #4A5568;        /* secondary text (7.5:1 on white, 6.6:1 on Swan) */
    --line: #DDE3EC;             /* borders on white */
    --input-border: #C9CFD8;
    --danger: #DC3545;
    --media-bg: #0E1A2B;         /* behind images/video in sliders */
    --shadow-rgb: 14, 42, 87;

    --radius: 12px;
    --shadow: 0 6px 24px rgba(var(--shadow-rgb), .08);
    --shadow-hover: 0 14px 34px rgba(var(--shadow-rgb), .16);
    --header-h: 76px;

    --bs-body-font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --bs-body-color: var(--ink-body);
    --bs-link-color: var(--capri-600);
    --bs-link-color-rgb: 31, 87, 171;
    --bs-link-hover-color: var(--capri-700);
    --bs-link-hover-color-rgb: 23, 68, 138;
}

html { scroll-padding-top: calc(var(--header-h) + 12px); }
body { font-size: 1rem; line-height: 1.65; text-rendering: optimizeLegibility; background: var(--white); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Montserrat", var(--bs-body-font-family);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.005em;
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
main:focus { outline: none; }
/* Slide-in animations start off-screen; clip (not hidden) so sticky elements keep working. */
main { overflow-x: clip; }
.text-accent { color: var(--capri-600); }
.text-accent-light { color: var(--white); }
.prose p { max-width: 70ch; }
::selection { background: rgba(var(--watermelon-rgb), .2); }

/* ---------- Accessibility helpers ---------- */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--capri-700); color: var(--white); padding: .6rem 1rem; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--white); }
:focus-visible { outline: 3px solid var(--capri); outline-offset: 2px; }
.on-blue :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .section-dark :focus-visible { outline-color: var(--white); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { border-radius: 8px; font-weight: 500; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.btn-lg { font-weight: 600; }
/* Primary brand action (Capri) */
.btn-accent {
    --bs-btn-color: var(--white); --bs-btn-bg: var(--capri); --bs-btn-border-color: var(--capri);
    --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--capri-700); --bs-btn-hover-border-color: var(--capri-700);
    --bs-btn-active-color: var(--white); --bs-btn-active-bg: var(--capri-700); --bs-btn-active-border-color: var(--capri-700);
    --bs-btn-focus-shadow-rgb: var(--capri-rgb);
}
.btn-outline-accent {
    --bs-btn-color: var(--capri-600); --bs-btn-border-color: var(--capri);
    --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--capri); --bs-btn-hover-border-color: var(--capri);
    --bs-btn-active-color: var(--white); --bs-btn-active-bg: var(--capri-700); --bs-btn-active-border-color: var(--capri-700);
}
/* Call to action (Watermelon) — Contact / Request Demo / Send / main hero action only */
.btn-cta {
    --bs-btn-color: var(--white); --bs-btn-bg: var(--watermelon-cta); --bs-btn-border-color: var(--watermelon-cta);
    --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--watermelon-hover); --bs-btn-hover-border-color: var(--watermelon-hover);
    --bs-btn-active-color: var(--white); --bs-btn-active-bg: var(--watermelon-hover); --bs-btn-active-border-color: var(--watermelon-hover);
    --bs-btn-focus-shadow-rgb: var(--watermelon-rgb);
    box-shadow: 0 6px 18px rgba(var(--watermelon-rgb), .28);
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(var(--watermelon-rgb), .34); }
.btn-outline-light { --bs-btn-color: var(--white); --bs-btn-border-color: var(--white); --bs-btn-hover-color: var(--capri-700); --bs-btn-hover-bg: var(--white); }
.btn-link { text-decoration: none; font-weight: 500; color: var(--capri-600); }
.btn-link:hover { color: var(--capri-700); text-decoration: underline; text-decoration-color: var(--watermelon); }
.link-arrow { color: var(--capri-600); font-weight: 500; font-size: .95rem; }
.link-arrow i { transition: transform .2s; display: inline-block; }

/* ---------- Header ---------- */
.site-header { background: rgba(255, 255, 255, .98); border-bottom: 3px solid var(--capri); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(var(--shadow-rgb), .1); }
.site-header .navbar { min-height: var(--header-h); padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-logo { height: 52px; width: auto; }
@media (max-width: 575.98px) { .brand-logo { height: 44px; } }
.brand-divider { width: 2px; height: 30px; background: var(--capri); }
.brand-text { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 1.35rem; color: var(--capri-600); letter-spacing: .02em; }
.navbar-toggler { border: 0; font-size: 1.9rem; color: var(--capri-600); padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(var(--capri-rgb), .3); }
.site-header .nav-link { color: var(--ink); font-weight: 500; padding: .5rem .85rem !important; position: relative; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--capri-600); }
.site-header .nav-link.active, .site-header .show > .nav-link { color: var(--capri-600); }
.dropdown-menu { border: 1px solid var(--line); border-top: 3px solid var(--capri); border-radius: 10px; box-shadow: var(--shadow); padding: .5rem; }
.dropdown-item { border-radius: 6px; padding: .55rem .85rem; color: var(--ink); }
.dropdown-item i { color: var(--capri); width: 1.4rem; display: inline-block; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--swan); color: var(--capri-700); }
.dropdown-item.active, .dropdown-item:active { background: var(--capri); color: var(--white); }
.dropdown-item.active i, .dropdown-item:active i { color: var(--white); }
.nav-cta { padding: .5rem 1.2rem; }
@media (min-width: 1200px) {
    .site-header .nav-link.active::after, .site-header .nav-link:not(.dropdown-toggle):hover::after {
        content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .1rem; height: 3px; border-radius: 2px;
    }
    .site-header .nav-link.active::after { background: var(--watermelon); }
    .site-header .nav-link:not(.active):not(.dropdown-toggle):hover::after { background: rgba(var(--capri-rgb), .35); }
}
@media (max-width: 1199.98px) {
    .navbar-collapse { border-top: 1px solid var(--line); margin-top: .5rem; padding: .5rem 0 1rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
    .site-header .nav-link.active { border-left: 3px solid var(--watermelon); }
    .dropdown-menu { box-shadow: none; border: 0; padding-left: 1rem; }
    .nav-cta { margin-top: .5rem; display: inline-block; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section-muted { background: var(--swan); }
.section-dark, .section-blue { background: var(--capri); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark .h3, .section-dark .h5,
.section-blue h2, .section-blue h3 { color: var(--white); }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-heading h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--watermelon); margin: .9rem auto 0; }
.section-heading--split h2::after { margin-left: 0; }
.section-heading--split { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; }
.section-heading--split > div { max-width: 720px; }
.section-lead { color: var(--ink-muted); font-size: 1.08rem; margin-top: 1rem; margin-bottom: 0; }
.section-dark .section-lead { color: var(--white); }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--capri-600); margin-bottom: .6rem; }
.kicker-light { color: var(--white); }
.anchor-alias { position: absolute; top: 0; }
@media (max-width: 767.98px) { .section { padding: 56px 0; } .section-heading { margin-bottom: 32px; } }

/* ---------- Home hero (Capri Blue over a genuine ELPRO stall photo) ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); padding: 80px 0 96px; background: var(--capri); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    /* opacities chosen so white text keeps >= 4.5:1 even over a pure-white photo pixel */
    background: linear-gradient(100deg, rgba(var(--capri-700-rgb), .95) 0%, rgba(var(--capri-700-rgb), .86) 45%, rgba(var(--capri-rgb), .96) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-title { color: var(--white); font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); margin-bottom: .75rem; letter-spacing: -.01em; }
.hero-lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 500; margin-bottom: 1rem; color: var(--white); }
.hero-sub { color: var(--white); font-size: 1.05rem; max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-media { position: relative; max-width: 600px; margin-left: auto; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(var(--shadow-rgb), .45); border: 4px solid rgba(255, 255, 255, .9); background: var(--media-bg); }
.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 712 / 660; object-fit: cover; }
.hero-video-toggle {
    position: absolute; right: .9rem; bottom: .9rem; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .7); background: rgba(var(--shadow-rgb), .6); color: var(--white); font-size: 1.3rem; line-height: 1;
}
.hero-video-toggle:hover { background: var(--watermelon-cta); border-color: var(--watermelon-cta); }
@media (max-width: 991.98px) {
    .hero { padding: 48px 0 56px; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-media { margin: 0 auto; }
}

/* ---------- Inner page hero (Capri) ---------- */
.page-hero { padding: 44px 0 60px; background: linear-gradient(135deg, var(--capri) 0%, var(--capri-700) 100%); color: var(--white); }
/* "~" not "+": the breadcrumb JSON-LD <script> sits between the hero and the section */
.page-hero ~ .section.pt-0 { padding-top: 56px !important; }
.page-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 1rem; color: var(--white); }
.page-hero .kicker { color: var(--white); }
.page-hero .kicker::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--watermelon); vertical-align: middle; margin-right: .6rem; border-radius: 2px; }
.page-hero .lead { color: var(--white); font-size: 1.15rem; max-width: 62ch; }
.page-hero-img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(var(--shadow-rgb), .35); border: 4px solid rgba(255, 255, 255, .9); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--white); }
.breadcrumb { font-size: .9rem; margin-bottom: 1.5rem; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .85); }
.breadcrumb a { text-decoration: none; color: var(--white); }
.breadcrumb a:hover { text-decoration: underline; text-decoration-color: var(--watermelon); }
.breadcrumb-item.active { color: var(--white); opacity: .92; }

/* ---------- Capability tiles ---------- */
.capability { background: var(--white); border: 1px solid var(--swan-200); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.capability:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--capri); }
.capability h3 { margin: .9rem 0 .4rem; font-size: 1.02rem; }
.capability p { margin: 0; font-size: .95rem; color: var(--ink-muted); }
.capability-icon, .service-icon {
    width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--capri-50); color: var(--capri-600); font-size: 1.4rem;
}

/* ---------- Service cards (Swan White surfaces) ---------- */
.service-card { border: 1px solid var(--swan-200); border-radius: var(--radius); overflow: hidden; background: var(--swan); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card .card-img-top { aspect-ratio: 16 / 10; object-fit: cover; background: var(--white); transition: transform .4s; }
.service-card:hover .card-img-top { transform: scale(1.03); }
.service-card .card-body { position: relative; padding: 1.5rem; padding-top: 2.2rem; background: var(--swan); }
.service-card .service-icon { position: absolute; top: -24px; left: 1.5rem; background: var(--capri); color: var(--white); box-shadow: 0 6px 16px rgba(var(--capri-rgb), .35); }
.service-card .card-title a { color: var(--ink); text-decoration: none; }
.service-card:hover .card-title a { color: var(--capri-600); }
.service-card:hover .link-arrow i { transform: translateX(4px); }
.service-card .card-text { color: var(--ink-muted); font-size: .97rem; }

/* ---------- Clients ---------- */
.clients-swiper { padding-bottom: 44px; }
.client-logo { height: 96px; display: flex; align-items: center; justify-content: center; padding: .75rem 1rem; background: var(--white); border-radius: 10px; border: 1px solid var(--swan-200); }
.client-logo img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: filter .3s, opacity .3s; }
.client-logo:hover img { filter: none; opacity: 1; }

/* ---------- Gallery slider ---------- */
.gallery-swiper { border-radius: var(--radius); overflow: hidden; background: var(--media-bg); box-shadow: var(--shadow); }
.gallery-swiper .swiper-slide > a { display: block; width: 100%; }
.gallery-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; background: var(--media-bg); }
.gallery-swiper img, .gallery-swiper video { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; display: block; background: var(--media-bg); }
.gallery-swiper .swiper-pagination-bullet { background: var(--white); opacity: .6; }
.gallery-swiper .swiper-pagination-bullet-active { background: var(--watermelon); opacity: 1; }
.gallery-swiper .swiper-button-prev, .gallery-swiper .swiper-button-next { color: var(--white); width: 40px; height: 40px; border-radius: 50%; background: rgba(var(--shadow-rgb), .55); border: 0; }
.gallery-swiper .swiper-button-prev:hover, .gallery-swiper .swiper-button-next:hover { background: var(--watermelon-cta); }
.gallery-swiper .swiper-navigation-icon { width: 1rem; height: 1rem; }
@media (max-width: 768.98px) {
    #glightbox-body .gprev, #glightbox-body .gnext {
        top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
    }
    #glightbox-body .gprev { left: 8px; }
    #glightbox-body .gnext { right: 8px; }
    #glightbox-body .gclose { width: 44px; height: 44px; }
}
.gallery-caption { position: absolute; bottom: 30px; left: 0; right: 0; margin: 0; text-align: center; color: var(--white); font-size: .9rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.swiper-pagination-bullet-active { background: var(--watermelon); }

/* ---------- Events ---------- */
.event-card { background: var(--swan); border: 1px solid var(--swan-200); border-left: 4px solid var(--capri); border-radius: 10px; padding: 1.4rem 1.5rem; margin-bottom: 1.25rem; }
.event-card dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: .75rem 0; font-size: .95rem; }
.event-card dt { font-weight: 500; color: var(--ink); white-space: nowrap; }
.event-card dt i { color: var(--capri-600); }
.event-card dd { margin: 0; }

/* ---------- Feature lists, info cards ---------- */
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list li > i { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--capri-50); color: var(--capri-600); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.section-muted .feature-list li > i { background: var(--white); }
.feature-list strong { display: block; color: var(--ink); }
.feature-list span { color: var(--ink-muted); font-size: .96rem; }
.info-card { background: var(--white); border: 1px solid var(--swan-200); border-radius: var(--radius); padding: 1.6rem; transition: box-shadow .2s, transform .2s, border-color .2s; }
.section:not(.section-muted) .info-card { background: var(--swan); }
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--capri); }
.info-card > i { font-size: 1.6rem; color: var(--capri); display: block; margin-bottom: .8rem; }
.info-card h3 { margin-bottom: .4rem; }
.info-card p { color: var(--ink-muted); }
.skill-card { background: rgba(var(--capri-700-rgb), .55); border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius); padding: 1.5rem; }
.skill-card p { color: var(--white); font-weight: 500; margin: .5rem 0 0; }
.skill-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--white); font-weight: 700; border-bottom: 2px solid var(--watermelon); padding-bottom: .15rem; }
.result-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.result-strip > div { background: var(--capri-50); border-radius: 10px; padding: .9rem 1rem; border-top: 3px solid var(--capri); }
.result-strip strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.35rem; color: var(--capri-600); line-height: 1.2; }
.result-strip span { font-size: .85rem; color: var(--ink-muted); }
.section-muted .result-strip > div { background: var(--white); }
@media (max-width: 575.98px) { .result-strip { grid-template-columns: 1fr 1fr; } }
.other-service { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.2rem; border-radius: 10px; background: var(--white); border: 1px solid var(--swan-200); color: var(--ink); text-decoration: none; font-weight: 500; height: 100%; transition: border-color .2s, color .2s; }
.other-service i { color: var(--capri); font-size: 1.3rem; }
.other-service:hover { border-color: var(--capri); color: var(--capri-600); }

/* ---------- CTA band (Capri with Watermelon action) ---------- */
.cta-band { padding: 60px 0; background: var(--capri-700); color: var(--white); }
.cta-band h2 { color: var(--white); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
.cta-inner > div:first-child { max-width: 680px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Customer Demos (Swan White cards) ---------- */
.demo-card { border: 1px solid var(--swan-200); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; background: var(--swan); }
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.section-dark .demo-card { border-color: transparent; box-shadow: 0 10px 30px rgba(var(--shadow-rgb), .25); }
.section-dark .demo-card .card-title, .section-dark .demo-card .card-title a { color: var(--ink); }
.demo-card .card-body { background: var(--swan); }
.demo-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--white); border-bottom: 1px solid var(--swan-200); }
.demo-card-media .demo-cover-img, .demo-card-media .demo-placeholder { width: 100%; height: 100%; object-fit: cover; }
.demo-availability { position: absolute; top: .75rem; left: .75rem; background: var(--capri-700); color: var(--white); font-weight: 500; font-size: .75rem; padding: .4em .7em; border-radius: 999px; }
.demo-category { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--capri-600); margin-bottom: .35rem; }
.demo-card .card-title a { color: var(--ink); text-decoration: none; }
.demo-card .card-title a:hover { color: var(--capri-600); }
.demo-card .card-text { color: var(--ink-muted); font-size: .96rem; }
.demo-features { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .92rem; color: var(--ink-body); }
.demo-features li { padding: .15rem 0; }
.demo-features i { color: var(--capri-600); }
.demo-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.demo-website { font-size: .92rem; font-weight: 600; margin: -.25rem 0 .9rem; }
.demo-website a { color: var(--capri-600); text-decoration: none; }
.demo-website a:hover, .demo-website a:focus-visible { text-decoration: underline; }
.demo-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; padding: 1.5rem;
    background: repeating-linear-gradient(135deg, var(--capri-50) 0 14px, var(--white) 14px 28px); color: var(--ink-muted); height: 100%; min-height: 220px;
}
.demo-placeholder i { font-size: 2.4rem; color: var(--capri); }
.demo-placeholder-title { font-family: "Montserrat", sans-serif; font-weight: 600; color: var(--ink); }
.demo-placeholder-note { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; background: var(--white); border: 1px dashed var(--capri); color: var(--capri-600); border-radius: 999px; padding: .15rem .7rem; }
.demo-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; aspect-ratio: 16 / 9; background: var(--white); }
.demo-cover .demo-cover-img { width: 100%; height: 100%; object-fit: contain; }
.demo-cover .demo-placeholder { min-height: 100%; }
.demo-sidebar { position: sticky; top: calc(var(--header-h) + 20px); background: var(--swan); border: 1px solid var(--swan-200); border-top: 4px solid var(--capri); border-radius: var(--radius); padding: 1.6rem; }
.demo-sidebar dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); font-weight: 700; }
.demo-sidebar dd { margin-bottom: 1rem; color: var(--ink); }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list li { background: var(--white); border: 1px solid var(--swan-200); border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; }
.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem 1.5rem; }
.checklist i { color: var(--capri); margin-right: .35rem; }
.demo-video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.demo-filter { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.btn-filter { border: 1px solid var(--swan-200); background: var(--swan); color: var(--ink); border-radius: 999px; padding: .35rem .9rem; }
.btn-filter:hover { border-color: var(--capri); color: var(--capri-600); }
.btn-filter.active { background: var(--watermelon-cta); border-color: var(--watermelon-cta); color: var(--white); }
.empty-state i { font-size: 3rem; color: var(--capri); }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 1rem; background: var(--swan); border: 1px solid var(--swan-200); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1rem; }
.contact-card > i { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--capri); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-card h2 { margin-bottom: .35rem; }
.contact-card address { font-style: normal; }
.contact-card a { text-decoration: none; }
.form-panel { background: var(--swan); border: 1px solid var(--swan-200); border-top: 4px solid var(--capri); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-label { font-weight: 500; color: var(--ink); }
.form-label.required::after { content: " *"; color: var(--watermelon-cta); }
.form-control, .form-select { border-radius: 8px; padding: .65rem .9rem; border-color: var(--input-border); background-color: var(--white); }
.form-control:focus, .form-select:focus { border-color: var(--capri); box-shadow: 0 0 0 .2rem rgba(var(--capri-rgb), .22); }
.input-validation-error { border-color: var(--danger) !important; }
.field-validation-valid { display: none !important; }
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 1.2rem; }
@media (max-width: 575.98px) { .form-panel { padding: 1.25rem; } }

/* ---------- Error / status pages ---------- */
.error-page { padding: 96px 0; background: var(--swan); }
.error-code { font-family: "Montserrat", sans-serif; font-size: clamp(4rem, 3rem + 5vw, 7rem); font-weight: 700; color: var(--capri); line-height: 1; margin-bottom: 1rem; }

/* ---------- Footer (deep Capri) ---------- */
.site-footer { background: var(--capri-900); color: var(--white); font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:not(.scroll-top):hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--watermelon); text-decoration-thickness: 2px; }
.footer-top { padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 1.2rem; }
.footer-brand:hover { text-decoration: none !important; }
.footer-logo { background: var(--white); border-radius: 8px; padding: 4px 8px; display: inline-flex; }
.footer-logo img { height: 44px; width: auto; }
.footer-heading { font-size: 1.05rem; color: var(--white); margin-bottom: 1rem; position: relative; padding-bottom: .6rem; }
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--watermelon); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .2rem 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .2); padding: 18px 0; font-size: .9rem; background: rgba(0, 0, 0, .15); }
.footer-social { display: flex; gap: .8rem; align-items: center; }
.footer-social a { font-size: 1.15rem; }

.scroll-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 44px; height: 44px; border-radius: 50%;
    background: var(--capri); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, background-color .2s; box-shadow: var(--shadow);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--watermelon-cta); color: var(--white); }
.site-footer .scroll-top:focus-visible { outline-color: var(--capri); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .cta-band, .scroll-top, .hero-video, .hero-video-toggle, .hero-bg { display: none !important; }
    .hero, .page-hero { background: none; color: #000; }
    .hero::before { display: none; }
    .hero-title, .hero-lead, .hero-sub, .page-title, .page-hero .lead { color: #000; }
}
