/* ===========================================================
   SimonSit Electrical — Public stylesheet
   Brand palette: deep navy (#010066), red accent (#FE0200), white
   - Light-weight typography (300/400)
   - Navy carries the design; red is used sparingly as accent
   - Lots of whitespace, flat surfaces, minimal shadows
   =========================================================== */

:root {
    --brand:        #010066;
    --brand-dark:   #01004d;
    --brand-darker: #000035;
    --brand-deep:   #000022;
    --brand-soft:   #ecedf7;
    --brand-tint:   #d3d4ea;

    --accent:       #fe0200;
    --accent-dark:  #cf0100;
    --accent-soft:  #ffe5e5;

    --ink:          #2a2d31;
    --ink-soft:     #555a60;
    --muted:        #8a8f96;
    --line:         #e6e8ea;
    --line-soft:    #f1f3f5;
    --bg:           #ffffff;
    --bg-soft:      #f6f7fa;
    --bg-tint:      #eff0f7;

    --shadow-card:  0 1px 2px rgba(0,0,0,.04);
    --shadow-hover: 0 6px 22px rgba(1, 0, 102, .10);
    --shadow-feature: 0 14px 40px rgba(1, 0, 102, .14);

    --radius-sm:    3px;
    --radius:       4px;
    --radius-lg:    6px;

    --container:    1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-darker); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.25;
    font-weight: 300;
    letter-spacing: -.005em;
}

h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 300; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 400; }
h4 { font-size: 1rem;  font-weight: 500; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: .65rem;
}

.numbered-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--brand);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: .85rem;
}
.numbered-eyebrow::before {
    content: attr(data-number);
    font-size: .85rem;
    font-weight: 500;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 50%;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    letter-spacing: .01em;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
}
.btn-light {
    background: #fff;
    color: var(--brand);
}
.btn-light:hover {
    background: var(--brand-soft);
    color: var(--brand-darker);
}
.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}
.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

.link-arrow {
    color: var(--brand);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.link-arrow::before {
    content: "›";
    color: var(--brand);
    font-weight: 400;
    font-size: 1.15em;
    line-height: 1;
}
.link-arrow:hover { color: var(--brand-darker); }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    text-decoration: none;
}
.brand img { height: 64px; width: auto; }
.brand-text {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--brand);
    letter-spacing: -.01em;
    line-height: 1;
}
.brand-tag {
    font-size: .68rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}
.site-nav a {
    color: var(--brand);
    font-weight: 500;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color .15s ease, color .15s ease;
}
.site-nav a:hover { color: var(--brand-darker); border-bottom-color: var(--brand); }
.site-nav a.is-active { color: var(--brand-darker); border-bottom-color: var(--brand); }

.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
}
.header-icon {
    width: 22px; height: 22px;
    color: var(--muted);
    cursor: pointer;
    transition: color .15s ease;
}
.header-icon:hover { color: var(--brand); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--brand);
    margin: 5px 0;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumb + page lead ---------- */
.breadcrumb {
    padding: 1rem 0 .25rem;
    font-size: .82rem;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 .35rem; color: var(--muted); }
.breadcrumb .sep::before { content: "›"; }

.page-lead {
    padding: .25rem 0 1.5rem;
}
.page-lead h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--ink);
    margin: 0;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--bg-soft);
}
.hero-slider { position: relative; }
.hero-slide {
    position: relative;
    min-height: clamp(420px, 60vh, 580px);
    background-size: cover;
    background-position: center;
    background-color: #062a3d;
    display: none;
}
.hero-slide.is-active { display: block; }

