/* =============================================================================
   TROJAN TEMPLATE — template.css
   Joomla 6 / Bootstrap 5
   Design: dark navy + amber accent, expressive sans-serif, industrial minimal
   ============================================================================= */

/* =============================================================================
   1. CUSTOM PROPERTIES
   ============================================================================= */

:root {
    /* Brand colours */
    --c-navy:        #1a2332;
    --c-navy-dark:   #111820;
    --c-navy-mid:    #243042;
    --c-amber:       #e8820c;
    --c-amber-dark:  #c46c09;
    --c-amber-light: #f5a23c;

    /* Neutrals */
    --c-bg:          #f8f9fa;
    --c-white:       #ffffff;
    --c-text:        #1e1e1e;
    --c-text-muted:  #6b7280;
    --c-border:      #dee2e6;
    --c-surface:     #ffffff;
    --c-surface-alt: #f1f3f5;

    /* Typography */
    --font-base: 'Sora', 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;
    --fs-base:   1rem;       /* 16px */
    --lh-base:   1.6;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold:   700;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container-max:  1200px;
    --radius:         4px;
    --radius-md:      6px;
    --shadow-card:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-nav:     0 2px 8px rgba(0,0,0,0.12);

    /* Transitions */
    --transition:     150ms ease;
    --transition-md:  250ms ease;

    /* Header height (used for sticky offset) */
    --header-h: 88px;
}


/* =============================================================================
   2. ACCESSIBILITY UTILITIES
   ============================================================================= */

/* Bootstrap 5 compatibility — used by Joomla core modules */
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* =============================================================================
   3. RESET / BASE
   ============================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--c-text);
    background-color: var(--c-bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--c-navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--c-amber);
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--c-amber);
    outline-offset: 2px;
}


/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-base);
    font-weight: var(--fw-bold);
    line-height: 1.25;
    color: var(--c-navy);
    margin-top: 0;
    margin-bottom: 0.6em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; font-weight: var(--fw-medium); }
h6 { font-size: 0.875rem; font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: 0.05em; }

p {
    margin-top: 0;
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

blockquote {
    border-left: 3px solid var(--c-amber);
    margin-left: 0;
    padding: var(--space-sm) var(--space-lg);
    color: var(--c-text-muted);
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
}

th, td {
    padding: 0.6rem 0.875rem;
    border: 1px solid var(--c-border);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--c-navy);
    color: var(--c-white);
    font-weight: var(--fw-medium);
}

tr:nth-child(even) td {
    background: var(--c-surface-alt);
}


/* =============================================================================
   4. LAYOUT / CONTAINER
   ============================================================================= */

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

@media (max-width: 576px) {
    .container {
        padding-inline: var(--space-md);
    }
}


/* =============================================================================
   5. BUTTONS
   ============================================================================= */

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-base);
    font-size: 0.875rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

/* Primary — amber fill */
.btn-primary {
    background-color: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--c-amber-dark);
    border-color: var(--c-amber-dark);
    color: var(--c-white);
}

/* Outline — navy border */
.btn-outline {
    background-color: transparent;
    border-color: var(--c-navy);
    color: var(--c-navy);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--c-navy);
    color: var(--c-white);
}

/* Outline-light — for dark backgrounds */
.btn-outline-light {
    background-color: transparent;
    border-color: var(--c-white);
    color: var(--c-white);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background-color: var(--c-white);
    color: var(--c-navy);
}

/* Size variants */
.btn-lg {
    padding: 0.875rem 2.25rem;
    font-size: 0.9375rem;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
}


/* =============================================================================
   6. TOP BAR
   ============================================================================= */

.topbar {
    background-color: var(--c-surface-alt);
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text-muted);
    font-size: 0.8125rem;
    padding: 0.375rem 0;
}

.topbar a {
    color: var(--c-navy);
    text-decoration: none;
}

.topbar a:hover {
    color: var(--c-amber);
    text-decoration: none;
}

.topbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

/* Menu list rendered by mod_menu in topbar */
.topbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.topbar ul li {
    display: flex;
    align-items: center;
}

.topbar ul li + li::before {
    content: '·';
    margin-inline: 0.5rem;
    color: var(--c-border);
}

.topbar ul li a {
    display: block;
    padding: 0.125rem 0;
}


/* =============================================================================
   7. HEADER / NAVIGATION
   ============================================================================= */

.site-header {
    background-color: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-nav);
}

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

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.site-logo {
    height: 72px;
    width: auto;
}

/* Nav toggle (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
}

.nav-toggle:hover {
    background: var(--c-surface-alt);
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-navy);
    border-radius: 2px;
    transition: transform var(--transition-md), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Main nav */
.main-nav {
    display: flex;
    align-items: center;
}

/* Joomla mod_menu output — override Bootstrap nav */
.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.main-nav li {
    position: relative;
    display: flex;
    align-items: center;
}

/* Joomla dropdown toggle button inside parent li */
.main-nav li.parent > button {
    display: none;
}

.main-nav a,
.main-nav span.separator {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: var(--fw-medium);
    color: var(--c-navy);
    white-space: nowrap;
    border-radius: var(--radius);
    transition: color var(--transition), background-color var(--transition);
}

.main-nav a:hover {
    color: var(--c-amber);
    text-decoration: none;
}

/* Dropdown arrow */
.main-nav li.parent > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.4em;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
}

/* Dropdown menu */
.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    min-width: 220px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-nav);
    padding: var(--space-sm) 0;
    z-index: 100;
    gap: 0;
}

.main-nav li.parent:hover > ul,
.main-nav li.parent:focus-within > ul {
    display: flex;
}

.main-nav ul ul a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: var(--fw-normal);
    border-radius: 0;
}

.main-nav ul ul a:hover {
    background: var(--c-surface-alt);
}

