/* =========================================================
   Right Business Mentors – Base Styles (Cleaned + Consolidated)
   Palette:
   #10222E  Dark Blue (Primary)
   #FFF5D1  Light Cream (Accent)
   #202E3C  Dark Blue Gray
   #5A738E  Medium Blue
   #CAD2D3  Light Gray
========================================================= */

/* =====================
   1) RESET + TOKENS
===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* colors */
  --c-primary: #10222e;
  --c-cream: #fff5d1;
  --c-ink: #202e3c;
  --c-mid: #5a738e;
  --c-gray: #cad2d3;
  --c-white: #ffffff;
  --c-bg-soft: #f9fafb;

  /* borders / radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --border: 1px solid rgba(90, 115, 142, 0.25);
  --border-strong: 1px solid rgba(90, 115, 142, 0.35);

  /* shadows */
  --shadow-lg: 0 18px 40px rgba(16, 34, 46, 0.15);
  --shadow-fab: 0 8px 18px rgba(16, 34, 46, 0.25);

  /* layout */
  --container: 1100px;
}

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--c-ink);
  background-color: var(--c-cream);
  line-height: 1.6;
}

/* Better keyboard UX (accessibility) */
:focus-visible {
  outline: 3px solid rgba(90, 115, 142, 0.55);
  outline-offset: 3px;
}

/* Avoid jumpy animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* =====================
   2) TYPOGRAPHY
===================== */
h1,
h2,
h3,
h4 {
  font-family: "Libre Baskerville", serif;
  color: var(--c-primary);
  margin-top: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--c-mid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =====================
   3) LAYOUT
===================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 3rem 0;
}

.section-alt {
  background-color: var(--c-gray);
}

/* =====================
   4) HEADER + NAV
===================== */
header {
  background-color: var(--c-primary);
  color: var(--c-cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo {
  font-family: "Libre Baskerville", serif;
  font-size: 1.25rem;
  color: var(--c-cream);
}

nav a {
  color: var(--c-cream);
  margin-left: 1rem;
  font-size: 0.95rem;
}

nav a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
  }

  nav {
    margin-top: 0.5rem;
  }
}

/* =====================
   5) BUTTONS
   (Consolidated: removed duplicate .btn definitions)
===================== */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--c-primary);
  color: var(--c-cream);
}

.btn-primary:hover {
  background-color: var(--c-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid rgba(16, 34, 46, 0.35);
}

.btn-secondary:hover {
  background: rgba(16, 34, 46, 0.06);
}

/* Promo strong variants */
.promo-card-strong .btn-secondary {
  color: var(--c-cream);
  border-color: rgba(255, 245, 209, 0.5);
}

.promo-card-strong .btn-secondary:hover {
  background: rgba(255, 245, 209, 0.12);
}

/* =====================
   6) FORMS (base + contact form)
===================== */
form {
  max-width: 520px;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--c-ink);
}

/* Generic inputs (kept, but improved focus + select support) */
input,
select,
textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90, 115, 142, 0.35);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--c-white);
  color: var(--c-ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--c-primary);
}

/* Contact section form wrapper */
.contact-form {
  background: var(--c-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: var(--border);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Turnstile spacing */
.contact-form .cf-turnstile {
  margin: 0.25rem 0 0.75rem;
}

/* Honeypot hidden */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Status box */
.form-status {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.35;
  border: var(--border);
  background: rgba(255, 245, 209, 0.55);
  color: var(--c-ink);
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  border-color: rgba(16, 34, 46, 0.35);
  background: rgba(202, 210, 211, 0.55);
}

.form-status.is-error {
  border-color: rgba(90, 115, 142, 0.55);
  background: rgba(255, 245, 209, 0.75);
}

.form-fine {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--c-mid);
}

/* =====================
   7) TOPBAR + BADGES
===================== */
.topbar {
  background: var(--c-ink);
  color: var(--c-cream);
  font-size: 0.9rem;
}

.topbar .bar-inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}

@media (max-width: 768px) {
  .topbar .bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--c-cream);
  color: var(--c-primary);
}

.badge-strong {
  background: var(--c-mid);
  color: var(--c-cream);
}

