/* Dar Online landing page – colours and shapes mirror the Android app theme.
   Only logical properties (inline/block) are used so an RTL version mirrors automatically. */

:root {
  --green: #1E5631;
  --green-dark: #143D22;
  --green-light: #DCEBDD;
  --green-soft: #EEF5EE;
  --cream: #FBF7EC;
  --sand: #F1EAD6;
  --gold: #C9A227;
  --price-red: #C62828;
  --text: #1B1B1B;
  --muted: #6B6B6B;
  --muted-on-sand: #575757; /* #6B6B6B misses AA on sand */
  --whatsapp: #25D366;
  --white: #FFFFFF;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 2px 6px rgba(20, 61, 34, .06), 0 10px 28px rgba(20, 61, 34, .08);
  --shadow-sm: 0 1px 3px rgba(20, 61, 34, .08), 0 4px 12px rgba(20, 61, 34, .05);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { color: var(--green-dark); line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.05rem; font-weight: 600; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
/* gold ring is hard to see on cream – pair it with a dark inner ring */
main :focus-visible, .site-header :focus-visible { box-shadow: 0 0 0 3px var(--green-dark); }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--green-dark); color: var(--cream); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { min-height: 42px; padding: 8px 14px; font-size: .9rem; }
.btn-gold { background: var(--gold); color: var(--text); box-shadow: 0 6px 18px rgba(201, 162, 39, .28); }
.btn-gold:hover { background: #D4AE34; }
.btn-outline-light { border-color: rgba(251, 247, 236, .55); color: var(--cream); }
.btn-outline-light:hover { background: rgba(251, 247, 236, .08); border-color: var(--cream); }
.wa-glyph { color: var(--whatsapp); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 236, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block-end: 1px solid rgba(20, 61, 34, .08);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand-logo { flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 700; font-size: .95rem; letter-spacing: .24em; color: var(--green-dark); white-space: nowrap; line-height: 1.3; }
.brand-tagline { display: none; font-size: .56rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brand-on-dark .brand-name { color: var(--cream); font-size: 1.1rem; }
.brand-on-dark .brand-tagline { display: block; color: var(--gold); font-size: .6rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: transparent; border: 0; border-radius: var(--radius-sm); color: var(--green-dark); cursor: pointer;
}
.nav-toggle:hover { background: var(--green-soft); }

.site-nav {
  display: none;
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--cream); border-block-end: 1px solid rgba(20, 61, 34, .1); box-shadow: var(--shadow);
}
.site-nav.open { display: block; }
.site-nav ul { padding: 8px 20px 16px; }
.site-nav a { display: block; padding: 12px 8px; font-weight: 500; text-decoration: none; color: var(--green-dark); border-radius: 8px; }
.site-nav a:hover { background: var(--green-soft); }

@media (max-width: 479px) {
  .header-inner { gap: 6px; }
  .site-header .container { padding-inline: 14px; }
  .brand { gap: 8px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: .78rem; letter-spacing: .16em; }
  .site-header .btn-sm { padding-inline: 12px; font-size: .84rem; }
  .site-header .btn-sm svg { display: none; }
}
@media (min-width: 560px) { .brand-tagline { display: block; } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; margin-inline-end: 12px; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { padding: 8px 14px; font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero { background: var(--green-dark); color: var(--cream); overflow: hidden; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--green); pointer-events: none; }
.hero::before { width: 520px; height: 520px; inset-inline-end: -180px; top: -220px; opacity: .5; }
.hero::after { width: 320px; height: 320px; inset-inline-start: -140px; bottom: -200px; opacity: .35; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 40px; padding-block: 48px 56px; }
.hero h1 { color: var(--cream); font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); letter-spacing: -.02em; }
.hero-lead { margin-block-start: 18px; max-width: 34em; color: rgba(251, 247, 236, .86); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.hero-actions .btn { flex: 1 1 220px; }
.apk-meta { margin-block-start: 14px; font-size: .88rem; color: rgba(251, 247, 236, .78); }
.android-hint {
  display: inline-block; margin-block-start: 10px; padding: 8px 14px;
  border-radius: 999px; background: rgba(251, 247, 236, .1); color: var(--cream); font-size: .88rem;
}

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-block-end: 10px; }
.eyebrow-gold { color: var(--gold); }

.hero-visual { position: relative; justify-self: center; width: min(300px, 78vw); }
.phone { padding: 10px; border-radius: 40px; background: #0C2414; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(251, 247, 236, .12); }
.phone-screen { border-radius: 30px; overflow: hidden; aspect-ratio: 9 / 17; background: var(--sand); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute; inset-inline-start: -14px; bottom: 36px;
  display: flex; flex-direction: column; padding: 10px 16px;
  background: var(--cream); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.hero-tag-name { font-weight: 600; font-size: .85rem; color: var(--green-dark); }
.price { color: var(--price-red); font-weight: 700; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: 72px 80px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-visual { width: 320px; }
  .hero-tag { inset-inline-start: -48px; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--cream); padding-block: 28px; border-block-end: 1px solid rgba(20, 61, 34, .06); }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
.trust-list li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 600; font-size: .88rem; color: var(--green-dark); line-height: 1.3; }
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
}
@media (min-width: 720px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section-sand { background: var(--sand); }
.section-sand .section-lead, .section-sand .step p, .section-sand .contact-label { color: var(--muted-on-sand); }
.section-head { max-width: 640px; margin-block-end: 28px; }
.section-lead { margin-block-start: 10px; color: var(--muted); }
@media (min-width: 900px) { .section { padding-block: 88px; } }

/* ---------- Products ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 4px 12px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--green-light); background: var(--white); color: var(--green-dark);
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.chip:hover { background: var(--green-soft); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block-start: 16px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 980px) { .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.product-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.product-media { aspect-ratio: 8 / 9; background: var(--green-soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; text-align: center; color: var(--green); font-weight: 600; font-size: .9rem; line-height: 1.3;
}
.product-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px 14px 16px; }
.product-cat { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.product-card h3 { font-size: .98rem; }
.product-desc { font-size: .82rem; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes li { padding: 2px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: .76rem; font-weight: 500; }
.product-card .price { margin-block-start: auto; padding-block-start: 6px; font-size: 1.05rem; }
.product-note { margin-block-start: auto; padding-block-start: 6px; font-size: .8rem; color: var(--muted); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 14px; }
.step { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.step h3 { display: flex; align-items: center; gap: 10px; margin-block: 14px 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--white); font-size: .8rem; font-weight: 600;
}
.step p { font-size: .93rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.timeline-card { margin-block-start: 24px; background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.timeline-title { font-weight: 600; color: var(--green-dark); margin-block-end: 16px; }
.timeline { display: grid; gap: 0; }
.timeline li { position: relative; padding-inline-start: 34px; padding-block-end: 18px; font-size: .92rem; font-weight: 500; color: var(--green-dark); }
.timeline li:last-child { padding-block-end: 0; }
.timeline li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 4px solid var(--green-light);
}
.timeline li::after { content: ""; position: absolute; inset-inline-start: 8px; top: 20px; bottom: -2px; width: 2px; background: var(--green-light); }
.timeline li:last-child::after { display: none; }
.timeline li:last-child::before { background: var(--gold); border-color: #F1E3B0; }
@media (min-width: 760px) {
  .timeline { grid-template-columns: repeat(5, 1fr); }
  .timeline li { padding: 30px 8px 0 0; padding-inline: 0 8px; }
  .timeline li::before { top: 0; }
  .timeline li::after { inset-inline: 18px 0; top: 8px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- Delivery ---------- */
.delivery { background: var(--sand); }
.delivery-card { display: grid; gap: 24px; }
.delivery-copy > p:not(.eyebrow) { margin-block-start: 10px; color: var(--muted-on-sand); max-width: 36em; }
.emirates { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 18px; }
.emirates li { padding: 6px 14px; border-radius: 999px; background: var(--cream); color: var(--green-dark); font-size: .88rem; font-weight: 500; border: 1px solid rgba(20, 61, 34, .1); }
.fee { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--cream); border-radius: var(--radius); padding: 22px 28px; }
.fee .icon-circle { margin-block-end: 8px; }
.fee-label { font-size: .85rem; color: var(--muted); }
.fee { box-shadow: var(--shadow-sm); }
.fee-value { font-size: 2rem; font-weight: 700; color: var(--green-dark); line-height: 1.2; }
.fee-note { font-size: .85rem; color: var(--muted); }
@media (min-width: 800px) { .delivery-card { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } .fee { min-width: 220px; } }

/* ---------- Install ---------- */
.section-green { background: var(--green-dark); color: var(--cream); }
.section-green h2 { color: var(--cream); }
.install-inner { display: grid; gap: 36px; }
.install-steps { counter-reset: step; margin-block-start: 22px; display: grid; gap: 14px; max-width: 34em; }
.install-steps li { counter-increment: step; position: relative; padding-inline-start: 46px; min-height: 32px; color: rgba(251, 247, 236, .88); }
.install-steps li strong { color: var(--cream); }
.install-steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(251, 247, 236, .1); border: 1.5px solid var(--gold); color: var(--gold); font-weight: 600; font-size: .9rem;
}
.install-note { margin-block-start: 18px; font-size: .9rem; color: rgba(251, 247, 236, .78); }
.qr-card { justify-self: center; text-align: center; background: var(--cream); color: var(--text); border-radius: 24px; padding: 22px; width: min(280px, 100%); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.qr svg { width: 100%; height: auto; }
.qr-caption { margin-block-start: 12px; font-weight: 600; font-size: .9rem; color: var(--green-dark); }
.qr-url { margin-block-start: 4px; font-size: .72rem; color: var(--muted); word-break: break-all; }
@media (min-width: 900px) { .install-inner { grid-template-columns: 1fr auto; align-items: center; gap: 64px; } }

/* ---------- About ---------- */
.about-inner { display: grid; gap: 24px; max-width: 900px; }
.about-inner p:not(.eyebrow) { margin-block-start: 14px; color: #3A3A3A; }
.about-logo { width: 96px; height: 96px; }
@media (min-width: 760px) { .about-inner { grid-template-columns: auto 1fr; gap: 40px; align-items: start; } .about-logo { width: 120px; height: 120px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%;
  background: var(--cream); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
a.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-card .icon-circle { margin-block-end: 10px; }
.icon-wa { background: var(--whatsapp); color: var(--text); }
.contact-label { font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.contact-value { font-weight: 600; color: var(--green-dark); overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: repeat(6, 1fr); }
  .contact-grid li { grid-column: span 2; }
  .contact-grid li:nth-child(n+4) { grid-column: span 3; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--cream); padding-block: 40px 28px; }
.footer-inner { display: grid; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { display: inline-block; padding-block: 6px; color: rgba(251, 247, 236, .85); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--gold); }
.copyright { padding-block-start: 20px; border-block-start: 1px solid rgba(251, 247, 236, .14); font-size: .82rem; color: rgba(251, 247, 236, .75); }
@media (min-width: 800px) { .footer-inner { grid-template-columns: auto 1fr; align-items: center; } .footer-links { justify-content: flex-end; } .copyright { grid-column: 1 / -1; } }

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

.section-divided { border-block-start: 1px solid rgba(20, 61, 34, .08); }
