/* ==========================================================================
   iMplenet Technologies — main stylesheet
   Design language: network hardware. Status LEDs, port labels, faceplates.
   Palette follows the logo: signal blue + gold on deep slate.
   ========================================================================== */

:root {
    /* Palette */
    --ink:        #0F1F2B;   /* deep slate — headings, footer */
    --ink-soft:   #3C4F5C;   /* body text */
    --paper:      #F4F7F9;   /* page background */
    --panel:      #FFFFFF;   /* cards, form */
    --line:       #DCE4EA;   /* hairline borders */
    --line-dark:  #22394A;   /* hairlines on dark surfaces */

    --brand-blue: #23A7E0;   /* logo blue — graphics, never small text */
    --accent:     #0E6F9E;   /* darker signal blue — links, buttons (AA on white) */
    --accent-dark:#0A5578;
    --gold:       #E4A23B;   /* logo gold — accents */

    --led-green:  #23A55A;   /* online */
    --led-amber:  #F0A429;   /* activity / under maintenance */
    --whatsapp:   #25D366;

    /* Type */
    --font-display: "Archivo", sans-serif;
    --font-body:    "IBM Plex Sans", sans-serif;
    --font-mono:    "IBM Plex Mono", monospace;

    --radius: 10px;
    --radius-lg: 16px;
    --container: 1920px;
    --page-gutter: clamp(1.25rem, 4vw, 5rem);
    --header-h: 82px;

    --shadow-sm: 0 1px 2px rgba(15, 31, 43, 0.05);
    --shadow-md: 0 10px 30px -12px rgba(15, 31, 43, 0.22);
    --shadow-lg: 0 30px 70px -20px rgba(15, 31, 43, 0.45);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    /* Use the screen width while keeping consistent, responsive outer gutters. */
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 300;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- Status LEDs (signature motif) ---------- */
.led {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.led-green {
    background: var(--led-green);
    box-shadow: 0 0 6px 1px rgba(35, 165, 90, 0.55);
}
.led-amber {
    background: var(--led-amber);
    box-shadow: 0 0 6px 1px rgba(240, 164, 41, 0.6);
    animation: led-blink 1.6s ease-in-out infinite;
}
.led-lg { width: 14px; height: 14px; }

@keyframes led-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

/* ==========================================================================
   Brand mark
   The supplied logo is a square file with the lockup centred in it. Rather
   than ship a second cropped file, we show a window onto the artwork: the
   lockup occupies roughly x 4%–94% and y 34%–63% of the square. Change
   --logo-w to resize; swap the fractions if the artwork is ever re-exported.
   ========================================================================== */
.brand-mark {
    --logo-w: 180px;
    display: block;
    width:  calc(var(--logo-w) * 0.90);
    height: calc(var(--logo-w) * 0.29);
    overflow: hidden;
    flex-shrink: 0;
}
.brand-mark img {
    display: block;
    width:  var(--logo-w);
    height: var(--logo-w);
    max-width: none;
    margin: calc(var(--logo-w) * -0.34) 0 0 calc(var(--logo-w) * -0.04);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
    padding-block: 0.75rem;
}

.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }

/* The logo file has a white background; multiply drops it into the
   near-white header without a visible box. */
.brand .brand-mark {
    --logo-w: 190px;
    mix-blend-mode: multiply;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
}

.site-nav a {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-block: 0.35rem;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover {
    color: var(--ink);
    text-decoration: none;
    border-bottom-color: var(--gold);
}
.site-nav a.active {
    color: var(--ink);
    border-bottom-color: var(--led-green);
}

.site-nav .nav-cta a {
    color: var(--ink);          /* white on this green is only 1.98:1 */
    font-weight: 500;
    background: var(--whatsapp);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    transition: background 0.2s ease;
}
.site-nav .nav-cta a:hover,
.site-nav .nav-cta a.active { background: #1EB456; border-bottom-color: transparent; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle-bar {
    width: 22px; height: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================================
   Page loader
   Hidden unless JS is running, so a no-JS visitor never sees a stuck overlay.
   ========================================================================== */
.loader { display: none; }
.js.has-loaded .loader { display: none; }

.js .loader {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(35, 167, 224, 0.10), transparent 60%),
        var(--paper);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.js .loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* Keep the page from scrolling behind the overlay */
.js body.is-loading { overflow: hidden; }

.loader-inner {
    width: min(360px, calc(100vw - 2.5rem));
    text-align: center;
}

.loader-mark {
    --logo-w: 260px;
    margin-inline: auto;
    mix-blend-mode: multiply;
}

.loader-tagline {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 0.75rem;
    margin-bottom: 1.75rem;
}

.loader-track {
    height: 5px;
    border-radius: 999px;
    background: #DFE7EC;
    overflow: hidden;
}

.loader-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--brand-blue) 65%, var(--gold));
    box-shadow: 0 0 12px rgba(35, 167, 224, 0.6);
    transition: width 0.25s ease-out;
}