/* =====================
   8) HERO
   (Consolidated: removed older duplicate hero definitions)
===================== */
.hero {
  background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-gray) 100%);
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  color: var(--c-primary);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--c-ink);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.hero-trust {
  font-size: 0.9rem;
  color: var(--c-mid);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-image {
    order: -1;
  }
}

/* Optional: alternate hero image overlay variant (kept from your file) */
.hero.hero-img {
  background: linear-gradient(rgba(16, 34, 46, 0.55), rgba(16, 34, 46, 0.55)),
    url("/assets/img/hero.jpg");
  background-size: cover;
  background-position: center;
  color: var(--c-cream);
}

.hero.hero-img h1,
.hero.hero-img p {
  color: var(--c-cream);
}

/* Hero H1 – mobile typography polish */
@media (max-width: 900px) {
  .hero-content h1 {
    line-height: 1.15; /* más compacto */
    letter-spacing: -0.01em; /* mejora lectura en grande */
    margin-bottom: 1rem;
  }
}

/* Extra fino para móviles pequeños */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.1rem; /* antes: 2.4rem */
    line-height: 1.12;
  }
}

/* =====================
   9) PROMO (FREE QUOTE + REFERRAL)
===================== */
.promo {
  padding: 3rem 0;
  background: var(--c-white);
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.promo-card {
  display: flex;
  flex-direction: column; /* icon above content */
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--c-cream);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.promo-card > div {
  width: 100%;
}

.promo-card .icon,
.promo-card .icon-lg {
  margin: 0 auto 0.75rem;
}

.promo-card-strong {
  background: var(--c-primary);
  border-color: rgba(255, 245, 209, 0.25);
  color: var(--c-cream);
}

.promo-title {
  margin: 0 0 0.5rem;
  color: var(--c-primary);
  font-size: 1.5rem;
  line-height: 1.2;
}

.promo-card-strong .promo-title {
  color: var(--c-cream);
}

.promo-text {
  margin: 0 0 1rem;
  color: var(--c-ink);
}

.promo-card-strong .promo-text {
  color: rgba(255, 245, 209, 0.92);
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.promo-badge {
  display: inline-block;
  background: var(--c-cream);
  color: var(--c-primary);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.promo-fineprint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

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

/* =====================
   10) SERVICES
===================== */
.services {
  padding: 3.5rem 0;
  background: var(--c-white);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2rem;
}

.kicker {
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--c-mid);
}

.muted {
  color: var(--c-ink);
  opacity: 0.85;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* <= 900px: 2 columns */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* <= 600px: 1 column */
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--c-white);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.card h3 {
  margin: 0.75rem 0 0.5rem;
  color: var(--c-primary);
}

.card p {
  margin: 0;
  color: var(--c-ink);
  opacity: 0.9;
}

/* =====================
   11) HOW IT WORKS
===================== */
.how {
  padding: 3.5rem 0;
  background: var(--c-bg-soft);
}

.how-cta {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: var(--border);
  background: var(--c-white);
}

.how-cta h3 {
  margin: 0 0 0.5rem;
  color: var(--c-primary);
}

/* Step cards (How it works) */
.step-card {
  position: relative;
}

.step-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-mid);
  opacity: 0.6;
}

/* Optional: slightly tighter title spacing */
.step-card h3 {
  margin-top: 0.5rem;
}

/* =====================
   12) ABOUT
===================== */
.about {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  margin: 0.5rem 0 1.5rem;
}