/* Active/current item */
.main-nav li.current > a,
.main-nav li.active > a {
    color: var(--c-amber);
}

/* Mobile nav */
@media (max-width: 991px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c-white);
        border-top: 1px solid var(--c-border);
        box-shadow: var(--shadow-nav);
        padding: var(--space-sm) 0;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 0.75rem var(--space-lg);
        border-radius: 0;
    }

    .main-nav ul ul {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--c-amber);
        border-radius: 0;
        margin-left: var(--space-lg);
        padding: 0;
    }

    .main-nav ul ul a {
        padding: 0.625rem var(--space-lg);
        font-size: 0.9rem;
    }

    .main-nav li.parent > a::after {
        margin-left: auto;
    }
}


/* =============================================================================
   8. HERO
   ============================================================================= */

.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background-color: var(--c-navy);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -20%;
    bottom: -20%;
    object-fit: cover;
    width: 100%;
    height: 140%;
    opacity: 1;
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 24%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 34%),
        linear-gradient(90deg, rgba(17,24,32,0.64) 0%, rgba(26,35,50,0.38) 48%, rgba(26,35,50,0.18) 100%),
        linear-gradient(180deg, rgba(17,24,32,0.12) 0%, rgba(17,24,32,0.38) 100%);
}

.hero__container {
    width: 100%;
}

.hero__content {
    position: relative;
    max-width: 860px;
    color: var(--c-white);
    padding: 8rem 0;
    text-shadow: 0 2px 14px rgba(0,0,0,0.28);
}

.hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-amber-light);
    margin-bottom: var(--space-sm);
}

.hero__title {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 800;
    color: var(--c-white);
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

/* Headline rotator */
.hero-rotator {
    position: relative;
    /* height set dynamically by JS to prevent layout jump */
}

.hero-rotator__item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-rotator__item.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
    max-width: 720px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

@media (max-width: 576px) {
    .hero {
        min-height: 500px;
    }
    .hero__content {
        padding: var(--space-3xl) var(--space-md);
    }
}


/* =============================================================================
   9. HOMEPAGE SECTIONS
   ============================================================================= */

/* Intro strip */
.homepage-intro {
    padding: var(--space-2xl) 0;
    text-align: left;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
}

.homepage-intro .container {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: var(--space-3xl);
    align-items: start;
}

.homepage-intro .container > :only-child {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: var(--space-3xl);
    align-items: start;
}

.homepage-intro h2 {
    position: relative;
    margin-bottom: 0;
    padding-bottom: var(--space-md);
}

.homepage-intro h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    background: var(--c-amber);
    border-radius: 999px;
}

.homepage-intro p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--c-text-muted);
    max-width: 920px;
    margin-inline: 0;
    margin-bottom: 0;
    line-height: 1.75;
}

@media (max-width: 768px) {
    .homepage-intro .container,
    .homepage-intro .container > :only-child {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* Products carousel */
.homepage-products {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: var(--c-bg);
}

.hp-products {
    width: 100%;
}

.hp-products__heading {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--c-navy);
    margin-bottom: var(--space-xl);
}

.hp-product-card {
    display: block;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}

.hp-product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    text-decoration: none;
}

.hp-product-card__img {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.hp-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hp-product-card:hover .hp-product-card__img img {
    transform: scale(1.04);
}

.hp-product-card__body {
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.hp-product-card__title {
    font-size: 1rem;
    font-weight: var(--fw-bold);
    color: var(--c-navy);
    margin: 0;
}

.hp-product-card__link {
    font-size: 0.875rem;
    font-weight: var(--fw-bold);
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Splide arrow overrides for homepage carousel */
.hp-products-splide {
    padding-bottom: var(--space-xl);
}

.hp-products-splide .splide__arrow {
    background: var(--c-navy);
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--c-white);
    font-size: 1.35rem;
    font-weight: var(--fw-semibold);
    line-height: 1;
    opacity: 1;
    width: 36px;
    height: 36px;
    top: calc((100% - var(--space-xl)) * 0.375);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.hp-products-splide .splide__arrow svg {
    display: none;
}

.hp-products-splide .splide__arrow--prev {
    left: 0.6rem;
}

.hp-products-splide .splide__arrow--next {
    right: 0.6rem;
}

.hp-products-splide .splide__arrow:hover,
.hp-products-splide .splide__arrow:focus-visible {
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-white);
}

.hp-products-splide .splide__pagination {
    bottom: 0;
    gap: 0.4rem;
}

.hp-products-splide .splide__pagination__page {
    width: 7px;
    height: 7px;
    margin: 0;
    background: #aeb6c2;
    opacity: 1;
    transform: none;
    transition: background-color var(--transition), transform var(--transition);
}

.hp-products-splide .splide__pagination__page.is-active {
    background: var(--c-amber);
    transform: scale(1.25);
}

.homepage-products__heading h2 {
    margin-bottom: var(--space-sm);
}

.homepage-products__heading p {
    color: var(--c-text-muted);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 0;
}

/* Product card grid */
.product-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .product-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Product card */
.product-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-md), transform var(--transition-md);
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.product-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-md);
}

.product-card:hover .product-card__img img {
    transform: scale(1.03);
}

.product-card__body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-size: 1rem;
    font-weight: var(--fw-bold);
    color: var(--c-navy);
    margin-bottom: var(--space-sm);
}

.product-card__desc {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    flex: 1;
    margin-bottom: var(--space-md);
}

.product-card__link {
    font-size: 0.875rem;
    font-weight: var(--fw-bold);
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-card__link::after {
    content: '→';
    transition: transform var(--transition);
}

.product-card:hover .product-card__link::after {
    transform: translateX(3px);
}

.product-card__link:hover {
    color: var(--c-amber-dark);
    text-decoration: none;
}

/* CTA strip */
.homepage-cta {
    padding: var(--space-3xl) 0;
    background: var(--c-white);
    border-top: 1px solid rgba(26,35,50,0.08);
}

/* Feature panels */
.feature-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    align-items: start;
}

