/* ===================================
   SEASONS OF LIFE DESIGNS
   Brand Colors:
   - Black:  #000000
   - White:  #FFFFFF
   - Navy:   #0C1A3A
   - Gold:   #C9A84C
=================================== */

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

:root {
  --black:      #000000;
  --white:      #FFFFFF;
  --navy:       #0C1A3A;
  --navy-mid:   #0f2254;
  --gold:       #C9A84C;
  --gold-light: #dfc070;
  --gray-100:   #f5f5f7;
  --gray-400:   #6e6e73;
  --gray-600:   #3a3a3c;
  --gray-800:   #1c1c1e;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --nav-h:      64px;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== UTILITIES ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 980px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

.btn-secondary {
  background: var(--navy-mid);
  color: var(--gold-light);
}
.btn-secondary:hover {
  background: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(14, 27, 209, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}

.btn-full { width: 100%; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}
#nav.scrolled {
  background: rgba(0,0,0,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.logo-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text {
  color: var(--white);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 9px 20px;
  border-radius: 980px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

.nav-signin {
  background: transparent;
  color: rgba(255,255,255,0.7) !important;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
  cursor: pointer;
}
.nav-signin:hover {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(0,0,0,0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a,
.mobile-menu button {
  padding: 14px 24px;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
}
.mobile-menu a:hover,
.mobile-menu button:hover { color: var(--white); }

.mobile-menu-btn {
  appearance: none;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  z-index: 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(12,26,58,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 60%, rgba(201,168,76,0.08) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  text-align: center;
}

.hero-logo {
  display: block;
  width: clamp(180px, 26vw, 280px);
  height: auto;
  margin: 0 auto 26px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 800px;
  margin: 0 auto 44px;
  font-weight: 300;
}

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

.hero-sub-links {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.hero-text-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  text-decoration: none;
}
.hero-text-link:hover { color: rgba(255,255,255,0.85); }

.hero-link-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.875rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===== SECTION SHARED ===== */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.section-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 300;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-sub { margin: 0 auto; }

/* ===== SERVICES ===== */
#services {
  padding: 120px 0;
  background: var(--black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
}

.service-card {
  background: var(--gray-800);
  padding: 44px 36px;
  transition: background 0.3s ease;
}
.service-card:hover {
  background: #242426;
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 24px;
}
.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

/* ===== ABOUT ===== */
#about {
  padding: 120px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 380px;
}

.about-card {
  position: absolute;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 36px 40px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.about-card:first-child {
  top: 0;
  left: 0;
  width: 220px;
}
.about-card-offset {
  bottom: 0;
  right: 0;
  width: 220px;
  background: rgba(201,168,76,0.08) !important;
  border-color: rgba(201,168,76,0.2) !important;
}
.about-card-accent {
  width: 32px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 20px;
}
.about-stat {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.about-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  margin-bottom: 20px;
}
.about-copy .btn { margin-top: 12px; }

/* ===== CONTACT ===== */
#contact {
  padding: 120px 0;
  background: var(--black);
}

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

.contact-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}
.contact-detail a {
  font-size: 0.9rem;
  color: var(--gold);
  transition: color 0.2s;
}
.contact-detail a:hover { color: var(--gold-light); }

/* Form */
.contact-form {
  background: var(--gray-800);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  min-width: 0;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select option {
  background: #1c1c1e;
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.form-group textarea { resize: vertical; }

.form-status {
  display: none;
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.form-status.show { display: block; }

.form-status.is-success {
  color: var(--gold);
}

.form-status.is-error {
  color: #ff9f93;
}

.auth-modal-dialog.contact-modal-dialog {
  width: min(100%, 1040px);
  padding: 42px 36px 34px;
}

.contact-modal .contact-inner {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 48px;
}

.contact-modal .contact-copy,
.contact-modal .contact-form {
  min-width: 0;
}

.contact-modal .section-title {
  margin-bottom: 18px;
}

.contact-modal .contact-sub {
  margin-bottom: 24px;
}

.contact-modal .contact-form {
  margin: 0;
}

.contact-detail-text {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--gold);
}

.contact-modal-note {
  margin-top: 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.38);
}

.contact-modal-note[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.auth-modal-dialog {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100dvh - 48px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top right, rgba(201,168,76,0.14), transparent 36%),
    linear-gradient(180deg, rgba(12,26,58,0.94), rgba(0,0,0,0.96));
  padding: 36px 32px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-modal-title {
  margin-bottom: 14px;
}

.auth-modal-copy {
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.auth-form-status {
  min-height: 24px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

.auth-form-status.is-error {
  color: #ff9f93;
}

.auth-form-status.is-success {
  color: var(--gold-light);
}

/* ===== FOOTER ===== */
#footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: var(--black);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .container,
  .nav-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .auth-modal-dialog.contact-modal-dialog {
    width: min(100%, 680px);
    padding: 34px 20px 20px;
  }

  .contact-modal .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #services,
  #about,
  #contact {
    padding: 96px 0;
  }

  .section-header {
    margin-bottom: 44px;
  }

  .service-card {
    padding: 36px 28px;
  }

  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { height: 260px; }
  .about-card:first-child { width: 180px; }
  .about-card-offset { width: 180px; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

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

@media (max-width: 600px) {
  .container,
  .nav-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .logo {
    gap: 8px;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

  .logo-text {
    font-size: 0.82rem;
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-menu a,
  .mobile-menu button {
    padding-left: 18px;
    padding-right: 18px;
  }

  #hero {
    min-height: 0;
  }

  .form-row { grid-template-columns: 1fr; }
  .hero-content {
    padding: 40px 18px 68px;
  }

  .hero-logo {
    width: min(190px, 58vw);
    margin-bottom: 22px;
  }

  .hero-headline {
    font-size: 2.15rem;
    line-height: 1.06;
    margin-bottom: 20px;
  }

  .hero-sub {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 30px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    padding-inline: 20px;
  }

  .hero-actions .btn-donate-hero {
    margin-top: 4px;
  }

  .hero-scroll-hint {
    display: none;
  }

  #services,
  #about,
  #contact {
    padding: 78px 0;
  }

  .section-eyebrow {
    margin-bottom: 12px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .section-sub,
  .about-text,
  .contact-sub {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .section-header {
    margin-bottom: 32px;
  }

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

  .service-card {
    padding: 28px 22px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
  }

  .about-inner {
    gap: 32px;
  }

  .about-visual {
    height: auto;
    display: grid;
    gap: 14px;
  }

  .about-card,
  .about-card:first-child,
  .about-card-offset {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 24px 22px;
  }

  .about-card-accent {
    margin-bottom: 16px;
  }

  .about-stat {
    font-size: 2rem;
  }

  .contact-inner {
    gap: 32px;
  }

  .contact-form { padding: 24px 18px; }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

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

  .footer-inner {
    align-items: center;
    text-align: center;
  }

  .footer-logo,
  .footer-links {
    justify-content: center;
  }

  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .auth-modal {
    padding: 16px;
    place-items: start center;
  }

  .auth-modal-dialog {
    max-height: calc(100dvh - 32px);
    padding: 32px 20px 24px;
  }
}
