/* ============================================================
   Alrafahia Alddayima — style.css
   Mobile-first. No framework. Keep additions minimal.
   ============================================================ */

:root {
    --color-primary: #0d4f52;
    /* deep teal — trust / corporate */
    --color-primary-dark: #083638;
    --color-accent: #b5651d;
    /* copper — hardware / decorative warmth */
    --color-accent-dark: #954f14;
    --color-bg: #f4f2ee;
    /* warm stone */
    --color-surface: #ffffff;
    --color-text: #1e2a2a;
    --color-text-muted: #5b6664;
    --color-border: #e3ded5;
    --radius: 10px;
    --shadow-sm: 0 2px 8px rgba(13, 79, 82, 0.10);
    --shadow-md: 0 6px 20px rgba(13, 79, 82, 0.14);
    --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
    --container-w: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    line-height: 1.3;
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 18px;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

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

.logo-text strong {
    font-size: 15px;
    color: var(--color-primary-dark);
}

.logo-text small {
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: .02em;
}

.lang-toggle {
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    background: var(--color-primary);
    color: #fff;
}

/* ===== Hero / Slider ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--color-primary-dark);
}

.slider {
    position: relative;
    width: 100%;
    height: 46vh;
    min-height: 260px;
    max-height: 420px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 54, 56, .85) 0%, rgba(8, 54, 56, .15) 55%, rgba(8, 54, 56, 0) 100%);
}

.slide-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 20px 18px 26px;
    max-width: 520px;
}

.slide-content h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.slide-content p {
    font-size: 13.5px;
    opacity: .92;
    margin: 0 0 14px;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: 999px;
    transition: background .15s ease;
}

.slide-cta:hover,
.slide-cta:focus-visible {
    background: var(--color-accent-dark);
}

.slider-dots {
    position: absolute;
    z-index: 2;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
}

.slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .5);
    padding: 0;
    cursor: pointer;
}

.slider-dots button.active {
    background: #fff;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, .45);
}

/* ===== Products ===== */
.products {
    padding: 42px 0 50px;
}

.section-title {
    text-align: center;
    font-size: 24px;
    color: var(--color-primary-dark);
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    background: var(--color-accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 18px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-card .product-img {
    max-width: 300px;
    max-height: 300px;
    aspect-ratio: 4 / 3;
    object-fit:contain;
}

.product-card .product-body {
    padding: 16px 18px 20px;
}

.product-card .product-body h3 {
    font-size: 17px;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.product-card .product-body p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-primary-dark);
    color: #eef4f3;
    padding-top: 34px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 24px;
}

.footer-brand strong {
    font-size: 17px;
}

.footer-brand p {
    font-size: 13.5px;
    opacity: .8;
    margin: 8px 0 0;
    max-width: 420px;
}

.footer-contact p {
    font-size: 13.5px;
    margin: 6px 0;
    opacity: .9;
}

.footer-contact a {
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 16px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    opacity: .85;
}

.footer-bottom a {
    text-decoration: none;
    font-weight: 700;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===== Floating WhatsApp button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 18px;
    inset-inline-end: 18px;
    width: 52px;
    height: 52px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 60;
    text-decoration: none;
}

/* ===== Focus visibility (accessibility) ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .slide {
        transition: none;
    }
}

/* ============================================================
   Larger screens
   ============================================================ */
@media (min-width: 768px) {
    .header-inner {
        height: 72px;
    }

    .logo-mark {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .logo-text strong {
        font-size: 17px;
    }

    .slider {
        height: 56vh;
        max-height: 480px;
    }

    .slide-content {
        padding: 34px 46px;
        max-width: 560px;
    }

    .slide-content h3 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 15px;
    }

    .section-title {
        font-size: 30px;
    }

    .product-card {
        flex-direction: row;
        align-items: stretch;
    }

    .product-card .product-img {
        width: 42%;
        aspect-ratio: auto;
        height: auto;
    }

    .product-card .product-body {
        width: 58%;
        padding: 28px 34px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .product-card .product-body h3 {
        font-size: 20px;
    }

    .product-card .product-body p {
        font-size: 15px;
    }

    /* Alternate direction for every second card */
    .product-card.reverse {
        flex-direction: row-reverse;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .product-card .product-body {
        padding: 32px 46px;
    }
}