/* HaridwarPrint — Shared stylesheet */

:root {
  --g1:   #16A34A;
  --g2:   #22C55E;
  --mint: #4ADE80;
  --teal: #0D9488;
  --bg:   #F0FDF4;
  --dark: #052E16;
  --border: #D1FAE5;
  --muted: #6B7280;
  --white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: #1a1a1a; }

/* ── Navbar ──────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240,253,244,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.navbar-brand svg { color: var(--g1); }
.navbar-brand span { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 900; color: var(--g1); }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a { text-decoration: none; color: var(--dark); font-weight: 700; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase; transition: color .2s; }
.navbar-links a:hover { color: var(--g1); }
.navbar-ctas { display: flex; gap: .75rem; }
.btn-wa   { background: #25D366; color: #fff; font-weight: 800; padding: .55rem 1.2rem;
  border-radius: 2rem; text-decoration: none; font-size: .85rem; transition: opacity .2s; }
.btn-wa:hover { opacity: .85; }
.btn-order { background: var(--g1); color: #fff; font-weight: 800; padding: .55rem 1.2rem;
  border-radius: 2rem; text-decoration: none; font-size: .85rem; transition: background .2s;
  display: flex; align-items: center; gap: .4rem; }
.btn-order:hover { background: #15803d; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.mobile-menu { display: none; flex-direction: column; gap: 1rem; padding: 1.5rem 2rem;
  background: var(--bg); border-bottom: 1.5px solid var(--border); }
.mobile-menu a { text-decoration: none; color: var(--dark); font-weight: 700; font-size: .95rem; }
.mobile-menu.open { display: flex; }

/* ── Hero ─────────────────────────────────────── */
.hero { padding: 5rem 2rem 4rem; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem;
  background: var(--border); color: var(--g1); font-weight: 800; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase; padding: .4rem 1rem; border-radius: 2rem; margin-bottom: 1.5rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 900; line-height: 1.1;
  color: var(--dark); margin-bottom: 1.25rem; }
.hero h1 .highlight { color: var(--g1); }
.hero-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.65; }
.price-chips { display: flex; gap: .75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.price-chip { background: var(--white); border: 2px solid var(--border); border-radius: 1rem;
  padding: .5rem 1rem; font-weight: 800; font-size: .875rem; color: var(--dark); }
.price-chip span { color: var(--g1); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--g1); color: #fff; font-weight: 800; padding: .75rem 2rem;
  border-radius: 2rem; text-decoration: none; font-size: 1rem; transition: background .2s; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: #15803d; }
.btn-outline { border: 2px solid var(--g1); color: var(--g1); font-weight: 800; padding: .75rem 2rem;
  border-radius: 2rem; text-decoration: none; font-size: 1rem; transition: all .2s; background: transparent; cursor: pointer; display: inline-block; }
.btn-outline:hover { background: var(--g1); color: #fff; }

/* how-it-works card */
.hiw-card { background: var(--white); border: 2px solid var(--border); border-radius: 1.5rem;
  padding: 2rem; box-shadow: 0 8px 32px rgba(22,163,74,.07); }
.hiw-card h3 { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .4rem; }
.hiw-steps { display: flex; flex-direction: column; gap: 1rem; }
.hiw-step { display: flex; align-items: center; gap: 1rem; }
.hiw-num { width: 32px; height: 32px; background: var(--g1); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.hiw-step p { font-size: .9rem; font-weight: 700; }
.hiw-step small { color: var(--muted); font-size: .78rem; }

/* ── Marquee ──────────────────────────────────── */
.marquee-wrap { background: var(--g1); overflow: hidden; padding: .75rem 0; }
.marquee-track { display: flex; gap: 0; animation: marquee 25s linear infinite; white-space: nowrap; }
.marquee-track span { color: #fff; font-weight: 800; font-size: .85rem;
  letter-spacing: .06em; padding: 0 2rem; }
.marquee-track .dot { color: var(--mint); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Section shared ───────────────────────────── */
section { padding: 5rem 2rem; }
.section-label { display: inline-block; background: var(--border); color: var(--g1);
  font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 2rem; margin-bottom: 1rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 900;
  color: var(--dark); margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 520px; line-height: 1.65; }
.container { max-width: 1200px; margin: 0 auto; }

/* ── Cards grid ───────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.card { background: var(--white); border: 2px solid var(--border); border-radius: 1.25rem; padding: 1.75rem; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 8px 32px rgba(22,163,74,.10); }
.card-icon { width: 48px; height: 48px; background: var(--bg); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.4rem; }
.card-title { font-weight: 800; font-size: 1rem; color: var(--dark); margin-bottom: .35rem; }
.card-price { color: var(--g1); font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.5rem; margin-bottom: .5rem; }
.card-desc { color: var(--muted); font-size: .85rem; line-height: 1.55; }
.card-cta { display: inline-block; margin-top: 1rem; font-weight: 800; font-size: .8rem;
  color: var(--g1); text-decoration: none; letter-spacing: .04em; }
.card-cta:hover { text-decoration: underline; }

/* ── Stats bar ────────────────────────────────── */
.stats-bar { background: var(--dark); padding: 3rem 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  max-width: 900px; margin: 0 auto; text-align: center; }
.stat-num  { font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 900; color: var(--mint); }
.stat-label { color: rgba(255,255,255,.65); font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-top: .25rem; }

/* ── Reviews ─────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.review-card { background: var(--white); border: 2px solid var(--border); border-radius: 1.25rem; padding: 1.5rem; }
.review-stars { color: #f59e0b; font-size: 1rem; margin-bottom: .75rem; }
.review-text { color: #374151; font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; }
.review-author { font-weight: 800; font-size: .85rem; color: var(--dark); }
.review-date { color: var(--muted); font-size: .75rem; }

/* ── CTA Banner ──────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, var(--g1) 0%, var(--teal) 100%); padding: 4rem 2rem; text-align: center; }
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 2rem; }
.btn-white { background: #fff; color: var(--g1); font-weight: 800; padding: .85rem 2.5rem;
  border-radius: 2rem; text-decoration: none; font-size: 1rem; transition: opacity .2s; border: none; cursor: pointer; }
.btn-white:hover { opacity: .9; }

/* ── Footer ───────────────────────────────────── */
footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 3.5rem 2rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
  max-width: 1200px; margin: 0 auto 2.5rem; }
.footer-brand { font-family: 'Playfair Display', serif; font-weight: 900; color: var(--mint);
  font-size: 1.3rem; margin-bottom: .75rem; display: block; }
.footer-tagline { font-size: .85rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul li a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .875rem;
  transition: color .2s; }
.footer-col ul li a:hover { color: var(--mint); }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .875rem;
  display: flex; align-items: center; gap: .5rem; transition: color .2s; }
.footer-contact a:hover { color: var(--mint); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ── Form styles ──────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .4rem; color: var(--dark); }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 2px solid var(--border); border-radius: .75rem;
  padding: .7rem 1rem; font-family: 'Nunito', sans-serif; font-size: .95rem;
  background: #fff; color: var(--dark); transition: border-color .2s; outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--g1); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { color: #dc2626; font-size: .8rem; margin-top: .25rem; }
.form-hint  { color: var(--muted); font-size: .8rem; margin-top: .25rem; }

/* Radio card grid */
.radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card label { display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem; border: 2px solid var(--border); border-radius: 1rem; cursor: pointer;
  font-weight: 700; font-size: .85rem; text-align: center; gap: .4rem; transition: all .15s;
  background: #fff; }
.radio-card label:hover { border-color: var(--g2); background: var(--bg); }
.radio-card input:checked + label { border-color: var(--g1); background: rgba(22,163,74,.06); color: var(--g1); }
.radio-card .card-icon-sm { font-size: 1.5rem; }

/* ── Price summary ───────────────────────────── */
.price-summary { background: rgba(22,163,74,.05); border: 2px solid var(--border);
  border-radius: 1.25rem; padding: 1.5rem; position: sticky; top: 80px; }
.price-summary h3 { font-weight: 800; font-size: 1rem; margin-bottom: 1rem; color: var(--dark); }
.price-row { display: flex; justify-content: space-between; font-size: .875rem;
  color: var(--muted); margin-bottom: .6rem; }
.price-total { border-top: 2px solid var(--border); padding-top: 1rem; margin-top: 1rem;
  display: flex; justify-content: space-between; align-items: flex-end; }
.price-total-label { font-weight: 800; color: var(--dark); }
.price-total-amount { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 900; color: var(--g1); line-height: 1; }

/* ── Status badges ───────────────────────────── */
.badge { display: inline-block; padding: .25rem .75rem; border-radius: 2rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: capitalize; }
.badge-pending    { background: #fef3c7; color: #92400e; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-ready      { background: #d1fae5; color: #065f46; }
.badge-delivered  { background: #f3f4f6; color: #374151; }
.badge-cancelled  { background: #fee2e2; color: #991b1b; }


/* Alerts */
.alert { padding: 1rem 1.25rem; border-radius: .75rem; font-size: .9rem; margin-bottom: 1rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Form validation UX ──────────────────────── */

/* Step badge inside form card header */
.form-card-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: var(--g1); color: #fff;
  border-radius: 50%; font-size: .7rem; font-weight: 900;
  margin-right: .5rem; flex-shrink: 0;
}
.form-card h2 { display: flex; align-items: center; }

/* Error state — red border + light tint */
.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: #dc2626 !important;
  background: #fff8f8;
}
.form-input.is-error:focus,
.form-select.is-error:focus,
.form-textarea.is-error:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,.13);
}
.form-label.is-error { color: #dc2626; }

/* Form section — red border when it has an error inside */
.form-card.has-error { border-color: #fca5a5; }

/* Error text — animate in */
.form-error:not(:empty) {
  display: flex; align-items: center; gap: .3rem;
  animation: errSlide .17s ease;
}
@keyframes errSlide {
  from { opacity:0; transform:translateY(-4px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Validation summary banner */
.validation-banner {
  display: none;
  background: #fee2e2; border: 1.5px solid #fca5a5; border-radius: .75rem;
  padding: .85rem 1.1rem; font-size: .875rem; font-weight: 700; color: #991b1b;
  align-items: center; gap: .6rem; margin-bottom: 1.25rem;
  animation: errSlide .2s ease;
}
.validation-banner.visible { display: flex; }

/* Phone digit counter */
.char-counter { font-size: .72rem; font-weight: 800; color: var(--muted); }
.char-counter.done  { color: var(--g1); }
.char-counter.error { color: #dc2626; }

/* Submit button shake on failed validation */
@keyframes btnShake {
  0%,100% { transform:translateX(0); }
  20%     { transform:translateX(-7px); }
  40%     { transform:translateX(7px); }
  60%     { transform:translateX(-4px); }
  80%     { transform:translateX(4px); }
}
.btn-shake { animation: btnShake .38s ease; }

/* ── Touch & tap-target baseline ─────────────── */
button, a, [role="button"], label[for] {
  touch-action: manipulation; /* kill 300ms delay on iOS */
  -webkit-tap-highlight-color: transparent;
}
.btn-primary, .btn-outline, .btn-wa, .btn-order, .btn-white {
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.hamburger { min-height: 44px; min-width: 44px; display: none; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hiw-card { display: none; }
  .cards-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  /* ── Navbar ── */
  .navbar { padding: 0 1.25rem; height: 56px; }
  .navbar-links, .navbar-ctas { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .mobile-menu { padding: 1.25rem; gap: .5rem; }
  .mobile-menu a {
    font-size: 1rem; padding: .65rem .5rem;
    border-bottom: 1px solid var(--border);
    min-height: 44px; display: flex; align-items: center;
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu .btn-primary {
    border-bottom: none; padding: .75rem 1.5rem;
    min-height: 48px; justify-content: center;
  }

  /* ── Hero ── */
  .hero { padding: 2.5rem 0 2rem; gap: 1.5rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero-sub { font-size: .95rem; }
  .hero-ctas { flex-direction: column; gap: .75rem; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; text-align: center; }
  .price-chips { gap: .5rem; }
  .price-chip { font-size: .8rem; padding: .4rem .75rem; }

  /* ── Sections ── */
  section { padding: 3.5rem 1.25rem; }
  .section-title { font-size: 1.8rem; }
  .cta-banner { padding: 3rem 1.25rem; }
  .cta-banner h2 { font-size: 1.9rem; }
  .cta-banner .btn-white { width: 100%; }

  /* ── Grids ── */
  .cards-grid, .reviews-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .radio-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }

  /* ── Forms — prevent iOS auto-zoom (needs 16px+ font-size) ── */
  .form-input, .form-select, .form-textarea {
    font-size: 16px;        /* prevents iOS Safari zoom on focus */
    min-height: 48px;       /* comfortable touch target */
    padding: .75rem 1rem;
  }
  .form-textarea { min-height: 90px; }
  .radio-card label { padding: .85rem .5rem; font-size: .8rem; min-height: 56px; }

  /* ── Price summary ── */
  .price-summary { top: auto; position: static; }
  .price-total-amount { font-size: 2rem; }

  /* ── Stats bar ── */
  .stats-bar { padding: 2.25rem 1.25rem; }
  .stat-num { font-size: 1.75rem; }

  /* ── Footer ── */
  footer { padding: 2.5rem 1.25rem 1.25rem; }
  .footer-col ul li a { font-size: 1rem; padding: .3rem 0; display: inline-block; }
  .footer-contact a { font-size: .95rem; min-height: 40px; align-items: center; }
}

/* ── 480px — very small phones (SE, Galaxy A series) ─── */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .section-title { font-size: 1.6rem; }
  .cta-banner h2 { font-size: 1.65rem; }
  .hero-badge { font-size: .7rem; }
  .price-chips { gap: .4rem; }
  .price-chip { font-size: .75rem; padding: .35rem .65rem; }
  .navbar { padding: 0 1rem; }
  .navbar-brand span { font-size: 1.15rem; }
}

/* ── Safe-area insets for iPhone notch / home bar (mobile only) ── */
@media (max-width: 640px) {
  @supports (padding: env(safe-area-inset-bottom)) {
    .navbar {
      padding-left:  max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
    footer {
      padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
  }
}
