:root {
  --navy: #1B2A3D;
  --navy-soft: #2d4258;
  --rust: #A94A2E;
  --rust-hover: #8f3d25;
  --gold: #C08A3E;
  --cream: #FAF7F2;
  --white: #ffffff;
  --text: #24303f;
  --text-light: #5c6b7a;
  --border: #e6ddd0;
  --success-bg: #eaf3ea;
  --success-text: #2f5c37;
  --error-bg: #fbebe8;
  --error-text: #8f3d25;

  --font-heading: Georgia, "Liberation Serif", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

a {
  color: var(--rust);
}

img {
  max-width: 100%;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-header {
  background: var(--navy);
}

.header-topbar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 6px 24px 0;
  text-align: right;
}

.topbar-label {
  color: var(--white);
  opacity: 0.6;
  font-size: 0.8rem;
  margin-right: 6px;
}

.topbar-phone {
  color: var(--white);
  opacity: 0.75;
  font-size: 0.8rem;
  text-decoration: none;
}

.topbar-phone:hover {
  opacity: 1;
  text-decoration: underline;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.nav-logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  flex-shrink: 0;
}

.nav-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav-brand-text {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.88;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--white);
  padding: 90px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 18px;
  font-weight: 700;
}

.hero p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
  color: #dce2ea;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--rust);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--rust-hover);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
  padding: 72px 24px;
}

.section-alt {
  background: var(--white);
}

.section h2 {
  font-size: 1.9rem;
  text-align: center;
  margin: 0 0 12px;
  color: var(--navy);
}

.section-lead {
  text-align: center;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 48px;
}

/* Feature / benefit grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 32px 24px;
}

.card h3 {
  margin-top: 0;
  color: var(--navy);
}

.card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Steps (How It Works) */
.steps {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-heading);
}

.step h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--text-light);
}

.options-note {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 20px 24px;
  background: var(--success-bg);
  border-radius: 8px;
  color: var(--success-text);
  text-align: center;
}

/* About */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}

.about-content h3 {
  color: var(--navy);
}

/* Contact form */
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}

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

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--cream);
}

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

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

.required {
  color: var(--rust);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: -8px 0 20px;
}

.sms-consent {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0 0 20px;
}

.sms-consent a {
  color: inherit;
  text-decoration: underline;
}

.alert {
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
}

.error-list {
  margin: 0;
  padding-left: 20px;
}

.error-list li {
  margin: 4px 0;
}

.confirmation {
  text-align: center;
  padding: 40px 20px;
}

.confirmation h2 {
  color: var(--navy);
  margin-bottom: 12px;
}

.confirmation p {
  color: var(--text-light);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #b6c0cc;
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-sms {
  font-size: 0.78rem;
  color: #8b96a3;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .nav-brand-text {
    font-size: 1rem;
  }

  .nav-logo-chip {
    width: 38px;
    height: 38px;
  }

  .nav-logo {
    height: 26px;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 0;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: relative;
  }
}

@media (max-width: 380px) {
  .nav-brand-text {
    font-size: 0.85rem;
  }
}
