/* ============================================================
   Falah Enterprises — professional polish + responsive hardening
   Loaded AFTER tailwind/site.css so these act as final guards.
   ============================================================ */

/* ---- Responsive hardening ---- */
/* Nothing may ever cause sideways scroll on phones */
html, body { overflow-x: hidden; }

/* Media can never overflow its container */
img, video, iframe, svg, embed { max-width: 100%; height: auto; }
iframe { border: 0; }

/* Long URLs / words in article content must wrap, not push the layout */
article, .prose, .lp-body { overflow-wrap: break-word; word-break: break-word; }

/* Tables inside articles scroll within themselves on small screens */
article table, .prose table {
  display: block; width: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch; border-collapse: collapse;
}

/* iOS zoom-jump fix: inputs under 16px trigger auto-zoom on focus */
input, select, textarea { font-size: 16px; }

/* Comfortable touch targets everywhere */
a.btn, button, .btn, [role="button"] { min-height: 44px; }

/* Bottom quick-bar: respect iPhone home-indicator area */
nav[aria-label="Quick actions"] { padding-bottom: env(safe-area-inset-bottom); }
/* And keep page content from hiding behind it on phones */
@media (max-width: 767px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* Fluid headings: large titles scale down instead of wrapping ugly on phones */
h1 { font-size: clamp(1.5rem, 5.5vw, 2.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.15rem, 4vw, 1.75rem); line-height: 1.3; }

/* ---- Professional feel ---- */
/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Visible, branded keyboard-focus (accessibility = professionalism) */
:focus-visible { outline: 3px solid #b88a2b; outline-offset: 2px; border-radius: 4px; }

/* Consistent tap feedback on primary actions */
a, button { -webkit-tap-highlight-color: rgba(22, 71, 42, 0.15); }
a.bg-\[\#25D366\]:active, .btn:active, button:active { transform: scale(0.98); }

/* Card hover lift, applied consistently */
.reveal.bg-white:hover { transform: translateY(-2px); }
.reveal.bg-white { transition: transform .2s ease, box-shadow .2s ease; }

/* Selection color in brand tones */
::selection { background: #16472a; color: #fff; }

/* Print: strip nav/CTAs so guidance articles print clean for farmers */
@media print {
  nav, .lead-cta, #order-box, footer, .no-print { display: none !important; }
  body { padding-bottom: 0; }
}
