/* Consultații la domiciliu — page-specific styles.
   Ported 1:1 from mockup-consultatii-la-domiciliu.html.
   Does NOT redefine shared chrome (topbar, header, nav, footer, status-bar,
   mobile-callbar, fab, tokens, fonts). Loaded only on this page via $pageCssFile. */

/* ===== PAGE HERO (dark navy — overrides the light subpage hero from main.css) ===== */
.page-hero {
  background: radial-gradient(ellipse 80% 90% at 60% 40%, rgba(27,60,92,.95) 0%, var(--navy) 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 90% 50%, rgba(179,36,47,.18) 0%, transparent 70%);
}
.page-hero .container { max-width: 1160px; }
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 52px;
  align-items: center;
  position: relative;
}
.page-hero-inner > * { min-width: 0; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.5); transition: color .2s; }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.25); }
.page-hero .breadcrumb .current { color: rgba(255,255,255,.85); font-weight: 600; }
.page-hero .eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #f87171;
  display: block;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 16.5px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 30px;
}
.page-hero .hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
}
.page-hero .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(179,36,47,.35);
  transition: background .2s, transform .15s;
}
.page-hero .btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  transition: all .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.6); color: #fff; }

.hero-photo {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.12);
}
.hero-photo picture,
.hero-photo img {
  display: block;
  width: 100%;
}
.hero-photo img {
  height: auto;
  object-fit: contain;
}

/* ===== TRUST BAR (ti-val / ti-label layout) ===== */
.trust-bar { background: var(--white); border-top: none; border-bottom: 1px solid var(--border); padding: 0; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-bar .trust-item {
  padding: 22px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.trust-bar .trust-item:last-child { border-right: none; }
.trust-item .ti-val {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.trust-item .ti-label {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.35;
  font-weight: 500;
}

/* ===== SECTION CHROME ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-white { background: var(--white); }
.sec-header { margin-bottom: 44px; }
.sec-header .eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.sec-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.sec-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.65;
}
.sec-header.center { text-align: center; }
.sec-header.center p { margin: 0 auto; }

/* ===== SERVICE CARDS ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 20px; }
.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  transition: box-shadow .2s, transform .2s;
}
.section-alt .svc-card { background: var(--bg); }
.svc-card:hover { box-shadow: 0 8px 28px rgba(15,42,67,.1); transform: translateY(-2px); }
.svc-card .sc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(179,36,47,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 14px;
}
.svc-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 9px;
  line-height: 1.25;
}
.svc-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.svc-card .card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.svc-card .card-link:hover { gap: 7px; }

/* ===== MID BAND (navy CTA — no photo) ===== */
.photo-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a2530 100%);
  padding: 56px 0;
}
.photo-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 100% 50%, rgba(179,36,47,.22) 0%, transparent 70%);
  pointer-events: none;
}
.photo-band .container { position: relative; }
.photo-band-content { color: #fff; max-width: 520px; padding: 0; }
.photo-band-content .eyebrow {
  color: #f87171;
  margin-bottom: 10px;
  font-size: 11.5px;
  letter-spacing: .13em;
}
.photo-band-content h2 {
  font-family: 'Fraunces', serif;
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 12px;
}
.photo-band-content p {
  color: rgba(255,255,255,.75);
  font-size: 15.5px;
  margin-bottom: 22px;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  transition: all .2s;
}
.btn-white:hover { background: var(--bg); transform: translateY(-1px); }

/* ===== SEGMENT CARDS ===== */
.seg-cards { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 520px; }
.seg-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.seg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}
.seg-card .sc-icon { font-size: 30px; margin-bottom: 12px; display: block; }
.seg-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 9px;
}
.seg-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.seg-card .card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== WHY SPLIT ===== */
.why-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.why-split > * { min-width: 0; }
.why-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  color: var(--navy);
  margin: 10px 0 0;
}
.why-split .why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.why-item h4 {
  font-family: 'Fraunces', serif;
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 4px;
}
.why-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.why-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  border: none;
}
.why-photo picture,
.why-photo img {
  display: block;
  width: 100%;
}
.why-photo img {
  height: auto;
  object-fit: contain;
  /* Soft blur only on the rim; interior stays fully visible */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
.why-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 36px 18px var(--white);
}

/* ===== HOW IT WORKS ===== */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.how-steps::after {
  content: '';
  position: absolute;
  top: 34px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.how-steps .step {
  text-align: center;
  padding: 0 28px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.how-steps .step-num {
  width: 68px;
  height: 68px;
  background: var(--navy);
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  opacity: 1;
  top: auto;
  right: auto;
  line-height: 1;
  box-shadow: 0 0 0 6px var(--bg-alt);
}
.how-steps .step h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 9px;
  position: static;
}
.how-steps .step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  position: static;
}