.feature-panel {
    position: relative;
    min-width: 0;
}

.feature-panel + .feature-panel {
    border-left: 0;
}

.feature-panel + .feature-panel::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--space-2xl) / -2);
    width: 1px;
    background: rgba(26,35,50,0.1);
}

.feature-panel__img {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: block;
    border: 1px solid rgba(26,35,50,0.08);
    box-shadow: 0 12px 30px rgba(17,24,32,0.08);
}

.feature-panel h3 {
    position: relative;
    font-size: 1.2rem;
    color: var(--c-navy);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
}

.feature-panel h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    background: var(--c-amber);
    border-radius: 999px;
}

.feature-panel p {
    font-size: 0.95rem;
    color: #5f6876;
    line-height: 1.72;
    margin-bottom: var(--space-sm);
}

.feature-panel a {
    color: var(--c-amber);
}

@media (max-width: 768px) {
    .feature-panels {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .feature-panel + .feature-panel {
        padding-top: var(--space-2xl);
        border-top: 1px solid rgba(26,35,50,0.1);
    }

    .feature-panel + .feature-panel::before {
        display: none;
    }
}


/* =============================================================================
   10. MAIN CONTENT / INTERIOR PAGES
   ============================================================================= */

.site-main {
    padding: var(--space-lg) 0 var(--space-2xl);
    flex: 1;
}

.page-home .site-main {
    padding: 0;
}

/* Breadcrumbs */
.breadcrumbs-wrap {
    margin-bottom: var(--space-lg);
}

.breadcrumbs-wrap nav,
.breadcrumb {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    padding: 0;
    background: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    list-style: none;
}

.breadcrumb-item a {
    color: var(--c-text-muted);
}

.breadcrumb-item a:hover {
    color: var(--c-amber);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--c-navy);
    font-weight: var(--fw-medium);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--c-border);
    padding-right: 0.25rem;
}

/* Content area standard article */
.content-area h1:first-child {
    margin-bottom: var(--space-lg);
}

.article-meta {
    margin-bottom: var(--space-xl);
    color: var(--c-text-muted);
    font-size: 0.9rem;
}


/* =============================================================================
   11. PRODUCT ARTICLE PAGE
   ============================================================================= */

.product-article {
    padding-bottom: var(--space-xl);
}

/* ---- Upper card: gallery + info ---- */
.product-layout {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 0;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

/* Gallery column — stretches to full card height */
.product-gallery {
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.product-gallery .splide {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-gallery .splide__track {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
}

.product-gallery .splide__list,
.product-gallery .splide__slide {
    height: 100% !important;
}

.product-gallery .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery .splide__track {
    border-radius: 0;
    height: 100%;
}

.product-gallery .splide__arrow {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--c-border);
    opacity: 1;
    width: 36px;
    height: 36px;
}

.product-gallery .splide__arrow svg {
    fill: var(--c-navy);
    width: 14px;
    height: 14px;
}

.product-gallery .splide__arrow:hover {
    background: var(--c-navy);
}

.product-gallery .splide__arrow:hover svg {
    fill: var(--c-white);
}

.product-gallery .splide__pagination {
    bottom: 0.75rem;
}

.product-gallery .splide__pagination__page {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.15);
}

.product-gallery .splide__pagination__page.is-active {
    background: var(--c-amber);
    border-color: var(--c-amber);
    transform: scale(1.2);
}

/* Product info column */
.product-info {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--c-border);
}

.product-info h1 {
    font-size: clamp(1.375rem, 2.5vw, 2rem);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--c-amber);
}

.product-info__overview-heading {
    font-size: 1.25rem;
    color: var(--c-navy);
    margin-bottom: var(--space-md);
}

.product-info__overview {
    flex: 1;
}

.product-info__overview p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--c-text);
    margin-bottom: 0.875rem;
}

.product-info__cta {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--c-border);
}

/* ---- Tab module area below card ---- */
.product-tabs-wrapper {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Bootstrap 5 tab overrides (used by tab module) */
.product-tabs-wrapper .nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 var(--space-lg);
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 2px solid var(--c-border);
    background: var(--c-surface-alt);
}

.product-tabs-wrapper .nav-tabs::-webkit-scrollbar {
    display: none;
}

.product-tabs-wrapper .nav-tabs .nav-link {
    font-size: 0.9375rem;
    font-weight: var(--fw-medium);
    color: var(--c-text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.875rem 1.25rem;
    white-space: nowrap;
    margin-bottom: -2px;
    background: none;
    transition: color var(--transition), border-color var(--transition);
}

.product-tabs-wrapper .nav-tabs .nav-link:hover {
    color: var(--c-navy);
    border-bottom-color: var(--c-border);
    background: none;
}

.product-tabs-wrapper .nav-tabs .nav-link.active {
    color: var(--c-navy);
    border-bottom-color: var(--c-amber);
    font-weight: var(--fw-bold);
    background: none;
}

/* Hide all panes by default — Bootstrap CSS not loaded so we do this ourselves */
.product-tabs-wrapper .tab-pane {
    display: none;
}

.product-tabs-wrapper .tab-pane.active {
    display: block;
}

.product-tabs-wrapper .tab-content {
    padding: var(--space-xl);
}

.product-tabs-wrapper .tab-pane h2 {
    font-size: 1.125rem;
    color: var(--c-navy);
    margin-bottom: var(--space-md);
}

.product-tabs-wrapper .tab-pane h3 {
    font-size: 1rem;
    color: var(--c-navy);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.product-tabs-wrapper .tab-pane table th {
    width: 35%;
}

/* Responsive */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-info {
        border-left: none;
        border-top: 1px solid var(--c-border);
    }

    .product-gallery {
        position: static;
        min-height: 450px;
    }

    .product-gallery .splide,
    .product-gallery .splide__track {
        min-height: 450px;
    }
}

/* Accordion elements hidden by default — only shown on mobile below */
.tab-accordion-heading,
.tab-accordion-body {
    display: none;
}

/* Mobile: tabs → stacked sections */
@media (max-width: 576px) {
    .product-tabs-wrapper .nav-tabs {
        display: none;
    }

    .product-tabs-wrapper .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }

    .tab-accordion-heading {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.875rem var(--space-md);
        background: var(--c-surface-alt);
        border: 1px solid var(--c-border);
        border-radius: var(--radius);
        margin-bottom: var(--space-sm);
        font-weight: var(--fw-bold);
        cursor: pointer;
        color: var(--c-navy);
    }

    .tab-accordion-heading.is-open {
        background: var(--c-navy);
        color: var(--c-white);
        border-color: var(--c-navy);
    }

    .tab-accordion-heading::after {
        content: '+';
        font-size: 1.25rem;
        font-weight: var(--fw-normal);
    }

    .tab-accordion-heading.is-open::after {
        content: '−';
    }

    .tab-accordion-body {
        display: none;
        padding: var(--space-md) 0 var(--space-lg);
    }

    .tab-accordion-body.is-open {
        display: block;
    }
}


