/* =========================================================
   REMA — Design System
   Fonts: Fraunces (brand/headings) + IBM Plex Sans (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* ── Custom properties ── */
:root {
  --navy:      #0F2A43;
  --navy-2:    #13405E;
  --teal:      #1AA6A0;
  --teal-dark: #15807B;
  --gold:      #E0A93B;
  --bg:        #F5F8FA;
  --surface:   #FFFFFF;
  --ink:       #1B2733;
  --muted:     #5B6B7A;
  --success:   #2E7D5B;
  --border:    #E2E8EF;

  --radius:    12px;
  --radius-sm: 6px;
  --shadow:    0 2px 12px rgba(15,42,67,.08);
  --shadow-md: 0 6px 24px rgba(15,42,67,.13);

  --font-brand: 'Fraunces', Georgia, serif;
  --font-body:  'IBM Plex Sans', system-ui, sans-serif;

  --max-w: 1140px;
  --section-py: 5rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-brand); font-weight: 600; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; color: var(--ink); }
.lead { font-size: 1.125rem; color: var(--muted); line-height: 1.8; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-gold  { color: var(--gold); }

/* ── Top Bar ── */
.top-bar {
  background: var(--navy);
  color: #fff;
  padding: .55rem 0;
  font-size: .85rem;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.top-bar a { color: #CBD8E6; transition: color .2s; }
.top-bar a:hover { color: var(--teal); }
.top-bar .icon-link { display: flex; align-items: center; gap: .4rem; }

/* ── Navbar ── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(15,42,67,.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.5px;
}
.logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); border-bottom-color: var(--teal); }
.nav-links .btn-nav {
  background: var(--teal);
  color: #fff !important;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  border-bottom: none !important;
  transition: background .2s;
}
.nav-links .btn-nav:hover { background: var(--teal-dark); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--navy);
  transition: all .3s;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #1A5B72 100%);
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231AA6A0' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-text h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-text h1 em { color: var(--teal); font-style: normal; }
.hero-text .lead { color: #A8C4D9; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Report Card ── */
.report-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.report-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.report-card-title { font-family: var(--font-brand); font-weight: 600; font-size: 1rem; color: var(--navy); }
.report-badge {
  background: var(--success);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 20px;
  letter-spacing: .3px;
}
.report-badge.pending { background: var(--gold); color: var(--navy); }
.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.report-row:last-child { border-bottom: none; }
.report-label { color: var(--muted); }
.report-value { font-weight: 600; color: var(--navy); }
.report-value.highlight { color: var(--teal); font-size: 1.1rem; }
.report-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.report-footer .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,166,160,.35); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.45);
}
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-outline-navy:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }

/* ── Trust Band ── */
.trust-band {
  background: var(--teal);
  padding: 1.25rem 0;
}
.trust-band .container {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
}
.trust-item svg { flex-shrink: 0; opacity: .9; }

