/* RED SEA IMPORT EXPORT CO. — brand styles */

:root {
    --navy: #003F52;
    --navy-dark: #064F66;
    --brand-red: #C5162E;
    --brand-red-dark: #A31226;
    --off-white: #F7F2E8;
    --white: #FFFFFF;
    --text-dark: #172A32;
    --text-muted: #4A5C64;
    --border-soft: rgba(3, 63, 82, 0.12);
    --shadow-soft: 0 12px 40px rgba(0, 63, 82, 0.1);
    --radius: 4px;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.75rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
    --header-h: 78px;
    --font-ar: "Cairo", sans-serif;
    --font-en: "Manrope", "Cairo", sans-serif;
    --focus-ring: 0 0 0 3px rgba(197, 22, 46, 0.35);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-ar);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html[dir="ltr"] body {
    font-family: var(--font-en);
}

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

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--brand-red);
    color: var(--white);
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-weight: 700;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 64px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .container {
        padding-inline: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-inline: 20px;
    }
}

h1, h2, h3 {
    line-height: 1.25;
    margin: 0 0 var(--space-md);
    color: var(--navy);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p {
    margin: 0 0 var(--space-md);
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-muted {
    background: var(--off-white);
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.section-heading.animate {
    opacity: 1;
    transform: none;
}

.section-heading--light h2,
.section-heading--light .section-lead,
.section-heading--light .eyebrow {
    color: var(--white);
}

.eyebrow {
    display: inline-block;
    margin-bottom: var(--space-sm);
    color: var(--brand-red);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-lead {
    margin: 0 auto;
    max-width: 60ch;
}

section {
    padding: var(--space-xxl) 0;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-primary {
    background: var(--brand-red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brand-red-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

/* Header */
header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
    border-bottom-color: var(--border-soft);
    box-shadow: 0 8px 30px rgba(0, 63, 82, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--navy);
}

.logo img {
    width: 52px;
    height: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.logo-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--navy-dark);
    opacity: 0.85;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    display: block;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

.language-toggle {
    margin-inline-start: 0.5rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.language-toggle:hover {
    background: var(--navy-dark);
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--white);
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 42, 50, 0.45);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    height: 100vh;
    margin: 0;
    padding: calc(var(--header-h) + 1rem) 1.25rem 2rem;
    list-style: none;
    background: var(--white);
    border-inline-start: 3px solid var(--brand-red);
    box-shadow: var(--shadow-soft);
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(110%);
    transition: transform 0.3s ease;
    visibility: hidden;
}

.mobile-menu[hidden],
.mobile-menu-overlay[hidden] {
    display: none !important;
}

html[dir="ltr"] .mobile-menu {
    transform: translateX(110%);
}

html[dir="rtl"] .mobile-menu {
    transform: translateX(-110%);
}

.mobile-menu.active,
html[dir="ltr"] .mobile-menu.active,
html[dir="rtl"] .mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu a {
    display: block;
    padding: 0.9rem 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    border-bottom: 1px solid var(--border-soft);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
    color: var(--brand-red);
}

.mobile-language {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.mobile-language .language-toggle {
    width: 100%;
    justify-content: center;
    margin-inline-start: 0;
}

/* Hero — full-bleed background; spacing only on inner content */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
    color: var(--white);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Keep darkening on the physical left so products stay visible on the right */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 63, 82, 0.88) 0%, rgba(0, 63, 82, 0.62) 42%, rgba(0, 63, 82, 0.18) 72%, rgba(0, 63, 82, 0.08) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding-block: calc(var(--header-h) + 1.5rem) 2.5rem;
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    max-width: 580px;
    margin-left: 0;
    margin-right: auto; /* pin to physical left in both LTR and RTL */
    text-align: start;
    animation: heroIn 0.9s ease both;
}

.hero-brand {
    margin: 0 0 0.85rem;
    color: rgba(247, 242, 232, 0.92);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 3.25rem);
    line-height: 1.2;
    margin: 0 0 1.15rem;
    overflow-wrap: break-word;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.98rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.hero-actions .btn {
    max-width: 100%;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

/* Intro */
.intro-section {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-xl) 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    align-items: center;
}

.intro-section h2 {
    color: var(--white);
    margin: 0;
    position: relative;
    padding-inline-start: 1rem;
}

.intro-section h2::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 3px;
    background: var(--brand-red);
}

.intro-section p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text,
.about-image {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text.animate,
.about-image.animate {
    opacity: 1;
    transform: none;
}

.about-text p:first-child {
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 600;
}

.about-image {
    overflow: hidden;
    border-radius: var(--radius);
}

.about-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.product-card {
    background: transparent;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.product-card.animate {
    opacity: 1;
    transform: none;
}

.product-image {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--off-white);
    margin-bottom: var(--space-md);
}

.product-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

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

.product-info {
    text-align: start;
}

.product-name {
    margin-bottom: 0.4rem;
    position: relative;
    padding-bottom: 0.55rem;
}

.product-name::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 2.5rem;
    height: 2px;
    background: var(--brand-red);
}

.product-info p {
    margin: 0;
    font-size: 0.98rem;
}

/* Features / Why us */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature {
    text-align: start;
    padding: var(--space-lg) 0 0;
    border-top: 2px solid var(--brand-red);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.feature.animate {
    opacity: 1;
    transform: none;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--navy);
    font-size: 1.35rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

.feature p {
    margin: 0;
    font-size: 0.98rem;
}

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

.trade-item {
    padding: var(--space-lg);
    background: var(--off-white);
    border-inline-start: 3px solid var(--navy);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.25s ease;
}

.trade-item.animate {
    opacity: 1;
    transform: none;
}

.trade-item:hover {
    border-inline-start-color: var(--brand-red);
}

.trade-item p {
    margin: 0;
}

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

.country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 180px;
    padding: var(--space-lg);
    background: var(--white);
    border-top: 3px solid var(--navy);
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.country-card.animate {
    opacity: 1;
    transform: none;
}

.country-card:hover {
    border-top-color: var(--brand-red);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.country-flag {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--off-white);
    border: 1px solid var(--border-soft);
}

.flag-emoji {
    font-size: 2.4rem;
    line-height: 1;
}

.country-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

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

    .country-card {
        min-height: 150px;
        padding: var(--space-md);
    }

    .country-flag {
        width: 60px;
        height: 60px;
    }

    .flag-emoji {
        font-size: 2rem;
    }
}

/* Values */
.values-section {
    background:
        linear-gradient(120deg, rgba(0, 63, 82, 0.92), rgba(6, 79, 102, 0.88)),
        url("../images/red-sea/optimized/red-sea-hero-banner.jpg") center / cover no-repeat;
    color: var(--white);
}

.values-inner {
    max-width: 760px;
}

.values-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.values-list li {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-weight: 600;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.values-list li.animate {
    opacity: 1;
    transform: none;
}

.values-list li::before {
    content: "";
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-inline-end: 0.7rem;
    background: var(--brand-red);
    vertical-align: middle;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: var(--space-lg);
    background: var(--white);
    border-top: 3px solid var(--navy);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-item.animate {
    opacity: 1;
    transform: none;
}

.contact-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
}

.contact-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
    margin: 0;
    color: var(--text-muted);
    text-decoration: none;
    word-break: break-word;
}

.contact-value {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.contact-details p + p {
    margin-top: 0.35rem;
}

.contact-details a:hover {
    color: var(--brand-red);
}

.contact-form {
    background: var(--white);
    padding: var(--space-lg);
    border: 1px solid var(--border-soft);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    font: inherit;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--navy);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

.gallery-preview-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

/* Homepage modern horizontal multi-image carousel */
.home-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0 3.25rem;
}

.home-slider__viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
    cursor: grab;
    direction: ltr; /* keep carousel math consistent in AR/EN */
}

.home-slider__viewport.is-dragging {
    cursor: grabbing;
}

.home-slider__track {
    display: flex;
    gap: 1.1rem;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    direction: ltr;
}

.home-slider__slide {
    flex: 0 0 calc((100% - 2.2rem) / 3);
    min-width: 0;
}

.home-slider__frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 14px 36px rgba(0, 63, 82, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-slider__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 63, 82, 0.28) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.home-slider__slide:hover .home-slider__frame {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(0, 63, 82, 0.18);
}

.home-slider__slide:hover .home-slider__frame::after {
    opacity: 1;
}

.home-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    user-select: none;
}

.home-slider__slide:hover img {
    transform: scale(1.06);
}

.home-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 63, 82, 0.25);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.home-slider__btn--prev {
    inset-inline-start: 0;
}