.loader-readout {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}
.loader-percent {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* ---------- Hero ---------- */
.hero { padding-block: 3.75rem 4rem; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--ink);
}
.status-building { border-color: rgba(240, 164, 41, 0.5); }

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.hero-headline {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    font-size: clamp(2.3rem, 5.4vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 1.4rem;
}

.hero-lead {
    max-width: 38rem;
    font-size: 1.06rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
}
.hero-proof li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}
.hero-proof .led { animation: none; }

/* Photo in a hardware-style faceplate */
.media-faceplate {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: var(--shadow-md);
}
.media-faceplate img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}
.media-faceplate figcaption {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    padding: 0.7rem 0.35rem 0.25rem;
}
.media-faceplate .led { animation: none; }

.hero-media .media-faceplate img {
    height: clamp(24rem, 34vw, 36rem);
    aspect-ratio: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.8rem 1.7rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

/* Contact page: pointer to support tickets for existing customers */
.support-banner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--ink-soft);
    font-size: 0.92rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.support-banner:hover { border-color: var(--accent); border-left-color: var(--gold); box-shadow: var(--shadow-sm); text-decoration: none; }
.support-banner strong { display: block; color: var(--ink); }
.support-banner-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #FFF4E0; color: #8A5300; }
.support-banner-icon svg { width: 20px; height: 20px; }
.support-banner-text { flex: 1; min-width: 0; }
.support-banner-arrow { color: var(--accent); font-size: 1.2rem; transition: transform 0.2s ease; }
.support-banner:hover .support-banner-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .support-banner-arrow { transition: none; } }

.enquiry-context { padding: 1rem; border-left: 3px solid var(--accent); background: #edf6fb; border-radius: 4px; margin-bottom: 1.5rem; font-size: .9rem; }
.gallery-more { margin-top: 2rem; text-align: center; }
.journey-section { padding: 4.5rem 0; background: #eaf1f5; }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.journey-card { display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--ink-soft); }
.journey-card:hover { text-decoration: none; border-color: var(--accent); }
.journey-card h3 { font: 600 1.25rem/1.35 var(--font-display); color: var(--ink); margin: .8rem 0; }
.journey-card p { font-size: .95rem; margin-bottom: 1.5rem; }
.journey-link { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .9rem; }
@media (max-width: 700px) { .journey-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.eyebrow-invert { color: var(--brand-blue); }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 38rem;
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 44rem;
    font-size: 1.02rem;
    margin-bottom: 2.5rem;
}

/* ---------- Foundation strip (power + internet) ---------- */
.foundation {
    padding-block: 3rem;
    background: var(--ink);
    color: #C7D3DC;
}

.foundation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
}

.foundation-card {
    border-left: 3px solid var(--brand-blue);
    padding-left: 1.2rem;
}
.foundation-card:nth-child(2) { border-left-color: var(--gold); }

.foundation-question {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.015em;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
}

.foundation-note {
    grid-column: 1 / -1;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    border-top: 1px solid var(--line-dark);
    padding-top: 1.25rem;
}

/* ---------- Services ---------- */
.services {
    padding-block: 4.5rem;
    background: var(--panel);
    border-block: 1px solid var(--line);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem 1.5rem;
    scroll-margin-top: calc(var(--header-h) + 1rem);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.service-card::after {          /* status LED in card corner */
    content: "";
    position: absolute;
    top: 1.5rem; right: 1.3rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--led-green);
    box-shadow: 0 0 5px 1px rgba(35, 165, 90, 0.5);
}

.service-icon {
    display: block;
    width: 34px;
    height: 34px;
    color: var(--accent);
    margin: 1rem 0 0.85rem;
}

.port-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    background: var(--panel);
}

.service-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
    padding-right: 1.25rem;
}

.service-lead {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.service-card p { font-size: 0.94rem; }

.service-link {
    margin-top: auto;
    padding-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.service-link span[aria-hidden] {
    display: inline-block;
    transition: transform 0.2s ease;
}
.service-link:hover span[aria-hidden] { transform: translateX(4px); }

.services-note {
    max-width: 46rem;
    font-size: 0.98rem;
    border-left: 3px solid var(--led-green);
    padding-left: 1rem;
}

/* ---------- Project gallery ---------- */
.gallery { padding-block: 4.5rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
    list-style: none;
}

.gallery-item figure {
    height: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item figure:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.4s ease;
}
.gallery-item figure:hover img { transform: scale(1.03); }

.gallery-item figcaption {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    padding: 0.65rem 0.3rem 0.2rem;
}

/* ---------- Under-maintenance notice ---------- */
.notice { padding-block: 3.5rem; }

.notice-faceplate {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    background: var(--ink);
    color: #C7D3DC;
    border-radius: var(--radius);
    padding: 1.6rem 1.75rem;
    border: 1px solid var(--line-dark);
}
.notice-faceplate .led { margin-top: 0.35rem; }
.notice-faceplate a { color: var(--brand-blue); }

.notice-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--led-amber);
    margin-bottom: 0.4rem;
}

