/* ══════════════════════════════════════
   It's Going Good – Shared Styles
   ══════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --color-bg: #141210;
  --color-surface: #1D1B17;
  --color-surface-hover: #252320;
  --color-border: #322F2A;
  --color-text: #EAE6DE;
  --color-text-muted: #A09A8F;
  --color-accent: #D4735E;
  --color-accent-hover: #E07A5F;
  --color-warm: #D4735E;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
}

/* Fixed nav variant (index, brand) */
nav.nav-fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  max-width: none;
  padding: 0;
  background: rgba(20, 18, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(50, 47, 42, 0.4);
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

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

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-link:hover { color: var(--color-text); }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ── SECTION BASE ── */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto;
}

/* ── FORMS ── */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--color-surface); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-submit:hover { background: var(--color-accent-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  display: none;
  text-align: center;
  padding: 60px 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.form-success p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.7;
}

.form-error {
  display: none;
  background: rgba(212, 115, 94, 0.1);
  border: 1px solid rgba(212, 115, 94, 0.3);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ── FOOTER (full) ── */
footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* Simple footer variant (apply, contact) */
footer.footer-simple {
  padding: 40px 48px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── HERO CTA (shared button) ── */
.hero-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.25s ease;
}

.hero-cta:hover { background: var(--color-accent-hover); }

/* ── RESPONSIVE (shared) ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-inner { padding: 1rem 1.25rem; }
  section { padding: 4.5rem 1.5rem; }
  footer { padding: 2rem 1.5rem; }
  footer.footer-simple { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}