.home-slider__btn--next {
    inset-inline-end: 0;
}

.home-slider__btn:hover,
.home-slider__btn:focus-visible {
    background: var(--brand-red);
    transform: translateY(-50%) scale(1.05);
}

.home-slider__btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

html[dir="rtl"] .home-slider__btn i {
    transform: scaleX(-1);
}

.home-slider__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.35rem;
}

.home-slider__dot {
    width: 1.65rem;
    height: 4px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(0, 63, 82, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, width 0.25s ease;
}

.home-slider__dot.is-active {
    width: 2.4rem;
    background: var(--brand-red);
}

@media (max-width: 1024px) {
    .home-slider {
        padding: 0 2.75rem;
    }

    .home-slider__slide {
        flex: 0 0 calc((100% - 1.1rem) / 2);
    }

    .home-slider__track {
        gap: 1.1rem;
    }
}

@media (max-width: 640px) {
    .home-slider {
        padding: 0 2.4rem;
    }

    .home-slider__slide {
        flex: 0 0 82%;
    }

    .home-slider__track {
        gap: 0.85rem;
    }

    .home-slider__btn {
        width: 40px;
        height: 40px;
    }

    .home-slider__frame {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-slider__track,
    .home-slider__frame,
    .home-slider__slide img {
        transition: none;
    }
}

.page-hero {
    padding: calc(var(--header-h) + 2.5rem) 0 var(--space-xl);
    background:
        linear-gradient(120deg, rgba(0, 63, 82, 0.94), rgba(6, 79, 102, 0.88)),
        url("../images/red-sea/optimized/red-sea-hero-banner.jpg") center / cover no-repeat;
    color: var(--white);
    text-align: center;
}

.page-hero .eyebrow {
    color: rgba(247, 242, 232, 0.9);
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.85rem;
}

.page-hero .section-lead {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    max-width: 40rem;
}

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

nav a[aria-current="page"] {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

.page-gallery #gallery {
    padding-top: var(--space-xl);
}

/* ============================================
   GALLERY GRID + LIGHTBOX
   ============================================ */

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

.gallery-card {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 63, 82, 0.16);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
    transform: scale(1.06);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 42, 50, 0.88);
}

