/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #a07830;
  --gold-light: #c8a96e;
  --gold-dark: #7a5e18;
  --bg: #ffffff;
  --bg-alt: #faf8f3;
  --bg-card: #f5f2eb;
  --bg-dark-section: #1a1206;
  --text: #1a1206;
  --text-secondary: #5a4a2a;
  --text-muted: #8a7a5a;
  --border: rgba(160, 120, 48, 0.12);
  --border-strong: rgba(160, 120, 48, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(160, 120, 48, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(160, 120, 48, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(160, 120, 48, 0.06);
}

.btn-nav {
  padding: 10px 24px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  border-radius: 50px;
}

.btn-large {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(160, 120, 48, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(116, 185, 232, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(160, 120, 48, 0.04) 0%, transparent 40%);
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  margin-bottom: 28px;
}
.hero-logo svg {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  filter: drop-shadow(0 0 16px rgba(160, 120, 48, 0.25));
}

.hero-label {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text);
}

.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}
.stat-number {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.8;
}

/* ===== Features Grid ===== */
.features { background: var(--bg-alt); }
.features .section-label { text-align: center; display: block; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.feature-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

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

/* ===== Screenshots ===== */
.screenshots {
  background: var(--bg);
}
.screenshots .section-label { text-align: center; display: block; }

.screenshot-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  border-color: transparent;
}

.screenshot-display {
  text-align: center;
}

.screenshot-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.screenshot-placeholder {
  display: none;
  width: 100%;
}
.screenshot-placeholder.active {
  display: block;
}

.board-iframe {
  width: 100%;
  height: 580px;
  border: none;
  border-radius: var(--radius);
  transform-origin: top left;
  pointer-events: none;
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--bg-alt);
}
.how-it-works .section-label { text-align: center; display: block; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Offering ===== */
.offering {
  background: var(--bg);
}
.offering .section-label { text-align: center; display: block; }

.offering-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.offering-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all 0.3s ease;
}
.offering-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.offering-number {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}

.offering-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.offering-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Islamic Features ===== */
.islamic-features {
  background: var(--bg-alt);
}

.islamic-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.islamic-text .section-label { display: block; }

.islamic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.islamic-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.islamic-list li strong {
  font-size: 0.95rem;
  color: var(--text);
}
.islamic-list li span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.prayer-colors-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-block {
  padding: 24px 32px;
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease;
}
.color-block:hover {
  transform: scale(1.03);
}

/* ===== Contact Form ===== */
.contact {
  background: var(--bg);
}
.contact .section-label { text-align: center; display: block; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138, 122, 90, 0.5);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160, 120, 48, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.info-card:hover {
  border-color: var(--border-strong);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(160, 120, 48, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--gold);
}

.info-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 60px 20px;
}
.form-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
}
.form-success h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.form-success p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta {
  background: var(--bg-dark-section);
  text-align: center;
  padding: 120px 0;
}

.cta-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 550px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.cta-text strong {
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  margin-bottom: 20px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark-section);
  border-top: 1px solid rgba(200, 169, 110, 0.15);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
}

.footer-brand-text {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-brand-text span {
  color: var(--gold-light);
}

.footer-built-by {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-ttd-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}
.footer-ttd-link:hover {
  opacity: 0.8;
}

.footer-ttd-logo {
  height: 20px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(0.6);
  transition: filter 0.2s;
}
.footer-ttd-link:hover .footer-ttd-logo {
  filter: brightness(0) invert(1) opacity(0.85);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ===== Standard Page Template ===== */
.page-content {
  padding: 140px 0 80px;
  min-height: 60vh;
}
.page-content article {
  max-width: 800px;
  margin: 0 auto;
}
.page-content article h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 24px;
}
.page-content article h2 a {
  color: inherit;
  transition: color 0.2s;
}
.page-content article h2 a:hover {
  color: var(--gold);
}
.page-content article p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 24px;
}

.page-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.page-body p {
  margin-bottom: 16px;
}

/* ===== WordPress Specific ===== */
.wp-admin-bar .nav {
  top: 32px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .islamic-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-info {
    flex-direction: row;
  }
  .info-card {
    flex: 1;
  }
}

/* ===== Mobile Menu Overlay ===== */
.mobile-overlay {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 18, 6, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-overlay.open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.mobile-overlay-inner {
  background: #fff;
  border-radius: 24px;
  padding: 48px 36px 36px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.mobile-overlay.open .mobile-overlay-inner {
  transform: scale(1) translateY(0);
}

.mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-close:hover {
  background: var(--border-strong);
  color: var(--text);
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
}
.mobile-links li {
  border-bottom: 1px solid var(--border);
}
.mobile-links li:last-child {
  border-bottom: none;
}
.mobile-links a {
  display: block;
  padding: 16px 8px;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-links a:hover {
  color: var(--gold);
}

.mobile-cta {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .offering-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-stats {
    gap: 24px;
  }

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

  .contact-info {
    flex-direction: column;
  }

  /* Preview: use aspect ratio instead of fixed height */
  .screenshot-frame {
    padding: 8px;
  }
  .board-iframe {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .screenshot-tabs {
    gap: 6px;
  }
  .tab {
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .screenshot-frame {
    padding: 6px;
  }
  .board-iframe {
    min-height: 200px;
  }

  .contact-form .btn {
    align-self: stretch;
  }
}

/* ===== Preview Lightbox ===== */
.preview-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.preview-lightbox.open {
  display: flex;
}
.preview-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 1.5rem;
}
.preview-lightbox-frame {
  width: 100%;
  height: calc(100% - 60px);
  margin-top: 50px;
  border: none;
}
.preview-tap-overlay {
  display: none;
}

@media (max-width: 768px) {
  .preview-tap-overlay {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(26, 18, 6, 0.4);
    border-radius: var(--radius);
    cursor: pointer;
    z-index: 2;
  }
  .preview-tap-label {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  .screenshot-placeholder {
    position: relative;
  }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