/* =============================================================================
   12. PRODUCTS LISTING PAGE
   ============================================================================= */

.products-listing {
    padding: var(--space-xl) 0;
}

.products-listing__header {
    margin-bottom: var(--space-2xl);
}

.products-listing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 900px) {
    .products-listing__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-listing__grid {
        grid-template-columns: 1fr;
    }
}


/* =============================================================================
   13. NEWS LISTING PAGE
   ============================================================================= */

.news-listing {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.news-card {
    display: flex;
    gap: var(--space-xl);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    max-height: 250px;
}

.news-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.news-card__img {
    flex-shrink: 0;
    width: 280px;
    overflow: hidden;
}

.news-card__img a {
    display: block;
    height: 100%;
}

.news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card__img img {
    transform: scale(1.03);
}

.news-card__body {
    flex: 1;
    padding: var(--space-xl) var(--space-xl) var(--space-xl) 0;
    display: flex;
    flex-direction: column;
}

.news-card--no-image .news-card__body {
    padding-left: var(--space-xl);
}

.news-card__date {
    font-size: 0.8rem;
    font-weight: var(--fw-bold);
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.news-card__title {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    color: var(--c-navy);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
}

.news-card__title a:hover {
    color: var(--c-amber);
}

.news-card__excerpt {
    font-size: 0.9375rem;
    color: var(--c-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    flex: 1;
}

.news-card__readmore {
    font-size: 0.875rem;
    font-weight: var(--fw-bold);
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    align-self: flex-start;
}

.news-card__readmore:hover {
    color: var(--c-navy);
    text-decoration: none;
}

@media (max-width: 640px) {
    .news-card {
        flex-direction: column;
    }
    .news-card__img {
        width: 100%;
        height: 220px;
    }
    .news-card__body {
        padding: var(--space-lg);
    }
}

/* Pagination */
.pagination-wrap {
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: center;
}

/* Joomla pagination — matches Joomla 6 output: ul.pagination > li.page-item > a/span.page-link */
.pagination {
    display: flex;
    gap: var(--space-xs);
    list-style: none;
    padding: 0;
    margin: 0 !important;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hide disabled nav buttons (unclickable on first/last page) */
.pagination .disabled.page-item {
    display: none;
}

/* Joomla icon font not loaded — replace with CSS text arrows */
.pagination .icon-angle-left::before  { content: '‹'; }
.pagination .icon-angle-right::before { content: '›'; }
.pagination .icon-first::before,
.pagination .icon-angle-double-left::before  { content: '«'; }
.pagination .icon-last::before,
.pagination .icon-angle-double-right::before { content: '»'; }

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    font-weight: var(--fw-semibold);
    color: var(--c-navy);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    text-decoration: none;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.pagination .page-item a.page-link:hover {
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-white);
    text-decoration: none;
}

.pagination .active.page-item .page-link {
    background: var(--c-navy);
    border-color: var(--c-navy);
    color: var(--c-white);
}


/* =============================================================================
   14. FIND AN AGENT PAGE
   ============================================================================= */

.agent-map-section {
    padding: var(--space-xl) 0;
}

.agent-map-section__header {
    margin-bottom: var(--space-xl);
}

/* Region tabs above map */
.agent-region-tabs {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.agent-region-tabs .btn {
    font-size: 0.8125rem;
}

.agent-region-tabs .btn.active {
    background-color: var(--c-navy);
    border-color: var(--c-navy);
    color: var(--c-white);
}

/* Leaflet map container */
#agent-map {
    width: 100%;
    height: 540px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-surface-alt);
}

@media (max-width: 768px) {
    #agent-map {
        height: 380px;
    }
}

/* Leaflet popup styling */
.agent-popup {
    min-width: 240px;
    max-width: 300px;
    font-family: var(--font-base);
    font-size: 0.875rem;
    line-height: 1.5;
}

.agent-popup__region {
    font-size: 0.6875rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 0.2em;
}

.agent-popup__name {
    font-size: 1rem;
    font-weight: var(--fw-bold);
    color: var(--c-navy);
    margin-bottom: 0.4em;
}

.agent-popup__address {
    color: var(--c-text-muted);
    margin-bottom: 0.5em;
    font-size: 0.8125rem;
}

.agent-popup__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem var(--space-md);
    margin-bottom: 0.5em;
    font-size: 0.8125rem;
}

.agent-popup__contact a {
    color: var(--c-amber);
}

.agent-popup__contact a:hover {
    color: var(--c-amber-dark);
}