.notice-text p:last-child { max-width: 46rem; }

/* ---------- Contact ---------- */
.contact {
    padding-block: 4.5rem 5rem;
    background: var(--panel);
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-form-compact {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field { margin-bottom: 1.1rem; }

.form-field > label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.optional { color: var(--ink-soft); text-transform: none; letter-spacing: 0; }

.form-field input,
.form-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 111, 158, 0.16);
}

.form-field textarea { resize: vertical; }

/* Honeypot — off-screen for people, still reachable for bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-feedback {
    margin-top: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    min-height: 1.2em;
}
.form-feedback.ok    { color: #157F44; }
.form-feedback.error { color: #C0392B; }

/* Small uppercase label, reused by the About page panel */
.detail-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Floating actions — WhatsApp + back to top
   ========================================================================== */
.floating-actions {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 90;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0.7rem;
}

.fab {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 54px;
    padding-inline: 15px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}
.fab:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-lg); }
.fab svg { width: 26px; height: 26px; flex-shrink: 0; }

.fab-whatsapp {
    background: var(--whatsapp);
    color: #FFFFFF;
}
.fab-whatsapp::after {          /* gentle attention pulse */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    animation: fab-pulse 2.8s ease-out infinite;
    pointer-events: none;
}
.fab-whatsapp { position: relative; }

.fab-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.2s ease;
}
.fab-whatsapp:hover .fab-label,
.fab-whatsapp:focus-visible .fab-label { max-width: 10rem; opacity: 1; }

@keyframes fab-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.fab-top {
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
    background: var(--ink);
    color: #FFFFFF;
}
.fab-top svg { width: 20px; height: 20px; }
.fab-top[hidden] { display: none; }
.fab-top:hover { background: var(--accent-dark); }

/* ==========================================================================
   Newsletter modal
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 31, 43, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal-backdrop.is-open { opacity: 1; }

.modal {
    position: relative;
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    width: min(780px, 100%);
    max-height: calc(100dvh - 2.5rem);
    overflow: auto;
    background: var(--panel);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-backdrop.is-open .modal { transform: none; }

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.modal-close:hover { color: var(--ink); border-color: var(--ink-soft); }
.modal-close svg { width: 16px; height: 16px; }

.modal-aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.85rem 1.6rem;
    color: #C7D3DC;
    background:
        radial-gradient(circle at 15% 15%, rgba(35, 167, 224, 0.28), transparent 55%),
        linear-gradient(160deg, #143348, var(--ink));
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.modal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: #FFFFFF;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    margin-bottom: auto;
}

.modal-aside-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    font-size: 1.6rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.modal-aside-note {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--gold);
}

.modal-body { padding: 2rem 1.9rem 1.6rem; }

.modal-logo {
    --logo-w: 170px;
    mix-blend-mode: multiply;
    margin-bottom: 1.1rem;
}

.modal-body h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.modal-copy {
    font-size: 0.94rem;
    margin-bottom: 1.35rem;
}

.newsletter-form .form-field { margin-bottom: 0.9rem; }

.modal-dismiss {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.4rem;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    cursor: pointer;
}
.modal-dismiss:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #9FB1BE;
    padding-block: 3.25rem 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 0.8fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line-dark);
}

.footer-logo {
    --logo-w: 190px;
    box-sizing: content-box;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 1rem;
}

.footer-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.footer-blurb { font-size: 0.9rem; max-width: 24rem; }

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer-nav a,
.footer-contact a {
    font-size: 0.86rem;
    color: #C7D3DC;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--gold); text-decoration: none; }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer-location {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--led-amber);
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
/* If JS never runs, cards must still be visible */
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Inner pages (about.php, services.php, contact.php)
   ========================================================================== */

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}
.breadcrumbs li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: var(--line);
}

/* ---------- Page header ---------- */
.page-header {
    padding-block: 2.75rem 3rem;
    border-bottom: 1px solid var(--line);
}

.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1rem;
}

.page-intro {
    max-width: 44rem;
    font-size: 1.06rem;
}

/* ---------- About page ---------- */
.about-body { padding-block: 4rem; }

.about-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-text p + p { margin-top: 1rem; }
.about-text p { max-width: 72ch; }
.about-text .section-title { margin-bottom: 1.25rem; }

.about-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
}
.about-panel .detail-label { margin-bottom: 0.9rem; }

/* ---------- Check list (LED bullets) ---------- */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.96rem;
    color: var(--ink);
}
.check-list .led { animation: none; }   /* steady green, no blink */

/* ---------- Services page ---------- */
.service-index {
    padding-block: 2rem 0;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
}

.chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.service-list { padding-block: 3rem 4rem; }

.service-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-h) + 1rem);
}
.service-row:first-child { padding-top: 0; }

.service-row-head .service-icon {
    width: 40px;
    height: 40px;
    margin: 1rem 0 0.75rem;
}

