/* =========================================================================
   CMS Bacău — Colegiul Medicilor Stomatologi, Filiala Bacău
   Modern theme — design system
   (plain CSS, ports directly into the WordPress theme)
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --ink:        #0b1b2b;
  --brand-900:  #06284a;
  --brand-800:  #073462;
  --brand-700:  #0a4d8c;   /* primary */
  --brand-500:  #2b7fd0;
  --brand-300:  #9ec7ec;
  --accent:     #84cc16;   /* lime */
  --accent-2:   #38bdf8;   /* sky   */

  --bg:         #eef4fb;
  --bg-2:       #f6fafe;
  --surface:    #ffffff;
  --surface-2:  #f3f7fc;
  --line:       #e2ebf4;
  --muted:      #5c6f82;
  --text:       #203141;

  --grad:       linear-gradient(135deg, #0a4d8c 0%, #84cc16 100%);
  --grad-soft:  linear-gradient(135deg, rgba(10,77,140,.10), rgba(132,204,22,.10));
  --grad-deep:  linear-gradient(140deg, #06284a 0%, #0a4d8c 55%, #0e6a8f 100%);

  /* type */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  /* shape */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 10px rgba(10,40,74,.06);
  --shadow:    0 14px 40px -18px rgba(10,40,74,.28);
  --shadow-lg: 0 40px 80px -30px rgba(6,40,74,.45);

  --ease: cubic-bezier(.16,1,.3,1);
  --container: 1200px;
  --header-h: 116px;   /* topbar + navbar */

  /* glassmorphism */
  --glass:        rgba(255,255,255,.55);
  --glass-strong: rgba(255,255,255,.72);
  --glass-dark:   rgba(10,32,60,.42);
  --glass-border: rgba(255,255,255,.55);
  --glass-blur:   saturate(150%) blur(18px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='210' viewBox='0 0 210 210'%3E%3Cpath transform='translate(72 56) scale(0.13)' fill='%230a4d8c' fill-opacity='0.04' d='M186.1 52.1C169.3 39.1 148.7 32 127.5 32 74.4 32 32 74.6 32 127.4c0 18.9 1.5 36.6 5.3 50.3C45.9 207.5 80.5 338 112 435.5c4.1 12.6 15.8 20.5 29 20.5 13.3 0 25-8 29.1-20.6l24.4-73.2c3.5-10.4 13.2-17.4 24.2-17.4l12.7 0c11 0 20.7 7 24.2 17.4l24.4 73.2c4.1 12.6 15.8 20.6 29.1 20.6 13.2 0 24.9-7.9 29-20.5C399.5 338 434.1 207.5 442.7 177.7c3.8-13.7 5.3-31.4 5.3-50.3C448 74.6 405.6 32 352.5 32c-21.2 0-41.8 7.1-58.6 20.1l-7.5 5.8c-17.8 13.8-42.8 13.8-60.6 0z'/%3E%3C/svg%3E");
  background-size: 210px;
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.display { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.7rem); line-height: 1; letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p  { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #3b4d5e; max-width: 62ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700);
  background: var(--grad-soft); padding: .5rem .9rem; border-radius: 100px;
  border: 1px solid rgba(10,77,140,.12);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--brand-700);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 100px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  background: var(--_bg); color: #fff; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: 0 12px 26px -12px rgba(10,77,140,.6); will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -14px rgba(10,77,140,.7); }
.btn:hover svg { transform: translateX(4px); }
.btn--grad { background: var(--brand-700); }
/* primary buttons: blue, lime-green on hover */
.btn--grad:hover, .searchbar button:hover, .cc-submit:hover { background: var(--accent); color: var(--ink); box-shadow: 0 18px 34px -14px rgba(132,204,22,.6); }
.btn--grad:hover svg, .searchbar button:hover svg, .cc-submit:hover svg { stroke: var(--ink); }
/* "Toate anunțurile": lime background but WHITE text on hover */
.btn--allann:hover { color: #fff; }
.btn--allann:hover svg { stroke: #fff; }
/* ghost buttons: blue outline + blue text, lime outline + lime text on hover */
.btn--ghost { background: transparent; color: var(--brand-700); box-shadow: inset 0 0 0 2px var(--brand-700); }
.btn--ghost:hover { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--ghost:hover svg { stroke: var(--accent); }
/* ghost on the dark hero: white, lime on hover */
.btn--ghost-light { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn--ghost-light:hover { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--light { background: #fff; color: var(--brand-700); }
/* white button: text (and arrow) turn lime on hover */
.btn--light:hover { background: #fff; color: var(--accent); }
.btn--light:hover svg { stroke: var(--accent); }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }

/* ---------- Header (topbar + navbar) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; display: block; }

/* top utility band */
.topbar { height: 44px; overflow: hidden; background: rgba(9,54,100,.55); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255,255,255,.14); color: #e9f2fb;
  transition: background .4s var(--ease); }
.topbar-inner { display: flex; align-items: center; justify-content: center; height: 100%; gap: 1.6rem; font-size: .83rem; }
.topbar-left { display: flex; align-items: center; gap: 1.6rem; min-width: 0; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; color: inherit; opacity: .92; white-space: nowrap; transition: opacity .3s, color .3s; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.topbar-right a { font-weight: 600; }

/* nav bar */
.navbar { height: 72px; display: flex; align-items: center; transition: height .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s; }
.site-header.scrolled .topbar { background: rgba(8,46,86,.9); }
.site-header.scrolled .navbar { height: 66px; background: #ffffff;
  box-shadow: 0 1px 0 rgba(10,40,74,.08), 0 10px 30px -18px rgba(10,40,74,.35); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .8rem; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.brand-badge { width: 70px; height: 70px; flex: none; display: grid; place-items: center; }
.brand-badge img { width: 100%; height: 100%; object-fit: contain; grid-area: 1/1; }
.brand-badge .crest-light { display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.brand-badge .crest-dark { display: none; }
.site-header.scrolled .brand-badge .crest-light { display: none; }
.site-header.scrolled .brand-badge .crest-dark { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text b { font-size: 1.05rem; letter-spacing: -.01em; }
.brand-text span { font-size: .72rem; color: var(--muted); font-weight: 500; font-family: var(--font-body); letter-spacing: .02em; }
@media (max-width: 680px) { .topbar-left a:not(:first-child) { display: none; } }
@media (max-width: 620px) { .topbar-left { display: none; } .topbar-inner { justify-content: center; } .topbar-right a { font-size: .9rem; } }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav > li { position: relative; }
.nav a, .nav .navlink {
  display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .85rem; border-radius: 100px;
  font-weight: 500; font-size: .95rem; color: var(--text); transition: color .3s, background .3s;
}
.nav > li > a::after, .nav > li > .navlink::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav > li:hover > a, .nav > li:hover > .navlink { color: var(--brand-700); }
.nav > li:hover > a::after, .nav > li:hover > .navlink::after { transform: scaleX(1); }
.nav .chev { width: 1em; height: 1em; transition: transform .3s; }
.nav li:hover .chev { transform: rotate(180deg); }

/* legible over dark hero when header is transparent (top, not scrolled) */
.site-header:not(.scrolled) .brand-text b { color: #fff; }
.site-header:not(.scrolled) .brand-text span { color: rgba(255,255,255,.78); }
.site-header:not(.scrolled) .nav > li > a,
.site-header:not(.scrolled) .nav > li > .navlink { color: rgba(255,255,255,.94); text-shadow: 0 1px 10px rgba(6,24,45,.35); }
/* submenu is always a white card -> keep dark text */
.submenu a { color: var(--text) !important; text-shadow: none !important; }
.site-header:not(.scrolled) .nav > li:hover > a,
.site-header:not(.scrolled) .nav > li:hover > .navlink { color: #fff; }
.site-header:not(.scrolled) .burger { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.site-header:not(.scrolled) .burger span { background: #fff; }

.submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
/* invisible bridge over the gap under the menu item, so the pointer never leaves :hover on its way down */
.submenu::before { content: ""; position: absolute; left: -1px; right: -1px; top: -12px; height: 12px; }
.nav li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .7rem .9rem; border-radius: var(--r-sm); font-size: .92rem; }
.submenu a:hover { background: var(--accent); color: #fff !important; }

.header-cta { display: flex; align-items: center; gap: .7rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.burger span:nth-child(1){ top: 16px; } .burger span:nth-child(2){ top: 22px; } .burger span:nth-child(3){ top: 28px; }
body.menu-open .burger span:nth-child(1){ top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ top: 22px; transform: rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
  padding: calc(var(--header-h) + 1rem) clamp(1.1rem,6vw,2.5rem) 2rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .5s var(--ease), visibility .5s; visibility: hidden;
}
body.menu-open .mobile-nav { transform: translateX(0); visibility: visible; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary, .mobile-nav > a { display: flex; justify-content: space-between; align-items: center; padding: 1rem .2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .sub a { display: block; padding: .6rem .2rem .6rem 1rem; color: var(--muted); font-size: 1rem; }
.mobile-nav summary .chev { width: 1.1rem; height: 1.1rem; flex: none; color: var(--brand-700); }
.mobile-nav details[open] summary .chev { transform: rotate(180deg); }
/* when the drawer is open, keep the header brand legible over the white panel */
body.menu-open .site-header:not(.scrolled) .brand-text b { color: var(--ink); text-shadow: none; }
body.menu-open .site-header:not(.scrolled) .brand-text span { color: var(--muted); }
body.menu-open .brand-badge .crest-light { display: none; }
body.menu-open .brand-badge .crest-dark { display: block; }
body.menu-open .site-header:not(.scrolled) .burger span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #eaf3fb; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slide.active img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(104deg, rgba(3,16,34,.96) 0%, rgba(6,34,66,.84) 38%, rgba(6,40,74,.4) 72%, rgba(12,74,124,.22) 100%),
  radial-gradient(130% 120% at 72% 18%, transparent 38%, rgba(2,10,24,.6) 100%); }
.hero-glow { position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(132,204,22,.55), transparent 65%); filter: blur(34px); right: -140px; top: -140px;
  animation: floaty 9s ease-in-out infinite; }
.hero-glow.two { left: -180px; bottom: -220px; top: auto; right: auto; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(56,189,248,.4), transparent 65%); animation-delay: -4s; }
@keyframes floaty { 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(-26px,24px) } }
.hero-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }

.hero-inner { padding-top: var(--header-h); max-width: 820px; }
.hero h1 { color: #fff; margin: 1.2rem 0; }
.hero .lead { color: #d6e6f3; }
.hero-badge { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: .5rem 1rem; border-radius: 100px; font-size: .85rem; font-weight: 500; backdrop-filter: blur(6px); color:#eaf3fb; }
.hero-badge b { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); transition: .3s; }
.hero-dots button.active { background: #fff; width: 30px; border-radius: 100px; }
.scroll-cue { position: absolute; bottom: 1.8rem; right: clamp(1.1rem,4vw,2.5rem); display: flex; align-items: center; gap: .6rem;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #cfe2f1; z-index: 2; }
.scroll-cue i { width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.5); border-radius: 100px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; background: #fff; border-radius: 4px; transform: translateX(-50%); animation: cue 1.6s infinite; }
@keyframes cue { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 100%{opacity:0;transform:translate(-50%,14px)} }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: #fff; padding: 2rem 1.5rem; text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(1.9rem,3.4vw,2.8rem); color: var(--brand-700); display: block; line-height: 1; }
.stat span { font-size: .9rem; color: var(--muted); margin-top: .5rem; display: block; }

/* ---------- Glass info band (home) ---------- */
.infoband { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; }
.glass { background: var(--glass-strong); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.infoband-contact { padding: 1.6rem 1.8rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; align-content: center; }
.ib-item { display: flex; gap: .8rem; align-items: center; }
.ib-item .ii { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -10px rgba(10,77,140,.6); }
.ib-item .ii svg { width: 20px; height: 20px; }
.ib-item span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: block; }
.ib-item b, .ib-item a { font-family: var(--font-display); font-size: .92rem; color: var(--ink); line-height: 1.25; display: block; }
.ib-item a:hover { color: var(--brand-700); }

.infoband-iban { padding: 1.5rem 1.6rem; display: grid; gap: .8rem; align-content: center; background:
  linear-gradient(135deg, rgba(6,40,74,.96), rgba(10,77,140,.92)); color: #fff; }
.infoband-iban h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; }
.infoband-iban h4 svg { width: 18px; color: var(--accent); }
.iban-card { display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r); padding: .8rem 1rem; transition: .3s var(--ease); }
.iban-card:hover { background: rgba(255,255,255,.16); }
.iban-card div span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.iban-card div b { display: block; font-family: var(--font-display); font-size: .92rem; color: #fff; word-break: break-all; }
.iban-copy { flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; transition: .3s; }
.iban-copy:hover { background: var(--accent); }
@media (max-width: 880px) { .infoband { grid-template-columns: 1fr; } .infoband-contact { grid-template-columns: 1fr; } }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem; position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  will-change: transform;
}
.card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .5s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card .icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-700); color: #fff; margin-bottom: 1.2rem; box-shadow: 0 12px 24px -12px rgba(10,77,140,.6); transition: background .35s var(--ease); }
.card:hover .icon { background: var(--brand-800); }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .97rem; }
.card .more { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.2rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--brand-700); transition: color .3s var(--ease); }
.card .more svg { width: 1em; transition: transform .3s var(--ease), stroke .3s; }
.card:hover .more { color: var(--accent); }
.card:hover .more svg { transform: translateX(5px); stroke: var(--accent); }

/* quick-access (home 3 cards with image) */
.qa { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end;
  color: #fff; box-shadow: var(--shadow); isolation: isolate; }
.qa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.qa::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6,40,74,.92), rgba(6,40,74,.12) 70%); }
.qa:hover img { transform: scale(1.08); }
.qa-body { padding: 1.8rem; }
.qa-body h3 { color: #fff; }
.qa-body p { color: #d6e6f3; font-size: .95rem; margin: .5rem 0 1rem; }

/* ---------- Announcements ---------- */
.ann { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }
.ann:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ann-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.ann-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ann:hover .ann-img img { transform: scale(1.07); }
.ann-date { position: absolute; top: .9rem; left: .9rem; background: rgba(255,255,255,.95); color: var(--brand-700);
  border-radius: 12px; padding: .4rem .7rem; text-align: center; font-family: var(--font-display); font-weight: 700; line-height: 1; box-shadow: var(--shadow-sm); }
.ann-date b { font-size: 1.2rem; display: block; } .ann-date span { font-size: .68rem; text-transform: uppercase; color: var(--muted); }
.ann-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.ann-tag { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.ann-body h3 { font-size: 1.12rem; line-height: 1.25; color: var(--accent); transition: color .3s var(--ease); }
.ann-body p { font-size: .92rem; margin: .6rem 0 1rem; }
.ann-body .more { margin-top: auto; display: inline-flex; gap: .4rem; align-items: center; font-family: var(--font-display); font-weight: 600; color: var(--brand-700); font-size: .9rem; }
.ann-body .more svg { width: 1em; transition: transform .3s var(--ease), stroke .3s; }
.ann:hover .ann-body .more { color: var(--accent); }
.ann:hover .ann-body .more svg { transform: translateX(5px); stroke: var(--accent); }

/* search bar */
.searchbar { display: flex; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: .4rem .4rem .4rem 1.2rem; max-width: 460px; box-shadow: var(--shadow-sm); }
.searchbar input { flex: 1; border: 0; background: none; font: inherit; color: var(--text); }
.searchbar input:focus { outline: none; }
.searchbar button { flex: none; background: var(--brand-700); color: #fff; border-radius: 100px; padding: .6rem 1.2rem; font-weight: 600; font-family: var(--font-display); transition: background .3s var(--ease), color .3s; display: inline-flex; align-items: center; justify-content: center; }
.searchbar button svg { width: 18px; height: 18px; max-width: none; flex: none; }

/* ---------- Content (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 4rem) 0 3.5rem; color: #eaf3fb; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--grad-deep); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(600px 300px at 85% -10%, rgba(132,204,22,.5), transparent 60%),
              radial-gradient(500px 300px at 0% 120%, rgba(56,189,248,.35), transparent 60%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem,4.5vw,3.4rem); }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #bcd5ea; margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

.prose { max-width: 820px; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.2rem; }
.prose p { color: #40525f; font-size: 1.05rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul.ticks { display: grid; gap: .7rem; }
.prose ul.ticks li { position: relative; padding-left: 2rem; color: #40525f; }
.prose ul.ticks li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--grad-soft) ; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314c3b4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .8rem; box-shadow: inset 0 0 0 1px rgba(132,204,22,.3); }
.note { background: #fff8e7; border: 1px solid #f3e2b3; border-left: 4px solid #e9b949; border-radius: var(--r); padding: 1.2rem 1.4rem; }
.note b { color: #8a6a12; }
.note p { color: #6b5a2a; font-size: .95rem; }

/* document list */
.doclist { display: grid; gap: .8rem; }
.doc { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; transition: .4s var(--ease); }
.doc:hover { border-color: var(--brand-300); box-shadow: var(--shadow); transform: translateX(4px); }
.doc .di { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--grad-soft); color: var(--brand-700); display: grid; place-items: center; }
.doc b { font-family: var(--font-display); font-size: .98rem; color: var(--ink); }
.doc span { font-size: .82rem; color: var(--muted); }
.doc .dl { margin-left: auto; color: var(--brand-700); }

/* pricing table */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table tr { transition: background .3s; }
.price-table tbody tr:hover { background: var(--surface-2); }
.price-table td { padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:first-child { color: var(--text); }
.price-table td:last-child { text-align: right; white-space: nowrap; font-family: var(--font-display); font-weight: 700; color: var(--brand-700); font-size: 1.05rem; }

/* team cards */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.5rem; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-align: center; transition: .5s var(--ease); }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member-photo { aspect-ratio: 1; background: var(--grad-soft); position: relative; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-body { padding: 1.3rem; }
.member-role { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.member-body b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin-top: .3rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.info-list { display: grid; gap: 1rem; }
.info { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; transition: .4s var(--ease); }
.info:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.info .ii { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.info b { font-family: var(--font-display); color: var(--ink); font-size: .95rem; }
.info p, .info a { color: var(--muted); font-size: .95rem; }
.info a:hover { color: var(--brand-700); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem,3vw,2.4rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .45rem; font-family: var(--font-display); }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; background: var(--surface-2); transition: .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 4px rgba(43,127,208,.12); }

.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); height: 100%; min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-deep); color: #cfe0ee; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; right: -150px; top: -200px; background: radial-gradient(circle, rgba(132,204,22,.3), transparent 65%); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; column-gap: 3.4rem; row-gap: 2.5rem; padding-block: clamp(3.5rem,6vw,5rem); position: relative; }
.footer-col .prog { max-width: 230px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 14px; background: #fff; padding: 4px; margin-bottom: 1rem; }
.footer-brand p { color: #a9c5dc; font-size: .95rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer-col a, .footer-col li { color: #a9c5dc; font-size: .93rem; padding: .3rem 0; display: block; transition: color .3s, transform .3s; }
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.iban { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: .9rem 1rem; margin-bottom: .7rem; }
.iban span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.iban b { display: block; font-size: .86rem; color: #fff; word-break: break-all; margin-top: .2rem; font-family: var(--font-display); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8fb0c9; position: relative; }
.footer-bottom a { color: #cfe0ee; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .4s var(--ease); }
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.socials a svg { width: 18px; height: 18px; }

/* ---------- Floating widgets ---------- */
.fab { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .4s var(--ease); }
.fab:hover { transform: scale(1.1); }
.to-top { position: fixed; right: 1.4rem; bottom: 5.4rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--brand-700); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .4s var(--ease); }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
/* lime-green pulsing glow RING on the edge of the back-to-top button */
.to-top { color: var(--brand-700); background: #fff; }
.to-top::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: -1;
  border: 3px solid rgba(163,230,53,.9); box-shadow: 0 0 16px 2px rgba(163,230,53,.75), inset 0 0 0 1px rgba(163,230,53,.4);
  background: none; opacity: 0; }
.to-top.show::after { animation: toTopRing 1.7s ease-in-out infinite; }
@keyframes toTopRing { 0%,100% { transform: scale(1); opacity: .55; box-shadow: 0 0 10px 1px rgba(163,230,53,.6); } 50% { transform: scale(1.22); opacity: 1; box-shadow: 0 0 22px 5px rgba(163,230,53,.9); } }
@media (prefers-reduced-motion: reduce) { .to-top.show::after { animation: none; opacity: .7; } }

/* ---------- IBAN block (hero card + footer) ---------- */
.iban-title { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.iban-title svg { width: 18px; color: var(--accent); }
.iban-row { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r); padding: .7rem .8rem; transition: .3s var(--ease); }
.iban-row + .iban-row { margin-top: .7rem; }
.iban-row:hover { background: rgba(255,255,255,.14); }
.iban-bank { width: 40px; height: 40px; flex: none; object-fit: contain; background: #fff; border-radius: 9px; padding: 4px; }
.iban-row > div { flex: 1; min-width: 0; }
.iban-row span { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); display: block; }
.iban-row b { display: block; font-family: var(--font-display); font-size: .82rem; color: #fff; white-space: nowrap; letter-spacing: -.01em; }
.iban-copy { flex: none; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; transition: .3s; }
.iban-copy:hover { background: var(--accent); }

/* hero IBAN card — dark glass, bottom-right */
.hero-iban { position: absolute; right: clamp(5rem,7vw,6.5rem); bottom: 2.2rem; z-index: 3; width: min(460px, 46vw);
  padding: 1.25rem 1.4rem; border-radius: var(--r-lg); color: #eef6ff;
  background: rgba(8,26,50,.38); backdrop-filter: var(--glass-blur); border: none;
  box-shadow: 0 30px 70px -22px rgba(0,0,0,.6); }

/* ---------- Contact band ---------- */
.contact-band { padding-block: clamp(4.5rem,9vw,8rem); background: var(--grad-deep); color: #eaf3fb; position: relative; overflow: hidden; }
.ctiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ctile { display: flex; align-items: center; gap: .85rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r); padding: 1.1rem 1.1rem; color: #eaf3fb; backdrop-filter: blur(6px); transition: .4s var(--ease); }
.ctile:hover { background: rgba(255,255,255,.13); transform: translateY(-3px); }
.ctile .ii { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.ctile .ii svg { width: 20px; height: 20px; }
.ctile span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); display: block; }
.ctile b { font-family: var(--font-display); font-size: .92rem; color: #fff; line-height: 1.25; }
.ctile small { color: #bcd5ea; font-size: .78rem; }

/* ---------- Footer extras ---------- */
.footer-brand img.footer-logo { width: auto; height: 96px; border-radius: 0; background: none; padding: 0; margin-bottom: .6rem; box-shadow: none; }
.footer-brand .footer-wordmark { display: inline-block; font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 1.04rem; line-height: 1.15; margin: .1rem 0 .6rem; }
.footer-brand .footer-wordmark span { display: block; text-align: center; margin-top: .18rem; font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .42em; text-indent: .42em; text-transform: uppercase; color: #fff; }
/* center the whole brand block (logo + wordmark + motto) in its column */
.footer-brand { text-align: center; }
.footer-brand img.footer-logo { margin-left: auto; margin-right: auto; }
.footer-brand .footer-motto { margin-left: auto; margin-right: auto; }
.footer-brand .socials { justify-content: center; }
.footer-motto { color: #cfe0ee; font-style: italic; font-size: .98rem; max-width: 34ch; line-height: 1.5; }
.prog { width: 100%; border-collapse: collapse; }
.prog td { padding: .45rem 0; color: #cfe0ee; font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.1); vertical-align: top; }
.prog td:last-child { text-align: right; font-family: var(--font-display); font-weight: 600; color: #fff; white-space: nowrap; }
.prog tr:last-child td { border-bottom: 0; }
/* Sâmbătă + Duminică stacked, no line between them */
.prog tr.prog-sat td { border-bottom: 0; padding-bottom: .1rem; }
.prog tr.prog-sat + tr td { padding-top: .1rem; }
.footer-iban .iban-title { color: #fff; }

@media (max-width: 980px) {
  .hero { display: block; min-height: auto; padding-bottom: 2.2rem; }
  .hero-inner { padding-top: calc(var(--header-h) + 2.2rem); }
  .hero-iban { position: static; width: auto; margin: 1.6rem clamp(1.1rem,4vw,2.5rem) 0; }
  .hero-dots { display: none; }
}
@media (max-width: 620px) { .ctiles { grid-template-columns: 1fr; } }

/* ---------- Contact card (image-style, blue) ---------- */
.sec-contact { }
.contact-card { display: grid; grid-template-columns: .85fr 1.1fr; background: #fff; border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.cc-left { position: relative; color: #fff; padding: clamp(2.4rem,4vw,4rem); display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.cc-left::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("https://images.unsplash.com/photo-1609840114035-3c981b782dfe?auto=format&fit=crop&w=1200&q=80") center/cover; }
.cc-left::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, rgba(10,77,140,.68) 0%, rgba(6,40,74,.8) 100%); }
/* home-page contact section: office photo (theme blue overlay comes from ::after) */
#adresa .cc-left::before { background-image: url("https://images.unsplash.com/photo-1535341000823-01aa350a4fbb?auto=format&fit=crop&w=1200&q=80"); }
.cc-left-inner h2 { color: #fff; font-size: clamp(1.9rem,3.2vw,2.8rem); line-height: 1.05; }
.cc-motto { color: #9fe9ec; font-style: italic; font-weight: 600; font-family: var(--font-display); margin-top: .8rem; font-size: 1.05rem; }
.cc-desc { color: #d6e6f3; margin-top: 1.1rem; font-size: .98rem; line-height: 1.65; }
.cc-contact { margin-top: 2.8rem; display: grid; gap: .55rem; }
.cc-contact li { display: flex; align-items: center; gap: .85rem; color: #eaf3fb; font-size: .97rem; }
.cc-contact a { color: #eaf3fb; } .cc-contact a:hover { color: #fff; }
.cc-contact .cci { width: 40px; height: 40px; flex: none; border-radius: 11px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.cc-contact .cci svg { width: 18px; height: 18px; }
.cc-right { padding: clamp(1.6rem,3vw,2.8rem); display: flex; flex-direction: column; justify-content: center; }
.cc-right--map { padding: 0; }
.cc-map { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; }
.cc-form { display: flex; flex-direction: column; gap: .9rem; }
.cc-form input, .cc-form select, .cc-form textarea { width: 100%; padding: .95rem 1.1rem; border: 1px solid var(--line);
  border-radius: 12px; font: inherit; background: var(--surface-2); color: var(--text); transition: .3s; }
.cc-form input:focus, .cc-form select:focus, .cc-form textarea:focus { outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 4px rgba(43,127,208,.12); }
.cc-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6f82' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.6rem; }
.cc-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--muted); }
.cc-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-700); flex: none; }
.cc-submit { margin-top: .5rem; padding: 1rem; border-radius: 12px; background: var(--brand-700); color: #fff;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .92rem;
  box-shadow: 0 14px 30px -14px rgba(10,77,140,.6); transition: .4s var(--ease); }
.cc-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(10,77,140,.7); }
.cc-submit:disabled { opacity: .7; cursor: default; transform: none; }
.cc-msg { margin-top: 1rem; border-radius: 12px; padding: .85rem 1.1rem; font-size: .9rem; line-height: 1.45; }
.cc-msg.ok { color: #11845b; background: #e6f7ef; border: 1px solid #bfe8d4; }
.cc-msg.err { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
@media (max-width: 880px) { .contact-card { grid-template-columns: 1fr; } .cc-map { min-height: 320px; } .cc-left { padding: 2rem 1.5rem; } }

/* ---------- Prose (parsed real page content) ---------- */
.prose--wide { max-width: 980px; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.4rem,2.4vw,1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; font-size: 1.2rem; color: var(--brand-800); }
.prose h4 { margin-top: 1.1rem; font-size: 1rem; font-weight: 600; }
.prose p { color: #40525f; }
.prose a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(10,77,140,.3); transition: .25s; }
.prose a:hover { color: var(--brand-500); text-decoration-color: var(--brand-500); }
/* document links as badges */
.prose a[href$=".pdf"], .prose a[href$=".doc"], .prose a[href$=".docx"], .prose a[href$=".xls"], .prose a[href$=".xlsx"], .prose a[href$=".zip"] {
  display: inline-flex; align-items: flex-start; gap: .5rem; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: .55rem .85rem; color: var(--brand-700); font-size: .92rem; font-weight: 500; margin: .2rem 0; transition: .3s var(--ease);
  max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.prose a[href$=".pdf"]::before, .prose a[href$=".doc"]::before, .prose a[href$=".docx"]::before, .prose a[href$=".xls"]::before, .prose a[href$=".xlsx"]::before, .prose a[href$=".zip"]::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a4d8c' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.prose a[href$=".pdf"]:hover, .prose a[href$=".doc"]:hover, .prose a[href$=".docx"]:hover, .prose a[href$=".xls"]:hover, .prose a[href$=".xlsx"]:hover, .prose a[href$=".zip"]:hover { border-color: var(--accent); background: rgba(132,204,22,.15); color: var(--brand-800); box-shadow: 0 10px 20px -12px rgba(132,204,22,.5); transform: translateY(-2px); }
.prose h3 a, .prose h4 a { text-decoration: none; }
.prose .doc-ref { margin: -.05rem 0 .75rem; padding-left: .15rem; font-size: .82rem; line-height: 1.4; color: #6b7a86; font-weight: 500; }
.prose ul.ticks { display: grid; gap: .6rem; margin: .6rem 0; }
.prose ol.numlist { display: grid; gap: .5rem; margin: .6rem 0; padding-left: 1.2rem; list-style: decimal; }
.prose ol.numlist li { color: #40525f; }
.prose .table-wrap { overflow-x: auto; margin: 1.2rem 0; }

/* ---------- Comisii cards ---------- */
.comisii-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.5rem; }
.card.comisie { position: relative; }
.comisie-no { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: rgba(10,77,140,.1); }
.card.comisie h3 { font-size: 1.05rem; line-height: 1.3; padding-right: 2.5rem; margin-bottom: 1rem; color: var(--brand-800); }
.card.comisie .members { display: grid; gap: .55rem; }
.card.comisie .members li { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: .5rem; font-size: .93rem; color: var(--text); }
.card.comisie .members li:last-child { border-bottom: 0; }
.card.comisie .members em { font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand-500), var(--accent)); }
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -2.2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-500); box-shadow: 0 0 0 4px rgba(43,127,208,.15); }
.tl-item time { font-family: var(--font-display); font-weight: 700; color: var(--brand-700); font-size: .9rem; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.4rem; margin-top: .5rem; box-shadow: var(--shadow-sm); transition: .4s var(--ease); }
.tl-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.tl-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.tl-card p { font-size: .93rem; margin-bottom: .9rem; }

/* ---------- Search embed (cautare medic) ---------- */
.search-embed { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.search-embed-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; background: var(--grad-deep); color: #eaf3fb; }
.se-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.se-dot:first-child { background: #ff6058; } .se-dot:nth-child(2) { background: #ffbd2e; } .se-dot:nth-child(3) { background: #28ca42; }
.se-title { font-size: .85rem; margin-left: .6rem; opacity: .9; }
.se-open { margin-left: auto; color: #fff; font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.se-open svg { width: 1em; }
.search-frame { width: 100%; height: 720px; border: 0; display: block; background: #fff; }
@media (max-width: 680px) { .search-frame { height: 820px; } .se-title { display: none; } }

/* ---------- Price table: lime bands ---------- */
.price-table tbody tr:nth-child(even) { background: rgba(132,204,22,.12); }
.price-table tbody tr:hover { background: rgba(132,204,22,.22); }

/* ---------- Taxe: two aligned windows ---------- */
.taxe-grid { display: grid; grid-template-columns: 1.45fr .9fr; gap: 1.2rem; align-items: start; }
.card.taxe-win { padding: 1.6rem; }
.price-table--flush { border: 0; box-shadow: none; border-radius: 0; }
.taxe-iban { background: var(--grad-deep); color: #fff; padding: 1.6rem 1.5rem; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.taxe-iban .iban-note { color: #cfe0ee; font-size: .85rem; margin-top: .9rem; }
@media (max-width: 880px) { .taxe-grid { grid-template-columns: 1fr; } }

/* ---------- Announcements head with search ---------- */
.ann-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; max-width: none; text-align: left; }
/* search button: full height of the text box, flush to its right end */
.ann-head .searchbar { margin: 0; padding: 0 0 0 1.3rem; align-items: stretch; overflow: hidden; }
.ann-head .searchbar input { padding: .78rem 0; }
.ann-head .searchbar button { margin: 0; border-radius: 0 100px 100px 0; padding: 0 1.5rem; }

/* announcement single — date meta with Font Awesome icon */
.ann-meta-date { color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: .5rem; }
.ann-meta-date i { color: var(--brand-700); font-size: 1rem; }

/* ---------- Medic search table ---------- */
.medic-search { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.ms-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.3rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ms-badge { display: inline-flex; align-items: center; gap: .45rem; background: var(--grad-soft); color: var(--brand-700); border: 1px solid rgba(10,77,140,.12); border-radius: 100px; padding: .5rem .9rem; font-family: var(--font-display); font-weight: 600; font-size: .85rem; }
.ms-box { margin: 0; max-width: 360px; width: 100%; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table thead th { background: var(--brand-700); color: #fff; text-align: left; padding: .9rem 1rem; font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; white-space: nowrap; position: relative; user-select: none; }
.data-table thead th:hover { filter: brightness(1.06); }
.data-table thead th[data-sort]::after { content: ""; display: inline-block; margin-left: .4rem; border: 4px solid transparent; }
.data-table thead th[data-sort="asc"]::after { border-bottom-color: #fff; }
.data-table thead th[data-sort="desc"]::after { border-top-color: #fff; }
.data-table tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.data-table tbody tr:nth-child(even) { background: var(--surface-2); }
.data-table tbody tr:hover { background: rgba(132,204,22,.14); }
.data-table .ms-hint { text-align: center; color: var(--muted); padding: 2.6rem 1rem; }
.st { display: inline-block; padding: .25rem .7rem; border-radius: 100px; font-size: .76rem; font-weight: 600; }
.st-act { background: rgba(132,204,22,.18); color: #4d7c0f; }
.st-sus { background: #fdecec; color: #c0392b; }
.ms-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.3rem; }
.ms-count { color: var(--muted); font-size: .88rem; }
.ms-pages { display: flex; gap: .3rem; }
.ms-pages button { min-width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--text); transition: .25s; }
.ms-pages button:hover:not(:disabled) { border-color: var(--brand-300); }
.ms-pages button.on { background: var(--brand-700); color: #fff; border-color: transparent; }
.doc .dl:hover { color: var(--accent); }
.doc:hover { border-color: var(--accent); }
.ms-pages button:disabled { opacity: .4; cursor: default; }
.ms-pages span { padding: 0 .3rem; color: var(--muted); align-self: center; }
@media (max-width: 680px) { .data-table { font-size: .82rem; } .data-table td, .data-table th { padding: .6rem .5rem; } }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); }
.is-in [data-reveal], [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-slide.active img { animation: none; transform: scale(1); }
}

/* custom cursor */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 38px; height: 38px; border: 1.5px solid #fff; transition: transform .18s var(--ease), background .25s, border-color .25s; translate: -50% -50%; }
.cursor-dot { width: 6px; height: 6px; background: #fff; translate: -50% -50%; }
.cursor.hover { transform: scale(1.7); background: rgba(255,255,255,.15); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 880px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cursor, .cursor-dot { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  /* let long IBANs wrap instead of being clipped on phones */
  .iban-row b { white-space: normal; font-size: .76rem; letter-spacing: 0; word-break: break-word; }
  .hero-iban { width: auto; }
}

/* ---------- Elementor integration ---------- */
.section.cms-pt0 { padding-top: 0; }
.section.cms-pb0 { padding-bottom: 0; }
.section.cms-bg2 { background: var(--bg-2); }
/* CMS blocks stack flush; they carry their own section spacing */
.cms-el .elementor-widget[class*="elementor-widget-cms-"] { margin-block-end: 0; }
.cms-el .elementor-widget[class*="elementor-widget-cms-"] > .elementor-widget-container { margin: 0; padding: 0; }
/* standard Elementor widgets dropped between CMS blocks follow the design's container */
.cms-el .cms-stack .elementor-widget-wrap > .elementor-widget:not([class*="elementor-widget-cms-"]) { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); margin-block: 1.5rem; }
/* pages that don't open with a CMS hero clear the fixed header */
.cms-el--plain { padding-top: var(--header-h); }
/* in the editor everything is visible at once (no scroll-reveal, no "show more") */
.cms-edit [data-reveal] { opacity: 1 !important; transform: none !important; }
.cms-edit #ann-grid [data-more] { display: block !important; }