.about-points {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.about-points li {
  margin-bottom: 0.6rem;
}

.about-visual img {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  display: block;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-points {
    text-align: left;
    display: inline-block;
  }
}
.about-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.about-link {
  font-weight: 600;
  color: var(--c-mid);
  text-decoration: underline;
}

/* =====================
   13) FAQ
===================== */
.faq {
  padding: 3.5rem 0;
  background: var(--c-white);
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.faq-item {
  background: var(--c-cream);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-primary);
}

.faq-item p {
  margin: 0.5rem 0 0;
  color: var(--c-ink);
}

.faq-cta {
  text-align: center;
  margin-top: 1.5rem;
}

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

/* =====================
   14) CONTACT
===================== */
.contact {
  padding: 4rem 0;
  background: var(--c-bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--c-ink);
}

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

/* =====================
   15) ICONS (consolidated)
===================== */
.icon {
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
}

.icon-lg {
  width: 84px;
  height: 84px;
}

.icon-sm {
  width: 56px;
  height: 56px;
}

.icon-xl {
  width: 96px;
  height: 96px;
}

/* Center icons in cards by default */
.card .icon {
  margin: 0 auto 0.75rem auto;
}

/* =====================
   16) FOOTER
===================== */
.site-footer {
  background: var(--c-primary);
  color: rgba(255, 245, 209, 0.92);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

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

.footer-brand {
  display: inline-block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--c-cream);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  margin: 0.4rem 0 0.75rem;
  font-style: italic;
  font-weight: 500;
  color: var(--c-cream);
  opacity: 0.95;
}

.footer-text {
  margin: 0;
  max-width: 420px;
  color: rgba(255, 245, 209, 0.85);
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  color: var(--c-cream);
  font-size: 1rem;
}

.footer-subhead {
  margin-top: 1.25rem;
}

.footer-col ul + h4 {
  margin-top: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 245, 209, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--c-cream);
  text-decoration: underline;
}

.footer-fine {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 245, 209, 0.78);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 245, 209, 0.18);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 245, 209, 0.78);
}

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

/* Optional logos (kept) */
.site-logo img {
  height: 92px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 86px;
  width: auto;
  margin-bottom: 0.75rem;
  display: block;
}

/* =====================
   17) SCROLL TO TOP BUTTON
===================== */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: var(--c-primary);
  color: var(--c-cream);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: var(--shadow-fab);
}

#scrollTopBtn:hover {
  background-color: var(--c-ink);
}
/* =====================
   18) New Additions
===================== */

/* =========================================================
   UI/UX POLISH OVERRIDES (append-only)
   Goal: consistency + responsive <=900px without breaking existing styles
========================================================= */

/* 1) Consistent vertical rhythm (reduce double-padding issues)
   - Keep your per-section padding where defined (.hero, .services, etc.)
   - Make the generic section padding smaller so it doesn't stack harshly
*/
section {
  padding: 2.5rem 0;
}

@media (max-width: 900px) {
  section {
    padding: 2rem 0;
  }
}

/* 2) Header nav: make it flex and remove margin-left spacing
   (current nav a relies on margin-left, which breaks on wrap/mobile)
*/
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

header nav a {
  margin-left: 0; /* overrides: nav a { margin-left: 1rem; } */
}

@media (max-width: 768px) {
  header nav {
    width: 100%;
    justify-content: flex-start;
  }

  /* hide the "|" separator span in mobile for cleaner wrap */
  header nav span {
    display: none;
  }
}

/* 3) Hero: center CTA row on mobile */
@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

/* 4) Promo: stack card layout and buttons on mobile */
@media (max-width: 900px) {
  .promo-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* 6) About: buttons should be row on desktop, stack on mobile
   (this fixes your specific request about "View more" placement)
*/
.about-actions {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .about-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* 7) About points: keep alignment readable on mobile */
@media (max-width: 900px) {
  .about-points {
    text-align: left;
    display: block; /* remove inline-block "floating" feel */
    margin-left: 0;
    margin-right: 0;
  }
}

/* 8) Contact form: ensure button aligns nicely and doesn't look cramped */
.contact-form .btn {
  width: 100%;
}

@media (min-width: 901px) {
  .contact-form .btn {
    width: auto;
  }
}

/* About actions: stack buttons (View more above Get a Free Quote) */
.about-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-actions .btn {
  width: fit-content;
}

/* Optional: if you want both buttons same width for cleaner UI */
@media (max-width: 900px) {
  .about-actions {
    align-items: stretch;
  }
  .about-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================================
   Mobile breathing space – Topbar & Header
========================================= */

@media (max-width: 900px) {
  /* Topbar: más aire lateral y vertical */
  .topbar {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .topbar .bar-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  /* Header: separar visualmente del borde */
  header {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .header-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
  }
}
