/* =============================================
   FREEQURANS.CO.ZA — STYLESHEET
   ============================================= */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A07830;
  --dark: #0E0E0E;
  --dark-2: #1A1A1A;
  --dark-3: #252525;
  --cream: #F5F0E8;
  --cream-2: #EDE7D9;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --white: #FFFFFF;
  --border: rgba(201, 168, 76, 0.2);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   NAV
   ============================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-icon {
  color: var(--gold);
  font-size: 1.4rem;
}

.logo-za {
  color: var(--gold);
  font-size: 0.85em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--gold); }

.btn-donate {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  transition: all var(--transition) !important;
}

.btn-donate:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.35);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 16px 36px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.95rem;
  font-weight: 400;
  transition: all var(--transition);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-full { width: 100%; text-align: center; }

/* =============================================
   HERO
   ============================================= */

.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
  gap: 60px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.06);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  animation: fadeUp 0.9s ease both;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.stat { text-align: left; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* BOOK VISUAL */
.hero-visual {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.9s 0.2s ease both;
}

.book-card {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.2);
  width: 240px;
  height: 340px;
  transform: rotate(-3deg);
  transition: transform var(--transition);
}

.book-card:hover { transform: rotate(0deg) scale(1.02); }

.book-spine {
  width: 32px;
  background: var(--gold-dark);
  flex-shrink: 0;
}

.book-cover {
  flex: 1;
  background: linear-gradient(145deg, #1a2a1a 0%, #0d1a0d 100%);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.book-cover-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(-45deg, rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px, transparent 1px, transparent 12px);
}

.book-cover-text { position: relative; z-index: 1; }

.book-subtitle {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.book-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.book-edition {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.floating-tag {
  position: absolute;
  bottom: -16px;
  right: -20px;
  background: var(--gold);
  color: var(--dark);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

.floating-tag small { font-size: 0.68rem; opacity: 0.7; }

/* =============================================
   MARQUEE
   ============================================= */

.marquee-wrap {
  background: var(--gold);
  overflow: hidden;
  padding: 14px 0;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  gap: 0;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--dark);
  letter-spacing: 0.08em;
  padding-right: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =============================================
   SECTION SHARED
   ============================================= */

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--gold-dark);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

/* =============================================
   ORDER CARDS
   ============================================= */

.order-section {
  padding: 100px 0;
  background: var(--dark);
  text-align: center;
}

.order-section .section-label { color: var(--gold); }
.order-section .section-title { color: var(--white); }
.order-section .section-sub { color: rgba(255,255,255,0.5); }

.order-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.order-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: left;
  transition: all var(--transition);
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.order-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.order-card--free { border-color: rgba(201,168,76,0.3); }

.order-card-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.order-card--gift .order-card-badge { background: var(--dark-3); color: var(--gold); border: 1px solid var(--gold); }
.order-card--muslim .order-card-badge { background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2); }

.order-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}

.order-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.order-card-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.order-card:hover .order-card-arrow { transform: translateX(6px); }

/* =============================================
   ORDER FORM
   ============================================= */

.form-section {
  padding: 100px 0;
  background: var(--cream-2);
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.form-info .section-title { color: var(--dark); }

.form-promises {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-promises li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.order-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid #E0D9CC;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}

.form-group textarea { resize: vertical; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.form-note a { color: var(--gold-dark); text-decoration: underline; }

/* =============================================
   WHY SECTION
   ============================================= */

.why-section {
  padding: 100px 0;
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.why-card {
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-2);
  transition: all var(--transition);
}

.why-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

.why-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 20px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   TESTIMONIALS
   ============================================= */

.testimonials-section {
  padding: 100px 0;
  background: var(--dark);
}

.testimonials-section .section-label { color: var(--gold); }
.testimonials-section .section-title { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.testimonial-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.testimonial-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
}

.testimonial-author span {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

/* =============================================
   FAQ
   ============================================= */

.faq-section {
  padding: 100px 0;
  background: var(--cream);
}

.faq-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.faq-section .section-title { color: var(--dark); }
.faq-section p { color: var(--text-muted); font-size: 0.95rem; }
.faq-section a { color: var(--gold-dark); text-decoration: underline; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] { border-color: var(--gold); }

.faq-item summary {
  padding: 20px 24px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: color var(--transition);
}

.faq-item summary:hover { color: var(--gold-dark); }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform var(--transition);
  line-height: 1;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* =============================================
   FINAL CTA
   ============================================= */

.cta-section {
  background: var(--gold);
  padding: 100px 0;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 16px;
}

.cta-inner p {
  color: rgba(14,14,14,0.65);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.cta-section .btn-primary {
  background: var(--dark);
  color: var(--white);
}

.cta-section .btn-primary:hover {
  background: var(--dark-2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
}

.footer-brand .logo-text,
.footer-brand .logo-icon {
  color: var(--white);
}

.footer-brand .logo-za { color: var(--gold); }

.footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; }

.footer-bottom div {
  display: flex;
  gap: 24px;
}

.footer-bottom a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--gold); }

/* =============================================
   INNER PAGES
   ============================================= */

.page-hero {
  background: var(--dark);
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero .section-label { color: var(--gold); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  margin-top: 8px;
}

.page-content {
  padding: 80px 24px;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 48px 0 16px;
  color: var(--dark);
}

.page-content p { margin-bottom: 20px; }

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .form-container,
  .faq-container,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .hero-sub { max-width: 100%; }

  .hero-cta { justify-content: center; }

  .hero-stats { justify-content: center; }

  .hero-visual { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .order-form { padding: 28px 20px; }
  .footer-links { grid-template-columns: 1fr; }
}