.agent-popup__map-link {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--c-navy);
    font-weight: var(--fw-medium);
    text-decoration: underline;
    margin-top: 0.25rem;
}


/* =============================================================================
   15. CONTACT PAGE
   ============================================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-details h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.contact-details address {
    font-style: normal;
    font-size: 0.9375rem;
    color: var(--c-text-muted);
    line-height: 1.8;
}

.contact-details a {
    color: var(--c-amber);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}


/* =============================================================================
   16. CUSTOMER LOGIN PAGE
   ============================================================================= */

.login-page {
    max-width: 1080px;
    margin-inline: auto;
}

.login-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 580px) {
    .login-options {
        grid-template-columns: 1fr;
    }
}

.login-option {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.login-option--portal {
    border-top: 3px solid var(--c-amber);
}

.login-option--external {
    border-top: 3px solid var(--c-navy);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-option__title {
    font-size: 1rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-sm);
}

.login-option__desc {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    margin-bottom: var(--space-lg);
}


/* =============================================================================
   17. FOOTER
   ============================================================================= */

.site-footer {
    background: var(--c-surface-alt);
    color: var(--c-text-muted);
    padding: var(--space-3xl) 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--c-border);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col--newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.footer-col h4,
.footer-col h5 {
    color: var(--c-navy);
    font-size: 0.875rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: var(--space-md);
}

.site-footer :is(h1, h2, h3, h4, h5, h6, label, legend),
.site-footer .postbox-form-title,
.site-footer .postbox-field label,
.site-footer .postbox-field legend {
    color: var(--c-navy);
}

.site-footer .postbox-form-wrapper--newsletter .postbox-form-title,
.site-footer .postbox-form-wrapper--newsletter .postbox-option,
.site-footer .postbox-form-wrapper--newsletter .postbox-consent-text {
    color: var(--c-navy) !important;
}

.site-footer .postbox-form-wrapper--newsletter .postbox-required {
    color: var(--c-amber) !important;
}

.footer-col p,
.footer-col address,
.site-footer .postbox-field,
.site-footer .postbox-field-description {
    font-size: 0.875rem;
    font-style: normal;
    line-height: 1.8;
    color: var(--c-text-muted);
    margin-bottom: 0;
}

.footer-col a,
.site-footer .postbox-field a {
    color: var(--c-navy);
    font-size: 0.875rem;
}

.footer-col a:hover,
.site-footer .postbox-field a:hover {
    color: var(--c-amber);
    text-decoration: none;
}

.footer-socials {
    max-width: 28rem;
    margin-inline: auto;
    padding-top: 1.15rem;
    text-align: center;
}

.footer-contact address {
    margin-bottom: var(--space-md);
}

.footer-contact h4 {
    color: #0d47a1;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: var(--fw-medium);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: var(--space-md);
}

.footer-contact p,
.footer-contact address {
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.45;
}

.footer-contact a {
    color: #2f73f6;
    font-weight: var(--fw-medium);
}

.footer-socials__intro {
    margin-bottom: var(--space-md);
}

.footer-socials__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0;
    margin: 0;
}

.footer-socials__email {
    margin-top: var(--space-md);
    text-align: center;
}

.footer-socials__email a {
    color: #2f73f6;
    font-size: 0.95rem;
    font-weight: var(--fw-medium);
}

.footer-socials__email a:hover,
.footer-socials__email a:focus-visible {
    color: var(--c-amber);
    text-decoration: none;
}

.footer-socials__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(26,35,50,0.2);
    border-radius: var(--radius);
    background: var(--c-white);
    color: var(--c-navy);
    text-decoration: none;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.footer-socials__link svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    fill: currentColor;
}

.footer-socials__link svg :is(rect, circle) {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-socials__link svg path {
    fill: currentColor;
}

.footer-socials__link svg rect + path {
    fill: var(--c-white);
}

.footer-socials__link .footer-socials__icon--youtube :is(rect, circle) {
    fill: currentColor;
    stroke: none;
}

.footer-socials__link .footer-socials__youtube-shape {
    fill: currentColor;
}

.footer-socials__link .footer-socials__youtube-play {
    fill: var(--c-white);
}

.site-footer .footer-socials__link:hover,
.site-footer .footer-socials__link:focus-visible {
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-navy);
    text-decoration: none;
}

.site-footer .footer-socials__link:hover svg path,
.site-footer .footer-socials__link:focus-visible svg path {
    fill: var(--c-navy);
}

.site-footer .footer-socials__link:hover svg :is(rect, circle),
.site-footer .footer-socials__link:focus-visible svg :is(rect, circle) {
    stroke: var(--c-navy);
}

.site-footer .footer-socials__link:hover .footer-socials__youtube-play,
.site-footer .footer-socials__link:focus-visible .footer-socials__youtube-play {
    fill: var(--c-white);
}

/* Footer nav list */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Footer bottom */
.footer-bottom {
    padding: var(--space-lg) 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--c-text-muted);
    margin: 0;
    text-align: center;
}

/* Minimal footer (error/offline pages) */
.site-footer--minimal {
    padding-top: var(--space-lg);
}

.site-footer--minimal .footer-bottom {
    border-top: none;
}


/* =============================================================================
   18. UTILITY CLASSES
   ============================================================================= */

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

.text-muted   { color: var(--c-text-muted); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-amber   { color: var(--c-amber); }
.text-navy    { color: var(--c-navy); }
.text-white   { color: var(--c-white); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-xl); }

.divider {
    border: none;
    border-top: 1px solid var(--c-border);
    margin: var(--space-xl) 0;
}

/* Section labels */
.label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.2em 0.6em;
    border-radius: var(--radius);
    background: var(--c-surface-alt);
    color: var(--c-text-muted);
}

