/* ============================================
   OFAA Cattle & Farm House — Shared Stylesheet
   ============================================ */

:root {
  --bg: #faf6ef;
  --bg-deep: #f1ead9;
  --ink: #1a2a1f;
  --ink-soft: #3d4f43;
  --muted: #7a8579;
  --green: #2c4a2e;
  --green-deep: #1a2e1c;
  --accent: #b8512a;
  --accent-soft: #d97847;
  --gold: #c9a76b;
  --line: rgba(26,42,31,0.12);
  --shadow: 0 1px 3px rgba(26,42,31,0.06), 0 12px 40px rgba(26,42,31,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
.display { font-family: 'Fraunces', serif; font-weight: 400; letter-spacing: -0.02em; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Top strip ── */
.topstrip {
  background: var(--green-deep);
  color: #e8e2d2;
  font-size: 0.78rem;
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
}
.topstrip .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topstrip a { color: #e8e2d2; opacity: 0.85; transition: opacity .2s; }
.topstrip a:hover { opacity: 1; }

/* ── Header ── */
header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(250,246,239,0.92);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
}
.logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 42px; height: 42px;
  background: var(--green);
  color: var(--bg);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.logo-text { line-height: 1.1; }
.logo-text small {
  display: block; font-family: 'Manrope', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
nav ul { display: flex; gap: 2rem; list-style: none; align-items: center; }
nav ul a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
nav ul a:hover, nav ul a.active { color: var(--accent); }
nav ul a.active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent);
}
nav ul a.cta {
  background: var(--green);
  color: var(--bg);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
nav ul a.cta::after { display: none; }
nav ul a.cta:hover { background: var(--accent); color: var(--bg); transform: translateY(-1px); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--ink); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed; top: 0; right: 0;
  width: 280px; height: 100vh;
  background: var(--bg);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  padding: 5rem 2rem 2rem;
  z-index: 100;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-nav.open { transform: translateX(0); display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 1rem 0; font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--ink); }
.mobile-nav a.active { color: var(--accent); }
.mobile-nav .close-btn {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.8rem; color: var(--ink);
}
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26,42,31,0.5);
  z-index: 99;
}
.mobile-overlay.open { display: block; }

/* ── Common buttons ── */
.btn {
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: all .25s;
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--bg); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,46,28,0.2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--accent); color: var(--bg); }

/* ── Common eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--accent);
}

/* ── Section heads ── */
.section-head { max-width: 720px; margin-bottom: 4rem; }
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400; line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

section { padding: 6rem 0; }

/* ── FAQ accordion (used on multiple pages) ── */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  cursor: pointer;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem; font-weight: 500;
  color: var(--ink);
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform .3s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 1rem;
}

/* ── Footer ── */
footer {
  background: var(--green-deep);
  color: rgba(232,226,210,0.8);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(232,226,210,0.15);
}
.footer-brand .logo { color: var(--bg); margin-bottom: 1rem; }
.footer-brand .logo small { color: var(--gold); }
.footer-brand p { font-size: 0.92rem; line-height: 1.65; max-width: 320px; }
footer h5 {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.4rem; font-weight: 500;
}
footer ul { list-style: none; }
footer li { margin-bottom: 0.7rem; font-size: 0.92rem; }
footer a:hover { color: var(--bg); }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 2rem; font-size: 0.82rem;
  flex-wrap: wrap; gap: 1rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  nav ul { display: none; }
  .menu-btn { display: block; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .8s ease forwards; }

/* ── Verse / Hadith Panel (reusable) ── */
.verse-panel {
  border-radius: 6px;
  padding: 2.4rem 2.2rem;
  position: relative;
}
.verse-intro {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.verse-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  line-height: 1.85;
  text-align: right;
  direction: rtl;
  color: var(--green);
  margin-bottom: 1.3rem;
  font-weight: 400;
}
.verse-translation {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.verse-citation {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Light variant (on cream/beige bg) */
.verse-light {
  background: var(--bg);
  border: 1px solid var(--line);
}

/* Dark variant (on green bg) */
.verse-dark {
  background: rgba(232, 226, 210, 0.05);
  border: 1px solid rgba(232, 226, 210, 0.15);
}
.verse-dark .verse-intro {
  color: rgba(232, 226, 210, 0.78);
}
.verse-dark .verse-arabic {
  color: var(--gold);
}
.verse-dark .verse-translation {
  color: rgba(232, 226, 210, 0.9);
}
.verse-dark .verse-citation {
  color: var(--gold);
}

/* Inline variant — minimal, slips between content */
.verse-inline {
  background: transparent;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0;
}
.verse-inline .verse-arabic {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  margin-bottom: 0.8rem;
}
.verse-inline .verse-translation {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.verse-inline .verse-citation {
  font-size: 0.72rem;
}

/* Centered band wrapper (used on homepage) */
.verse-band {
  padding: 5rem 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.verse-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184, 81, 42, 0.05), transparent 70%);
  pointer-events: none;
}
.verse-band .container {
  position: relative;
  max-width: 880px;
  text-align: center;
}
.verse-band .verse-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.verse-band .verse-eyebrow::before,
.verse-band .verse-eyebrow::after {
  content: ''; width: 28px; height: 1px; background: var(--accent);
}
.verse-band h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.verse-band h2 em { font-style: italic; color: var(--green); }
.verse-band > .container > p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.verse-band .verse-panel {
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}