/* My Local Masjid — modern static site
   Shared visual system:
   Parent: ivory / deep green / gold
   Marriage Database: burgundy / gold
   Masail: deep green / gold
*/

:root {
  --ink: #17231f;
  --muted: #68736f;
  --cream: #f7f2e7;
  --paper: #fffdf8;
  --gold: #c7a24f;
  --gold-dark: #96742f;
  --green: #173f32;
  --green-deep: #102f26;
  --burgundy: #551424;
  --burgundy-soft: #75283c;
  --line: rgba(23, 35, 31, .11);
  --shadow: 0 26px 70px rgba(23, 35, 31, .10);
  --shadow-soft: 0 16px 40px rgba(23, 35, 31, .08);
  --radius: 28px;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .78);
  border-bottom: 1px solid rgba(23,35,31,.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(23,35,31,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}

.main-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #41504a;
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.main-nav a:hover {
  background: rgba(23,63,50,.07);
  color: var(--green);
  transform: translateY(-1px);
}

/* Typography */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .72rem;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

h1, h2, h3, p { margin-top: 0; }

h1,
.section-title,
.product-card h3,
.info-card h3,
.hero-card h2 {
  font-family: var(--serif);
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 5vw, 4.45rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  max-width: 900px;
}

.lead {
  max-width: 710px;
  font-size: 1.08rem;
  color: #52605b;
}

/* Buttons */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 11px 26px rgba(23,63,50,.18);
}

.btn-primary:hover { background: var(--green-deep); }

.btn-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.66);
  color: var(--ink);
}

/* Homepage hero */

.hero {
  position: relative;
  overflow: hidden;
}

.home-hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 82% 12%, rgba(199,162,79,.17), transparent 25%),
    radial-gradient(circle at 6% 90%, rgba(23,63,50,.07), transparent 28%),
    linear-gradient(135deg, #f7f2e7 0%, #fffdf8 56%, #f4eee1 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,63,50,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,63,50,.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 88%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  align-items: center;
  padding: 82px 0;
}

.hero-panel {
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-grid-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(199,162,79,.14);
  filter: blur(70px);
}

.hero-card {
  position: relative;
  z-index: 3;
  width: min(430px, 86%);
  padding: 44px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
    var(--green);
  color: white;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.05), transparent);
  pointer-events: none;
}

.hero-card h2 {
  margin-bottom: 18px;
  font-size: 1.95rem;
  line-height: 1.28;
}

.hero-card p {
  margin: 0;
  color: rgba(255,255,255,.75);
}

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

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(23,63,50,.12);
  border-radius: 50%;
  will-change: transform;
}

.orbit-one {
  width: 500px;
  height: 500px;
  animation: orbitRotate 28s linear infinite;
}

.orbit-two {
  width: 365px;
  height: 365px;
  border-style: dashed;
  animation: orbitRotateReverse 34s linear infinite;
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(23,35,31,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.83);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  color: #41504a;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  animation: softFloat 5.5s ease-in-out infinite;
}

.float-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(199,162,79,.14);
}

.chip-one { top: 16%; left: 1%; }
.chip-two { top: 63%; right: 0; animation-delay: -1.8s; }
.chip-three { bottom: 11%; left: 12%; animation-delay: -3.2s; }

@keyframes softFloat {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitRotateReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Generic sections */

.section { padding: 104px 0; }
.section-light { background: var(--paper); }

.split-section {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 78px;
  align-items: start;
}

.section-title {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4.2vw, 3.45rem);
  line-height: 1.18;
  letter-spacing: -.035em;
}

.body-copy {
  font-size: 1.04rem;
  color: #56635e;
}

.body-copy p + p { margin-top: 22px; }

.values-grid,
.product-grid,
.three-col {
  display: grid;
  gap: 22px;
}

.values-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 68px;
}

.value-card,
.info-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 28px rgba(23,35,31,.035);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.value-card:hover,
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(199,162,79,.35);
}

.value-number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.value-card h3,
.info-card h3 {
  margin-bottom: 11px;
  font-size: 1.2rem;
}

.value-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

/* Initiatives */

.initiatives-section {
  position: relative;
  background:
    radial-gradient(circle at 12% 0%, rgba(199,162,79,.10), transparent 24%),
    #f1ebdf;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 50px;
}

.section-heading.center,
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.center p,
.final-cta .container > p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.product-grid { grid-template-columns: repeat(2, 1fr); }

.product-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  border-radius: 28px;
  color: white;
  box-shadow: 0 20px 58px rgba(25,27,25,.10);
  transition: transform .32s ease, box-shadow .32s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 38px rgba(255,255,255,.02), 0 0 0 78px rgba(255,255,255,.018);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 75px rgba(25,27,25,.16);
}

.marriage-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(199,162,79,.18), transparent 35%),
    linear-gradient(145deg, #5a1526, #3e0e1b);
}

.masail-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(199,162,79,.18), transparent 35%),
    linear-gradient(145deg, #184335, #0f2d24);
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.product-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.7rem;
}

.status-pill {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.76);
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.product-card h3 {
  margin-bottom: 17px;
  font-size: 2.2rem;
}

.product-card p {
  color: rgba(255,255,255,.77);
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #f6dc9f;
  font-weight: 700;
}

.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

/* Quote */

.quote-section { background: var(--paper); }

.quote-wrap { max-width: 880px; }

.quote-mark {
  margin-bottom: -25px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 5rem;
  line-height: .8;
}

blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.4vw, 2.95rem);
  line-height: 1.38;
  letter-spacing: -.025em;
}

/* Contact */

.contact-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(199,162,79,.12), transparent 25%),
    var(--green);
  color: white;
}

.contact-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: -200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 0 0 45px rgba(255,255,255,.018), 0 0 0 95px rgba(255,255,255,.015);
}