.hero-fallback {
    background: linear-gradient(135deg, #000022 0%, #010066 55%, #2e2eb3 100%);
}

.hero-has-image {
    position: relative;
}

/* Brand-tinted shade laid over uploaded hero images so the white card,
   pulsing dots and overall composition stay consistent with the fallback. */
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg,
            rgba(0, 0, 30, .68) 0%,
            rgba(0, 0, 60, .42) 40%,
            rgba(1, 0, 102, .18) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: absolute;
    left: 0; right: 0;
    bottom: 3.5rem;
    z-index: 2;
    pointer-events: none;
}
.hero-card {
    background: #fff;
    padding: 1.85rem 2rem;
    max-width: 420px;
    pointer-events: auto;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .15);
    border-top: 3px solid var(--accent);
}
.hero-card .eyebrow { margin-bottom: .55rem; }
.hero-card h2 {
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 .7rem;
    line-height: 1.3;
}
.hero-card p {
    color: var(--ink-soft);
    font-size: .92rem;
    margin: 0 0 1.2rem;
    line-height: 1.6;
}
.hero-card-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-dot {
    position: absolute;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid rgba(255,255,255,.85);
    box-shadow: 0 0 0 6px rgba(1, 0, 102, .25);
    transform: translate(-50%, -50%);
    animation: pulse 2.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(1, 0, 102, .25); }
    50%      { box-shadow: 0 0 0 12px rgba(1, 0, 102, .08); }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border: 0;
    color: var(--brand);
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 3;
    transition: background .15s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.slider-arrow:hover { background: #fff; color: var(--brand-darker); }
.slider-arrow.prev { left: 1.25rem; }
.slider-arrow.next { right: 1.25rem; }

.slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: .4rem;
}
.slider-dots .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all .2s ease;
}
.slider-dots .dot.is-active {
    background: #fff;
    width: 24px;
    border-radius: 100px;
}

/* ---------- Sections ---------- */
.section {
    padding: 5rem 0;
}
.section-tight { padding: 3rem 0; }
.section-soft  { background: var(--bg-soft); }

.section-head {
    margin-bottom: 2.5rem;
    max-width: 760px;
}
.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-head h2 {
    color: var(--ink);
    margin: 0 0 .65rem;
}
.section-head p {
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- Industry tile grid (6 items in 3 cols × 2 rows) ---------- */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-soft);
    text-decoration: none;
    color: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-feature); }

.tile-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--brand-darker);
    transition: transform .4s ease;
}
.tile:hover .tile-media { transform: scale(1.05); }

.tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 35, 0) 35%, rgba(0, 0, 35, .85) 100%);
}
.tile-label {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.tile-arrow {
    position: absolute;
    right: 1rem; top: 1rem;
    color: #fff;
    width: 30px; height: 30px;
    background: rgba(255,255,255,.16);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 2;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}
.tile:hover .tile-arrow { opacity: 1; transform: translateY(2px); }

.tile-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.1rem;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-darker) 100%);
}

/* ---------- Value props strip ---------- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.services-grid {
    grid-template-columns: repeat(5, 1fr);
}
.value-grid--three {
    grid-template-columns: repeat(3, 1fr);
}
.value-card {
    background: #fff;
    padding: 1.85rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.value-card:hover {
    border-color: var(--brand-tint);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.value-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 .4rem;
}
.value-card p {
    font-size: .9rem;
    margin: 0;
    line-height: 1.6;
}

/* ---------- About / Distributor feature ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
}
.feature-content h2 { margin-bottom: 1rem; }
.feature-content p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.75; }
.feature-actions { margin-top: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.feature-card {
    position: relative;
    background: linear-gradient(140deg, var(--brand-deep) 0%, var(--brand-darker) 50%, var(--brand-dark) 100%);
    color: #fff;
    padding: 3rem 2.5rem;
    aspect-ratio: 5 / 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: var(--shadow-feature);
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0, transparent 40%);
    pointer-events: none;
    z-index: 1;
}
.feature-card > * { position: relative; z-index: 2; }

/* When an admin-uploaded photo is used as the card background */
.feature-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.feature-card--image::before {
    background:
        linear-gradient(140deg, rgba(0, 0, 22, .85) 0%, rgba(0, 0, 50, .6) 55%, rgba(1, 0, 102, .4) 100%);
}
.feature-card-mark {
    font-size: clamp(2.4rem, 4.4vw, 3.4rem);
    font-weight: 200;
    letter-spacing: -.02em;
    color: #fff;
    position: relative;
    z-index: 1;
}
.feature-card-tag {
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-top: .35rem;
}
.feature-card-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 1.25rem;
    font-size: .9rem;
    color: rgba(255,255,255,.8);
}
.feature-card-bottom strong {
    color: #fff;
    font-weight: 500;
}

/* ---------- Products ---------- */
.products-intro {
    padding: 4.5rem 0 1rem;
    text-align: center;
}
.products-intro .section-head { margin: 0 auto; }

.product-section {
    padding: 4rem 0;
    background: #fff;
}
.product-section--alt {
    background: var(--bg-soft);
}
.product-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.product-section-head h3 {
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--ink);
    margin: 0 0 .65rem;
    letter-spacing: -.01em;
}
.product-section-head p {
    color: var(--ink-soft);
    font-size: .95rem;
    margin: 0 0 1rem;
}