.service-row-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.service-row-body p { margin-bottom: 1.1rem; max-width: 72ch; }

/* ---------- CTA strip ---------- */
.cta-strip {
    padding-block: 3.5rem 4.5rem;
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background:
        radial-gradient(circle at 12% 20%, rgba(35, 167, 224, 0.18), transparent 55%),
        var(--ink);
    border-radius: var(--radius-lg);
    padding: 2.25rem var(--page-gutter);
    color: #C7D3DC;
}
.cta-inner > div { max-width: 44rem; }

.cta-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    letter-spacing: -0.015em;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.ecosystem .btn-primary { background: var(--brand-blue); color: var(--ink); }
.ecosystem .btn-primary:hover { background: #FFFFFF; }

/* ---------- Contact page ---------- */
.contact-page { border-top: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .led-amber { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .service-card,
    .btn,
    .nav-toggle-bar,
    .gallery-item img,
    .fab,
    .modal { transition: none; }
    .fab-whatsapp::after { animation: none; }
    .modal { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1280px) {
    .services-grid,
    .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .hero-media .media-faceplate img { height: clamp(18rem, 50vw, 28rem); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem; }
    .cta-inner { padding: 1.75rem 1.5rem; }
    .foundation-grid { grid-template-columns: 1fr; }

    .modal { grid-template-columns: 1fr; }
    .modal-aside { display: none; }
    .modal-body { padding: 1.9rem 1.4rem 1.4rem; }
}

@media (max-width: 700px) {
    :root { --header-h: 68px; }

    .nav-toggle { display: flex; }
    .brand .brand-mark { --logo-w: 150px; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .site-nav.open { display: block; }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.25rem 1rem;
    }
    .site-nav a {
        display: block;
        padding-block: 0.75rem;
        border-bottom: none;
    }
    .site-nav .nav-cta { padding-top: 0.6rem; }
    .site-nav .nav-cta a { text-align: center; }

    .hero { padding-block: 2.5rem 3rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    .loader-mark { --logo-w: 220px; }

    .floating-actions { right: 0.9rem; bottom: 0.9rem; }
    .fab { height: 50px; }
    /* On touch screens there is no hover, so keep the button compact */
    .fab-label { display: none; }
}

@media (max-width: 560px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

/* ---------- Dark hero band ---------- */
.contact-hero {
    position: relative;
    padding-block: 3.5rem 3.25rem;
    color: #C7D3DC;
    background:
        radial-gradient(circle at 78% 18%, rgba(35, 167, 224, 0.20), transparent 52%),
        linear-gradient(155deg, #12324A 0%, var(--ink) 58%);
    overflow: hidden;
}
/* Faint circuit grid, purely decorative */
.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
    pointer-events: none;
}
/* Signal rule across the top */
.contact-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--accent) 45%, var(--gold));
}

.contact-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: #FFFFFF;
    background: rgba(35, 167, 224, 0.14);
    border: 1px solid rgba(35, 167, 224, 0.4);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.5rem;
}
.hero-badge-icon svg { width: 15px; height: 15px; color: var(--brand-blue); }

.contact-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    margin-bottom: 1.1rem;
}
.contact-hero-title .accent { color: var(--brand-blue); }

.contact-hero-lead {
    max-width: 34rem;
    font-size: 1.02rem;
}

/* Right-hand quick-contact cards */
.hero-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    list-style: none;
}

.hero-contact-cards a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hero-contact-cards a:hover {
    text-decoration: none;
    border-color: rgba(35, 167, 224, 0.55);
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
}

.hero-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(35, 167, 224, 0.18);
    color: var(--brand-blue);
}
.hero-card-icon svg { width: 20px; height: 20px; }
.hero-card-icon-whatsapp { background: rgba(37, 211, 102, 0.16); color: var(--whatsapp); }

.hero-card-text { display: flex; flex-direction: column; min-width: 0; }
.hero-card-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8FA5B4;
}
.hero-card-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    word-break: break-word;
}

/* ---------- Breadcrumb strip ---------- */
.crumb-bar {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}
.crumb-bar ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    padding-block: 0.9rem;
    font-size: 0.86rem;
}
.crumb-bar a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-soft); }
.crumb-bar a:hover { color: var(--accent); text-decoration: none; }
.crumb-bar svg { width: 15px; height: 15px; }
.crumb-bar li + li::before { content: "›"; margin-right: 0.6rem; color: var(--line); }
.crumb-bar [aria-current] { color: var(--gold); font-weight: 600; }

/* ---------- Layout ---------- */
.contact-body { padding-block: 2.75rem 4rem; }

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.contact-main {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
}

/* ---------- Form chrome ---------- */
.form-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.form-eyebrow svg { width: 15px; height: 15px; }

.form-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.form-subtitle { font-size: 0.96rem; margin-bottom: 2rem; }

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.req { color: #C0392B; margin-left: 0.15rem; }

/* Native select with our own arrow */
.select-wrap { position: relative; }
.select-wrap::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0; height: 0;
    margin-top: -2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--ink-soft);
    pointer-events: none;
}
.select-wrap select {
    appearance: none;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem 2.5rem 0.7rem 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.select-wrap select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 111, 158, 0.16);
}

