/* ==========================================================================
   Need It Now Notary - Design System
   ========================================================================== */

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

:root {
  --navy: #0c1829;
  --navy-mid: #142236;
  --navy-light: #1a2d47;
  --gold: #c9a84c;
  --gold-light: #dfc070;
  --gold-dark: #a8893d;
  --cream: #f5f0e8;
  --white: #ffffff;
  --text-muted: #8a99b0;
  --success: #4ade80;
  --error: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 24, 41, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo a {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo a:hover { color: var(--gold-light); }

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-icon-lg {
  width: 48px;
  height: 48px;
}

.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

/* Footer logo layout — overrides consolidated below in FOOTER section */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-phone {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-phone:hover {
  color: var(--gold-light);
}

.nav-phone svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: var(--transition);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-light);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
  opacity: 0.4;
}

/* ==========================================================================
   PAGE HEADER (for inner pages)
   ========================================================================== */

.page-header {
  padding: 4rem 4rem 3rem;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 550px;
  margin: 0 auto;
  position: relative;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background: var(--navy-mid);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.08);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(201, 168, 76, 0.15);
}

.card-gold {
  border-left: 3px solid var(--gold);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-required {
  color: var(--gold);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: var(--navy);
  border: 1px solid rgba(138, 153, 176, 0.2);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-select {
  appearance: none;
  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 fill='%238a99b0' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--navy-mid);
  color: var(--cream);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.35rem;
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: var(--error);
}

.form-group.error .form-error {
  display: block;
}

/* ==========================================================================
   HERO BADGE
   ========================================================================== */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--navy-mid);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 100px;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  color: var(--gold-light);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  padding: 3rem 4rem;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.footer-brand .logo-text {
  font-size: 1.3rem;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-contact p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-contact a {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ALERT / STATUS MESSAGES
   ========================================================================== */

.alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: var(--success);
}

.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: var(--error);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 4rem; }
.hidden { display: none !important; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 24, 41, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-phone {
    display: none;
  }

  .page-header {
    padding: 3rem 1.5rem 2rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  footer {
    padding: 2rem 1.5rem;
  }
}
