/*
Theme Name:  Hospeo
Theme URI:   https://hospeo.com
Author:      Hospeo Conciergerie
Author URI:  https://hospeo.com
Description: Thème sur-mesure pour Hospeo – Conciergerie Airbnb Marrakech & Casablanca. Design razor-blade, SEO-first, CRO-optimisé.
Version:     3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     Proprietary
Text Domain: hospeo
Tags:        custom-logo, full-width-template, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   HOSPEO DESIGN SYSTEM v2.0
   Razor-blade typography · Forest green · Gold accents
   Bebas Neue (display) · Barlow Condensed (sub) · Barlow (body)
   ============================================================ */

/* ── TOKENS ── */
:root {
  --forest:   #0d2b1e;
  --forest2:  #143824;
  --forest3:  #1c4a30;
  --sage:     #2d5a3d;
  --lime:     #5cb85c;
  --lime2:    #4aa84a;
  --gold:     #c8a96a;
  --gold2:    #e8cc96;
  --white:    #ffffff;
  --off:      #f7f6f3;
  --paper:    #f2f0ec;
  --ink:      #0c1410;
  --ink2:     #3a4a3a;
  --ink3:     #6a796a;
  --rule:     #e2e7e2;
  --rule2:    #cdd5cd;
  --D:        'Bebas Neue', sans-serif;
  --C:        'Barlow Condensed', sans-serif;
  --B:        'Barlow', sans-serif;
  --ease:     cubic-bezier(.16,1,.3,1);
  --max:      1200px;
  --pad:      64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--B);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--B); cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font-family: var(--B); }

/* ── LAYOUT ── */
.wrap       { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap-sm    { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.wrap-wide  { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }

/* ── SCROLL REVEAL ── */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: translateY(0); }
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .18s; }
.rv.d3 { transition-delay: .3s; }
.rv.d4 { transition-delay: .44s; }

/* ── TYPOGRAPHY SYSTEM ── */
.display-xl {
  font-family: var(--D);
  font-size: clamp(58px, 9vw, 128px);
  line-height: .9; letter-spacing: .02em; text-transform: uppercase;
}
.razor-h2 {
  font-family: var(--D);
  font-size: clamp(42px, 5.5vw, 78px);
  line-height: .93; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink);
}
.razor-h2 em {
  font-family: var(--C);
  font-style: italic; color: var(--forest);
  font-size: .7em; letter-spacing: .01em; text-transform: none;
}
.razor-h2.white     { color: var(--white); }
.razor-h2.white em  { color: rgba(255,255,255,.48); }
.section-lbl {
  font-family: var(--C);
  font-size: 10px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink3);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.section-lbl::after { content: ''; flex: 0 0 20px; height: 1px; background: var(--rule2); }
.section-lbl.gold { color: var(--gold); }
.section-lbl.gold::after { background: var(--gold); opacity: .4; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 9px; border: none; cursor: pointer; font-family: var(--C); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-radius: 4px; transition: all .2s var(--ease); text-decoration: none; }
.btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.btn-lime   { background: var(--lime); color: var(--white); padding: 14px 26px; font-size: 13px; }
.btn-lime:hover   { background: var(--lime2); transform: translateY(-2px); gap: 13px; }
.btn-forest { background: var(--forest); color: var(--white); padding: 14px 26px; font-size: 13px; }
.btn-forest:hover { background: var(--forest2); transform: translateY(-1px); }
.btn-ghost  { background: transparent; color: rgba(255,255,255,.52); border: 1.5px solid rgba(255,255,255,.22); padding: 13px 26px; font-size: 12px; }
.btn-ghost:hover  { border-color: rgba(255,255,255,.55); color: rgba(255,255,255,.82); }
.btn-block  { width: 100%; justify-content: center; }
.btn-sm     { padding: 9px 18px; font-size: 11px; }

/* ── BADGE / CHIPS ── */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 4px 12px; font-family: var(--C); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.badge-lime { background: rgba(92,184,92,.15); border: 1px solid rgba(92,184,92,.28); color: var(--lime); }
.badge-gold { color: var(--gold); border: 1px solid var(--gold); background: transparent; }
.badge-ink  { background: var(--off); border: 1px solid var(--rule2); color: var(--forest); }
.badge-dot  { width: 5px; height: 5px; background: currentColor; border-radius: 50%; animation: bpulse 1.8s ease-in-out infinite; }
@keyframes bpulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.65)} }

