/* =====================================================
   SOULMATE.COM — Modern Design System
   ===================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --clr-brand:        #c0392b;
  --clr-brand-dark:   #96251d;
  --clr-brand-light:  #f9e4e2;
  --clr-gold:         #d4a017;
  --clr-gold-light:   #fdf6e3;
  --clr-bg:           #fdfaf8;
  --clr-surface:      #ffffff;
  --clr-surface-alt:  #f7f3f0;
  --clr-border:       #e8ddd8;
  --clr-text:         #1a1a1a;
  --clr-text-muted:   #6b6560;
  --clr-text-light:   #9e9690;
  --clr-footer-bg:    #1c1412;
  --clr-footer-text:  #d4cdc9;

  --font-sans:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.08);

  --transition: 0.22s ease;

  --max-w: 1120px;
  --nav-h: 68px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography Utilities ---------- */
.text-center { text-align: center; }
.text-muted  { color: var(--clr-text-muted); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo .logo-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-brand);
  letter-spacing: -0.5px;
}
.site-logo .logo-tag {
  font-size: 0.68rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--clr-brand-light);
  color: var(--clr-brand);
}

/* Header contact */
.header-contact {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  text-align: right;
  line-height: 1.5;
}
.header-contact a {
  color: var(--clr-brand);
  font-weight: 600;
  transition: opacity var(--transition);
}
.header-contact a:hover { opacity: 0.75; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .header-contact { display: none; }
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; width: 100%; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--clr-footer-bg);
  color: var(--clr-footer-text);
  padding-block: 56px 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo-main { color: var(--clr-brand); font-size: 1.4rem; font-weight: 800; }
.footer-brand p { font-size: 0.875rem; color: var(--clr-footer-text); margin-top: 12px; line-height: 1.7; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--clr-footer-text);
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--clr-text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clr-brand);
  color: #fff;
  border-color: var(--clr-brand);
}
.btn-primary:hover { background: var(--clr-brand-dark); border-color: var(--clr-brand-dark); }

.btn-outline {
  background: transparent;
  color: var(--clr-brand);
  border-color: var(--clr-brand);
}
.btn-outline:hover { background: var(--clr-brand-light); }

.btn-gold {
  background: var(--clr-gold);
  color: #fff;
  border-color: var(--clr-gold);
}
.btn-gold:hover { background: #b8891a; border-color: #b8891a; }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* =====================================================
   SECTION HELPERS
   ===================================================== */
.section { padding-block: 72px; }
.section-sm { padding-block: 48px; }
.section-alt { background: var(--clr-surface-alt); }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-brand);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--clr-text);
}
.section-desc {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 580px;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* =====================================================
   FORM ELEMENTS
   ===================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--clr-text);
  background: var(--clr-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-brand);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.12);
}
.form-error {
  font-size: 0.8rem;
  color: #e74c3c;
  min-height: 16px;
}
.form-group input:disabled,
.form-group select:disabled {
  background: var(--clr-surface-alt);
  cursor: not-allowed;
}