.label--amber {
    background: rgba(232,130,12,0.12);
    color: var(--c-amber-dark);
}

/* Joomla system messages */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid transparent;
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
}

.alert-info    { background: #e8f4fd; border-color: #3b82f6; color: #1e40af; }
.alert-success { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.alert-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.alert-danger,
.alert-error   { background: #fef2f2; border-color: #ef4444; color: #991b1b; }


/* =============================================================================
   19. JOOMLA OVERRIDES
   ============================================================================= */

/* Remove default Joomla margins */
.com-content-article__body,
.article-info {
    margin: 0;
}

.article-info-term {
    display: none; /* "Written by", "Published in" labels */
}

/* Joomla intro/full article text */
.com-content-article__intro-text,
.com-content-article__full-text {
    line-height: var(--lh-base);
}

/* Joomla tags */
.tags-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tags-list li a {
    display: inline-block;
    padding: 0.25em 0.7em;
    font-size: 0.8125rem;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    color: var(--c-text-muted);
    transition: border-color var(--transition), color var(--transition);
}

.tags-list li a:hover {
    border-color: var(--c-amber);
    color: var(--c-amber);
    text-decoration: none;
}

/* Error page */
.error-page {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-h) - 120px);
}

.error-content {
    text-align: center;
    max-width: 480px;
    margin-inline: auto;
}

.error-code {
    font-size: clamp(4rem, 12vw, 8rem);
    color: var(--c-border);
    line-height: 1;
    margin-bottom: var(--space-md);
}

/* Offline page */
.offline-page {
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.offline-content {
    max-width: 480px;
    margin-inline: auto;
    text-align: center;
    padding: var(--space-2xl) 0;
}


/* =============================================================================
   20. LOGIN PAGE
   ============================================================================= */

.login-page {
    padding-block: var(--space-xl);
}

.login-columns {
    display: flex;
    gap: var(--space-xl);
}

.login-panel {
    flex: 1 1 0;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-xl);
}

.login-panel__title {
    font-size: 1.125rem;
    font-weight: var(--fw-bold);
    color: var(--c-navy);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--c-amber);
}

/* Form inputs */
.login-panel .field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--fw-medium);
    color: var(--c-text);
    margin-bottom: 0.3rem;
}

.login-panel .field-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-base);
    font-size: 0.9375rem;
    color: var(--c-text);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.login-panel .field-input:focus {
    outline: none;
    border-color: var(--c-amber);
    box-shadow: 0 0 0 3px rgba(232, 130, 12, 0.15);
}

.login-panel .field-group {
    margin-bottom: var(--space-md);
}

.login-panel .field-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
}

.login-panel .field-links {
    margin-top: var(--space-md);
    font-size: 0.8125rem;
    color: var(--c-text-muted);
}

.login-panel .field-links a {
    color: var(--c-text-muted);
}

.login-panel .field-links a:hover {
    color: var(--c-amber);
}

/* Iframe fills the card */
.login-panel iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* Stack on narrow screens */
@media (max-width: 680px) {
    .login-columns {
        flex-direction: column;
    }

    .login-panel {
        padding: var(--space-lg);
    }
}


/* =============================================================================
   21. CUSTOMER ACCOUNT PAGES
   ============================================================================= */

/* Keep all core com_users views readable and visually consistent. */
.content-area > :is(
    .com-users-profile,
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) {
    width: min(100%, 760px);
    margin-inline: auto;
    padding-block: var(--space-xl);
}

.content-area > .com-users-profile {
    width: min(100%, 900px);
}

:is(
    .com-users-profile,
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) > h1,
:is(
    .com-users-profile,
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) > .page-header h1 {
    margin-bottom: var(--space-sm);
}

:is(.com-users-remind, .com-users-reset, .com-users-registration) > p {
    max-width: 62ch;
    color: var(--c-text-muted);
    margin-bottom: var(--space-lg);
}

/* Cards used by forms and read-only profile sections. */
:is(
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) form,
.com-users-profile .profile,
.com-users-profile > fieldset {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-amber);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-xl);
    margin: var(--space-lg) 0 0;
}

.com-users-profile__edit form,
.com-users-registration form {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

:is(.com-users-profile__edit, .com-users-registration) fieldset {
    min-width: 0;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-amber);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-xl);
    margin: 0 0 var(--space-lg);
}

:is(.com-users-remind, .com-users-reset) fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

:is(.com-users-remind, .com-users-reset) legend {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0 0 var(--space-lg);
    color: var(--c-text-muted);
    font-size: 0.9375rem;
    line-height: var(--lh-base);
}

:is(.com-users-profile, .com-users-profile__edit, .com-users-registration) legend {
    float: none;
    width: auto;
    max-width: 100%;
    padding: 0 var(--space-sm);
    color: var(--c-navy);
    font-size: 0.875rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Joomla form layout. */
:is(
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) .control-group {
    margin-bottom: var(--space-lg);
}

:is(
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) .control-label {
    margin-bottom: 0.35rem;
}

:is(
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) label {
    display: inline-block;
    color: var(--c-text);
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
}

:is(
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--c-text);
    background: var(--c-white);
    border: 1px solid #cbd1d8;
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

:is(
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) :is(input, select, textarea):focus {
    outline: 0;
    border-color: var(--c-amber);
    box-shadow: 0 0 0 3px rgba(232, 130, 12, 0.15);
}

:is(.com-users-profile__edit, .com-users-registration) input[readonly],
:is(.com-users-profile__edit, .com-users-registration) input:disabled {
    color: var(--c-text-muted);
    background: var(--c-surface-alt);
    cursor: not-allowed;
}

:is(.com-users-profile__edit, .com-users-registration) .form-text,
:is(.com-users-profile__edit, .com-users-registration) .small,
:is(.com-users-profile__edit, .com-users-registration) small {
    display: block;
    margin-top: 0.35rem;
    color: var(--c-text-muted);
    font-size: 0.8125rem;
}

:is(.com-users-profile__edit, .com-users-registration) .star {
    color: #b42318;
}

:is(.com-users-profile__edit, .com-users-registration, .com-users-reset, .com-users-remind) .invalid,
:is(.com-users-profile__edit, .com-users-registration, .com-users-reset, .com-users-remind) [aria-invalid="true"] {
    border-color: #b42318;
}

:is(.com-users-profile__edit, .com-users-registration, .com-users-reset, .com-users-remind) label.invalid {
    color: #b42318;
    border: 0;
}

/* Password controls supplied by Joomla's password field. */
.content-area .password-group .input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
}