/* ── CANVAS FILL BOX ── */
.canvas-box { width: 100%; position: relative; overflow: hidden; display: block; }
.canvas-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ── CARDS ── */
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,.08); border-color: var(--rule2); }
.card-off { background: var(--off); border-radius: 12px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.card-off:hover { transform: translateY(-5px); box-shadow: 0 20px 52px rgba(0,0,0,.09); }
.card-dark { background: rgba(255,255,255,.053); border-radius: 12px; overflow: hidden; transition: background .3s; }
.card-dark:hover { background: rgba(255,255,255,.085); }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

/* ── SECTION PADDING ── */
.section-white { background: var(--white); padding: 96px 0; }
.section-off   { background: var(--off);   padding: 96px 0; }
.section-dark  { background: var(--forest); padding: 96px 0; }
.section-ink   { background: var(--ink);   padding: 96px 0; }
.border-b { border-bottom: 1px solid var(--rule); }
.border-t { border-top:    1px solid var(--rule); }

/* ── ANNOUNCE ── */
#hospeo-announce {
  background: var(--forest); padding: 10px var(--pad);
  text-align: center;
  font-family: var(--C); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
#hospeo-announce a { color: rgba(255,255,255,.88); text-decoration: underline; text-underline-offset: 3px; }

/* ── NAV ── */
#hospeo-nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img,
.nav-logo .custom-logo { height: 28px; width: auto; max-width: 140px; filter: brightness(0) saturate(100%); transition: opacity .2s; object-fit: contain; }
.nav-logo:hover img,
.nav-logo:hover .custom-logo { opacity: .75; }
/* Fix WP custom-logo wrapper adding extra link */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img { height: 28px; width: auto; max-width: 140px; }
.nav-menu { display: flex; gap: 24px; flex: 1; justify-content: center; }
.nav-menu li a {
  font-family: var(--C); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink2); transition: color .2s;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a { color: var(--forest); }
.nav-cta-btn {
  font-family: var(--C); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--forest); color: var(--white); padding: 9px 18px; border: none; border-radius: 4px;
  cursor: pointer; white-space: nowrap; transition: background .2s, transform .15s var(--ease);
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-cta-btn:hover { background: var(--forest2); transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 30px; background: none; border: none; cursor: pointer; padding: 3px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
#nav-drawer {
  display: none; position: fixed; inset: 0; top: 66px; z-index: 200;
  background: var(--white); border-top: 1px solid var(--rule);
  padding: 40px var(--pad); flex-direction: column;
  animation: drawerIn .35s var(--ease) both;
}
#nav-drawer.open { display: flex; }
@keyframes drawerIn { from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)} }
#nav-drawer a {
  font-family: var(--D); font-size: 52px; letter-spacing: .06em;
  color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--rule); display: block; line-height: 1;
  transition: color .2s;
}
#nav-drawer a:hover { color: var(--forest); }
#nav-drawer .drawer-cta {
  margin-top: 28px; background: var(--forest); color: var(--white);
  padding: 18px; border-radius: 4px;
  font-family: var(--C); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border: none; cursor: pointer; display: block; width: 100%; text-align: center;
}

