/* =========================
   BeforeYouMoveThere.com - main.css
   Shared sitewide styles
   ========================= */

:root{
  --bg: #f6f8fc;
  --bg-alt: #f8faff;
  --card: #ffffff;

  --text: #0f172a;
  --muted: #475569;

  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.16);

  --accent: #4f46e5;
  --accent-soft: #4338ca;

  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);

  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --max: 1180px;
}

/* Reset / base */

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.10), transparent 28%),
    linear-gradient(180deg, #f8faff 0%, var(--bg) 100%);
  line-height: 1.6;
}

img{
  max-width: 100%;
  display: block;
}

a{
  color: var(--accent);
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

p{
  margin-top: 0;
}

h1, h2, h3, h4{
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

ul, ol{
  margin-top: 0;
}

/* Layout */

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section{
  padding: 24px 0;
}

.section-lg{
  padding: 40px 0;
}

.section-head{
  margin-bottom: 18px;
}

.section-head h2{
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 780px;
}

/* Header */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(248, 250, 255, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-kicker{
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-name{
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a.active{
  border-color: rgba(79, 70, 229, 0.30);
  color: var(--accent);
  text-decoration: none;
}

/* Hero */

.hero{
  padding: 56px 0 28px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero-main{
  padding: 34px;
}

.hero-main h1{
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 16px;
}

.hero-main p{
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 22px;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-points{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-point{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.hero-point strong{
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.hero-point span{
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-side{
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards / panels */

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel{
  padding: 24px;
}

.panel h3{
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.panel p{
  margin-bottom: 14px;
  color: var(--muted);
}

.feature-card{
  padding: 22px;
}

.feature-card h3{
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.feature-card p{
  margin: 0;
  color: var(--muted);
}

.topic-card{
  padding: 20px;
}

.topic-card h3{
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.topic-card p{
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.mini-title{
  margin: 0;
  font-size: 1.05rem;
}

/* Buttons */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover{
  text-decoration: none;
}

.btn-primary{
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover{
  background: var(--accent-soft);
}

.btn-secondary{
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover{
  border-color: rgba(79, 70, 229, 0.35);
  color: var(--accent);
}

/* Lists / links */

.list{
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list a{
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.list a small{
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.list a:hover{
  border-color: rgba(79, 70, 229, 0.30);
  color: var(--accent);
}

.content-links{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 16px;
}

.content-links a{
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.content-links a:hover{
  border-color: rgba(79, 70, 229, 0.30);
  color: var(--accent);
}

/* Utility lists */

.checklist{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.checklist li + li{
  margin-top: 8px;
}

/* Grids */

.grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-4{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* FAQ */

.faq{
  display: grid;
  gap: 14px;
}

details{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

summary{
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker{
  display: none;
}

details p{
  margin: 12px 0 0;
  color: var(--muted);
}

/* CTA */

.cta{
  padding: 30px;
  text-align: center;
}

.cta h2{
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.cta p{
  max-width: 780px;
  margin: 0 auto 18px;
  color: var(--muted);
}

/* Footer */

.site-footer{
  padding: 28px 0 40px;
  color: var(--muted);
}

.footer-inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-nav a{
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover{
  color: var(--accent);
}

/* Generic content page helpers */

.page-header{
  padding: 42px 0 18px;
}

.page-header h1{
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  margin-bottom: 12px;
}

.page-header p{
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.breadcrumbs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.breadcrumbs a{
  color: var(--muted);
}

.breadcrumbs a:hover{
  color: var(--accent);
}

.breadcrumb-sep{
  color: #94a3b8;
}

.prose{
  color: var(--text);
}

.prose p{
  margin-bottom: 16px;
}

.prose h2{
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.prose h3{
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.prose ul,
.prose ol{
  margin-bottom: 16px;
  padding-left: 22px;
}

.prose li + li{
  margin-top: 8px;
}

/* Responsive */

@media (max-width: 980px){
  .hero-grid,
  .split,
  .grid-3,
  .grid-4{
    grid-template-columns: 1fr;
  }

  .hero-points,
  .content-links,
  .grid-2{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .header-inner{
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .hero{
    padding-top: 30px;
  }

  .hero-main,
  .hero-side,
  .feature-card,
  .topic-card,
  .panel,
  .cta{
    padding: 20px;
  }

  .nav{
    width: 100%;
  }
}