.content-area .password-group .input-group > input {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    border-radius: var(--radius) 0 0 var(--radius);
}

.content-area .password-group .input-group > button {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 2.75rem;
    padding-inline: 0.75rem;
    border: 1px solid #cbd1d8;
    border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--c-navy);
    background: var(--c-surface-alt);
    cursor: pointer;
}

.content-area .password-group .input-password-toggle :is(.icon-eye, .icon-eye-slash) {
    position: relative;
    display: block;
    width: 1.125rem;
    height: 0.75rem;
    margin: 0 auto;
}

.content-area .password-group .input-password-toggle :is(.icon-eye, .icon-eye-slash)::before {
    position: absolute;
    inset: 0.0625rem 0.1875rem;
    content: '';
    border: 2px solid currentColor;
    border-radius: 70% 0;
    transform: rotate(45deg);
}

.content-area .password-group .input-password-toggle :is(.icon-eye, .icon-eye-slash)::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.25rem;
    height: 0.25rem;
    content: '';
    background: currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.content-area .password-group .input-password-modify {
    background: var(--c-navy);
    border-color: var(--c-navy);
    color: var(--c-white);
}

.content-area .password-group .input-password-modify:hover,
.content-area .password-group .input-password-modify:focus-visible {
    background: var(--c-amber-dark);
    border-color: var(--c-amber-dark);
}

:is(.com-users-profile__edit, .com-users-registration, .com-users-reset) .password-strength {
    margin-top: var(--space-sm);
}

:is(.com-users-profile__edit, .com-users-registration, .com-users-reset) .password-strength .progress {
    height: 0.375rem;
    overflow: hidden;
    background: var(--c-border);
    border-radius: 999px;
}

:is(.com-users-profile__edit, .com-users-registration, .com-users-reset) .password-strength .progress-bar {
    height: 100%;
    border-radius: inherit;
}

/* Form actions and Joomla's profile toolbar. */
:is(.com-users-profile__edit, .com-users-registration) .btn-toolbar,
:is(.com-users-remind, .com-users-reset, .com-users-logout) .control-group:last-child .controls,
.com-users-profile .btn-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

:is(.com-users-profile__edit, .com-users-registration) .btn-toolbar {
    justify-content: flex-end;
    margin-top: var(--space-lg);
}

.com-users-profile > ul,
.profile-edit > ul,
#toolbar > ul {
    display: flex;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
}

.com-users-profile > ul li,
.profile-edit > ul li,
#toolbar > ul li {
    list-style: none;
}

:is(
    .com-users-profile,
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) :is(.btn-secondary, .btn-danger) {
    background: transparent;
    border-color: var(--c-navy);
    color: var(--c-navy);
}

:is(
    .com-users-profile,
    .com-users-profile__edit,
    .com-users-remind,
    .com-users-reset,
    .com-users-registration,
    .com-users-logout
) :is(.btn-secondary, .btn-danger):is(:hover, :focus-visible) {
    background: var(--c-navy);
    border-color: var(--c-navy);
    color: var(--c-white);
}

/* Read-only profile name/value rows. */
.com-users-profile dl {
    display: grid;
    grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
    margin: 0;
}

.com-users-profile dt,
.com-users-profile dd {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--c-border);
}

.com-users-profile dt {
    padding-right: var(--space-lg);
    color: var(--c-text-muted);
    font-size: 0.8125rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}

.com-users-profile dd {
    min-width: 0;
    margin: 0;
    color: var(--c-text);
    font-size: 0.9375rem;
    overflow-wrap: anywhere;
}

.com-users-profile dl > :nth-last-child(-n + 2) {
    border-bottom: 0;
}

@media (max-width: 576px) {
    .content-area > :is(
        .com-users-profile,
        .com-users-profile__edit,
        .com-users-remind,
        .com-users-reset,
        .com-users-registration,
        .com-users-logout
    ) {
        padding-block: var(--space-md);
    }

    :is(
        .com-users-profile__edit,
        .com-users-remind,
        .com-users-reset,
        .com-users-registration,
        .com-users-logout
    ) form,
    :is(.com-users-profile__edit, .com-users-registration) fieldset,
    .com-users-profile .profile,
    .com-users-profile > fieldset {
        padding: var(--space-lg);
    }

    .com-users-profile dl {
        display: block;
    }

    .com-users-profile dt {
        padding-bottom: 0.125rem;
        border-bottom: 0;
    }

    .com-users-profile dd {
        padding-top: 0;
    }

    .com-users-profile dl > :nth-last-child(2) {
        border-bottom: 0;
    }

    :is(.com-users-profile__edit, .com-users-registration) .btn-toolbar {
        justify-content: stretch;
    }

    :is(.com-users-profile__edit, .com-users-registration) .btn-toolbar .btn {
        flex: 1 1 auto;
        text-align: center;
    }
}


/* =============================================================================
   22. PRINT
   ============================================================================= */

@media print {
    .site-header,
    .topbar,
    .hero,
    .homepage-cta,
    .site-footer,
    .breadcrumbs-wrap,
    .product-info__cta,
    #agent-map {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.75em;
        color: #666;
    }
}

