:root {
  --red: #ff5a1f;
  --red-dark: #e3121b;
  --ink: #141414;
  --ink-2: #1e1e1e;
  --text: #1b1b1b;
  --muted: #6b6b6b;
  --bg: #f5f4f2;
  --card: #ffffff;
  --line: #e6e3df;
  --radius: 14px;
  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .5px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 3px; color: var(--red); font-size: .9rem; margin-bottom: .6em; }
.lead { font-size: 1.15rem; max-width: 620px; }

/* Buttons */
.btn { display: inline-block; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; text-decoration: none; font-weight: 600; padding: .85em 1.5em; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 90, 31, .35); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; box-shadow: none; }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost-dark:hover { box-shadow: none; background: var(--ink); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--red); }
.link-arrow::after { content: ' →'; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20,20,20,.94); backdrop-filter: blur(10px); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { text-decoration: none; font-weight: 500; opacity: .8; position: relative; }
.main-nav a:not(.btn):hover, .main-nav a.active { opacity: 1; }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px; background: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink) url('img/hero.svg') right center / cover no-repeat; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.94) 28%, rgba(20,20,20,.1)); }
.hero-media { background: #000; }
.hero-video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 76px); object-fit: cover; }
.hero.hero-below { background: var(--ink) !important; }
.hero.hero-below::before { display: none; }
.hero-inner { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.hero h1 span { color: var(--red); }
.hero-below .hero-inner { padding: clamp(40px, 6vw, 72px) 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.page-hero { background: var(--ink); color: #fff; padding: 70px 0 60px; background-image: linear-gradient(120deg, transparent 60%, rgba(255,90,31,.15) 60%, rgba(255,90,31,.15) 64%, transparent 64%); }
.page-hero .lead { color: #cfcfcf; }

/* Strip */
.strip { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.strip-grid div { display: flex; flex-direction: column; }
.strip-grid strong { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: 1px; }
.strip-grid span { opacity: .85; font-size: .92rem; }

/* Sections */
.section { padding: 80px 0; }
.section-dark { background: var(--ink-2); color: #fff; }
.section-dark .muted { color: #b5b5b5; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: 16px 20px 16px 52px; border-radius: var(--radius); position: relative; }
.check-list li::before { content: ''; position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 4px var(--ink-2); outline: 2px solid var(--red); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #ececec; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-body .muted { font-size: .93rem; flex: 1; }
.card-meta { font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); font-weight: 600; margin-bottom: .4em; }
.price { font-family: var(--display); font-size: 1.35rem; font-weight: 600; margin: 0; }
.price-lg { font-size: 2rem; color: var(--red); margin-bottom: .6em; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters a { text-decoration: none; padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: .92rem; }
.filters a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Product detail */
.back { display: inline-block; text-decoration: none; color: var(--muted); margin-bottom: 24px; font-weight: 500; }
.product-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.product-img { border-radius: var(--radius); overflow: hidden; background: #ececec; }
.product-img img { width: 100%; }
.prose p { color: #333; }
.article-img { border-radius: var(--radius); margin: 20px 0 30px; width: 100%; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; }
.service::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--red), var(--red-dark)); }
.service-num { font-family: var(--display); font-size: 2.6rem; color: #eee; position: absolute; right: 24px; top: 12px; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; text-align: center; padding: 70px 0; }
.cta .btn { background: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.info-item { margin-bottom: 22px; }
.info-item h4 { margin-bottom: .2em; }
.info-item a { font-weight: 600; text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 280px; border: 0; display: block; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.form input, .form textarea, .form select { font: inherit; padding: .75em .9em; border: 1px solid #d6d2cc; border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--red); border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.alert { background: #fdecea; color: #a1150c; padding: 12px 16px; border-radius: 10px; }
.notice { background: #e9f7ef; color: #146c3c; padding: 12px 16px; border-radius: 10px; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 60px 0 24px; }
.site-footer .muted { color: #a9a9a9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-grid img { margin-bottom: 16px; height: 48px; width: auto; }
.footer-grid a { display: block; text-decoration: none; opacity: .85; margin-bottom: 6px; }
.footer-grid a:hover { opacity: 1; color: var(--red); }
.footer-bottom { border-top: 1px solid #2b2b2b; margin-top: 40px; padding-top: 20px; font-size: .88rem; }

/* Mobile */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 16px 20px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid #2b2b2b; }
  .main-nav a.active::after { display: none; }
  .main-nav .btn { margin-top: 14px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .product-detail, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .service-grid, .card-grid { grid-template-columns: 1fr; }
  .panel, .service { padding: 24px; }
}

/* Shop & cart */
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; }
.shop-card h3 a { text-decoration: none; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buy-row form { margin: 0; }
.add-cart { display: flex; gap: 10px; align-items: center; margin: 0; }
.qty { width: 72px; font: inherit; padding: .6em .7em; border: 1px solid #d6d2cc; border-radius: 10px; text-align: center; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; margin-top: 20px; }
.cart-lines { display: grid; gap: 4px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr 80px 120px 36px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: #eee; }
.cart-line-name { display: flex; flex-direction: column; }
.cart-line-name a { text-decoration: none; }
.cart-line-total { text-align: right; }
.cart-lines > .btn { justify-self: start; margin-top: 14px; }
.icon-btn { background: none; border: 0; font-size: 1rem; cursor: pointer; color: var(--muted); padding: 6px; }
.icon-btn:hover { color: var(--red-dark); }
.cart-summary { display: grid; gap: 10px; }
.cart-summary h3 { margin-bottom: 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; }
.sum-total { border-top: 1px solid var(--line); padding-top: 12px; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 6px; }
.small-link { text-align: center; font-size: .92rem; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex !important; grid-template-columns: none; gap: 12px !important; align-items: flex-start; border: 1px solid #d6d2cc; border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.pay-option input { width: auto !important; margin-top: 4px; }
.pay-option span { display: grid; gap: 2px; }
.pay-option:has(input:checked) { border-color: var(--red); background: #fff7f2; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 60px 1fr 64px 30px; }
  .cart-line img { width: 60px; height: 46px; }
  .cart-line-total { grid-column: 2; text-align: left; }
}

/* Language switcher */
.lang-switch { display: inline-flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang-switch a { text-decoration: none; font-size: .78rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; opacity: .7; line-height: 1.4; }
.lang-switch a.on { background: #fff; color: var(--ink); opacity: 1; }
.lang-switch a:hover { opacity: 1; }
.main-nav .lang-switch a::after { display: none; }
@media (max-width: 1080px) { .main-nav .lang-switch { margin-top: 14px; } .main-nav .lang-switch a { padding: 6px 14px; border: 0; width: auto; } }

/* Arabic, right-to-left */
[dir="rtl"] body { font-family: 'Cairo', 'Inter', system-ui, sans-serif; }
[dir="rtl"] { --display: 'Cairo', 'Oswald', sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .eyebrow, [dir="rtl"] .card-meta { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] .hero h1 { line-height: 1.35; }
[dir="rtl"] .hero { background-image: url('img/hero-rtl.svg'); background-position: left center; }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(20,20,20,.94) 28%, rgba(20,20,20,.1)); }
[dir="rtl"] .link-arrow::after { content: ' ←'; }
[dir="rtl"] .back .arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .tag { left: auto; right: 12px; }
[dir="rtl"] .check-list li { padding: 16px 52px 16px 20px; }
[dir="rtl"] .check-list li::before { left: auto; right: 20px; }
[dir="rtl"] .service::after { left: auto; right: 0; }
[dir="rtl"] .service-num { right: auto; left: 24px; }
[dir="rtl"] .cart-line-total { text-align: left; }
[dir="rtl"] .hp { left: auto; right: -9999px; }
[dir="rtl"] .page-hero { background-image: linear-gradient(240deg, transparent 60%, rgba(255,90,31,.15) 60%, rgba(255,90,31,.15) 64%, transparent 64%); }
@media (max-width: 900px) { [dir="rtl"] .cart-line-total { text-align: right; } }
