/* ============================================================
   MOBILE REDESIGN — Biroul de Mediere Stegarescu Gheorghe
   Loaded AFTER pages.css. Only active on small viewports.
   Goals: thumb-zone navigation, larger tap targets, more
   breathing room, calmer text density, premium feel preserved.
   ============================================================ */

/* ---- shared mobile tokens ---- */
:root {
  --bnav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --cream-88: rgba(246,241,231,.88);
  --cream-74: rgba(246,241,231,.74);
}

/* ============================================================
   BOTTOM NAV — phone-only thumb-zone navigation
   ============================================================ */
.bnav {
  display: none;
}

@media (max-width: 720px) {
  .bnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 6px 6px calc(6px + var(--safe-b));
    background: rgba(16,13,8,.88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid rgba(176,134,60,.18);
    box-shadow: 0 -10px 30px -8px rgba(0,0,0,.4);
  }
  .bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 58px;
    padding: 6px 4px;
    border-radius: 14px;
    color: rgba(246,241,231,.72);
    transition: color .2s, background .2s;
  }
  .bnav-item:active { background: rgba(176,134,60,.10); }
  .bnav-item.on { color: var(--gold-bright); }
  .bnav-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
  }
  .bnav-lb {
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1;
  }
  /* CTA pill — gold gradient */
  .bnav-cta {
    color: var(--ink);
    background: linear-gradient(135deg, #E9D49A 0%, #C9A24B 55%, #A9802F 100%);
    margin: -2px 6px -2px 6px;
    box-shadow: 0 6px 16px -6px rgba(176,134,60,.55);
    font-weight: 700;
  }
  .bnav-cta:active { transform: translateY(1px); }
  .bnav-cta .bnav-lb { color: var(--ink); }

  /* phone call — slight emphasis */
  .bnav-call { color: rgba(246,241,231,.92); }
  .bnav-call .bnav-ic { color: var(--gold-bright); }

  /* room for the nav so content isn't covered */
  body { padding-bottom: calc(var(--bnav-h) + var(--safe-b)); }

  /* The legacy floatbar (call + scroll-top) duplicates bottom nav. Hide call,
     keep scroll-top but tuck it above the nav. */
  .floatbar { bottom: calc(var(--bnav-h) + var(--safe-b) + 14px); right: 14px; }
  .floatbar .fb-call { display: none; }
}

/* ============================================================
   HEADER — simplify on mobile (bottom nav owns navigation)
   ============================================================ */
@media (max-width: 720px) {
  /* Hide the burger + mobile menu — bottom nav is primary now */
  .burger,
  .mobile-menu { display: none !important; }

  /* Hide the header CTA "Programare" pill — bnav has it */
  .hdr-cta { display: none; }

  /* Tighten topbar: keep hours + phone, drop tagline */
  .topbar-in { padding-block: 6px; }
  .tb-center { display: none; }
  .tb-phone { font-weight: 600; color: var(--gold-bright); }

  /* Brand: shrink monogram a hair for headroom */
  .hdr-main { padding-block: 8px; }
  .hdr-row { gap: 8px; }

  /* Make language switch a comfortable pill pair, right-aligned */
  .hdr-actions { gap: 6px; }
  .lang {
    background: rgba(246,241,231,.06);
    border-radius: 999px;
    padding: 3px;
  }
  .lang button {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .78rem;
  }
  .lang button.on {
    background: var(--gold);
    color: var(--ink);
  }
  .lang span { display: none; }
}

/* ============================================================
   HERO — calmer, bigger, more breathing room
   ============================================================ */
