/* =========================================
   Core palette and base styles
   ========================================= */
:root {
  --dm-navy: #0e1f31;
  --dm-gold: #d4a037;
  --dm-light: #f5f5f3;
  --dm-dark-text: #1c2330;
  --dm-border: #e1e5ee;
  --dm-muted: #586174;
  --dm-bg-soft: #fbfcfd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--dm-dark-text);
  line-height: 1.65;
}

a {
  color: var(--dm-navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   Header and navigation
   ========================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e4e7ec;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 64px;
  width: auto;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--dm-navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--dm-light);
  text-decoration: none;
}

.nav-links .nav-cta {
  background: var(--dm-gold);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
}

.nav-links .nav-cta:hover {
  background: #c79733;
}

/* =========================================
   Buttons and text helpers
   ========================================= */
.btn-primary,
.btn-secondary,
.btn-secondary-small {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}

.btn-primary {
  background: var(--dm-gold);
  color: #fff;
  padding: 12px 18px;
  font-size: 15px;
}

.btn-primary:hover {
  background: #c79733;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
  background: #fff;
  color: var(--dm-navy);
  padding: 12px 18px;
  border: 1px solid var(--dm-border);
  font-size: 15px;
}

.btn-secondary:hover {
  background: var(--dm-light);
}

.btn-secondary-small {
  background: #fff;
  color: var(--dm-navy);
  padding: 8px 12px;
  border: 1px solid var(--dm-border);
  font-size: 13px;
}

.btn-secondary-small:hover {
  background: var(--dm-light);
}

.tag {
  display: inline-block;
  background: rgba(212, 160, 55, 0.12);
  border: 1px solid rgba(212, 160, 55, 0.4);
  color: var(--dm-navy);
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.lead {
  font-size: 18px;
  max-width: 60ch;
  margin-bottom: 20px;
}

.small {
  font-size: 13px;
  color: var(--dm-muted);
}

/* =========================================
   Hero section
   ========================================= */
.hero {
  background: var(--dm-light);
  padding: 70px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  font-size: 38px;
  margin: 0 0 12px;
  color: var(--dm-navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image .crest-large {
  max-width: 420px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.08));
}

/* =========================================
   Sections and cards
   ========================================= */
.section {
  padding: 60px 0;
}

.section.alt-bg {
  background: var(--dm-light);
}

.section h2 {
  margin: 0 0 20px;
  color: var(--dm-navy);
  font-size: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--dm-border);
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.05s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--dm-navy);
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Pricing layout tweaks (for your pricing cards) */
.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-price {
  font-weight: 700;
  color: var(--dm-navy);
}

.pricing-list {
  padding-left: 18px;
  margin: 0 0 8px;
  font-size: 14px;
}

.pricing-card-featured {
  border-width: 2px;
  border-color: var(--dm-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================
   Account / forms / reviews styling
   ========================================= */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--dm-dark-text);
}

.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"],
.account-form select,
.account-form textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #ccd2dc;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-form input[type="text"]:focus,
.account-form input[type="email"]:focus,
.account-form input[type="password"]:focus,
.account-form select:focus,
.account-form textarea:focus {
  border-color: var(--dm-gold);
  box-shadow: 0 0 0 1px rgba(212, 160, 55, 0.35);
}

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

/* Review textarea full width */
.review-textarea {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

/* Checkbox line */
.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--dm-muted);
}

.checkbox-inline input[type="checkbox"] {
  margin-top: 3px;
}

/* Help text under forms */
.form-help {
  margin-top: 4px;
}

/* =========================================
   Chat layout (sidebar + main) – clean app feel
   ========================================= */
.chat-section .chat-note {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--dm-muted);
}

.chat-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.chat-sidebar {
  background: #f8fafc;
  border: 1px solid var(--dm-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.chat-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chat-sidebar-header h3 {
  margin: 0;
  font-size: 15px;
}

#chatList {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  max-height: 420px;
}

.chat-list-button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 8px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.chat-list-button:hover {
  background: #e5edf7;
}

.chat-list-button.active {
  background: #d9e2f2;
}

.chat-list-main {
  display: flex;
  flex-direction: column;
}

.chat-list-title {
  font-weight: 600;
  color: var(--dm-dark-text);
}

.chat-list-meta {
  font-size: 11px;
  color: var(--dm-muted);
}

.chat-list-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-list-action {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

/* Chat main area */
.chat-main {
  border: 1px solid var(--dm-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--dm-bg-soft);
  font-size: 14px;
}

.msg {
  margin-bottom: 12px;
}

.msg .who {
  font-weight: 700;
  color: var(--dm-navy);
  margin-right: 4px;
}

/* Align system messages differently if needed */
.msg-system {
  color: var(--dm-muted);
  font-style: italic;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--dm-border);
  padding: 12px;
  background: #fff;
}

.chat-input input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccd2dc;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-input input[type="text"]:focus {
  border-color: var(--dm-gold);
  box-shadow: 0 0 0 1px rgba(212, 160, 55, 0.35);
}

.chat-input button {
  padding: 10px 16px;
  background: var(--dm-gold);
  color: #fff;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.chat-input button:hover {
  background: #c79733;
}

/* Small gate card above chat when not logged in */
.chat-gate {
  border: 1px dashed var(--dm-border);
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
  margin-bottom: 16px;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--dm-navy);
  color: #fff;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-text,
.footer-contact {
  font-size: 14px;
}

.footer-contact a {
  color: #ffecb3;
  text-decoration: underline;
}

/* =========================================
   Responsive tweaks
   ========================================= */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .nav-links {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-sidebar {
    max-height: 220px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .brand-logo {
    height: 52px;
    
/* Footer – premium layout */
.site-footer {
  background: var(--dm-navy);
  color: #fff;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  text-align: left;
}

.footer-left,
.footer-middle,
.footer-right {
  flex: 1 1 220px;
}

.footer-legal {
  font-size: 11px;
  line-height: 1.5;
  color: #ffffffd9;
}

.footer-nav,
.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav a,
.footer-legal-links a {
  color: #ffecb3;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover,
.footer-legal-links a:hover {
  text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    .footer-disclaimer {
  font-size: 11px;
  line-height: 1.55;
  color: #ffffffb3; /* a bit lighter */
  margin-top: 10px;
  max-width: 620px;
}

}

  }
}