/* NikkahNest website — shared styles
   nikkahnest-website → public → styles.css */

@import url("https://fonts.googleapis.com/css2?family=Marcellus&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  --teal: #1e4d4f;
  --teal-deep: #133638;
  --gold: #b08a3e;
  --gold-light: #d8b56a;
  --gold-soft: #efe4c8;
  --cream: #f6efd9;
  --ivory: #f8f6f0;
  --ink: #1b2523;
  --muted: #5d6865;
  --line: #e2dccb;
  --display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 1.25rem;
  --shadow: 0 18px 40px rgba(12, 38, 39, 0.18);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 246, 240, 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(226, 220, 203, 0.7);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--teal);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.4rem;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.97rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--teal); }

.site-nav a.nav-cta {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta[aria-current="page"] { background: var(--teal-deep); color: #fff; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font: 600 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: wait; transform: none; }

.button.gold { background: var(--gold); color: #fff; }
.button.gold:hover { background: #9b7834; }

.button.ghost {
  background: transparent;
  border-color: rgba(246, 239, 217, 0.55);
  color: var(--cream);
}
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(216, 181, 106, 0.16), transparent 60%),
    linear-gradient(160deg, #1d7262 0%, var(--teal) 45%, var(--teal-deep) 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border: 1.5px solid var(--gold-light);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.25rem 0 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  line-height: 1.04;
  color: var(--cream);
}

.hero-lead {
  margin: 0;
  max-width: 30rem;
  font-size: 1.2rem;
  color: #d8e6e1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: #cfe0da;
}

.trust li { display: flex; align-items: center; gap: 0.45rem; }
.trust li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold-light);
}

.soon { display: block; margin-top: 1rem; font-size: 0.9rem; color: #b9cfc8; }

/* ---------- Slideshow ---------- */

.slideshow {
  position: relative;
  justify-self: center;
  width: min(100%, 23rem);
}

.slides {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(216, 181, 106, 0.35);
  background: var(--teal-deep);
  touch-action: pan-y;
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slides img.is-active { opacity: 1; }

.slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: -1.375rem;
  border: 0;
  border-radius: 50%;
  background: rgba(248, 246, 240, 0.94);
  color: var(--teal-deep);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.slide-arrow:hover { transform: scale(1.06); }
.slide-arrow.prev { left: -1.375rem; }
.slide-arrow.next { right: -1.375rem; }

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.slide-dots button {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 239, 217, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.slide-dots button[aria-current="true"] { width: 1.6rem; background: var(--gold-light); }

/* ---------- Home: sections ---------- */

.section { padding: 5rem 0 0; }

.section-head {
  max-width: 38rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-head h2 {
  margin: 0.9rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--teal);
}

.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }

.section-head .eyebrow { border-color: var(--gold); color: var(--gold); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 0.9rem;
  background: var(--gold-soft);
  color: var(--teal);
}

.card-icon svg { width: 1.5rem; height: 1.5rem; }

.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--teal);
}

.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Register band */

.join {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  border-radius: 1.75rem;
  color: var(--cream);
  background:
    radial-gradient(30rem 18rem at 0% 0%, rgba(216, 181, 106, 0.18), transparent 60%),
    linear-gradient(140deg, var(--teal) 0%, var(--teal-deep) 100%);
}

.join h2 {
  margin: 0.9rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--cream);
}

.join p { margin: 0; color: #d3e3dd; }

.join .signup {
  padding: 1.5rem;
  background: #fff;
  color: var(--ink);
}

.join .signup p { color: var(--muted); }
.join .signup .form-message.ok { color: var(--teal); }
.join .signup .form-message.error { color: #a3352b; }

/* Contact */

.connect-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.connect-link:hover { border-color: var(--gold); transform: translateY(-1px); color: var(--teal-deep); }
.connect-link svg { width: 1.35rem; height: 1.35rem; }

/* ---------- Forms (register, unsubscribe, home) ---------- */

.signup {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.signup label { font-weight: 600; margin-top: 0.5rem; }
.signup .optional { font-weight: 400; color: var(--muted); }

.signup input[type="text"],
.signup input[type="email"] {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--ivory);
  font: inherit;
  color: var(--ink);
}

.signup input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(30, 77, 79, 0.18); }

.signup .check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.9rem 0 0.5rem;
  font-weight: 400;
  font-size: 0.95rem;
}

.signup .check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--teal); flex: none; }

.signup .button { align-self: flex-start; margin-top: 0.3rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-message { margin: 0.4rem 0 0; min-height: 1.4em; font-weight: 600; }
.form-message.ok { color: var(--teal); }
.form-message.error { color: #a3352b; }

.fine-print { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }

/* ---------- Legal / support / register pages ---------- */

.page {
  max-width: 46rem;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.page h1 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 2.9rem);
  color: var(--teal);
  line-height: 1.15;
}

.updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1rem;
}

.page h2 {
  margin: 2.5rem 0 0.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--teal);
}