@media (max-width: 720px) {
  .hero { padding-block: clamp(28px, 7vw, 48px) clamp(40px, 9vw, 64px); }
  .hero-grid { gap: 28px; }
  .hero-copy { text-align: left; }

  /* Eyebrow + credential bump */
  .hero .eyebrow { font-size: 11px; letter-spacing: .26em; }
  .hero-cred {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 14px;
    padding: 7px 14px;
    background: rgba(176,134,60,.08);
    border: 1px solid rgba(176,134,60,.20);
    border-radius: 999px;
    font-size: .78rem;
    color: var(--cream-88);
    letter-spacing: .02em;
  }

  /* Headline — bold, large, but always fits at 360px */
  .hero-title {
    font-size: clamp(2.05rem, 9.5vw, 2.9rem);
    line-height: 1.04;
    letter-spacing: -.015em;
    margin-top: 16px;
  }
  .hero-title .ht-1 { display: block; }
  .hero-title .ht-2 { display: block; }

  /* Lead text — fewer words feel, better contrast */
  .hero-text {
    margin-top: 18px;
    color: var(--cream-88);
    font-size: 1.06rem;
    line-height: 1.62;
  }

  /* Bullets — convert to a tighter pill row with check dots */
  .hero-bul {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .hero-bul-row {
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(246,241,231,.04);
    border: 1px solid rgba(246,241,231,.08);
    border-radius: 12px;
    color: var(--cream-88);
    font-size: .96rem;
    line-height: 1.45;
  }
  .hero-bul-row .tick {
    width: 22px; height: 22px; flex: 0 0 22px;
    display: inline-grid; place-items: center;
    background: rgba(201,162,75,.16);
    color: var(--gold-bright);
    border-radius: 50%;
  }

  /* CTA stack — bigger, more obvious primary */
  .hero-cta {
    margin-top: 22px;
    gap: 10px;
  }
  .hero-cta .btn-lg {
    min-height: 56px;
    font-size: 1rem;
    border-radius: 16px;
    padding-block: 16px;
  }
  .hero-cta .btn-gold {
    box-shadow: 0 14px 28px -10px rgba(176,134,60,.55);
  }

  /* Portrait — smaller frame, centered, restrained corners */
  .hero-media { max-width: 280px; margin-inline: auto; }
  .hero-photo { border-radius: var(--r-xl); }

  /* Floating stat chip — promotes itself into a clean pill */
  .hero-float {
    left: 50%;
    transform: translateX(-50%);
    bottom: -22px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(22,18,11,.94);
    backdrop-filter: blur(10px);
    display: flex; align-items: baseline; gap: 8px;
  }
  .hero-float .hf-n { font-size: 1.15rem; }
  .hero-float .hf-l { margin-top: 0; font-size: .72rem; max-width: none; }
}

/* ============================================================
   STATS BAND — compact 3-up on mobile instead of stacked
   ============================================================ */
@media (max-width: 720px) {
  /* Override the existing stacked 1fr from <640px */
  .statsbar-in {
    grid-template-columns: 1fr 1fr 1fr !important;
    flex-direction: row !important;
    gap: 0 !important;
    padding-block: 18px;
  }
  .statsbar-cell {
    border-right: 1px solid rgba(176,134,60,.18) !important;
    border-bottom: none !important;
    padding: 4px 0;
    text-align: center;
  }
  .statsbar-cell:last-child { border-right: none !important; }
  .statsbar-cell .stat-n { font-size: 1.55rem; }
  .statsbar-cell .stat-l {
    font-size: .68rem;
    letter-spacing: .15em;
    line-height: 1.25;
    margin-top: 4px;
  }
}

/* ============================================================
   WHAT SECTION — calmer text, brand quote becomes pull-quote
   ============================================================ */
@media (max-width: 720px) {
  .what { padding-block: clamp(56px, 10vw, 88px); }
  .what-grid { gap: 24px; }
  .what-media { max-width: 100%; }
  .what-photo img { border-radius: var(--r-xl); }
  .what-quote {
    margin: -28px 14px 0;
    padding: 18px 22px;
    background: rgba(255,255,255,.96);
    border-radius: 18px;
    box-shadow: 0 18px 40px -20px rgba(22,18,11,.25);
    border: 1px solid var(--line);
  }
  .what-quote p {
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--ink);
  }

  .what-lead { font-size: 1.05rem; line-height: 1.62; }

  /* Checklist: bigger spacing, better contrast */
  .what-ben-t { font-size: 1.18rem; }
  .what-ben-x { font-size: .98rem; line-height: 1.6; }
  .checklist li {
    padding-block: 10px;
    font-size: .98rem;
    line-height: 1.4;
  }
}