/* ---------- Checkbox / radio groups ---------- */
.option-set { border: none; margin-bottom: 1.1rem; }
.option-set legend {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.option-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.option-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.option-row:hover { border-color: var(--accent); }
.option-row:has(input:checked) { border-color: var(--accent); background: rgba(14, 111, 158, 0.05); }
.option-row:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Visually hidden native control — the tick/dot below is what you see */
.option-row input,
.consent input,
.radio-pill input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
}

.option-tick {
    display: inline-block;
    position: relative;
    width: 19px; height: 19px;
    flex-shrink: 0;
    border: 1.5px solid var(--line);
    border-radius: 5px;
    background: var(--panel);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.option-tick::after {
    content: "";
    position: absolute;
    left: 6px; top: 2px;
    width: 5px; height: 10px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}
:checked + .option-tick { background: var(--accent); border-color: var(--accent); }
:checked + .option-tick::after { transform: rotate(45deg) scale(1); }

.option-icon { display: inline-flex; color: var(--accent); }
.option-icon svg { width: 20px; height: 20px; margin: 0; }

.option-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

.option-meta {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    text-align: right;
}

.radio-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.radio-pill {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.radio-pill:hover { border-color: var(--accent); }
.radio-pill:has(input:checked) { border-color: var(--accent); background: rgba(14, 111, 158, 0.05); }
.radio-pill:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.radio-dot {
    display: inline-block;
    position: relative;
    width: 17px; height: 17px;
    flex-shrink: 0;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
}
.radio-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #FFFFFF;
    transform: scale(0);
    transition: transform 0.15s ease;
}
:checked + .radio-dot { border-color: var(--accent); background: var(--accent); }
:checked + .radio-dot::after { transform: scale(1); }

.radio-icon { display: inline-flex; color: var(--accent); }
.radio-icon svg { width: 16px; height: 16px; }

/* ---------- Character counter ---------- */
.char-count {
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-soft);
    text-align: right;
}
.char-count.is-near { color: var(--gold); }

/* ---------- Upload dropzone ---------- */
.dropzone {
    position: relative;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 1.9rem 1.25rem;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone:hover,
.dropzone.is-dragging { border-color: var(--accent); background: rgba(14, 111, 158, 0.04); }
.dropzone:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-icon { display: inline-flex; color: var(--accent); }
.dropzone-icon svg { width: 34px; height: 34px; }

.dropzone-text { font-size: 0.94rem; margin-top: 0.5rem; }
.dropzone-text strong { color: var(--accent); }

.dropzone-hint {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    margin-top: 0.3rem;
}

.file-list { list-style: none; margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.45rem; }
.file-list:empty { display: none; }

.file-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--led-green);
    border-radius: 8px;
    background: var(--panel);
    font-size: 0.88rem;
    color: var(--ink);
}
.file-list li.is-invalid { border-left-color: #C0392B; color: #C0392B; }
.file-size { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); }

/* ---------- Consent + submit ---------- */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1.25rem;
}
.consent:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent .option-tick { margin-top: 1px; }

.btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.02rem;
    padding-block: 0.95rem;
    background: linear-gradient(120deg, var(--accent), #1B4F9C);
}
.btn-send:hover { background: linear-gradient(120deg, var(--accent-dark), #163F7D); }
.btn-send svg { width: 17px; height: 17px; }
.btn-send[disabled] { opacity: 0.65; cursor: progress; }

.field-error {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #C0392B;
}
.form-field input.has-error,
.form-field textarea.has-error,
.select-wrap select.has-error { border-color: #C0392B; }

/* ---------- Sidebar cards ---------- */
.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Dark header band on the company card */
.info-card-head {
    margin: -1.4rem -1.5rem 0.25rem;
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(35, 167, 224, 0.25), transparent 60%),
        linear-gradient(150deg, #143348, var(--ink));
}
.info-card-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.015em;
    color: #FFFFFF;
    margin-bottom: 0.2rem;
}
.info-card-head p {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--gold);
}

.info-list { list-style: none; }
.info-list li {
    display: flex;
    gap: 0.85rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0.25rem; }

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(14, 111, 158, 0.09);
    color: var(--accent);
}
.info-icon svg { width: 18px; height: 18px; }
.info-icon-whatsapp { background: rgba(37, 211, 102, 0.12); color: #128C4A; }

.info-label {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.info-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--ink);
    word-break: break-word;
}
.info-value a { color: inherit; }
.info-value a:hover { color: var(--accent); text-decoration: none; }
.info-sub { font-size: 0.82rem; }
.info-sub a { color: var(--ink-soft); }