/* ===== WHO NEEDS ===== */
.needs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.needs-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  border-left: 3px solid var(--red);
}
.needs-item h4 {
  font-family: 'Fraunces', serif;
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 6px;
}
.needs-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ===== FAQ ===== */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  gap: 14px;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
}
.faq-q .arr {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all .2s;
}
.faq-item.open .faq-q .arr {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: rotate(180deg);
}
.faq-a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: 18px;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ===== ZONES ===== */
.zones-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.zones-wrap h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.zones-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.zones-table th {
  background: var(--navy);
  color: rgba(255,255,255,.9);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
}
.zones-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.zones-table tr:last-child td { border-bottom: none; }
.zones-table tr:hover td { background: rgba(15,42,67,.03); }
.zones-table td a {
  color: var(--red);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.zones-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== CTA BAND (split layout) ===== */
.cta-band-consultatii {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a2530 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.cta-band-consultatii::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 100% 50%, rgba(179,36,47,.22) 0%, transparent 70%);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
}
.cta-text h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 10px;
  max-width: none;
}
.cta-text p {
  color: rgba(255,255,255,.72);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 26px;
}
.cta-band-consultatii .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(179,36,47,.4);
  transition: background .2s;
}
.btn-red:hover { background: var(--red-dark); }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1FAA59;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background .2s;
}
.btn-wa:hover { background: #189948; }
.cta-band-consultatii .cta-phone {
  text-align: center;
  display: block;
  font-size: inherit;
  letter-spacing: normal;
  gap: 0;
  color: inherit;
}
.cta-band-consultatii .cta-phone small {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.cta-band-consultatii .cta-phone strong {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */

/* Large tablet / small desktop: tighten hero + start collapsing dense grids */
@media (max-width: 1100px) {
  .page-hero-inner {
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: 36px;
  }
  .why-split {
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: 36px;
  }
  .cards-3,
  .seg-cards,
  .needs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-steps .step { padding: 0 16px; }
  .cta-band-consultatii .cta-phone strong { font-size: clamp(1.6rem, 4vw, 2.2rem); }
}

/* Tablet */
@media (max-width: 980px) {
  .page-hero { padding: 40px 0 36px; }
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-photo {
    display: block;
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }
  .page-hero h1 { font-size: clamp(1.65rem, 4.5vw, 2.2rem); }
  .page-hero p { font-size: 15.5px; margin-bottom: 22px; }

  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-bar .trust-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .trust-bar .trust-item:nth-child(2n) { border-right: none; }
  .trust-bar .trust-item:nth-last-child(-n+2) { border-bottom: none; }

  .section { padding: 56px 0; }
  .sec-header { margin-bottom: 32px; }

  .why-split { grid-template-columns: 1fr; gap: 28px; }
  .why-photo {
    display: block;
    max-width: 560px;
    margin: 0 auto;
    order: 1;
  }
  .why-split > div:first-child { order: 0; }

  .zones-wrap { grid-template-columns: 1fr; gap: 28px; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .cta-text p { margin: 0 auto 24px; }
  .cta-band-consultatii .cta-actions { justify-content: center; }
  .cta-band-consultatii { padding: 56px 0; }

  .photo-band { padding: 44px 0; }
  .photo-band-content { max-width: none; }
}

/* Mobile landscape / large phone */
@media (max-width: 760px) {
  .page-hero { padding: 32px 0 28px; }
  .section { padding: 48px 0; }
  .sec-header { margin-bottom: 28px; }

  .cards-3,
  .cards-2,
  .seg-cards,
  .needs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cards-2 { margin-top: 16px; }

  .svc-card,
  .seg-card { padding: 22px; }

  .why-split .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-item { padding: 16px; }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .how-steps::after { display: none; }
  .how-steps .step { padding: 0; text-align: left; }
  .how-steps .step-num {
    margin: 0 0 14px;
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    box-shadow: 0 0 0 5px var(--bg-alt);
  }

  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item .ti-val { font-size: 1.55rem; }
  .trust-item .ti-label { font-size: 12px; }
  .trust-bar .trust-item { padding: 18px 14px; }

  .faq-q { font-size: 15px; padding: 16px 0; gap: 10px; }
  .faq-a { font-size: 14.5px; }

  .zones-table { font-size: 13px; display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .zones-table thead,
  .zones-table tbody,
  .zones-table tr { display: table; width: 100%; table-layout: fixed; }
  .zones-table th,
  .zones-table td { padding: 10px 12px; word-break: break-word; }
  .zones-table td:first-child { width: 38%; }
  .zones-table td a {
    font-size: 12.5px;
    line-height: 1.35;
    white-space: normal;
  }

  .cta-band-consultatii { padding: 48px 0; }
  .cta-band-consultatii .cta-phone strong {
    font-size: clamp(1.5rem, 8vw, 2rem);
    white-space: normal;
  }
  .btn-red,
  .btn-wa,
  .btn-white { justify-content: center; }

  .photo-band { padding: 40px 0; }
}

/* Small phones */
@media (max-width: 480px) {
  .page-hero .btn-primary,
  .btn-ghost,
  .btn-red,
  .btn-wa,
  .btn-white {
    width: 100%;
    justify-content: center;
  }
  .page-hero .hero-ctas,
  .cta-band-consultatii .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .page-hero h1 { font-size: clamp(1.45rem, 7vw, 1.85rem); }
  .page-hero p { font-size: 15px; }
  .page-hero .eyebrow { font-size: 10.5px; letter-spacing: .1em; }

  .trust-inner { grid-template-columns: 1fr; }
  .trust-bar .trust-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 16px 12px;
  }
  .trust-bar .trust-item:last-child { border-bottom: none; }

  .section { padding: 40px 0; }
  .sec-header h2,
  .why-title { font-size: clamp(1.3rem, 6vw, 1.6rem); }
  .sec-header p { font-size: 14.5px; }

  .svc-card h3,
  .seg-card h3 { font-size: 1.02rem; }

  .needs-item { padding: 16px; }
  .needs-item h4 { font-size: 14px; }

  .cta-text h2 { font-size: clamp(1.3rem, 6vw, 1.65rem); }
  .cta-text p { font-size: 14.5px; margin-bottom: 20px; }

  .zones-table td:first-child { width: 32%; }
  .zones-table td a { font-size: 12px; }
}

/* Extra-small */
@media (max-width: 360px) {
  .page-hero .btn-primary,
  .btn-ghost { font-size: 14px; padding: 12px 18px; }
  .trust-item .ti-val { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .btn-primary,
  .btn-ghost,
  .btn-white,
  .btn-red,
  .btn-wa,
  .faq-q .arr {
    transition: none;
  }
  .svc-card:hover { transform: none; }
}