.contact-section .eyebrow { color: var(--gold); }
.contact-section .section-title { color: white; }
.contact-section p { color: rgba(255,255,255,.72); }

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 78px;
}

.contact-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
  color: rgba(255,255,255,.72);
}

.contact-note strong { color: white; }

.contact-form {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}

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

.contact-form label {
  display: block;
  margin-bottom: 17px;
  color: rgba(255,255,255,.88);
  font-size: .87rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,.07);
  color: white;
  font: inherit;
  transition: border-color .2s ease, background .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(199,162,79,.65);
  background: rgba(255,255,255,.09);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,.42);
}

.contact-form .btn-primary {
  background: var(--gold);
  color: #1d2b26;
  box-shadow: none;
}

.form-disclaimer {
  display: block;
  margin-top: 13px;
  color: rgba(255,255,255,.48);
}

/* Footer */

.site-footer {
  padding: 31px 0;
  background: #0f211b;
  color: rgba(255,255,255,.68);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: .86rem;
}

.footer-wrap p { margin: 0; }
.footer-brand { color: white; }

/* Product pages */

.product-hero {
  min-height: 600px;
  display: flex;
  align-items: center;
}

.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr .5fr;
  gap: 70px;
  align-items: center;
  padding: 78px 0;
}

.product-hero h1 {
  max-width: 780px;
  font-size: clamp(2.85rem, 5.4vw, 4.75rem);
}

.marriage-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(199,162,79,.15), transparent 26%),
    linear-gradient(135deg, #fffaf4, #f6e8e9);
}

.masail-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(199,162,79,.16), transparent 26%),
    linear-gradient(135deg, #fbf8ef, #e8f0eb);
}

.symbol-panel {
  position: relative;
  min-height: 335px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 17px;
  border-radius: 30px;
  color: white;
  box-shadow: var(--shadow);
  overflow: visible;
}

.symbol-panel > span {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3.5rem;
}

.symbol-panel p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-style: italic;
}

.marriage-symbol {
  background: linear-gradient(145deg, #5a1526, #3f0f1c);
}

.masail-symbol {
  background: linear-gradient(145deg, #194537, #0f2f26);
}

.product-float {
  position: absolute;
  z-index: 5;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23,35,31,.08);
  background: rgba(255,255,255,.9);
  color: #43514b;
  box-shadow: var(--shadow-soft);
  font-size: .76rem;
  font-weight: 700;
  animation: softFloat 5.8s ease-in-out infinite;
}

.product-float-one { top: 15%; left: -12%; }
.product-float-two { right: -11%; bottom: 18%; animation-delay: -2.4s; }

.three-col {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 68px;
}

.info-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 27px;
  border-radius: 15px;
  background: var(--cream);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.25rem;
}

.process-section {
  background:
    linear-gradient(rgba(23,63,50,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,63,50,.02) 1px, transparent 1px),
    #f1ebdf;
  background-size: 46px 46px;
}

.process-list {
  border-top: 1px solid rgba(23,35,31,.14);
}

.process-step {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 30px;
  padding: 29px 0;
  border-bottom: 1px solid rgba(23,35,31,.14);
  transition: padding-left .25s ease, background .25s ease;
}

.process-step:hover {
  padding-left: 10px;
}

.process-step > span {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: .1em;
}

.process-step h3 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.trust-band {
  background: linear-gradient(145deg, #5a1526, #3d0d1a);
  color: white;
}

.masail-trust {
  background: linear-gradient(145deg, #194537, #0e2d24);
}

.trust-band .eyebrow { color: var(--gold); }

.trust-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 78px;
}

.trust-items p {
  padding: 17px 0;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.74);
}

.trust-items p:first-child {
  border-top: 1px solid rgba(255,255,255,.14);
}

.trust-items strong { color: white; }

.final-cta { background: var(--paper); }
.final-cta .btn { margin-top: 18px; }

.marriage-page .btn-primary { background: var(--burgundy); }
.marriage-page .btn-primary:hover { background: #3f0e1a; }
.marriage-page .brand-mark { background: var(--burgundy); }
.masail-page .btn-primary { background: var(--green); }

/* Animation helpers */

.gsap-ready .anim-hidden {
  opacity: 0;
  transform: translateY(26px);
}

/* Reduced motion */

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

/* Responsive */

@media (max-width: 920px) {
  .hero-grid,
  .split-section,
  .contact-grid,
  .product-hero-inner,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .values-grid,
  .three-col {
    grid-template-columns: 1fr;
  }

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

  .hero-panel {
    min-height: 430px;
  }

  .product-hero-inner {
    padding: 68px 0;
  }

  .symbol-panel {
    min-height: 290px;
    max-width: 560px;
    width: 100%;
  }

  .product-float-one { left: 3%; }
  .product-float-two { right: 3%; }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header { position: static; }

  .nav-wrap {
    min-height: auto;
    padding: 17px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: 14px;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .home-hero { min-height: auto; }

  .hero-grid,
  .product-hero-inner {
    padding: 58px 0;
  }

  h1,
  .product-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.55rem);
  }

  .section { padding: 76px 0; }

  .hero-card,
  .product-card {
    padding: 28px;
  }

  .hero-panel { min-height: 360px; }

  .orbit-one {
    width: 340px;
    height: 340px;
  }

  .orbit-two {
    width: 255px;
    height: 255px;
  }

  .float-chip {
    font-size: .7rem;
    padding: 8px 10px;
  }

  .chip-one { top: 8%; left: 0; }
  .chip-two { top: auto; right: 0; bottom: 7%; }
  .chip-three { display: none; }

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

  .process-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .product-float {
    font-size: .7rem;
    padding: 8px 10px;
  }
}