/* ── FOOTER ── */
#hospeo-footer { background: var(--ink); }
.footer-grid {
  max-width: var(--max); margin: 0 auto; padding: 52px var(--pad) 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo { display: flex; align-items: center; text-decoration: none; margin-bottom: 12px; }
.footer-logo img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .75; }
.footer-tagline { font-family: var(--B); font-size: 13px; font-weight: 300; color: rgba(255,255,255,.3); line-height: 1.65; }
.footer-col h4 { font-family: var(--C); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.24); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-family: var(--B); font-size: 13px; font-weight: 300; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-col li a:hover { color: rgba(255,255,255,.82); }
.footer-contact-item { font-family: var(--B); font-size: 12px; font-weight: 300; color: rgba(255,255,255,.36); margin-bottom: 6px; }
.footer-contact-item a { color: rgba(255,255,255,.46); transition: color .2s; }
.footer-contact-item a:hover { color: rgba(255,255,255,.82); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-copy { font-family: var(--B); font-size: 12px; font-weight: 300; color: rgba(255,255,255,.2); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-family: var(--B); font-size: 12px; font-weight: 300; color: rgba(255,255,255,.2); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ── PLATFORMS BAR ── */
.plat-bar { background: var(--off); border-bottom: 1px solid var(--rule); }
.plat-inner { max-width: var(--max); margin: 0 auto; padding: 17px var(--pad); display: flex; align-items: center; gap: 22px; }
.plat-lbl { font-family: var(--C); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; }
.plat-sep { width: 1px; height: 13px; background: var(--rule); flex-shrink: 0; }
.plat-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.plat-chip { font-family: var(--C); font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--ink2); border: 1px solid var(--rule); padding: 5px 13px; border-radius: 4px; background: var(--white); transition: border-color .2s, color .2s; }
.plat-chip:hover { border-color: var(--forest); color: var(--forest); }

/* ── STATS ROW ── */
.stats-row { background: var(--white); border-bottom: 1px solid var(--rule); }
.stats-inner { max-width: var(--max); margin: 0 auto; padding: 52px var(--pad); display: grid; grid-template-columns: repeat(3,1fr); }
.stat { padding-right: 44px; margin-right: 44px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.stat-n { font-family: var(--D); font-size: 68px; line-height: .9; letter-spacing: .01em; color: var(--forest); margin-bottom: 8px; }
.stat-n sup { font-family: var(--C); font-size: .44em; font-weight: 500; color: var(--gold); vertical-align: super; }
.stat-l { font-family: var(--B); font-size: 13px; font-weight: 300; color: var(--ink2); line-height: 1.6; }

/* ── PRICING CARD ── */
.pricing-card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.pricing-head { background: var(--forest); padding: 30px 30px 22px; }
.price-big { font-family: var(--D); font-size: 76px; line-height: .9; color: var(--white); letter-spacing: .01em; }
.price-big span { font-family: var(--C); font-size: 26px; font-weight: 400; }
.price-unit { font-family: var(--B); font-size: 13px; font-weight: 300; color: rgba(255,255,255,.48); margin-top: 5px; }
.price-badge { display: inline-block; margin-top: 12px; font-family: var(--C); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); padding: 4px 11px; border-radius: 4px; }
.pricing-body { padding: 24px 28px; }
.price-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-family: var(--B); font-size: 13px; font-weight: 300; color: var(--ink2); }
.price-item:last-child { border-bottom: none; }
.price-check { width: 16px; height: 16px; border-radius: 50%; background: #e8f5e8; border: 1px solid var(--rule2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.price-check svg { width: 8px; height: 8px; stroke: var(--forest); stroke-width: 2.5; fill: none; }

/* ── TESTIMONIAL CARDS ── */
.tc { background: rgba(255,255,255,.053); border-radius: 12px; overflow: hidden; transition: background .3s; }
.tc:hover { background: rgba(255,255,255,.085); }
.tc-photo-lbl { position: absolute; bottom: 9px; left: 13px; z-index: 2; font-family: var(--C); font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.tc-body { padding: 18px 18px 22px; }
.tc-stars { display: flex; gap: 3px; margin-bottom: 10px; }
.tc-star { width: 9px; height: 9px; fill: var(--gold); }
.tc-q { font-family: var(--B); font-size: 13px; font-weight: 300; font-style: italic; color: rgba(255,255,255,.77); line-height: 1.68; margin-bottom: 12px; }
.tc-name { font-family: var(--C); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.48); }
.tc-role { font-family: var(--B); font-size: 10px; font-weight: 300; color: rgba(255,255,255,.27); margin-top: 1px; }
.tc-city { font-family: var(--C); font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 3px; display: block; }

/* ── FAQ ── */
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-question { width: 100%; background: none; border: none; cursor: pointer; padding: 17px 0; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--B); font-size: 14px; font-weight: 400; color: var(--ink); transition: color .2s; }
.faq-question:hover { color: var(--forest); }
.faq-icon { width: 19px; height: 19px; flex-shrink: 0; border: 1px solid var(--rule2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.faq-icon svg { width: 9px; height: 9px; stroke: var(--ink2); stroke-width: 2; fill: none; transition: transform .3s var(--ease), stroke .2s; }
.faq-item.open .faq-icon { background: var(--forest); border-color: var(--forest); }
.faq-item.open .faq-icon svg { stroke: var(--white); transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 17px; font-family: var(--B); font-size: 13px; font-weight: 300; color: var(--ink2); line-height: 1.75; max-width: 600px; }
.faq-item.open .faq-answer { display: block; }

/* ── CONVERSATIONAL FORM CARD ── */
.form-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 28px 72px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.08); }
.form-top { background: linear-gradient(135deg, var(--forest2), var(--forest)); padding: 26px 26px 18px; position: relative; overflow: hidden; }
.form-top::before { content: ''; position: absolute; top: -24px; right: -24px; width: 110px; height: 110px; background: radial-gradient(circle,rgba(200,169,106,.16),transparent 70%); pointer-events: none; }
.form-title { font-family: var(--D); font-size: 26px; letter-spacing: .06em; text-transform: uppercase; color: var(--white); line-height: 1; margin-top: 10px; }
.form-sub { font-family: var(--B); font-size: 11px; font-weight: 300; color: rgba(255,255,255,.4); margin-top: 4px; }
.form-progress { height: 2px; background: rgba(255,255,255,.1); }
.form-bar { height: 100%; background: var(--lime); width: 0%; transition: width .5s var(--ease); }
.form-body { padding: 20px 22px 22px; min-height: 250px; display: flex; flex-direction: column; }
.form-step-n { font-family: var(--C); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); margin-bottom: 9px; }
.form-q { font-family: var(--D); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); line-height: 1.05; margin-bottom: 14px; }
.form-opts { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.form-opt { background: var(--off); border: 1px solid var(--rule); color: var(--ink); padding: 10px 13px; border-radius: 6px; font-family: var(--B); font-size: 13px; font-weight: 300; cursor: pointer; text-align: left; width: 100%; transition: border-color .18s, background .18s, transform .12s var(--ease); }
.form-opt:hover { border-color: var(--forest); background: #f0f6f2; transform: translateX(4px); }
.form-opt.selected { border-color: var(--forest); background: var(--forest); color: var(--white); }
.form-input-wrap { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.form-input { background: var(--off); border: 1px solid var(--rule); color: var(--ink); padding: 12px 14px; border-radius: 6px; font-family: var(--B); font-size: 14px; font-weight: 300; outline: none; width: 100%; transition: border-color .2s, background .2s; }
.form-input::placeholder { color: var(--ink3); }
.form-input:focus { border-color: var(--forest); background: var(--white); }
.form-hint { font-family: var(--B); font-size: 11px; font-weight: 300; color: var(--ink3); }
.form-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 13px; }
.form-next { background: var(--lime); color: var(--white); border: none; cursor: pointer; width: 100%; padding: 14px; border-radius: 6px; font-family: var(--C); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .15s var(--ease); }
.form-next:hover { background: var(--lime2); transform: translateY(-1px); }
.form-next svg { width: 12px; height: 12px; flex-shrink: 0; }
.form-back { background: none; border: none; cursor: pointer; font-family: var(--C); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); transition: color .2s; }
.form-back:hover { color: var(--ink2); }
.form-trust { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 22px 12px; font-family: var(--B); font-size: 11px; font-weight: 300; color: var(--ink3); border-top: 1px solid var(--rule); background: var(--off); }
.form-trust svg { width: 11px; height: 11px; stroke: var(--ink3); stroke-width: 1.5; fill: none; flex-shrink: 0; }
.form-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 0; }
.form-done-ico { width: 44px; height: 44px; background: #e8f5e8; border: 1px solid var(--forest); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.form-done-ico svg { width: 17px; height: 17px; stroke: var(--forest); stroke-width: 2; fill: none; }
.form-done-title { font-family: var(--D); font-size: 26px; letter-spacing: .06em; color: var(--ink); margin-bottom: 8px; }
.form-done-sub { font-family: var(--B); font-size: 13px; font-weight: 300; color: var(--ink2); line-height: 1.65; margin-bottom: 16px; max-width: 220px; }
.form-done-wa { background: var(--forest); color: var(--white); padding: 11px 22px; border-radius: 6px; font-family: var(--C); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: background .2s; }
.form-done-wa:hover { background: var(--forest2); }

/* ── MODAL OVERLAY ── */
#hospeo-modal { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(8,18,11,.72); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 20px; }
#hospeo-modal.open { display: flex; }
.modal-box { background: var(--white); border-radius: 12px; width: 100%; max-width: 430px; overflow: hidden; animation: modalUp .45s var(--ease) both; position: relative; }
@keyframes modalUp { from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)} }
.modal-close { position: absolute; top: 13px; right: 13px; z-index: 10; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 9px; height: 9px; stroke: var(--white); stroke-width: 2; fill: none; }

