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

:root {
  --cream:   #FAF6EE;
  --cream2:  #F2EBD9;
  --teal:    #1C5B68;
  --teal-lt: #2E7A8A;
  --teal-bg: #EAF3F5;
  --amber:   #D97C2B;
  --amber-lt:#F5A855;
  --charcoal:#232323;
  --mid:     #4A4A4A;
  --light:   #8A8A8A;
  --white:   #FFFFFF;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(250,246,238,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28,91,104,0.12);
  transition: box-shadow 0.3s var(--ease);
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--amber); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

.nav-login {
  border: 1.5px solid var(--teal) !important;
  color: var(--teal) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s !important;
}
.nav-login:hover { background: var(--teal) !important; color: var(--white) !important; }

.nav-logout-btn {
  background: none;
  border: 1.5px solid var(--teal);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  transition: background 0.2s, color 0.2s;
}
.nav-logout-btn:hover { background: var(--teal); color: var(--white); }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--teal-lt) !important; transform: translateY(-1px); }

/* ── SHARED SECTION UTILS ── */
section { padding: 100px 5%; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--teal); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  padding: 60px 5% 40px;
  color: rgba(255,255,255,0.55);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand .nav-logo { color: var(--white); display: inline-block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; max-width: 300px; line-height: 1.75; }
.footer-brand a.footer-email {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--amber-lt);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}

/* ── INNER PAGE LAYOUT ── */
.inner-page {
  min-height: calc(100vh - 72px);
  padding: 100px 5% 60px;
}

.page-header { margin-bottom: 3rem; }
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-header p { color: var(--mid); font-size: 1.05rem; margin-top: 0.75rem; }

/* ── FORM CARD ── */
.form-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  max-width: 500px;
  margin: 0 auto;
}
.form-card h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.form-card .subtitle { color: var(--mid); font-size: 0.95rem; margin-bottom: 2rem; }

.form-card .form-control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--cream2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-card textarea.form-control { resize: vertical; }
.form-card .form-control:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(28,91,104,0.08);
  outline: none;
}
.form-card .form-control.is-invalid { border-color: var(--amber); }
.form-card .field-body,
.form-card > .mb-3,
.form-card .mb-3 { width: 100%; }
.form-card .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.form-card .btn.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  border-radius: 100px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-family: var(--sans);
  transition: background 0.2s, transform 0.15s;
}
.form-card .btn.btn-primary:hover {
  background: var(--teal-lt);
  border-color: var(--teal-lt);
  transform: translateY(-1px);
}
.form-card .invalid-feedback { color: var(--amber); font-size: 0.82rem; }
.form-card a { color: var(--teal); text-decoration: none; }
.form-card a:hover { color: var(--teal-lt); }
.form-card .form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }

/* ── ALERT OVERRIDES ── */
.alert { border-radius: 12px; font-size: 0.92rem; padding: 1rem 1.25rem; border-width: 1.5px; font-family: var(--sans); }
.alert-success { background: rgba(28,91,104,0.06); border-color: rgba(28,91,104,0.2); color: var(--teal); }
.alert-danger  { background: rgba(217,124,43,0.08); border-color: rgba(217,124,43,0.25); color: var(--amber); }

/* ── LOGIN MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(35,35,35,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 32px; height: 32px;
  border: none; background: var(--cream);
  border-radius: 50%; cursor: pointer;
  font-size: 1.2rem; color: var(--mid); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--cream2); }

.modal-card h2 {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.modal-card .modal-subtitle { color: var(--mid); font-size: 0.95rem; margin-bottom: 2rem; }

.modal-field { margin-bottom: 1.1rem; }
.modal-field label {
  display: block;
  font-size: 0.85rem; font-weight: 500;
  color: var(--charcoal); margin-bottom: 0.4rem;
}
.modal-field input {
  display: block; width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--cream2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--sans); font-size: 0.9rem;
  background: var(--cream); color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.modal-field input:focus {
  border-color: var(--teal); background: var(--white);
  box-shadow: 0 0 0 3px rgba(28,91,104,0.08); outline: none;
}
.modal-remember {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.modal-remember input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--teal); cursor: pointer; flex-shrink: 0;
}
.modal-remember label {
  font-size: 0.88rem; color: var(--mid); cursor: pointer; margin: 0;
}
.modal-submit {
  display: block; width: 100%;
  background: var(--teal); color: var(--white);
  border: none; border-radius: 100px;
  padding: 0.85rem 2rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.modal-submit:hover { background: var(--teal-lt); transform: translateY(-1px); }
.modal-footer-link {
  text-align: center; margin-top: 1.25rem;
  font-size: 0.88rem; color: var(--mid);
}
.modal-footer-link a { color: var(--teal); text-decoration: none; }
.modal-footer-link a:hover { color: var(--teal-lt); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 999;
  padding: 1rem 1.5rem 1.5rem;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu ul li { border-bottom: 1px solid var(--stone-lt, #e8e4de); }
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-menu ul li a,
.mobile-menu ul li .nav-logout-btn {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.mobile-menu ul li a:hover,
.mobile-menu ul li .nav-logout-btn:hover { color: var(--teal); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-card  { padding: 2rem 1.5rem; }
  .modal-card { padding: 2rem 1.5rem; }
}
@media (max-width: 640px) {
  .nav-links      { display: none; }
  .nav-hamburger  { display: flex; }
  .mobile-menu    { display: block; }
  .footer-top     { grid-template-columns: 1fr; }
  .inner-page     { padding: 100px 1.25rem 60px; }
}