/* Per-section image slider — square, image shown in full */
.product-slider {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.product-section--alt .product-slider { background: #fff; }

.product-slide {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--bg-soft);
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}
.product-section--alt .product-slide { background-color: #fff; }
.product-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.product-slide-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-tint) 100%);
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .5;
}

.ps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
    border: 0;
    color: var(--brand);
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .8rem;
    z-index: 3;
    transition: background .15s ease, color .15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ps-arrow:hover { background: var(--brand); color: #fff; }
.ps-prev { left: .65rem; }
.ps-next { right: .65rem; }

.ps-dots {
    position: absolute;
    bottom: .55rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: .3rem;
}
.ps-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
}
.ps-dot.is-active {
    background: #fff;
    width: 18px;
    border-radius: 100px;
}

.ps-counter {
    position: absolute;
    top: .6rem;
    right: .75rem;
    background: rgba(0, 0, 35, .6);
    color: #fff;
    padding: .15rem .55rem;
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .04em;
    z-index: 3;
    backdrop-filter: blur(6px);
}

.empty-card {
    border: 1px dashed var(--line);
    background: #fff;
    padding: 1.5rem;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.product-section--alt .empty-card { background: #fff; }
.empty-card .empty-text {
    font-size: .92rem;
}
.empty-card .empty-text strong { color: var(--ink); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-darker) 55%, var(--brand-dark) 100%);
    color: #fff;
    padding: 3rem 0;
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-band h2 {
    color: #fff;
    margin: 0 0 .25rem;
    font-size: 1.65rem;
    font-weight: 300;
}
.cta-band p {
    color: rgba(255,255,255,.82);
    margin: 0;
    font-size: 1rem;
}
.cta-band-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #fff;
    color: var(--ink-soft);
    font-size: .9rem;
    margin-top: 0;
}
.footer-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--brand-deep) 0%, var(--brand) 50%, var(--brand-tint) 100%);
}
.footer-main {
    padding: 4rem 1.5rem 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.4fr;
    gap: 3.5rem;
}
.footer-col h4 {
    color: var(--ink);
    font-size: .78rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--line);
}
.footer-col p { color: var(--ink-soft); line-height: 1.7; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--ink-soft); transition: color .15s ease; }
.footer-col a:hover { color: var(--brand); }

/* Brand column */
.footer-col-brand .footer-brand {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
}
.footer-col-brand .footer-brand img { height: 56px; width: auto; }
.footer-brand-text {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--brand);
    letter-spacing: -.01em;
}
.footer-about {
    font-size: .92rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0 0 1.4rem;
    max-width: 380px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    background: var(--brand-soft);
    padding: .75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--brand-tint);
}
.footer-badge-mark {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.footer-badge-text strong {
    display: block;
    color: var(--brand-deep);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .02em;
    line-height: 1.2;
}
.footer-badge-text span {
    display: block;
    color: var(--ink-soft);
    font-size: .78rem;
    margin-top: .1rem;
}

/* Facts */
.facts-list .fact {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--line);
}
.facts-list .fact:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}
.facts-list .fact-num {
    font-size: 1.7rem;
    font-weight: 200;
    color: var(--brand);
    letter-spacing: -.02em;
    line-height: 1;
}
.facts-list .fact-num .unit {
    font-size: .9rem;
    color: var(--brand);
    margin-left: .1rem;
    font-weight: 400;
}
.facts-list .fact-label {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    margin-top: .3rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Links */
.footer-links li { margin-bottom: .7rem; }
.footer-links a {
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .1rem 0;
    transition: color .15s ease, gap .15s ease, padding-left .15s ease;
}
.footer-links a::before {
    content: "›";
    color: var(--brand);
    font-weight: 400;
    transition: transform .15s ease;
}
.footer-links a:hover {
    color: var(--brand);
    gap: .6rem;
}

/* Contact list */
.contact-list { margin-bottom: 1.5rem; }
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .85rem;
    line-height: 1.55;
}
.contact-icon {
    width: 34px; height: 34px;
    flex: none;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.contact-list li:hover .contact-icon {
    background: var(--brand);
    color: #fff;
}
.contact-icon svg { width: 16px; height: 16px; }
.contact-list a { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--brand); }
.contact-list span:not(.contact-icon) { color: var(--ink-soft); padding-top: .35rem; }
.contact-list a { padding-top: .35rem; display: inline-block; }