/* ── Sections ── */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg); }
.section-white { background: var(--surface); }
.section-navy { background: var(--navy); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}
.section-header p { color: var(--muted); max-width: 560px; margin: .75rem auto 0; }

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 52px; height: 52px;
  background: rgba(26,166,160,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { color: var(--teal); }
.service-card h3 { margin-bottom: .6rem; }
.service-card p { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.service-card a { font-size: .9rem; font-weight: 600; color: var(--teal); }
.service-card a:hover { color: var(--teal-dark); }
/* butoanele din carduri își păstrează textul alb (.service-card a ar suprascrie culoarea) */
.service-card a.btn-primary, .service-card a.btn-primary:hover,
.service-card a.btn-whatsapp, .service-card a.btn-whatsapp:hover { color: #fff; }

/* ── Why Us ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.check-list { display: flex; flex-direction: column; gap: 1rem; }
.check-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.check-icon {
  width: 24px; height: 24px;
  background: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .2rem;
}
.check-icon svg { color: #fff; }
.check-item h4 { margin-bottom: .2rem; font-size: 1rem; }
.check-item p  { font-size: .88rem; color: var(--muted); margin: 0; }

/* ── Medic section ── */
.medic-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.medic-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;            /* clip the photo to the circle */
}
.medic-avatar svg { color: rgba(255,255,255,.8); }
/* Headshot slot: drop a real photo at assets/medic.jpg and switch the src.
   Until then a brand placeholder (assets/medic.svg) keeps the layout intentional. */
.medic-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.medic-info h3 { margin-bottom: .3rem; }
.medic-title { color: var(--teal); font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.credential-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.badge {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 20px;
}

/* ── Legislation section ── */
.leg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.leg-card {
  background: rgba(26,166,160,.07);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
}
.leg-card h4 { font-size: .95rem; margin-bottom: .4rem; color: var(--navy); }
.leg-card p  { font-size: .85rem; color: var(--muted); margin: 0; }

/* ── City pages ── */
.city-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 4rem 0;
  text-align: center;
}
.city-hero h1 { color: #fff; }
.city-hero p  { color: #A8C4D9; margin-top: .75rem; font-size: 1.1rem; }

/* ── FAQ / Content blocks ── */
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { margin-bottom: 1.25rem; }
.content-block h3 { margin: 2rem 0 .75rem; }
.content-block ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.content-block ul li { margin-bottom: .4rem; color: var(--ink); font-size: .95rem; }

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-block { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 42px; height: 42px;
  background: rgba(26,166,160,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { color: var(--teal); }
.contact-info-item h4 { margin-bottom: .15rem; font-size: .95rem; }
.contact-info-item p  { margin: 0; font-size: .9rem; color: var(--muted); }
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .75rem; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: #A8C4D9;
  padding: 3.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: #fff; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: #7A9DB8; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-brand);
  font-size: .95rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .88rem; color: #7A9DB8; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 1.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #5A7A96;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
}
.breadcrumb ol {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .83rem;
}
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: '›'; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb li:last-child { color: var(--ink); font-weight: 500; }

/* ── Map placeholder ── */
.map-placeholder {
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
.map-placeholder svg { color: var(--teal); opacity: .6; }

/* ── Highlight box ── */
.highlight-box {
  background: rgba(26,166,160,.08);
  border: 1.5px solid rgba(26,166,160,.25);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.highlight-box h3 { color: var(--teal); margin-bottom: .75rem; }

/* ── About page ── */
.about-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 4.5rem 0;
}
.about-hero h1 { color: #fff; }
.about-hero p  { color: #A8C4D9; margin-top: .75rem; max-width: 600px; }
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.cred-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}
.cred-card .icon-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(26,166,160,.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.cred-card h4 { font-size: 1rem; margin-bottom: .3rem; }
.cred-card p  { font-size: .85rem; color: var(--muted); margin: 0; }

/* ── Service page hero ── */
.service-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 4rem 0;
}
.service-hero h1 { color: #fff; max-width: 700px; }
.service-hero p  { color: #A8C4D9; margin-top: .75rem; max-width: 600px; font-size: 1.05rem; }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step h4 { margin-bottom: .2rem; }
.step p  { margin: 0; font-size: .9rem; color: var(--muted); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.85); max-width: 540px; margin: 0 auto 2rem; }
.cta-banner .btn-cta-white {
  background: #fff;
  color: var(--teal);
  font-weight: 700;
}
.cta-banner .btn-cta-white:hover { background: var(--bg); color: var(--teal-dark); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .container   { grid-template-columns: 1fr; }
  .hero-visual       { display: none; }
  .why-grid          { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .contact-grid      { grid-template-columns: 1fr; }
  .medic-card        { flex-direction: column; }
}
@media (max-width: 640px) {
  :root { --section-py: 3rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--surface);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .navbar .container { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-band .container { gap: 1.25rem; }
  .hero { padding: 3rem 0; }
  .hero-ctas { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}