/* ── BLOG STYLES ── */
.blog-hero { background: var(--forest); padding: 80px 0 0; }
.blog-hero h1 { font-family: var(--D); font-size: clamp(44px, 6vw, 82px); letter-spacing: .02em; text-transform: uppercase; color: var(--white); margin-top: 14px; max-width: 720px; }
.blog-hero p { font-family: var(--B); font-size: 16px; font-weight: 300; color: rgba(255,255,255,.6); margin-top: 14px; max-width: 500px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.blog-card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,.08); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; background: var(--forest2); overflow: hidden; flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-cat { font-family: var(--C); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); margin-bottom: 9px; display: block; }
.blog-card h3 { font-family: var(--C); font-size: 19px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); margin-bottom: 9px; line-height: 1.15; }
.blog-card p { font-family: var(--B); font-size: 13px; font-weight: 300; color: var(--ink2); line-height: 1.7; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--B); font-size: 12px; font-weight: 300; color: var(--ink3); }
.blog-meta-sep { width: 3px; height: 3px; background: var(--rule2); border-radius: 50%; }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-pill { font-family: var(--C); font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--ink2); border: 1px solid var(--rule); padding: 6px 16px; border-radius: 4px; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.cat-pill:hover, .cat-pill.active { border-color: var(--forest); color: var(--forest); background: #f0f6f2; }

/* Article content */
.article-hero { background: var(--off); padding: 72px 0 0; border-bottom: 1px solid var(--rule); }
.article-content { max-width: 760px; margin: 0 auto; padding: 56px var(--pad) 80px; }
.article-content p { font-family: var(--B); font-size: 17px; font-weight: 300; color: var(--ink2); line-height: 1.88; margin-bottom: 22px; }
.article-content h2 { font-family: var(--D); font-size: 28px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); margin: 44px 0 14px; }
.article-content h3 { font-family: var(--C); font-size: 20px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin: 34px 0 12px; }
.article-content ul, .article-content ol { font-family: var(--B); font-size: 16px; font-weight: 300; color: var(--ink2); line-height: 1.8; margin: 0 0 22px 22px; }
.article-content li { margin-bottom: 7px; }
.article-content strong { font-weight: 500; color: var(--ink); }
.article-content a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { border-left: 3px solid var(--forest); padding: 18px 24px; background: var(--off); margin: 28px 0; font-family: var(--C); font-size: 20px; font-style: italic; color: var(--ink); font-weight: 400; line-height: 1.55; }
.article-cta { background: var(--off); border: 1px solid var(--rule); border-radius: 12px; padding: 36px; margin: 44px 0; text-align: center; }
.article-cta h3 { font-family: var(--D); font-size: 28px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 9px; }
.article-cta p { font-family: var(--B); font-size: 15px; font-weight: 300; color: var(--ink2); line-height: 1.7; margin-bottom: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--B); font-size: 12px; font-weight: 300; color: var(--ink3); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink3); transition: color .2s; }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb-sep { font-size: 10px; color: var(--rule2); }