/* Social */
.social-row {
    display: flex;
    gap: .55rem;
    margin-top: .5rem;
}
.social-icon {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink-soft);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.social-icon:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}
.social-icon svg { width: 17px; height: 17px; }

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
    padding: 1.15rem 0;
    font-size: .78rem;
    color: var(--muted);
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.footer-bottom a { color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--brand); }
.footer-bottom-meta {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.footer-bottom-meta .dot { color: var(--muted); opacity: .5; }

/* ---------- Sub-page hero ---------- */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, #000022 0%, #010066 55%, #2e2eb3 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
    overflow: hidden;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .breadcrumb {
    color: rgba(255, 255, 255, .8);
    padding: 0 0 .9rem;
}
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .8); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { color: rgba(255, 255, 255, .55); }
.page-hero .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, .15);
    padding: .25rem .75rem;
    border-radius: 100px;
    margin-bottom: .8rem;
    display: inline-block;
}
.page-hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    margin: 0 0 .65rem;
    font-weight: 300;
    letter-spacing: -.01em;
}
.page-hero p {
    color: rgba(255, 255, 255, .9);
    font-size: 1rem;
    max-width: 680px;
    margin: 0;
    line-height: 1.7;
}
.page-hero .hero-dot { opacity: .85; }

/* ---------- Page content sections ---------- */
.page-section {
    padding: 4rem 0;
}
.page-section + .page-section { padding-top: 0; }

.prose {
    max-width: 760px;
}
.prose p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.25rem; font-size: 1rem; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose ul {
    padding-left: 1.25rem;
    color: var(--ink-soft);
    line-height: 1.8;
}
.prose ul li { margin-bottom: .35rem; }

/* Industry / category cards (used on industries.php and products.php) */
.detail-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-top: 1px solid var(--line);
}
.detail-card:first-child { border-top: 0; padding-top: 1rem; }
.detail-card--flip { grid-template-columns: 1fr 1.1fr; }
.detail-card--flip .detail-card-content { order: 2; }
.detail-card--flip .detail-card-media   { order: 1; }
.detail-card-content .eyebrow { margin-bottom: .5rem; }
.detail-card-content h2 {
    font-size: 1.85rem;
    font-weight: 300;
    color: var(--ink);
    margin: 0 0 .85rem;
    letter-spacing: -.01em;
}
.detail-card-content p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.detail-card-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.detail-card-content ul li {
    padding: .35rem 0 .35rem 1.4rem;
    color: var(--ink-soft);
    position: relative;
}
.detail-card-content ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--brand);
}
.detail-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand) 100%);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-card);
}
.detail-card-media-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    font-size: 2.25rem;
    font-weight: 200;
    letter-spacing: -.01em;
    padding: 1.5rem;
    text-align: center;
}

/* Product items grid (used on products.php) */
.item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.item-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-tint);
}
.item-media {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line-soft);
}
.item-placeholder {
    color: var(--brand);
    font-weight: 200;
    font-size: 1.5rem;
    letter-spacing: -.02em;
    opacity: .5;
}
.item-body { padding: .9rem 1rem 1.1rem; }
.item-body h4 {
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 .25rem;
}
.item-body p { font-size: .85rem; margin: 0; line-height: 1.5; }