/* ============================================================
   SERVICES — horizontal swipe carousel on mobile
   ============================================================ */
@media (max-width: 720px) {
  .services { padding-block: clamp(64px, 11vw, 96px); }
  .services .sec-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  /* The tab list becomes a snap carousel */
  .svc-layout { gap: 18px; }
  .svc-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gut);
    padding-inline: var(--gut);
    margin-inline: calc(-1 * var(--gut));
    padding-block: 4px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .svc-list::-webkit-scrollbar { display: none; }
  /* .services section bg is WHITE — keep dark text on cards */
  .svc-tab {
    flex: 0 0 78%;
    min-width: 78%;
    max-width: 78%;
    min-height: 104px;
    scroll-snap-align: start;
    padding: 16px;
    gap: 14px;
    border-radius: 18px;
    background: var(--cream-2);
    border: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    text-align: left;
    transition: background .25s, border-color .25s, box-shadow .25s;
  }
  .svc-tab.on {
    background: linear-gradient(180deg, #fbf5e7 0%, #f5ead0 100%);
    border-color: rgba(176,134,60,.55);
    box-shadow: 0 14px 30px -18px rgba(135,99,38,.4);
  }
  .svc-tab-ic {
    width: 48px; height: 48px;
    background: var(--gold-wash);
    color: var(--gold-deep);
    border: 1px solid var(--line-gold);
    border-radius: 14px;
    display: grid; place-items: center;
    flex: 0 0 48px;
  }
  .svc-tab.on .svc-tab-ic {
    background: linear-gradient(135deg, #211B11 0%, #16120B 100%);
    color: var(--gold-bright);
    border-color: rgba(231,214,174,.32);
  }
  .svc-tab-tx { gap: 4px; flex: 1; min-width: 0; }
  .svc-tab-name {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: var(--ink) !important;
    line-height: 1.18;
    font-family: var(--serif);
  }
  .svc-tab.on .svc-tab-name { color: var(--gold-deep) !important; }
  .svc-tab-short {
    font-size: .85rem;
    color: var(--muted) !important;
    line-height: 1.42;
    font-family: var(--sans);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Hide the desktop-only decorative gold underline — overlaps short text */
  .svc-tab::after { display: none; }
  .svc-tab-arr { display: inline-flex !important; color: var(--gold-deep); align-self: center; }

  /* Currently-shown service detail */
  .svc-detail {
    margin-inline: 0;
    padding: 22px;
    border-radius: 22px;
  }
  .svc-detail-img { border-radius: 16px; aspect-ratio: 16/10; }
  .svc-detail-img-ic { width: 50px; height: 50px; }
  .svc-detail-name { font-size: clamp(1.6rem, 7vw, 2.1rem); margin-top: 14px; }
  .svc-detail-text { font-size: 1.02rem; line-height: 1.65; }
  .svc-detail .btn { width: 100%; min-height: 56px; border-radius: 16px; }
}

/* ============================================================
   PROMISE BAND — bigger cards, no cramp
   ============================================================ */
@media (max-width: 720px) {
  .promise-grid { gap: 16px; }
  .promise-card {
    padding: 22px;
    border-radius: 18px;
    background: rgba(246,241,231,.04);
    border: 1px solid rgba(246,241,231,.08);
  }
  .promise-card h3 { font-size: 1.18rem; margin-top: 6px; color: var(--cream); }
  .promise-card p { color: var(--cream-88); line-height: 1.6; font-size: .98rem; }
  .promise-num { color: var(--gold-bright); font-weight: 700; }
}

/* ============================================================
   BOOKING — mode = 2 tap cards, fewer inputs visible at once
   ============================================================ */
@media (max-width: 720px) {
  .booking { padding-block: clamp(48px, 9vw, 88px); }
  .booking-grid { gap: 22px; }
  .booking-title { font-size: clamp(1.8rem, 8vw, 2.4rem); line-height: 1.05; }

  /* Stat boxes — compact 3-up */
  .booking-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .bs-box { padding: 12px 8px; text-align: center; }
  .bs-n { font-size: 1.25rem; }
  .bs-l { font-size: .7rem; line-height: 1.25; }

  /* Direct line CTA — make it a fat gold pill */
  .booking-directline {
    min-height: 60px;
    border-radius: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(176,134,60,.16), rgba(176,134,60,.06));
    border: 1px solid rgba(176,134,60,.4);
  }
  .bdl-label { font-size: .72rem; color: var(--gold-deep); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
  .bdl-num { font-size: 1.18rem; font-weight: 700; color: var(--gold-deep); }

  /* Booking form — bigger, calmer */
  .booking-form-wrap .form-card {
    padding: 24px 20px;
    border-radius: 22px;
  }
  .field label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
  .field input, .field textarea, .field select {
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
  }
  .field textarea { min-height: 110px; }
  .field { margin-bottom: 18px; }

  /* "Mod întâlnire" — replace radios with tap cards (handles 2 or 3 modes) */
  .booking-form-wrap fieldset.field {
    border: 0;
    padding: 0;
    margin-bottom: 22px;
  }
  .booking-form-wrap fieldset.field legend {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 10px;
    padding: 0;
  }
  .booking-form-wrap .radio-group {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .radio-pill {
    min-height: 60px !important;
    padding: 10px 8px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.94);
    border: 1.5px solid var(--line);
    font-size: .88rem !important;
    font-weight: 600;
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    gap: 0;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .1s;
  }
  .radio-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .radio-pill:active { transform: scale(.97); }
  .radio-pill.on {
    background: linear-gradient(180deg, rgba(176,134,60,.10), rgba(176,134,60,.20));
    border-color: var(--gold);
    color: var(--gold-deep);
  }

  .booking-form-wrap .btn-submit,
  .booking-form-wrap button[type="submit"] {
    width: 100%;
    min-height: 60px;
    border-radius: 16px;
    font-size: 1.04rem;
  }
}

/* ============================================================
   FOOTER — calmer, more breathing room
   ============================================================ */
@media (max-width: 720px) {
  .ftr { padding-bottom: 30px; }
  .ftr-invite {
    min-height: 56px;
    border-radius: 16px;
    padding: 16px 22px;
    font-size: 1rem;
  }
  .ftr-nav { gap: 18px 22px; }
  .ftr-contact a, .ftr-contact span { font-size: .96rem; }
}

/* ============================================================
   TYPOGRAPHY CONTRAST BUMPS — cream body text 74% -> 88%
   Many places use rgba(246,241,231,.74) for body text on ink bg.
   That's perceptually low on small/glare-prone screens.
   ============================================================ */
@media (max-width: 720px) {
  /* Generic muted-on-ink text (only elements on DARK backgrounds!) */
  .hero-text, .promise-card p,
  .ftr-contact a, .ftr-contact span,
  .abt-sub, .abt-hero-text, .abt-text,
  .mission-in p, .tb-text,
  .ctc-hero-sub, .ctc-sub { color: var(--cream-88); }

  /* svc-detail and what-quote sit on LIGHT bg — keep dark text */
  .svc-detail-text { color: var(--muted); font-weight: 400; }
  .what-quote p { color: var(--ink); }

  /* About page body paragraphs — tighter, more readable */
  .abt-sub { font-size: 1.04rem; line-height: 1.6; }
  .tb-text, .abt-text { font-size: 1rem; line-height: 1.65; }
  /* Slight breathing between large blocks */
  .tb-section, .abt-section { padding-block: clamp(40px, 8vw, 72px); }

  /* Headings on about/contact slightly more restrained */
  .abt-title, .ctc-title { font-size: clamp(1.85rem, 8vw, 2.6rem); line-height: 1.06; }
}

/* ============================================================
   SAFETY — never overflow horizontally, always smooth scroll
   ============================================================ */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
@media (max-width: 720px) {
  .wrap { padding-inline: clamp(18px, 5vw, 28px); }
}