.info-status { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; }
.info-status.is-open { color: #157F44; }
.info-status.is-open .led { animation: none; }

/* Card titles */
.card-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 1rem;
}
.card-title-icon { display: inline-flex; color: var(--accent); }
.card-title-icon svg { width: 18px; height: 18px; }
.faq-icon {
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);          /* white on this gold is only 2.2:1 */
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
}

/* ---------- Business hours ---------- */
.hours-list { list-style: none; }
.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.6rem;
    border-bottom: 1px dashed var(--line);
    font-size: 0.9rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-day { font-weight: 600; color: var(--ink); }
.hours-time { color: var(--ink-soft); text-align: right; }
.hours-time.is-closed  { color: #C0392B; }
.hours-time.is-limited { color: var(--gold); }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}
.status-pill.is-open   { background: rgba(35, 165, 90, 0.12); color: #157F44; }
.status-pill.is-closed { background: rgba(192, 57, 43, 0.10); color: #C0392B; }
.status-pill.is-open .led { animation: none; }

/* ---------- Social ---------- */
.social-card {
    color: #C7D3DC;
    border-color: var(--line-dark);
    background:
        radial-gradient(circle at 85% 12%, rgba(35, 167, 224, 0.22), transparent 58%),
        linear-gradient(150deg, #143348, var(--ink));
}
.social-card .card-title { color: #FFFFFF; }
.social-blurb { font-size: 0.86rem; margin-bottom: 1rem; }

.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; }

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.85rem;
    color: #FFFFFF;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.social-btn:hover { text-decoration: none; background: rgba(255, 255, 255, 0.14); }
.social-btn svg { width: 16px; height: 16px; }
.social-whatsapp { background: var(--whatsapp); border-color: transparent; color: #08331A; }
.social-whatsapp:hover { background: #1EB456; }

/* ---------- FAQ accordion ---------- */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font: inherit; }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.9rem 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.faq-question:hover { color: var(--accent); }

.faq-toggle {
    position: relative;
    width: 20px; height: 20px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
}
.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    background: var(--ink-soft);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-toggle::before { width: 9px; height: 1.5px; }
.faq-toggle::after  { width: 1.5px; height: 9px; }
[aria-expanded="true"] .faq-toggle { border-color: var(--accent); }
[aria-expanded="true"] .faq-toggle::before { background: var(--accent); }
[aria-expanded="true"] .faq-toggle::after  { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.faq-answer { padding-bottom: 1rem; font-size: 0.88rem; }

/* ---------- Home page link through to the full form ---------- */
.contact-more {
    margin-top: 1.75rem;
    font-size: 0.94rem;
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 860px) {
    .contact-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-hero { padding-block: 2.5rem; }
    .contact-main { padding: 1.5rem 1.25rem; }
    .contact-aside { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .field-grid { grid-template-columns: 1fr; gap: 0; }
    .radio-pills { grid-template-columns: 1fr; }
    .option-meta { display: none; }
    .option-row { padding: 0.65rem 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-contact-cards a,
    .option-row,
    .radio-pill,
    .dropzone,
    .option-tick,
    .option-tick::after,
    .radio-dot::after,
    .faq-toggle::before,
    .faq-toggle::after { transition: none; }
}

/* Remove-attachment button */
.file-remove {
    width: 22px; height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.file-remove:hover { color: #C0392B; border-color: #C0392B; }

/* Footer link that reopens the newsletter popup */
.footer-link-btn {
    padding: 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: #C7D3DC;
    text-align: left;
    cursor: pointer;
}
.footer-link-btn:hover { color: var(--gold); }

/* ==========================================================================
   Blog
   ========================================================================== */

/* ---------- Listing header ---------- */
.blog-header {
    padding-block: 2.75rem 3rem;
    text-align: center;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}
.blog-header .breadcrumbs ol { justify-content: center; }

.blog-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 115%;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 1rem;
}

.blog-intro {
    max-width: 46rem;
    margin-inline: auto;
    font-size: 1.04rem;
}

/* ---------- Layout ---------- */
.blog-body { padding-block: 3rem 4rem; }

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.filter-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.75rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}
.filter-note strong { color: var(--ink); }
.filter-clear {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Post cards ---------- */
.post-card {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}
.post-card:last-of-type { border-bottom: none; margin-bottom: 0; }

.post-cover {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.35rem;
    background: var(--ink);
}
.post-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-cover:hover img { transform: scale(1.035); }
/* Keep the pill legible over a bright photo */
.post-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(transparent, rgba(15, 31, 43, 0.55));
    pointer-events: none;
}

.post-meta-pill {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.1rem;
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-md);
}
.pill-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.pill-item svg {
    width: 14px; height: 14px;
    fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.post-cover-tag {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: rgba(15, 31, 43, 0.82);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
}

.post-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    line-height: 1.22;
    letter-spacing: -0.015em;
    margin-bottom: 0.7rem;
}
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--accent); text-decoration: none; }

.post-card-excerpt { font-size: 1rem; margin-bottom: 1.35rem; max-width: 44rem; }

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: #FFFFFF;
    padding: 0.7rem 1.4rem;
}
.btn-read:hover { background: var(--accent-dark); }
.btn-read svg {
    width: 17px; height: 17px;
    fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.2s ease;
}
.btn-read:hover svg { transform: translateX(4px); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--ink);
}
.page-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-link.is-current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

/* ---------- Sidebar ---------- */
.blog-aside {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
}

.aside-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 1.1rem;
}

.category-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.category-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.96rem;
    transition: background 0.2s ease, transform 0.2s ease;
}
.category-pill:hover { background: #D8942E; text-decoration: none; transform: translateX(3px); }
.category-pill.is-active { background: var(--ink); color: #FFFFFF; }

.category-count {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    opacity: 0.75;
}

/* Popular posts */
.popular-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.popular-item { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }

.popular-thumb {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--ink);
}
.popular-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.popular-thumb:hover img { transform: scale(1.04); }

.popular-tag {
    position: absolute;
    left: 0; bottom: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: rgba(15, 31, 43, 0.85);
    padding: 0.3rem 0.7rem 0.3rem 0.8rem;
    border-radius: 0 6px 6px 0;
}

.popular-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.3rem;
}
.popular-title a { color: var(--ink); }
.popular-title a:hover { color: var(--accent); text-decoration: none; }

