/*
 * Storefront polish layer.
 *
 * A restrained pass over the Nest theme (already recoloured cobalt by
 * theme-sharq.css). Loads AFTER main.css / theme-sharq.css / custom.css and
 * only refines: display typography, section-title rhythm, button + card
 * detailing, and the accessibility floor (focus-visible, reduced motion).
 *
 * Design direction (binding): clean cobalt-blue + green B2B commerce. Cobalt
 * (--color-primary #0d6efd) carries interaction; a single green
 * (--pb-quote-green) marks the quote / commerce action. Display face is Sora
 * (precision-engineering character) used with restraint on headings only;
 * body copy stays on the theme's Lato/Quicksand.
 *
 * Reversible: drop the <link> in base.html to restore the plain Nest look.
 */

:root {
    --pb-display: "Sora", "Quicksand", sans-serif;
    --pb-quote-green: #16a34a;
    --pb-quote-green-hover: #15803d;
    --pb-cobalt: var(--color-primary, #0d6efd);
    --pb-cobalt-hover: var(--color-primary-hover, #0a58ca);
    --pb-ink: #0f172a;          /* headings */
    --pb-keyline: 3px;          /* section-title accent thickness */
}

/* ── Display typography ───────────────────────────────────────────────────
 * Sora on the hero and section headings; tightened tracking + weight so the
 * type reads engineered rather than default-rounded. Body text untouched. */
.slider-content h1,
.section-title .title h3,
.section-title h3,
h1.display-1, h1.display-2, h1.display-3,
.heading-1, .heading-2 {
    font-family: var(--pb-display);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.slider-content h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* ── Section-title signature: a short cobalt keyline above the heading ─────
 * A single structural mark, consistent across every home section. Encodes
 * "new section" — quiet, not decorative noise. */
.section-title .title h3 {
    position: relative;
    padding-top: 18px;
}
.section-title .title h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: var(--pb-keyline);
    border-radius: 999px;
    background: var(--pb-cobalt);
}
html[dir="rtl"] .section-title .title h3::before { left: auto; right: 0; }

/* ── Buttons: keep cobalt primary; refine radius, weight, hover lift ─────── */
.btn {
    font-family: var(--pb-display);
    font-weight: 600;
    letter-spacing: -0.005em;
    border-radius: 8px;
    transition: transform 0.14s ease, box-shadow 0.14s ease,
        background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Quote / WhatsApp actions read green — the commerce signal in the palette. */
.btn.btn-quote,
a.btn[href*="wa.me"],
a.btn[href*="whatsapp"] {
    background-color: var(--pb-quote-green);
    border-color: var(--pb-quote-green);
    color: #fff;
}
.btn.btn-quote:hover,
a.btn[href*="wa.me"]:hover,
a.btn[href*="whatsapp"]:hover {
    background-color: var(--pb-quote-green-hover);
    border-color: var(--pb-quote-green-hover);
    color: #fff;
}
/* Outline WhatsApp button on the dark hero stays legible when recoloured. */
.slider-content .btn.btn-outline-primary[href*="wa.me"] {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}
.slider-content .btn.btn-outline-primary[href*="wa.me"]:hover {
    background-color: var(--pb-quote-green);
    border-color: var(--pb-quote-green);
    color: #fff;
}

/* ── Product cards: calmer border, cobalt hover, softer shadow ──────────── */
.product-cart-wrap {
    border-radius: 12px;
    transition: box-shadow 0.16s ease, border-color 0.16s ease,
        transform 0.16s ease;
}
.product-cart-wrap:hover {
    border-color: var(--pb-cobalt);
    box-shadow: 0 10px 28px -18px rgba(13, 110, 253, 0.45);
    transform: translateY(-2px);
}

/* ── Accessibility floor ──────────────────────────────────────────────────
 * Visible keyboard focus everywhere interactive; never rely on the browser
 * default that the theme sometimes suppresses. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--pb-cobalt);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Respect reduced motion AND guarantee content is never left invisible:
 * the theme's WOW.js sets .wow{visibility:hidden} until scroll — if a user
 * prefers reduced motion we reveal it immediately and drop the animations. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .wow,
    .animate__animated {
        visibility: visible !important;
        opacity: 1 !important;
    }
    .btn:hover,
    .product-cart-wrap:hover { transform: none; }
}