/* =====================================================================
   Content Blocks layout (Other Services style pages)
   ===================================================================== */
.content-block {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #dee2e6;
}

.content-block:last-child {
    border-bottom: none;
}

.content-block__image,
.content-block__text {
    flex: 1 1 50%;
}

.content-block__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .content-block {
        flex-direction: column;
    }
}

/* =============================================================================
   Add Training User module
   ============================================================================= */
.add-training-user {
    max-width: 540px;
}

.add-training-user__heading {
    font-size: 1.25rem;
    color: var(--c-navy);
    margin-bottom: var(--space-lg);
}

.add-training-user__msg {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
}

.add-training-user__msg--success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.add-training-user__msg--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.atu-field {
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.atu-field label {
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    color: var(--c-navy);
}

.atu-field input {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--c-text);
    background: var(--c-white);
    transition: border-color var(--transition);
}

.atu-field input:focus {
    outline: none;
    border-color: var(--c-amber);
}

.atu-field__hint {
    font-size: 0.8rem;
    color: var(--c-text-muted);
}

.atu-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.atu-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--fw-normal);
    cursor: pointer;
}

.atu-actions {
    margin-top: var(--space-lg);
}


/* =============================================================================
   OFFLINE PAGE
   ============================================================================= */

.page-offline {
    margin: 0;
    padding: 0;
}

.offline-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-navy);
    background-image: linear-gradient(135deg, #1a2332 0%, #243044 100%);
    padding: var(--space-xl);
}

.offline-card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-2xl);
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.offline-logo img {
    display: block;
    max-width: min(100%, 260px);
    max-height: 120px;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.offline-divider {
    width: 48px;
    height: 3px;
    background: var(--c-amber);
    margin: var(--space-xl) auto;
    border-radius: 2px;
}

.offline-message {
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.offline-login {
    border-top: 1px solid var(--c-border);
    padding-top: var(--space-lg);
    text-align: left;
}

.offline-card > .offline-login:first-child {
    padding-top: 0;
    border-top: 0;
}

.offline-login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.offline-login-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.offline-login-form__field label {
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    color: var(--c-navy);
}

.offline-login-form__field input {
    padding: 0.65rem 0.875rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--c-text);
    background: #fafafa;
    transition: border-color var(--transition);
}

.offline-login-form__field input:focus {
    outline: none;
    border-color: var(--c-amber);
    box-shadow: 0 0 0 3px rgba(230,160,30,0.15);
}

.offline-login-form .btn-primary {
    align-self: flex-start;
    margin-top: var(--space-sm);
}


/* =============================================================================
   CONTACT PAGE
   ============================================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: start;
    margin-top: var(--space-xl);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Contact info panel */
.contact-info {
    background: var(--c-navy);
    color: var(--c-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.contact-info__heading {
    font-size: 1.25rem;
    color: var(--c-white);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--c-amber);
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
}

.contact-info__item:last-child {
    margin-bottom: 0;
}

.contact-info__label {
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-amber-light);
    margin-bottom: 0.25rem;
}

.contact-info__value {
    color: rgba(255,255,255,0.88);
    line-height: 1.5;
}

.contact-info__value a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
}

.contact-info__value a:hover {
    color: var(--c-white);
}

/* Form panel */
.contact-form-wrap {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

/* PostBox Pro form styling */

/* Strip PostBox's own card/border chrome — we provide the wrapper */
.contact-form-wrap .postbox-form-wrapper {
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.contact-form-wrap .postbox-form-header {
    margin-bottom: var(--space-lg);
}

.contact-form-wrap .postbox-form-title {
    font-size: 1.25rem;
    color: var(--c-navy);
    margin-bottom: 0;
}

/* Field spacing */
.contact-form-wrap .postbox-field {
    margin-bottom: var(--space-md);
}

/* Labels */
.contact-form-wrap .postbox-field label,
.contact-form-wrap .postbox-field legend {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    color: var(--c-navy);
    margin-bottom: 0.375rem;
}

.contact-form-wrap .postbox-required {
    color: var(--c-amber);
    margin-left: 0.2em;
}

/* Inputs, selects, textareas */
.contact-form-wrap .postbox-field input[type="text"],
.contact-form-wrap .postbox-field input[type="email"],
.contact-form-wrap .postbox-field input[type="tel"],
.contact-form-wrap .postbox-field input[type="number"],
.contact-form-wrap .postbox-field input[type="url"],
.contact-form-wrap .postbox-field select,
.contact-form-wrap .postbox-field textarea {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--c-text);
    background: #fafafa;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}

.contact-form-wrap .postbox-field input:focus,
.contact-form-wrap .postbox-field select:focus,
.contact-form-wrap .postbox-field textarea:focus {
    outline: none;
    border-color: var(--c-amber);
    box-shadow: 0 0 0 3px rgba(230,160,30,0.15);
    background: var(--c-white);
}

.contact-form-wrap .postbox-field textarea {
    min-height: 130px;
    resize: vertical;
}

/* Error state */
.contact-form-wrap .postbox-field--error input,
.contact-form-wrap .postbox-field--error select,
.contact-form-wrap .postbox-field--error textarea {
    border-color: #dc2626;
}

.contact-form-wrap .postbox-field-error {
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 0.3rem;
}

/* Submit button */
.contact-form-wrap .postbox-button {
    display: inline-block;
    padding: 0.7rem 2rem;
    background-color: var(--c-amber);
    border: 2px solid var(--c-amber);
    border-radius: var(--radius);
    color: var(--c-white);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition);
}

.contact-form-wrap .postbox-button:hover {
    background-color: var(--c-amber-dark);
    border-color: var(--c-amber-dark);
}

/* Success / error messages */
.contact-form-wrap .postbox-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

.contact-form-wrap .postbox-message--success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.contact-form-wrap .postbox-message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
