/* ==========================================================================
   Bab Dar Store — P008 landing page
   Design tokens are locked per CLAUDE.md §3 — do not change values here.
   ========================================================================== */

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tajawal-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tajawal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/tajawal-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/tajawal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/tajawal-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/tajawal-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC;
}

:root {
  --color-bg: #FAF6F0;
  --color-text: #2B2420;
  --color-cta: #C1502E;
  --color-cta-text: #FFFFFF;
  --color-panel: #EDE3D3;
  --color-price-old: #5F5E5A;
  --color-border: #DCD3C4;
  --color-error: #B3261E;

  --font-arabic: 'Tajawal', sans-serif;

  --space-card-pad: 16px;
  --space-card-gap: 12px;
  --space-section-gap: 40px;
  --space-page-margin: 16px;
  --radius-card: 12px;
  --radius-control: 8px;

  --max-width: 480px;
}

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

/* Author display rules below (.order-form, .sticky-cta-bar, etc.) would
   otherwise win over the UA stylesheet's [hidden] rule, since author CSS
   always beats UA CSS regardless of specificity. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-arabic);
  font-size: 16px;
  line-height: 1.6;
  text-align: right;
}

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

a { color: inherit; }

ul, ol { padding-inline-start: 20px; margin: 0; }

h1, h2, h3, p { margin: 0; }

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

/* Visible keyboard focus states — accessibility floor, not in source spec */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-cta);
  outline-offset: 2px;
}

/* ==========================================================================
   Page shell — single column, centered, max-width 480px
   ========================================================================== */

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

main { display: block; }

.section {
  padding-block: var(--space-section-gap) 0;
}
.section:last-child { padding-bottom: var(--space-section-gap); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

.store-name {
  font-size: 18px;
  font-weight: 500;
}

/* ==========================================================================
   Above the fold
   ========================================================================== */

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.hero .subheading {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  margin-bottom: 20px;
}

/* ==========================================================================
   CTA button — shared by hero, both order forms, sticky bar
   ========================================================================== */

.cta-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  border: none;
  border-radius: var(--radius-control);
  background: var(--color-cta);
  color: var(--color-cta-text);
  text-decoration: none;
  cursor: pointer;
  padding: 14px 16px;
  font-family: inherit;
}

.cta-button .cta-line-1 {
  font-size: 19px;
  font-weight: 700;
}

.cta-button .cta-line-2 {
  font-size: 14px;
  font-weight: 400;
}

.reassurance {
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  color: var(--color-text);
}

/* ==========================================================================
   Order form
   ========================================================================== */

.order-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-card-gap);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 14px;
  font-weight: 500;
}

.form-field input {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-text);
}

.form-field input::placeholder { color: #9A9186; }

.form-field input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-error {
  font-size: 13px;
  color: var(--color-error);
  min-height: 1em;
}

.field-error:empty { display: none; }

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.order-submit { margin-top: 4px; }

.post-submit-message {
  text-align: center;
  background: var(--color-panel);
  border-radius: var(--radius-card);
  padding: var(--space-card-pad);
}

.post-submit-message h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.post-submit-message .success-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--color-cta);
}

.post-submit-message p {
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   Problem & Benefit
   ========================================================================== */

.problem-benefit h2 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-card-gap);
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-card-pad);
}

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--color-cta);
  margin-bottom: 10px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card p {
  font-size: 15px;
  line-height: 1.7;
}

.value-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-panel);
  border-radius: var(--radius-card);
  padding: var(--space-card-pad);
  margin-top: var(--space-card-gap);
  font-size: 15px;
  line-height: 1.7;
}

.value-box .value-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-text);
  margin-top: 2px;
}

.price-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-section-gap);
}

.price-old {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-price-old);
  text-decoration: line-through;
}

.price-current {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 4px;
}

/* ==========================================================================
   How it works (MSA)
   ========================================================================== */

.how-it-works h2 {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 14px;
}

.mechanism-carousel {
  display: flex;
  gap: var(--space-card-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mechanism-carousel::-webkit-scrollbar { display: none; }

.mechanism-carousel img {
  flex: 0 0 85%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  width: 85%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.how-it-works .intro {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.tech-points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--space-section-gap);
}

.tech-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.tech-points li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--color-cta);
}

.wearing-guide {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-card-gap);
}

.wearing-guide li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-card-pad);
}

.wearing-guide .step-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-cta);
}

.wearing-guide span:last-child {
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   Social proof
   ========================================================================== */

.social-proof h2 {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 20px;
}

.review-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-card-gap);
}

.review-card {
  margin: 0;
  background: var(--color-bg);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 8px;
  overflow: hidden;
}

.review-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-card) - 4px);
}

/* ==========================================================================
   Product details
   ========================================================================== */

.unboxing-caption {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--space-card-gap);
}

.unboxing-sequence {
  display: flex;
  flex-direction: column;
  gap: var(--space-card-gap);
  margin-bottom: var(--space-section-gap);
}

.unboxing-sequence img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.features-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.features-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--color-cta);
}

.box-contents {
  font-size: 14px;
  color: var(--color-price-old);
  line-height: 1.6;
}

/* ==========================================================================
   Guarantee box
   ========================================================================== */

.guarantee-box {
  text-align: center;
  background: var(--color-panel);
  border-radius: var(--radius-card);
  padding: 24px var(--space-card-pad);
}

.guarantee-box .guarantee-icon {
  width: 40px;
  height: 40px;
  color: var(--color-text);
  margin: 0 auto 12px;
}

.guarantee-box h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guarantee-box p {
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   Final form extras — reassurance icons row
   ========================================================================== */

.fulfillment-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
}

.fulfillment-row .fulfillment-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.fulfillment-row .fulfillment-icon {
  width: 24px;
  height: 24px;
  color: var(--color-cta);
}

.fulfillment-row span:last-child {
  font-size: 13px;
  line-height: 1.4;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-panel);
  text-align: center;
  padding: 28px var(--space-page-margin);
}

.footer-store-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
}

.footer-links a {
  text-decoration: underline;
}

/* ==========================================================================
   Sticky CTA bar
   ========================================================================== */

.sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: var(--space-page-margin);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.sticky-cta-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta-bar:not(.is-visible) { pointer-events: none; }

.sticky-price {
  font-size: 20px;
  font-weight: 700;
}

.sticky-cta-button {
  border: none;
  border-radius: var(--radius-control);
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 24px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta-bar {
    transition: none;
  }
}

/* ==========================================================================
   Floating WhatsApp bubble
   ========================================================================== */

.whatsapp-bubble {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 41;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-cta);
  box-shadow: 0 2px 8px rgba(43, 36, 32, 0.25);
}

.whatsapp-bubble svg {
  width: 26px;
  height: 26px;
  color: var(--color-cta-text);
}

/* When the sticky bar hasn't appeared yet, the bubble sits nearer the edge */
.whatsapp-bubble.no-sticky-bar {
  bottom: 16px;
}

/* Reserve space so the sticky bar never covers the last section's content */
body.has-sticky-bar-space {
  padding-bottom: 60px;
}