.page h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.page ul { padding-left: 1.25rem; }
.page li { margin: 0.3rem 0; }

.register { max-width: 34rem; }
.register-logo { width: 96px; height: 96px; object-fit: contain; margin-bottom: 0.5rem; }

.contents {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 0.75rem 0.75rem 0;
  background: #fff;
}

.contents p { margin: 0 0 0.4rem; font-weight: 600; }

.contents ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 14rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--gold-soft);
  border-radius: 0.9rem;
}

.callout strong { color: var(--teal-deep); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 500;
}

.faq details[open] summary::after { content: "–"; }

.faq details p { margin: 0.6rem 0 0; color: var(--muted); }

.contact-box {
  margin: 2.5rem 0 0;
  padding: 1.6rem;
  background: linear-gradient(140deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
}

.contact-box h2 { color: #fff; margin-top: 0; }
.contact-box a { color: var(--gold-soft); font-weight: 600; }
.contact-box p { color: #e3ece9; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 5.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .brand { font-size: 1.15rem; }
.site-footer .brand img { width: 32px; height: 32px; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer .brand, .site-footer .brand:hover { color: var(--teal); }

/* ---------- Home: store badges ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  border: 1px solid rgba(246, 239, 217, 0.35);
  border-radius: 0.8rem;
  background: rgba(10, 30, 31, 0.55);
  color: #fff;
  font-weight: 600;
  line-height: 1.15;
}

.store svg { width: 1.5rem; height: 1.5rem; flex: none; }
.store small { display: block; font-size: 0.7rem; font-weight: 500; color: #c9d8d4; }

/* ---------- Home: values strip ---------- */

.strip { background: #fff; border-bottom: 1px solid var(--line); }

.strip ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1.6rem 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.strip li { padding-left: 1rem; border-left: 3px solid var(--gold-light); }
.strip strong { display: block; color: var(--teal); font-size: 1.05rem; }

/* ---------- Home: pillars ---------- */

.eyebrow.dark, .section-head .eyebrow { border-color: var(--gold); color: var(--gold); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar {
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.pillar-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(140deg, var(--teal), var(--teal-deep));
  color: var(--gold-light);
}

.pillar-icon svg { width: 1.6rem; height: 1.6rem; }

.pillar-tag {
  display: block;
  margin-top: 1.25rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pillar h3 {
  margin: 0.35rem 0 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--teal);
}

.ticks { margin: 0; padding: 0; list-style: none; }

.ticks li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Home: steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gold-soft);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  font-weight: 700;
}

.steps h3 {
  margin: 1rem 0 0.4rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--teal-deep);
}

.steps p { margin: 0; color: #4a5653; font-size: 0.97rem; }

/* ---------- Home: Gold ---------- */

.gold-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #fbf6e8 0%, var(--gold-soft) 100%);
  border: 1px solid #e3d3a8;
}

.gold-panel h2 {
  margin: 0.9rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--teal);
}

.gold-panel p { margin: 0; color: #4a5653; }
.gold-panel .gold-note { margin-top: 1rem; font-weight: 600; color: var(--gold); }
.gold-eyebrow { border-color: var(--gold); color: var(--gold); }

.gold-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: #fff;
}

.gold-list li { color: var(--ink); font-weight: 500; }

/* ---------- Home: about ---------- */

.about {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 3rem;
  align-items: center;
}

.about-logo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--ivory) 70%);
  border: 1px solid var(--line);
}

.about-logo img { width: 62%; height: auto; }

.about h2 {
  margin: 0.9rem 0 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--teal);
}

.about blockquote {
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--gold);
}

.about blockquote p {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--teal-deep);
}

.founders { margin: 1.4rem 0 0; color: var(--muted); }
.founders strong { color: var(--teal); }

/* ---------- Footer extras ---------- */

.site-footer .wrap { display: block; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.company {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

.company a { color: var(--muted); text-decoration: underline; }

@media (max-width: 62rem) {
  .pillars { grid-template-columns: 1fr; max-width: 40rem; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gold-panel { grid-template-columns: 1fr; padding: 2.25rem 1.5rem; }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 52rem) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about-logo { width: 12rem; margin: 0 auto; }
  .stores { justify-content: center; }
}

@media (max-width: 40rem) {
  .steps { grid-template-columns: 1fr; }
  .gold-list { grid-template-columns: 1fr; }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 62rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .join { grid-template-columns: 1fr; padding: 2.25rem 1.5rem; }
}

@media (max-width: 52rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
    text-align: center;
  }
  .hero-lead { margin: 0 auto; }
  .hero-actions, .trust { justify-content: center; }
  .slideshow { width: min(100%, 19rem); }
}

@media (max-width: 40rem) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .site-nav { gap: 1rem; font-size: 0.92rem; }
  .cards { grid-template-columns: 1fr; }
  .slide-arrow.prev { left: 0.5rem; }
  .slide-arrow.next { right: 0.5rem; }
  .section { padding-top: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides img { transition: none; }
  .button, .card, .connect-link { transition: none; }
}