.gallery-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: min(90vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.gallery-lightbox__figure {
    margin: 0;
    max-width: min(900px, calc(100% - 6rem));
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-lightbox__figure img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox__caption {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-align: center;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    border: none;
    cursor: pointer;
    color: var(--white);
    background: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox__close {
    position: absolute;
    top: -0.25rem;
    inset-inline-end: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    z-index: 2;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
    background: var(--brand-red);
}

.gallery-lightbox__nav {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.1rem;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

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

    .gallery-lightbox__panel {
        gap: 0.4rem;
    }

    .gallery-lightbox__figure {
        max-width: calc(100% - 4.5rem);
    }

    .gallery-lightbox__nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-lightbox {
        padding: 0.75rem;
    }

    .gallery-lightbox__panel {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-lightbox__figure {
        order: 1;
        max-width: 100%;
        width: 100%;
    }

    .gallery-lightbox__prev {
        order: 2;
    }

    .gallery-lightbox__next {
        order: 3;
    }

    .gallery-lightbox__close {
        top: 0.5rem;
        inset-inline-end: 0.5rem;
    }
}

/* Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

.footer-logo img {
    width: 88px;
    height: auto;
    margin: 0 auto var(--space-sm);
}

.footer-logo h2 {
    color: var(--white);
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    margin: 0;
}

.footer-content > p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 36rem;
}

.copyright {
    width: 100%;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 992px) {
    .intro-grid,
    .about-content,
    .contact-container,
    .products-grid,
    .features,
    .trade-grid {
        grid-template-columns: 1fr 1fr;
    }

    .products-grid {
        gap: var(--space-md);
    }
}

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

    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        width: 42px;
    }

    .logo-name {
        font-size: 0.95rem;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        align-items: center;
    }

    .hero-inner {
        min-height: 100vh;
        min-height: 100dvh;
        align-items: center;
        padding-block: calc(var(--header-h) + 1.25rem) 2rem;
    }

    .hero-overlay {
        background:
            linear-gradient(
                105deg,
                rgba(0, 63, 82, 0.92) 0%,
                rgba(0, 63, 82, 0.78) 48%,
                rgba(0, 63, 82, 0.45) 100%
            );
    }

    .hero-content {
        max-width: 580px;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .hero-actions .btn {
        flex: 1 1 calc(50% - 0.4rem);
        min-width: min(100%, 10.5rem);
    }

    .intro-grid,
    .about-content,
    .contact-container,
    .products-grid,
    .features,
    .trade-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

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

    .product-card:hover .product-image img {
        transform: none;
    }
}

@media (max-width: 480px) {
    .logo-sub {
        display: none;
    }

    .hero h1 {
        font-size: clamp(1.55rem, 7.5vw, 2rem);
    }

    .hero-brand {
        margin-bottom: 0.7rem;
    }

    .hero-lead {
        margin-bottom: 1.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        flex: none;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .section-heading,
    .product-card,
    .feature,
    .trade-item,
    .contact-item,
    .about-text,
    .about-image,
    .values-list li {
        opacity: 1 !important;
        transform: none !important;
    }
}