/* ---------- Forms (public contact form) ---------- */
.form-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.form-card h3 {
    font-size: 1.25rem;
    margin: 0 0 .35rem;
}
.form-card .form-lede { color: var(--ink-soft); margin: 0 0 1.5rem; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-field { margin-bottom: 1rem; }
.form-field label {
    display: block;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: .35rem;
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .7rem .85rem;
    font: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(1, 0, 102, .14);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-actions { margin-top: 1rem; }

.alert-inline {
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}
.alert-inline-success {
    background: #e8f6ec;
    color: #1d6b3d;
    border-color: #c8e6d2;
}
.alert-inline-error {
    background: #fde7ea;
    color: #b00020;
    border-color: #f7c5cc;
}

/* Contact info card (used on contact.php) */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info { padding-right: 1rem; }
.contact-info h3 { margin-top: 0; }
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.contact-info-list li:last-child { border-bottom: 0; }
.contact-info-list .contact-icon {
    width: 40px; height: 40px;
}
.contact-info-list .label {
    display: block;
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .15rem;
}
.contact-info-list .value {
    color: var(--ink);
    font-weight: 500;
}
.contact-info-list a.value { color: var(--ink); }
.contact-info-list a.value:hover { color: var(--brand); }

/* Vision / Mission */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.vm-card {
    background: #fff;
    padding: 2.25rem 2rem;
    border-radius: var(--radius);
    border-top: 3px solid var(--brand);
    box-shadow: var(--shadow-card);
}
.vm-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.vm-card .eyebrow { margin-bottom: .65rem; }
.vm-card h3 {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.35;
    margin: 0 0 .85rem;
    letter-spacing: -.01em;
}
.vm-card p { color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* Partnership grid (about page) */
.partnership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}
.partnership-card {
    background: #fff;
    padding: 2.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.partnership-card h3 {
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--ink);
    margin: 0 0 .65rem;
    letter-spacing: -.01em;
}
.partnership-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}
.partnership-list li {
    padding: .65rem .85rem;
    background: var(--bg-soft);
    border-left: 3px solid var(--brand);
    color: var(--ink);
    font-weight: 500;
    font-size: .92rem;
}

/* Industries tile grid as page (smaller-scale) */
.page-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* ---------- Header search button ---------- */
.header-icon-btn {
    background: transparent;
    border: 0;
    padding: .25rem;
    cursor: pointer;
    color: var(--muted);
    transition: color .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.header-icon-btn:hover { color: var(--brand); }
.header-icon-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ---------- Search overlay (slides down from the top) ---------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}
.search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    height: 100vh;
    background: rgba(0, 0, 22, .4);
    backdrop-filter: blur(2px);
}
.search-overlay-form {
    position: relative;
    background: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    box-shadow: 0 8px 24px rgba(1, 0, 102, .15);
    border-bottom: 3px solid var(--accent);
    transform: translateY(-100%);
    transition: transform .3s ease;
    max-width: 100%;
}
.search-overlay.is-open .search-overlay-form {
    transform: translateY(0);
}
.search-overlay-icon {
    color: var(--brand);
    flex: none;
    display: inline-flex;
    align-items: center;
}
.search-overlay-form input[type="search"] {
    flex: 1;
    border: 0;
    padding: .6rem .25rem;
    font-size: 1.05rem;
    background: transparent;
    color: var(--ink);
    outline: 0;
    min-width: 0;
}
.search-overlay-form input[type="search"]::placeholder { color: var(--muted); }
.search-overlay-close {
    background: transparent;
    border: 0;
    padding: .5rem;
    color: var(--muted);
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}
.search-overlay-close:hover { color: var(--accent); background: var(--bg-soft); }

/* ---------- Search page (search.php) ---------- */
.search-page-form {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
}
.search-page-form-icon {
    color: var(--brand);
    flex: none;
    display: inline-flex;
}
.search-page-form input[type="search"] {
    flex: 1;
    border: 0;
    padding: .35rem .25rem;
    font-size: 1rem;
    background: transparent;
    color: var(--ink);
    outline: 0;
    min-width: 0;
}
.search-page-form input[type="search"]::placeholder { color: var(--muted); }

.search-results {
    list-style: none;
    padding: 0;
    margin: 0;
}
.search-result {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: .4rem;
}
.search-result:first-child { border-top: 0; }
.search-result-kind {
    display: inline-block;
    color: var(--brand);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
}
.search-result-title {
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 500;
    text-decoration: none;
}
.search-result-title:hover {
    color: var(--brand);
    text-decoration: underline;
}
.search-result-snippet {
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0;
    font-size: .92rem;
}
.search-result-snippet mark {
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: 0 .15rem;
    border-radius: 2px;
}
.search-result-url {
    color: var(--muted);
    font-size: .8rem;
    word-break: break-all;
}

.search-empty {
    background: var(--bg-soft);
    padding: 2.25rem;
    border-radius: var(--radius);
    text-align: center;
}
.search-empty h3 {
    margin: 0 0 .5rem;
    font-weight: 400;
}
.search-empty p { margin: 0 0 1.5rem; }
.search-suggestions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    font-size: .9rem;
}
.search-suggestions strong { color: var(--ink); margin-right: .25rem; }
.search-suggestions a {
    background: #fff;
    border: 1px solid var(--line);
    padding: .35rem .75rem;
    border-radius: 100px;
    color: var(--brand);
    text-decoration: none;
}
.search-suggestions a:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