.popular-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-soft);
}

.aside-cta {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.aside-cta p { font-size: 0.92rem; margin-bottom: 1.1rem; }
.aside-cta .aside-title { font-size: 1.15rem; margin-bottom: 0.6rem; }

/* ==========================================================================
   Single post
   ========================================================================== */
.post-hero {
    padding-block: 2.5rem 2.25rem;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.post-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
}
.post-category:hover { text-decoration: none; background: #D8942E; }

.post-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 112%;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
    max-width: 30ch;
    margin-bottom: 1.1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
    list-style: none;
}
.post-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-soft);
}
.post-meta svg {
    width: 15px; height: 15px;
    fill: none; stroke: currentColor;
    stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    color: var(--accent);
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    padding-block: 2.5rem 4rem;
}

.post-figure {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}
.post-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ---------- Article typography ---------- */
.post-content { max-width: 68ch; }

.post-lead {
    font-size: 1.14rem;
    line-height: 1.6;
    color: var(--ink);
    padding-left: 1.1rem;
    border-left: 3px solid var(--accent);
    margin-bottom: 2rem;
}

.post-content h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 2.25rem 0 0.85rem;
}

.post-content p { margin-bottom: 1.15rem; font-size: 1.04rem; }

.post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.4rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.post-list li {
    display: flex;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--ink);
}
.post-list .led { margin-top: 0.55rem; animation: none; }

.post-content blockquote {
    margin: 1.75rem 0;
    padding: 1.4rem 1.6rem;
    border-radius: var(--radius);
    background: var(--ink);
    color: #FFFFFF;
    border-left: 4px solid var(--gold);
}
.post-content blockquote p {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.45;
}

/* ---------- Share row ---------- */
.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.share-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.share-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.share-btn:hover { color: #FFFFFF; background: var(--ink); border-color: var(--ink); text-decoration: none; }
.share-btn svg { width: 18px; height: 18px; }
.share-whatsapp:hover { background: var(--whatsapp); border-color: var(--whatsapp); color: #08331A; }

.share-feedback {
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #157F44;
    min-height: 1.1em;
}

/* ---------- Prev / next ---------- */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.post-nav-link {
    display: block;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-nav-link:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.post-nav-link.is-next { text-align: right; }

.post-nav-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.3rem;
}
.post-nav-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.35;
    color: var(--ink);
}

/* ---------- Related ---------- */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.related-cover {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--ink);
}
.related-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.related-cover:hover img { transform: scale(1.04); }

.related-tag {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}
.related-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
}
.related-card h3 a { color: var(--ink); }
.related-card h3 a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .blog-layout,
    .post-layout { grid-template-columns: 1fr; }
    .blog-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
    .aside-cta { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    /* Let the title wrap naturally rather than at the authored break */
    .blog-title br { display: none; }
    .blog-aside { grid-template-columns: 1fr; }
    .post-nav,
    .related-grid { grid-template-columns: 1fr; }
    .post-nav-link.is-next { text-align: left; }
    .post-meta-pill { left: 0.65rem; bottom: 0.65rem; font-size: 0.7rem; padding: 0.5rem 0.9rem; }
    .post-cover-tag { right: 0.65rem; top: 0.65rem; }
    .post-lead { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    .post-cover img,
    .popular-thumb img,
    .related-cover img,
    .category-pill,
    .post-nav-link,
    .btn-read svg { transition: none; }
}

/* ==========================================================================
   Home hero slider
   Sits in the same faceplate frame and at the same height as the single
   photo it replaced. Slides are stacked and crossfade, with a slow zoom
   while each one is showing.
   ========================================================================== */
.slider-viewport {
    position: relative;
    height: clamp(24rem, 34vw, 36rem);
    border-radius: 8px;
    overflow: hidden;
    background: var(--ink);
    touch-action: pan-y;            /* horizontal swipes are ours, vertical scroll is the page's */
    isolation: isolate;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.hero-slider .slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.9s ease, visibility 0s;
}
.hero-slider .slide img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    transform: scale(1.07);
    transition: transform 7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-slider .slide.is-active img { transform: scale(1); }

/* Soft shade so the controls read over bright photos */
.slider-viewport::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(15, 31, 43, 0.35), transparent 22%),
        linear-gradient(0deg, rgba(15, 31, 43, 0.25), transparent 30%);
    pointer-events: none;
}