/* ── RESPONSIVE ── */

/* TABLET — 768–1024px overlap fix zone */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-menu { gap: 14px; }
  .nav-menu li a { font-size: 10px; letter-spacing: .1em; }
  .nav-cta-btn { font-size: 10px; padding: 8px 14px; }
  .nav-inner { gap: 12px; }
  .hero-section { grid-template-columns: 1.1fr 1fr; }
  .hero-form-col { padding: 40px 20px 40px 10px; }
  .hero-form-col > .form-card { max-width: 380px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

/* MOBILE — ≤768px */
@media (max-width: 768px) {
  :root { --pad: 20px; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .stats-inner { grid-template-columns: 1fr; gap: 0; }
  .stat { border-right: none; border-bottom: 1px solid var(--rule); padding: 22px 0; margin-right: 0; }
  .stat:last-child { border-bottom: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .plat-inner { flex-wrap: wrap; }
  .display-xl { font-size: clamp(52px, 12vw, 80px); }
  .razor-h2 { font-size: clamp(36px, 8vw, 58px); }
  /* Touch targets — minimum 44px */
  .btn, .nav-cta-btn, .form-opt, .form-next, .form-back, .faq-question { min-height: 44px; }
  .form-opt { padding: 13px 16px; }
  .faq-question { padding: 20px 0; }
  #nav-drawer a { padding: 16px 0; font-size: 42px; }
  #nav-drawer .drawer-cta { min-height: 52px; }
  /* Section spacing */
  .section-white, .section-off, .section-dark, .section-ink { padding: 64px 0; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── WP CORE OVERRIDES ── */
.wp-block-image { margin: 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
p.has-text-align-center { text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── PERFORMANCE: Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .canvas-box canvas { display: none; }
}
/* GPU-promote animated elements */
.rv, .card, .card-off, .blog-card, .tc { will-change: transform, opacity; }

/* ── ADMIN BAR: Lead count badge ── */
.hospeo-lead-count { display: inline-block; background: #d63638; color: #fff; font-size: 10px; line-height: 1; padding: 2px 6px; border-radius: 10px; margin-left: 4px; vertical-align: middle; }