/* ---------- Cookie consent bar ---------- */
.cookie-bar {
    position: fixed;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 36px rgba(1, 0, 102, .15);
    border-top: 3px solid var(--accent);
    transform: translateY(140%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
}
.cookie-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.cookie-bar-inner {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}
.cookie-bar-icon {
    width: 44px;
    height: 44px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cookie-bar-text {
    font-size: .9rem;
    color: var(--ink-soft);
    line-height: 1.55;
}
.cookie-bar-text strong {
    color: var(--ink);
    font-weight: 500;
    display: block;
    margin-bottom: .1rem;
    font-size: .95rem;
}
.cookie-bar-text a {
    color: var(--brand);
    font-weight: 500;
    text-decoration: underline;
}
.cookie-bar-text a:hover { color: var(--accent); }

.cookie-bar-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.cookie-bar-actions .btn {
    padding: .55rem 1.1rem;
    font-size: .85rem;
}

@media (max-width: 720px) {
    .cookie-bar {
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
    }
    .cookie-bar-inner {
        grid-template-columns: 1fr;
        gap: .85rem;
        padding: 1rem;
    }
    .cookie-bar-icon { display: none; }
    .cookie-bar-actions { justify-content: flex-end; }
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 44px; height: 44px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 30;
    border: 0;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--brand); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .product-section-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .item-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-card { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
    .detail-card--flip .detail-card-content { order: 0; }
    .detail-card--flip .detail-card-media   { order: 0; }
    .page-tile-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-info { padding-right: 0; }
    .vm-grid { grid-template-columns: 1fr; }
    .partnership-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
}

@media (max-width: 880px) {
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .footer-col-brand { grid-column: 1 / -1; }
    .section { padding: 3.5rem 0; }
    .product-section { padding: 3rem 0; }
    .cta-band-inner { justify-content: flex-start; }

    /* Hero card — keep it compact and contained inside the hero on mobile */
    .hero-slide { min-height: clamp(460px, 78vh, 620px); }
    .hero-content { bottom: 2.5rem; } /* leave room below the card for the dots */
    .hero-card {
        max-width: calc(100% - 2rem);
        margin: 0 1rem;
        padding: 1.4rem 1.5rem;
    }
    .hero-card .eyebrow { font-size: .68rem; margin-bottom: .35rem; }
    .hero-card h2 {
        font-size: 1.2rem;
        margin-bottom: .5rem;
        line-height: 1.3;
    }
    .hero-card p {
        font-size: .88rem;
        line-height: 1.55;
        margin-bottom: 1rem;
    }
    .hero-card-actions { gap: 1rem; }
    .hero-card-actions .btn { padding: .6rem 1.1rem; font-size: .85rem; }

    /* Dots sit in the small gap between the bottom of the white card
       and the bottom edge of the hero, with a soft dark pill so they
       stay visible against any background photo. */
    .slider-dots {
        bottom: .85rem;
        top: auto;
        background: rgba(0, 0, 22, .4);
        padding: .35rem .55rem;
        border-radius: 100px;
        backdrop-filter: blur(4px);
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--line);
        display: none;
        margin-left: 0;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a {
        padding: .9rem 0;
        width: 100%;
        border-bottom: 1px solid var(--line-soft);
    }
    .header-icons { display: none; }
    .slider-arrow { display: none; }
}

@media (max-width: 768px) {
    .item-grid { grid-template-columns: repeat(2, 1fr); }
    .page-tile-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .tile-grid    { grid-template-columns: 1fr; }
    .value-grid   { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr; }
    .feature-card { padding: 2rem 1.5rem; aspect-ratio: auto; }
    .feature-card-mark { font-size: 2.2rem; }
    .product-slider { max-width: 360px; }
    .ps-arrow { width: 28px; height: 28px; }
    .item-grid { grid-template-columns: 1fr; }

    /* Even tighter hero card on small phones */
    .hero-slide { min-height: clamp(440px, 82vh, 600px); }
    .hero-card  { padding: 1.2rem 1.25rem; }
    .hero-card h2 { font-size: 1.1rem; }
    .hero-card p  { font-size: .85rem; margin-bottom: .85rem; }
    .hero-card-actions .btn { padding: .55rem 1rem; }
}
