/* ===== Meridian Ridge Consulting — main.css ===== */

/* ---------- Base reset & fonts ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{font-family:'Libre Franklin',sans-serif;font-size:.9375rem;line-height:1.65;color:#1a2332;background:#fff;overflow-x:hidden;}
img,svg{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}
ul,ol{list-style:none;}
h1,h2,h3,h4,h5,h6{font-family:'Epilogue',sans-serif;line-height:1.2;}

/* ---------- Palette utility classes ---------- */
.bg-brand-50{background-color:#f0f4f8;}
.bg-brand-100{background-color:#d9e2ec;}
.bg-brand-600{background-color:#1e3a5f;}
.bg-brand-700{background-color:#17304f;}
.bg-brand-800{background-color:#102640;}
.bg-brand-900{background-color:#0a1c30;}
.bg-brand-950{background-color:#0a1628;}
.text-brand-600{color:#1e3a5f;}
.text-brand-400{color:#829ab1;}
.border-brand-200{border-color:#bcccdc;}

/* ---------- Top bar ---------- */
.top-bar{background:#0a1628;color:#d9e2ec;font-size:.8125rem;padding:.45rem 0;}
.top-bar a{color:#d9e2ec;transition:color .2s;}
.top-bar a:hover{color:#fff;}
.top-bar .inner{max-width:80rem;margin:0 auto;padding:0 1.5rem;display:flex;justify-content:flex-end;gap:1.75rem;flex-wrap:wrap;}

/* ---------- Main header ---------- */
.main-header{background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:100;transition:box-shadow .3s;}
.main-header.scrolled{box-shadow:0 2px 12px rgba(0,0,0,.08);}
.main-header .inner{max-width:80rem;margin:0 auto;padding:0 1.5rem;display:flex;align-items:center;justify-content:space-between;height:4.25rem;}
.logo{font-family:'Epilogue',sans-serif;font-weight:800;font-size:1.25rem;color:#1e3a5f;display:flex;align-items:center;gap:.5rem;}
.logo svg{width:2rem;height:2rem;flex-shrink:0;}
.nav-links{display:flex;gap:2rem;align-items:center;}
.nav-links a{font-size:.875rem;font-weight:500;color:#334e68;transition:color .2s;}
.nav-links a:hover{color:#1e3a5f;}
.nav-cta{display:inline-flex;align-items:center;gap:.45rem;background:#1e3a5f;color:#fff !important;padding:.55rem 1.25rem;border-radius:.5rem;font-weight:600;font-size:.875rem;transition:background .2s;}
.nav-cta:hover{background:#17304f;}
.nav-cta svg{width:1rem;height:1rem;}

/* Mobile toggle */
.mobile-toggle{display:none;background:none;border:none;cursor:pointer;padding:.25rem;}
.mobile-toggle svg{width:1.75rem;height:1.75rem;color:#1e3a5f;}
.mobile-menu{display:none;background:#f0f4f8;border-bottom:1px solid #d9e2ec;padding:1rem 1.5rem;}
.mobile-menu.open{display:block;}
.mobile-menu a{display:block;padding:.6rem 0;color:#334e68;font-size:.9375rem;font-weight:500;border-bottom:1px solid #d9e2ec;}
.mobile-menu a:last-child{border-bottom:none;}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;background:#fff;padding:5rem 0 4rem;}
.hero .inner{max-width:80rem;margin:0 auto;padding:0 1.5rem;display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;}
.hero-text h1{font-size:2.75rem;font-weight:800;color:#1e3a5f;margin-bottom:1rem;line-height:1.15;}
.hero-text h1 span{color:#627d98;}
.hero-text p{font-size:1.0625rem;color:#486581;margin-bottom:2rem;max-width:32rem;}
.hero-buttons{display:flex;gap:1rem;flex-wrap:wrap;}
.btn-primary{display:inline-flex;align-items:center;gap:.5rem;background:#1e3a5f;color:#fff;padding:.75rem 1.75rem;border-radius:.5rem;font-family:'Epilogue',sans-serif;font-weight:700;font-size:.9375rem;transition:background .2s;border:none;cursor:pointer;}
.btn-primary:hover{background:#17304f;}
.btn-primary svg{width:1.125rem;height:1.125rem;}
.btn-secondary{display:inline-flex;align-items:center;gap:.5rem;background:transparent;color:#1e3a5f;padding:.75rem 1.75rem;border-radius:.5rem;font-family:'Epilogue',sans-serif;font-weight:700;font-size:.9375rem;border:2px solid #bcccdc;transition:all .2s;cursor:pointer;}
.btn-secondary:hover{border-color:#1e3a5f;background:#f0f4f8;}
.hero .accent-circle{position:absolute;top:-8rem;right:-8rem;width:28rem;height:28rem;border-radius:50%;background:#f0f4f8;z-index:0;}
.hero .inner{position:relative;z-index:1;}

/* Dashboard mockup */
.dashboard-mockup{background:#f0f4f8;border-radius:.75rem;border:1px solid #d9e2ec;padding:1.25rem;position:relative;box-shadow:0 4px 24px rgba(30,58,95,.08);}
.dash-topbar{display:flex;gap:.5rem;margin-bottom:1rem;}
.dash-dot{width:.6rem;height:.6rem;border-radius:50%;background:#bcccdc;}
.dash-dot.r{background:#e57373;}.dash-dot.y{background:#ffb74d;}.dash-dot.g{background:#81c784;}
.dash-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:.75rem;}
.dash-card{background:#fff;border-radius:.5rem;padding:.85rem;border:1px solid #d9e2ec;}
.dash-card .label{font-size:.7rem;color:#829ab1;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.35rem;}
.dash-card .value{font-family:'Epilogue',sans-serif;font-weight:700;font-size:1.3rem;color:#1e3a5f;}
.dash-card .value.green{color:#2e7d32;}.dash-card .value.amber{color:#e65100;}
.dash-bar-group{display:flex;flex-direction:column;gap:.4rem;margin-top:.5rem;}
.dash-bar{height:.45rem;border-radius:.25rem;background:#d9e2ec;}
.dash-bar .fill{height:100%;border-radius:.25rem;background:#1e3a5f;}
.dash-bar .fill.w70{width:70%;}.dash-bar .fill.w85{width:85%;}.dash-bar .fill.w55{width:55%;}.dash-bar .fill.w92{width:92%;}
.dash-chart{background:#fff;border-radius:.5rem;padding:.85rem;border:1px solid #d9e2ec;grid-column:span 2;}
.dash-chart .label{font-size:.7rem;color:#829ab1;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.5rem;}
.dash-chart-bars{display:flex;align-items:flex-end;gap:.35rem;height:3.5rem;}
.dash-chart-bars span{flex:1;border-radius:.2rem .2rem 0 0;background:#1e3a5f;min-width:.5rem;}

/* ---------- Stats bar ---------- */
.stats-bar{background:#1e3a5f;padding:2.5rem 0;}
.stats-bar .inner{max-width:80rem;margin:0 auto;padding:0 1.5rem;display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;text-align:center;}
.stat-item .number{font-family:'Epilogue',sans-serif;font-size:2.25rem;font-weight:800;color:#fff;}
.stat-item .label{font-size:.8125rem;color:#bcccdc;margin-top:.25rem;}

/* ---------- Section common ---------- */
.section{padding:5rem 0;}
.section .inner{max-width:80rem;margin:0 auto;padding:0 1.5rem;}
.section-alt{background:#f0f4f8;}
.section-heading{text-align:center;margin-bottom:3rem;}
.section-heading h2{font-size:1.875rem;font-weight:700;color:#1e3a5f;margin-bottom:.5rem;}
.section-heading p{font-size:1.0625rem;color:#627d98;max-width:36rem;margin:0 auto;}
.border-top{border-top:1px solid #e2e8f0;}

/* ---------- Services (workflow stage) ---------- */
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;}
.service-card{background:#fff;border:1px solid #bcccdc;border-radius:.75rem;padding:1.75rem;transition:box-shadow .3s;}
.service-card:hover{box-shadow:0 8px 30px rgba(30,58,95,.1);}
.service-card .step-num{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;background:#f0f4f8;border-radius:.5rem;font-family:'Epilogue',sans-serif;font-weight:700;font-size:1rem;color:#1e3a5f;margin-bottom:1rem;}
.service-card h3{font-size:1.125rem;font-weight:700;color:#1e3a5f;margin-bottom:.5rem;}
.service-card p{font-size:.875rem;color:#486581;margin-bottom:.75rem;}
.service-card .detail{font-size:.8125rem;color:#829ab1;font-style:italic;}

/* ---------- Advantages (numbered) ---------- */
.advantages-list{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem 3rem;}
.advantage-item{display:flex;gap:1.25rem;align-items:flex-start;}
.advantage-num{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;background:#f0f4f8;border-radius:.5rem;font-family:'Epilogue',sans-serif;font-weight:800;font-size:1.125rem;color:#1e3a5f;}
.advantage-item h3{font-size:1rem;font-weight:700;color:#1e3a5f;margin-bottom:.25rem;}
.advantage-item p{font-size:.875rem;color:#486581;}

/* ---------- Pricing (2-tier) ---------- */
.pricing-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;max-width:52rem;margin:0 auto;}
.pricing-card{background:#fff;border:1px solid #bcccdc;border-radius:.75rem;padding:2.25rem;transition:box-shadow .3s;}
.pricing-card:hover{box-shadow:0 8px 30px rgba(30,58,95,.1);}
.pricing-card .tier-label{font-size:.8125rem;text-transform:uppercase;letter-spacing:.06em;color:#829ab1;margin-bottom:.35rem;}
.pricing-card h3{font-size:1.5rem;font-weight:700;color:#1e3a5f;margin-bottom:.5rem;}
.pricing-card .price{font-family:'Epilogue',sans-serif;font-size:2rem;font-weight:800;color:#1e3a5f;margin-bottom:.25rem;}
.pricing-card .price span{font-size:.9375rem;font-weight:400;color:#627d98;}
.pricing-card .price-note{font-size:.8125rem;color:#829ab1;margin-bottom:1.25rem;}
.pricing-card ul{margin-bottom:1.5rem;}
.pricing-card li{font-size:.875rem;color:#486581;padding:.35rem 0;padding-left:1.5rem;position:relative;}
.pricing-card li::before{content:"";position:absolute;left:0;top:.7rem;width:.45rem;height:.45rem;border-radius:50%;background:#1e3a5f;}
.pricing-card .note{font-size:.8125rem;color:#627d98;font-style:italic;padding-top:.75rem;border-top:1px solid #e2e8f0;}
.pricing-honesty{text-align:center;margin-top:2rem;padding:1.25rem;background:#f0f4f8;border-radius:.5rem;font-size:.875rem;color:#486581;}

/* ---------- Testimonials ---------- */
.testimonial-featured{background:#fff;border:1px solid #bcccdc;border-radius:.75rem;padding:2.25rem;margin-bottom:1.5rem;box-shadow:0 4px 16px rgba(30,58,95,.06);}
.testimonial-featured .stars{color:#f59e0b;font-size:1.25rem;margin-bottom:.75rem;}
.testimonial-featured blockquote{font-size:1.0625rem;color:#334e68;line-height:1.7;margin-bottom:1rem;font-style:italic;}
.testimonial-featured cite{font-size:.875rem;color:#829ab1;font-style:normal;}
.testimonial-featured cite strong{color:#1e3a5f;font-weight:600;}
.testimonials-supporting{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;}
.testimonial-small{background:#fff;border:1px solid #bcccdc;border-radius:.75rem;padding:1.5rem;transition:box-shadow .3s;}
.testimonial-small:hover{box-shadow:0 8px 24px rgba(30,58,95,.08);}
.testimonial-small .stars{color:#f59e0b;font-size:1rem;margin-bottom:.5rem;}
.testimonial-small blockquote{font-size:.875rem;color:#486581;line-height:1.65;margin-bottom:.75rem;font-style:italic;}
.testimonial-small cite{font-size:.8125rem;color:#829ab1;font-style:normal;}
.testimonial-small cite strong{color:#1e3a5f;font-weight:600;}

/* ---------- FAQ ---------- */
.faq-columns{display:grid;grid-template-columns:repeat(2,1fr);gap:2.5rem;}
.faq-group h3{font-size:1.125rem;font-weight:700;color:#1e3a5f;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #1e3a5f;}
.faq-item{border-bottom:1px solid #e2e8f0;padding:1rem 0;}
.faq-question{display:flex;justify-content:space-between;align-items:center;cursor:pointer;background:none;border:none;width:100%;text-align:left;font-family:'Libre Franklin',sans-serif;font-size:.9375rem;font-weight:600;color:#1e3a5f;padding:0;gap:1rem;}
.faq-question svg{width:1.25rem;height:1.25rem;flex-shrink:0;color:#829ab1;transition:transform .3s;}
.faq-item.open .faq-question svg{transform:rotate(180deg);}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .35s ease;}
.faq-item.open .faq-answer{max-height:40rem;}
.faq-answer p{font-size:.875rem;color:#486581;padding-top:.75rem;line-height:1.65;}

/* ---------- Consultation form ---------- */
.form-section{background:#f0f4f8;padding:5rem 0;}
.form-wrapper{max-width:44rem;margin:0 auto;background:#fff;border-radius:.75rem;border:1px solid #bcccdc;padding:2.5rem;box-shadow:0 4px 24px rgba(30,58,95,.06);}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;}
.form-group{display:flex;flex-direction:column;}
.form-group.full{grid-column:span 2;}
.form-group label{font-size:.8125rem;font-weight:600;color:#1e3a5f;margin-bottom:.35rem;}
.form-group label .req{color:#c53030;}
.form-group input,.form-group select,.form-group textarea{font-family:'Libre Franklin',sans-serif;font-size:.875rem;padding:.65rem .85rem;border:1px solid #bcccdc;border-radius:.5rem;background:#fff;color:#1a2332;transition:border-color .2s;}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 3px rgba(30,58,95,.1);}
.form-group textarea{resize:vertical;min-height:5.5rem;}
.radio-group{display:flex;gap:1.5rem;padding-top:.25rem;flex-wrap:wrap;}
.radio-group label{display:flex;align-items:center;gap:.4rem;font-size:.875rem;font-weight:400;color:#486581;cursor:pointer;}
.radio-group input[type="radio"]{accent-color:#1e3a5f;width:1rem;height:1rem;}
.form-submit{margin-top:1.5rem;text-align:center;}
.form-submit .btn-primary{padding:.85rem 2.25rem;font-size:1rem;}

/* ---------- CTA footer ---------- */
.cta-banner{background:#1e3a5f;padding:3.5rem 0;text-align:center;}
.cta-banner h2{font-size:2rem;font-weight:800;color:#fff;margin-bottom:.5rem;}
.cta-banner p{font-size:1.0625rem;color:#bcccdc;margin-bottom:1.5rem;}
.cta-banner .btn-primary{background:#fff;color:#1e3a5f;}
.cta-banner .btn-primary:hover{background:#f0f4f8;}

.site-footer{background:#0a1628;color:#bcccdc;padding:3rem 0 2rem;}
.site-footer .inner{max-width:80rem;margin:0 auto;padding:0 1.5rem;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2.5rem;margin-bottom:2rem;}
.footer-about .footer-logo{font-family:'Epilogue',sans-serif;font-weight:800;font-size:1.125rem;color:#fff;margin-bottom:.75rem;}
.footer-about p{font-size:.8125rem;line-height:1.65;color:#9fb3c8;max-width:22rem;}
.footer-col h4{font-family:'Epilogue',sans-serif;font-weight:700;font-size:.875rem;color:#fff;margin-bottom:.85rem;}
.footer-col ul li{margin-bottom:.45rem;}
.footer-col ul a{font-size:.8125rem;color:#9fb3c8;transition:color .2s;}
.footer-col ul a:hover{color:#fff;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:1.25rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;}
.footer-bottom p{font-size:.75rem;color:#627d98;}
.footer-bottom a{color:#9fb3c8;transition:color .2s;}
.footer-bottom a:hover{color:#fff;}

/* ---------- Cookie consent ---------- */
.cookie-banner{position:fixed;bottom:1.25rem;left:50%;transform:translateX(-50%);background:#fff;border:1px solid #d9e2ec;border-radius:.75rem;padding:1.25rem 1.75rem;box-shadow:0 8px 32px rgba(0,0,0,.12);z-index:9999;display:flex;align-items:center;gap:1.25rem;max-width:44rem;width:calc(100% - 2.5rem);}
.cookie-banner.hidden{display:none;}
.cookie-banner p{font-size:.8125rem;color:#486581;line-height:1.55;flex:1;}
.cookie-banner p a{color:#1e3a5f;text-decoration:underline;}
.cookie-buttons{display:flex;gap:.5rem;flex-shrink:0;}
.cookie-btn{font-family:'Libre Franklin',sans-serif;font-size:.8125rem;font-weight:600;padding:.5rem 1.1rem;border-radius:.4rem;border:none;cursor:pointer;transition:all .2s;}
.cookie-accept{background:#1e3a5f;color:#fff;}
.cookie-accept:hover{background:#17304f;}
.cookie-decline{background:#f0f4f8;color:#486581;border:1px solid #d9e2ec;}
.cookie-decline:hover{background:#d9e2ec;}

/* ---------- Fade-in-up animation ---------- */
.fade-in-up{opacity:0;transform:translateY(1.5rem);transition:opacity .6s ease,transform .6s ease;}
.fade-in-up.visible{opacity:1;transform:translateY(0);}

/* ---------- Legal pages ---------- */
.legal-page{padding:4rem 0;}
.legal-page .inner{max-width:52rem;margin:0 auto;padding:0 1.5rem;}
.legal-page h1{font-size:2rem;font-weight:800;color:#1e3a5f;margin-bottom:.5rem;}
.legal-page .last-updated{font-size:.8125rem;color:#829ab1;margin-bottom:2rem;}
.legal-page h2{font-size:1.25rem;font-weight:700;color:#1e3a5f;margin-top:2rem;margin-bottom:.75rem;}
.legal-page p,.legal-page li{font-size:.875rem;color:#486581;line-height:1.7;margin-bottom:.75rem;}
.legal-page ul{padding-left:1.25rem;margin-bottom:1rem;}
.legal-page ul li{position:relative;padding-left:1rem;margin-bottom:.4rem;}
.legal-page ul li::before{content:"";position:absolute;left:0;top:.6rem;width:.35rem;height:.35rem;border-radius:50%;background:#1e3a5f;}
.legal-page a{color:#1e3a5f;text-decoration:underline;}

/* Thanks page */
.thanks-page{min-height:60vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:4rem 1.5rem;}
.thanks-page h1{font-size:2rem;font-weight:800;color:#1e3a5f;margin-bottom:.75rem;}
.thanks-page p{font-size:1rem;color:#486581;margin-bottom:1.5rem;max-width:28rem;}

/* ---------- Responsive ---------- */
@media(max-width:1024px){
  .services-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:768px){
  .nav-links{display:none;}
  .mobile-toggle{display:block;}
  .hero .inner{grid-template-columns:1fr;text-align:center;}
  .hero-text h1{font-size:2rem;}
  .hero-text p{margin-left:auto;margin-right:auto;}
  .hero-buttons{justify-content:center;}
  .dashboard-mockup{max-width:24rem;margin:0 auto;}
  .stats-bar .inner{grid-template-columns:repeat(2,1fr);}
  .services-grid{grid-template-columns:1fr;}
  .advantages-list{grid-template-columns:1fr;}
  .pricing-grid{grid-template-columns:1fr;}
  .testimonials-supporting{grid-template-columns:1fr;}
  .faq-columns{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  .form-group.full{grid-column:span 1;}
  .footer-grid{grid-template-columns:1fr;}
  .cookie-banner{flex-direction:column;text-align:center;}
}
@media(max-width:480px){
  .hero{padding:3rem 0 2.5rem;}
  .section{padding:3.5rem 0;}
  .hero-text h1{font-size:1.65rem;}
  .stat-item .number{font-size:1.75rem;}
}
