/* Arabic Your Way - shared stylesheet v1 */

:root {
  --ink: #1a1a1f;
  --teal: #0f3a47;
  --teal-soft: #1e5669;
  --saffron: #e89a3c;
  --saffron-light: #f5b868;
  --coral: #d96b4e;
  --ivory: #fdfaf3;
  --cream: #f5ecd9;
  --muted: #6b6459;
  --line: #e8dfc9;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  margin: 0;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { letter-spacing: -0.02em; margin: 0; }
h1 { letter-spacing: -0.035em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.font-arabic { font-family: 'Amiri', 'Times New Roman', serif; }

/* Arch shapes */
.arch    { border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px; }
.arch-sm { border-radius: 50% 50% 6px 6px / 55% 55% 6px 6px; }
.arch-lg { border-radius: 50% 50% 12px 12px / 35% 35% 12px 12px; }

/* Layout helpers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container, .container-sm { padding: 0 48px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: var(--saffron-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 40px; font-size: 16px; }

/* Typography utilities */
.pill {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
}
.eyebrow { color: var(--coral); }

.t-ink { color: var(--ink); }
.t-teal { color: var(--teal); }
.t-muted { color: var(--muted); }
.t-saffron { color: var(--saffron); }
.t-ivory { color: var(--ivory); }

/* Nav */
.site-nav {
  position: relative;
  z-index: 50;
  padding: 20px 24px;
  background: var(--ivory);
}
@media (min-width: 768px) { .site-nav { padding: 20px 48px; } }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 40px;
  height: 44px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo span { color: var(--saffron); font-size: 20px; margin-top: -4px; }
.nav-name { display: flex; flex-direction: column; line-height: 1.1; }
.nav-title { font-size: 16px; font-weight: 700; color: var(--teal); letter-spacing: -0.01em; }
.nav-sub { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-top: 2px; }

.nav-links { display: none; gap: 30px; align-items: center; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.6; }
.nav-link.is-active { color: var(--coral); }

/* Mobile menu */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 40;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
  padding: 100px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.nav-open .nav-overlay { transform: translateY(0); }
.nav-overlay a {
  font-size: 24px;
  font-weight: 700;
  color: var(--teal);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav-overlay .cta-wrap { margin-top: 24px; }

/* Hero backdrops */
.arch-bg {
  background-image:
    radial-gradient(ellipse 400px 280px at 90% 0%, rgba(232,154,60,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 280px at 10% 100%, rgba(15,58,71,0.05) 0%, transparent 70%);
}

/* Soft card */
.soft-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.soft-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15,58,71,0.08);
}

/* Arch badge */
.arch-badge {
  width: 56px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  background: var(--cream);
  color: var(--teal);
  border-radius: 50% 50% 6px 6px / 55% 55% 6px 6px;
}
.arch-badge.is-saffron { background: var(--saffron); color: var(--ink); }

/* FAQ */
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-right: 32px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--saffron);
  transition: transform 0.3s ease;
  font-weight: 300;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 16px; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Fade-up animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.48s; }

