/* ============================================================
   J.M. Field — Shared Stylesheet
   All nav, footer, and common component styles live here.
   Page-specific styles remain inline per page.
   ============================================================ */

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Inter",sans-serif;background:#faf9f7;color:#546478;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,h4,h5{font-family:"Fraunces",serif;color:#1e293b;line-height:1.2}
a{text-decoration:none;color:inherit}
img{max-width:100%}
.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* ---------- Buttons ---------- */
.btn-primary{display:inline-flex;align-items:center;gap:8px;background:#e21838;color:#fff;font-size:.9rem;font-weight:600;padding:12px 26px;border-radius:999px;border:none;cursor:pointer;transition:background .2s,transform .15s}
.btn-primary:hover{background:#c41430;transform:translateY(-1px)}
.btn-outline{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#1e293b;font-size:.9rem;font-weight:600;padding:12px 26px;border-radius:999px;border:1.5px solid #e2e8f0;cursor:pointer;transition:border-color .2s,transform .15s}
.btn-outline:hover{border-color:#cbd5e1;transform:translateY(-1px)}
.btn-pill{background:#e21838;color:#fff!important;font-size:0.875rem;font-weight:600;padding:9px 22px;border-radius:999px;transition:background .2s;white-space:nowrap}
.btn-pill:hover{background:#c41430!important}

/* ---------- Nav ---------- */
.nav{background:#faf9f7;border-bottom:1px solid #e2e8f0;padding:0 24px;position:sticky;top:0;z-index:200}
.nav-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:68px}
.nav-logo{font-family:"Fraunces",serif;font-size:1.45rem;font-weight:700;color:#1e293b;white-space:nowrap}
.nav-logo span{color:#e21838}
.nav-links{display:flex;align-items:center;gap:4px;list-style:none}
.nav-links>li>a{font-size:0.875rem;font-weight:500;color:#546478;padding:6px 10px;border-radius:6px;transition:color .2s,background .2s;white-space:nowrap}
.nav-links>li>a:hover{color:#1e293b;background:#f1f5f9}

/* Dropdown */
.has-dropdown{position:relative}
.has-dropdown>a::after{content:'▾';margin-left:3px;font-size:0.65em;opacity:.6}
.dropdown{display:none;position:absolute;top:calc(100% + 6px);left:0;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 32px rgba(0,0,0,.1);min-width:210px;padding:6px;z-index:300;list-style:none}
.has-dropdown:hover .dropdown{display:block}
.dropdown li a{display:block;padding:8px 14px;font-size:.85rem;color:#546478;border-radius:6px;transition:background .15s,color .15s;white-space:nowrap}
.dropdown li a:hover{background:#fff1f3;color:#e21838}

/* Nav CTA and lang switch */
.nav-links .btn-pill{padding:8px 20px!important;font-size:.82rem!important;margin-left:6px}
.lang-switch{font-size:0.8rem!important;padding:5px 12px!important;border:1px solid #e2e8f0;border-radius:20px;color:#546478!important;background:transparent!important;margin-left:4px;white-space:nowrap}
.lang-switch:hover{border-color:#cbd5e1;background:#f8fafc!important;color:#1e293b!important}

/* Hamburger */
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:10px;flex-direction:column;gap:5px;width:44px;height:44px;justify-content:center;align-items:center}
.nav-toggle span{display:block;width:22px;height:2px;background:#1e293b;transition:.3s;border-radius:2px}
@media(max-width:900px){.nav-links{display:none}.nav-toggle{display:flex}}

/* ---------- Mobile menu ---------- */
.mobile-menu{
  position:fixed;top:68px;left:0;right:0;
  flex-direction:column;
  background:#fff;
  border-bottom:2px solid #e2e8f0;
  box-shadow:0 8px 24px rgba(0,0,0,.1);
  padding:0 20px;
  max-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  transition:max-height .3s ease,padding .3s ease;
  display:flex;
  z-index:199;
}
.mobile-menu.open{max-height:calc(100vh - 68px);padding:12px 20px 24px}
.mobile-group-label{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#4b5563;padding:12px 0 4px;border-top:1px solid #f1f5f9;margin-top:4px}
.mobile-group-label:first-child{border-top:none;margin-top:0;padding-top:4px}
.mobile-menu a{padding:9px 0;font-size:.9rem;color:#546478;border-bottom:1px solid #f8fafc;display:block}
.mobile-menu a:hover{color:#e21838}
.mobile-menu .mobile-cta{color:#e21838!important;font-weight:700;border-bottom:none;margin-top:8px;font-size:.95rem}
.mobile-menu .mobile-lang{display:flex!important;align-items:center;justify-content:center;margin-top:12px;padding:10px!important;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#546478!important;font-size:.9rem!important;font-weight:600;border-bottom:none!important}

/* ---------- Common sections ---------- */
.section{padding:64px 24px}
.section-alt{background:#fff}
.section-eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:700;color:#e21838;text-transform:uppercase;letter-spacing:.1em;margin-bottom:10px}
.section-title{font-size:2.25rem;font-weight:700;letter-spacing:-.02em;margin-bottom:14px}
.section-title em{font-style:italic;color:#e21838}
.section-sub{font-size:1rem;color:#546478;max-width:580px;margin-bottom:48px;line-height:1.7}

/* ---------- Cards ---------- */
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px;transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:0 8px 32px rgba(0,0,0,.08);transform:translateY(-2px)}
.card-icon{width:44px;height:44px;border-radius:12px;background:#fff1f3;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.card h3{font-size:1.05rem;font-weight:700;margin-bottom:8px;color:#1e293b}
.card p{font-size:.875rem;color:#546478;line-height:1.6}
.card-link{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:600;color:#e21838;margin-top:16px}
@media(max-width:768px){.cards-grid{grid-template-columns:1fr}}

/* ---------- Features split ---------- */
.features-split{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.features-list{display:flex;flex-direction:column;gap:20px;margin-top:24px}
.feature-item{display:flex;gap:14px;align-items:flex-start}
.feature-check{width:22px;height:22px;border-radius:50%;background:#fff1f3;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px;font-size:.75rem;color:#e21838;font-weight:700}
.feature-item h3{font-size:.95rem;font-weight:700;color:#1e293b;margin-bottom:3px}
.feature-item p{font-size:.85rem;color:#546478}
@media(max-width:768px){.features-split{grid-template-columns:1fr;gap:32px}}

/* ---------- Stats ---------- */
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:48px}
.stat-box{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:28px 20px;text-align:center}
.stat-num{font-family:"Fraunces",serif;font-size:2rem;font-weight:700;color:#e21838;display:block;line-height:1}
.stat-lbl{font-size:.78rem;color:#4b5563;margin-top:6px;display:block}
@media(max-width:640px){.stats-row{grid-template-columns:1fr 1fr}}

/* ---------- CTA Banner ---------- */
.cta-banner{background:#1e293b;color:#fff;padding:64px 24px;text-align:center}
.cta-banner h2{font-size:2.25rem;font-weight:700;color:#fff;margin-bottom:16px}
.cta-banner p{font-size:1rem;color:#94a3b8;max-width:480px;margin:0 auto 32px}
.cta-banner .btn-primary{background:#e21838;font-size:1rem;padding:14px 32px}

/* ---------- FAQ card grid ---------- */
.faq-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:4px}
.faq-item{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px 24px;border-top:3px solid #e21838}
.faq-q{font-family:"Fraunces",serif;font-size:.93rem;font-weight:700;color:#1e293b;display:block;cursor:default;padding:0;min-height:auto}
.faq-q::after{display:none}
.faq-a{font-size:.875rem;color:#546478;line-height:1.65;display:block;max-height:none;overflow:visible;padding-top:10px}
@media(max-width:640px){.faq-grid{grid-template-columns:1fr}}

/* ---------- Services strip (homepage icon row) ---------- */
.services-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:16px}
.service-pill{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px 16px;text-align:center;transition:box-shadow .2s,transform .2s;display:block;color:inherit}
.service-pill:hover{box-shadow:0 4px 20px rgba(0,0,0,.07);transform:translateY(-2px)}
.service-pill-icon{display:flex;align-items:center;justify-content:center;margin-bottom:10px;height:32px}
.service-pill-label{font-size:.82rem;font-weight:700;color:#1e293b}
@media(max-width:768px){.services-strip{grid-template-columns:repeat(3,1fr)}}
@media(max-width:480px){.services-strip{grid-template-columns:1fr 1fr}}

/* ---------- Testimonials ---------- */
.testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:16px}
.testimonial{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px}
.testimonial-stars{color:#e21838;font-size:1rem;margin-bottom:12px;letter-spacing:2px}
.testimonial-quote{font-size:.9rem;color:#546478;line-height:1.7;margin-bottom:20px;font-style:italic}
.testimonial-author{font-size:.82rem;font-weight:700;color:#1e293b}
.testimonial-co{font-size:.78rem;color:#4b5563}
@media(max-width:768px){.testimonials-grid{grid-template-columns:1fr}}

/* ---------- Hero sub-heading (homepage) ---------- */
.hero-sub{font-size:1.1rem;color:#546478;line-height:1.7;margin-bottom:36px;max-width:500px}
.hero-ctas{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:40px}
@media(max-width:768px){.hero-sub{font-size:1rem}}

/* ---------- Page hero (service pages) ---------- */
.page-hero{padding:64px 24px 48px;background:linear-gradient(135deg,#faf9f7 0%,#fff 100%)}
.page-hero-inner{max-width:1200px;margin:0 auto}
.eyebrow-tag{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #fecdd3;color:#e21838;font-size:.75rem;font-weight:700;padding:5px 14px;border-radius:999px;margin-bottom:20px;letter-spacing:.04em;text-transform:uppercase}
.page-hero h1{font-size:2.75rem;font-weight:700;letter-spacing:-.02em;margin-bottom:16px;max-width:700px}
.page-hero h1 em{font-style:italic;color:#e21838}
.page-hero p{font-size:1.1rem;color:#546478;max-width:580px;margin-bottom:32px;line-height:1.7}
@media(max-width:640px){.page-hero h1{font-size:2rem}}

/* ---------- Blog breadcrumb & related posts ---------- */
.breadcrumb{font-size:.8rem;color:#4b5563;padding:16px 24px;max-width:760px;margin:0 auto}
.breadcrumb a{color:#4b5563;transition:color .2s}
.breadcrumb a:hover{color:#546478}
.related-posts{background:#f8fafc;padding:48px 24px;border-top:1px solid #e2e8f0}
.related-posts-inner{max-width:760px;margin:0 auto}
.related-links{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.related-links a{font-size:.9rem;color:#e21838;font-weight:500}

/* ---------- Process steps (2×2 card grid) ---------- */
.process-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:40px}
.process-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:36px 32px;position:relative;overflow:hidden;transition:box-shadow .2s,transform .2s}
.process-card:hover{box-shadow:0 10px 36px rgba(0,0,0,.09);transform:translateY(-2px)}
.process-card::before{content:attr(data-num);position:absolute;top:-8px;right:20px;font-family:"Fraunces",serif;font-size:7.5rem;font-weight:700;color:#f1f5f9;line-height:1;pointer-events:none;user-select:none;z-index:0}
.process-badge{display:inline-flex;width:32px;height:32px;background:#e21838;color:#fff;border-radius:50%;align-items:center;justify-content:center;font-family:"Fraunces",serif;font-size:.82rem;font-weight:700;margin-bottom:18px;position:relative;z-index:1;flex-shrink:0}
.process-icon{width:52px;height:52px;background:#fff1f3;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:20px;position:relative;z-index:1}
.process-card h3{font-size:1.15rem;font-weight:700;color:#1e293b;margin-bottom:10px;position:relative;z-index:1}
.process-card p{font-size:.875rem;color:#546478;line-height:1.65;position:relative;z-index:1;max-width:380px}
.process-card-header{display:flex;align-items:flex-start;gap:14px;margin-bottom:8px;position:relative;z-index:1}
@media(max-width:640px){.process-grid{grid-template-columns:1fr}}

/* ---------- Blog ---------- */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.blog-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;transition:box-shadow .2s,transform .2s}
.blog-card:hover{box-shadow:0 8px 32px rgba(0,0,0,.08);transform:translateY(-2px)}
.blog-card-img{height:180px;background:linear-gradient(135deg,#1e293b,#334155);display:flex;align-items:center;justify-content:center;font-size:2.5rem}
.blog-card-body{padding:24px}
.blog-tag{font-size:.7rem;font-weight:700;color:#e21838;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.blog-card h3{font-size:1rem;font-weight:700;color:#1e293b;margin-bottom:8px;line-height:1.35}
.blog-card p{font-size:.85rem;color:#546478;line-height:1.55;margin-bottom:16px}
.blog-read{font-size:.8rem;font-weight:600;color:#e21838}
@media(max-width:768px){.blog-grid{grid-template-columns:1fr}}
.blog-post{max-width:760px;margin:0 auto;padding:48px 24px 80px}
.blog-post h1{font-size:2.25rem;font-weight:700;letter-spacing:-.02em;margin-bottom:16px}
.blog-post .blog-meta{font-size:.82rem;color:#4b5563;margin-bottom:32px;display:flex;gap:20px}
.blog-post h2{font-size:1.4rem;margin:36px 0 12px}
.blog-post h3{font-size:1.1rem;margin:24px 0 8px}
.blog-post p{margin-bottom:16px;font-size:.95rem;line-height:1.75}
.blog-post ul{padding-left:20px;margin-bottom:16px}
.blog-post li{font-size:.95rem;line-height:1.7;margin-bottom:6px;color:#546478}
.blog-cta-box{background:#fff1f3;border:1px solid #fecdd3;border-radius:12px;padding:24px;margin:36px 0}
.blog-cta-box p{margin-bottom:12px;font-weight:600;color:#1e293b}

/* ---------- Footer (slim) ---------- */
.footer{background:#1e293b;color:#94a3b8;padding:28px 24px 20px}
.footer-slim{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;padding-bottom:20px;border-bottom:1px solid #334155}
.footer-logo{font-family:"Fraunces",serif;font-size:1.3rem;font-weight:700;color:#fff;margin-bottom:4px}
.footer-logo span{color:#e21838}
.footer-tagline{font-size:.82rem;color:#94a3b8;line-height:1.5}
.footer-contact{text-align:right;font-size:.82rem;color:#94a3b8;line-height:1.8}
.footer-contact a{color:#94a3b8;transition:color .2s}
.footer-contact a:hover{color:#fff}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding-top:16px;font-size:.8rem}
.footer-legal{display:flex;gap:16px}
.footer-legal a{color:#94a3b8;transition:color .2s}
.footer-legal a:hover{color:#fff}

/* ---------- Mobile overrides ---------- */
@media(max-width:768px){
  .btn-pill{padding:10px 20px!important}
  .nav-toggle{padding:10px!important}
  .card p{font-size:0.95rem}
  .card h3{font-size:1.1rem}
  .section-title{font-size:1.85rem}
  .footer-slim{flex-direction:column;align-items:flex-start;gap:12px}
  .footer-contact{text-align:left}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:6px}
}
@media(max-width:480px){
  .page-hero h1{font-size:2rem}
  .section-title{font-size:1.75rem}
  .btn-primary,.btn-outline{width:100%;justify-content:center}
  .stats-row{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr!important}
}