/* ---------- Counter chip ---------- */
.slider-count {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 3;
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 31, 43, 0.72);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}
.slider-count-current { color: #FFFFFF; }
.slider-count-sep { color: var(--gold); }

/* ---------- Arrows ---------- */
.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: 0 6px 18px -8px rgba(15, 31, 43, 0.6);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.2s ease, color 0.2s ease;
}
.slider-arrow svg { width: 20px; height: 20px; }
.slider-prev { left: 0.85rem; transform: translateX(-8px); }
.slider-next { right: 0.85rem; transform: translateX(8px); }

/* Arrows slide in when the photo is hovered or anything in it has focus */
.slider-viewport:hover .slider-arrow,
.slider-viewport:focus-within .slider-arrow { opacity: 1; transform: none; }
.slider-arrow:hover { background: var(--gold); color: var(--ink); }
.slider-prev:hover svg { animation: nudge-left 0.5s ease; }
.slider-next:hover svg { animation: nudge-right 0.5s ease; }
.slider-arrow:active { transform: scale(0.92); }

@keyframes nudge-left  { 50% { transform: translateX(-3px); } }
@keyframes nudge-right { 50% { transform: translateX(3px); } }

/* Touch screens have no hover: keep the arrows visible */
@media (hover: none) {
    .slider-arrow { opacity: 1; transform: none; width: 40px; height: 40px; margin-top: -20px; }
}

/* ---------- Footer: caption, dots, pause ---------- */
.slider-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    padding: 0.75rem 0.35rem 0.2rem;
}

.slider-caption {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}
.slider-caption .led { animation: none; }
.slider-caption-text { display: inline-block; }
.slider-caption-text.is-changing { animation: caption-in 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes caption-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: none; }
}

.slider-controls { display: flex; align-items: center; gap: 0.6rem; }
.slider-dots { display: flex; align-items: center; gap: 0.15rem; }

/* 24px hit area around a small visual dot */
.slider-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.slider-dot::before {
    content: '';
    position: relative;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
.slider-dot:hover::before { background: var(--accent); }
.slider-dot.is-active { width: 40px; }
.slider-dot.is-active::before { width: 32px; background: var(--line); }

/* The active dot fills as the next slide approaches — it is the timer */
.slider-dot { position: relative; }
.slider-dot-fill {
    position: absolute;
    left: 4px;
    top: 50%;
    width: 32px;
    height: 8px;
    margin-top: -4px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}
.slider-dot.is-active .slider-dot-fill {
    animation: slider-progress var(--slide-interval, 5500ms) linear forwards;
}
.hero-slider.is-stopped .slider-dot.is-active .slider-dot-fill { animation-play-state: paused; }
/* Paused by the visitor: show the dot as simply "current" */
.hero-slider.is-user-paused .slider-dot.is-active .slider-dot-fill { animation: none; transform: scaleX(1); }

@keyframes slider-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.slider-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.slider-toggle:hover { border-color: var(--accent); color: var(--accent); }
.slider-toggle:active { transform: scale(0.92); }
.slider-toggle svg { width: 14px; height: 14px; }
.slider-toggle .icon-play { display: none; }
.hero-slider.is-user-paused .slider-toggle .icon-play { display: block; }
.hero-slider.is-user-paused .slider-toggle .icon-pause { display: none; }

/* Without JS only the first slide shows, and there is nothing to control */
.no-js .slider-arrow,
.no-js .slider-controls,
.no-js .slider-count { display: none; }

@media (max-width: 960px) {
    .slider-viewport { height: clamp(18rem, 50vw, 28rem); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider .slide,
    .hero-slider .slide.is-active { transition: opacity 0.2s linear, visibility 0s; }
    .hero-slider .slide img { transform: none; transition: none; }
    .slider-arrow,
    .slider-dot,
    .slider-dot::before { transition: none; }
    .slider-arrow:hover svg,
    .slider-caption-text.is-changing { animation: none; }
}

/* Draft preview notice (blog-post.php?preview=1, admins only) */
.preview-banner { padding: 0.75rem 0; background: #FFF4E0; border-bottom: 1px solid #F3D9A8; color: #6B4100; font-size: 0.92rem; }
.preview-banner a { margin-left: 0.5rem; color: #6B4100; font-weight: 600; text-decoration: underline; }