/* Sections */
.section {
  padding: 80px 24px;
}
@media (min-width: 768px) {
  .section { padding: 112px 48px; }
}
.section.is-tight { padding-top: 64px; padding-bottom: 64px; }
.section.bg-cream { background: var(--cream); }
.section.bg-ivory { background: var(--ivory); }
.section.bg-white { background: #ffffff; }
.section.bg-teal { background: var(--teal); color: var(--ivory); }
.section.bg-teal .t-teal { color: var(--ivory); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Footer */
.site-footer {
  padding: 56px 24px;
  background: white;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .site-footer { padding: 56px 48px; } }
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand-text { font-size: 14px; color: var(--muted); max-width: 360px; margin-top: 16px; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-base {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 768px) {
  .footer-base { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Page heros */
.page-hero {
  padding: 56px 24px 80px;
}
@media (min-width: 768px) {
  .page-hero { padding: 80px 48px 120px; }
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--teal);
  margin-top: 24px;
}
.page-hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-top: 24px;
  max-width: 640px;
  font-weight: 300;
  line-height: 1.55;
}

/* Forms */
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(232,154,60,0.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* Focus accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Portrait frame */
.portrait-frame {
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15,58,71,0.18);
  background: var(--teal);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Prose for blog posts */
.prose {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--teal);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { margin: 0 0 24px 1.5em; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 4px solid var(--saffron);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.1em;
  color: var(--teal);
}
.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-underline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Screen reader only */
.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;
}

/* ==========================================================================
   Mobile responsiveness pass - 20 April 2026
   ==========================================================================
   Tailwind-style breakpoints used:
   sm: 640px | md: 768px | lg: 1024px
   ========================================================================== */

/* 2.1 Nav CTA: hidden below 1024px so hamburger has room on phones */
.nav-cta-desktop { display: none; }
@media (min-width: 1024px) { .nav-cta-desktop { display: inline-flex; } }

/* 2.1 Nav overlay: big prominent brand CTA first, then links */
.nav-overlay .cta-wrap {
  order: -1;
  margin-top: 0;
  margin-bottom: 24px;
  width: 100%;
  display: flex;
}
.nav-overlay .overlay-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  border-radius: 999px;
  background: var(--saffron);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  border-bottom: none;
  box-shadow: 0 12px 28px rgba(232,154,60,0.22);
}
.nav-overlay .overlay-cta:hover { background: var(--saffron-light); }

/* 2.4 Section + container padding: tighten below 640px */
@media (max-width: 639.98px) {
  .container, .container-sm { padding: 0 20px; }
  .site-nav { padding: 18px 20px; }
  .site-footer { padding: 48px 20px; }
  .section { padding: 64px 20px; }
  .page-hero { padding: 48px 20px 64px; }
  .authority-band { padding: 28px 20px; }
}

/* 2.3 Page hero H1: step down mobile font + looser leading at smallest size */
@media (max-width: 639.98px) {
  .page-hero h1 {
    font-size: clamp(2.25rem, 8vw, 3rem);
    line-height: 1.1;
  }
}

/* 2.2 Authority marquee: replace flex-wrap-with-dots with three variants */
.authority-band .authority-desktop,
.authority-band .authority-tablet,
.authority-band .authority-mobile { display: none; }

/* Mobile: single column stack, no dots */
@media (max-width: 639.98px) {
  .authority-band .authority-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    max-width: 1280px;
    margin: 0 auto;
  }
}

/* Tablet: two-column grid, no dots */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .authority-band .authority-tablet {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 12px;
    text-align: center;
    justify-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    max-width: 880px;
    margin: 0 auto;
  }
}

/* Desktop: single row with saffron dot separators */
@media (min-width: 1024px) {
  .authority-band .authority-desktop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    max-width: 1280px;
    margin: 0 auto;
  }
  .authority-band .authority-desktop .sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--saffron);
  }
}

/* 2.5 Pricing package tiers: proper vertical spacing + smaller price on narrow phones */
@media (max-width: 374.98px) {
  .pricing-card .package-tier .price { font-size: 1.35rem; }
  .pricing-card .price { font-size: 1.65rem; }
}

/* ===========================================================
   3. CONTACT FORM (29 Apr 2026)
   Reuses existing brand variables. No new fonts, no extra
   stylesheet. Buttons keep .btn .btn-saffron classes.
   =========================================================== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: left;
}
.contact-form .cf-row { display: grid; gap: 6px; }
.contact-form label {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.01em;
}
.contact-form .cf-required { color: var(--coral); margin-left: 2px; }
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 14px;
  border: 1px solid rgba(15, 58, 71, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 154, 60, 0.18);
}
.contact-form textarea { resize: vertical; min-height: 144px; }
.contact-form .cf-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
}
.contact-form .cf-actions { margin-top: 6px; }
.contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }
.contact-form .cf-status {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 22px;
  font-weight: 500;
}
.contact-form .cf-status.is-ok { color: #1f6b3a; font-weight: 700; }
.contact-form .cf-status.is-err { color: #b3411e; font-weight: 700; }

@media (min-width: 720px) {
  .contact-form .cf-name-email { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
}

/* Form section wrapper (replaces former WA CTA region) */
.contact-section { padding: 64px 24px; background: var(--cream); }
@media (min-width: 768px) { .contact-section { padding: 88px 48px; } }
.contact-section .container { max-width: 760px; margin: 0 auto; text-align: center; }
.contact-section h2 { color: var(--teal); margin-bottom: 14px; }
.contact-section .lede { color: var(--muted); margin-bottom: 32px; max-width: 36rem; margin-left: auto; margin-right: auto; }
