/*
 * Project overrides on top of the designer's style.css (kept untouched).
 */

/* Homepage hero: smaller doctor cut-out (source image is 609×660, avoid upscaling) */
.v4-doc{height:74%;max-height:660px}

/* Doctor page hero: keep the portrait close to its native size */
.doc-photo{height:84%;max-height:700px}

/* Server-rendered form feedback */
.form .form-note[role="status"]{display:block}

/* ESPA (EU co-funding) banners in the footer — replaces the design placeholder */
.foot-meta .espa{flex-basis:100%;order:-1;display:flex;flex-wrap:wrap;gap:12px;border:0;padding:0}
.foot-meta .espa a{display:flex;align-items:center;justify-content:center;height:64px;padding:6px 10px;background:#fff;border-radius:10px;border:1px solid var(--line)}
.foot-meta .espa img{height:100%;width:auto;max-width:min(320px,80vw);object-fit:contain}

/* ---------------------------------------------------------------
 * Contact page: info as a navy card (same look as the menu card / article CTA)
 * ------------------------------------------------------------- */
.info--card{position:relative;overflow:hidden;color:#fff;background:radial-gradient(90% 70% at 100% 0%,#0D5576,var(--ink));padding-bottom:clamp(72px,7vw,96px)}
.info--card .info-em{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;margin-bottom:24px}
.info--card .info-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;align-items:start;border-top-color:var(--line-d)}
.info--card .info-em + .info-row{border-top:0;padding-top:0}
.info--card .info-row h3{color:rgba(255,255,255,.6);margin-bottom:6px}
.info--card .info-row .v{font-size:clamp(19px,1.6vw,23px);color:#fff}
.info--card .info-row .v a{display:block;color:#fff}
.info--card .info-row .v a:hover,.info--card .info-row p a:hover{color:var(--mint)}
.info--card .info-row p{margin:6px 0 0;font-size:14.5px;color:rgba(255,255,255,.72)}
.info--card .info-row p a{color:#fff;text-decoration:none}
.info-ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:var(--mint);background:rgba(255,255,255,.08);border:1px solid var(--line-d)}
.info-actions{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.info-actions .btn svg{width:18px;height:18px}
.info--card .ecgmini{position:absolute;left:0;right:0;bottom:0;height:60px;opacity:.55;pointer-events:none}
.info--card .ecgmini svg{width:100%;height:100%}

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.foot-cta{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.foot-pill{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 18px;border-radius:999px;border:1px solid var(--line);color:var(--ink);font-weight:500;text-decoration:none;transition:background .2s,border-color .2s}
.foot-pill svg{width:16px;height:16px;color:var(--green)}
.foot-pill:hover{background:var(--paper);border-color:var(--ink)}
.foot-em{display:flex;align-items:center;gap:10px;margin:18px 0 0;font-size:14px;color:var(--muted)}
.foot-cols h4{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:600;margin-bottom:16px}
.foot-cols h4::before{content:"";width:14px;height:2px;border-radius:2px;background:var(--green)}
.foot-cols ul:not(.foot-contact) a{color:var(--text);transition:color .2s}
.foot-contact li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;align-items:start;margin-bottom:14px;line-height:1.45}
.foot-contact a{color:var(--text)}
.foot-contact small{color:var(--muted);font-size:13px}
.foot-ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:var(--ink-3);background:var(--paper)}
.foot-meta a{color:var(--ink)}
.foot-meta a:hover{color:var(--green)}

/* ---------------------------------------------------------------
 * Migrated rich content (old site): galleries, inline images, highlight boxes
 * ------------------------------------------------------------- */
.art-body img,.prose img,.rich-text img{max-width:100%;height:auto;border-radius:18px;display:block;margin:18px 0}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:32px 0 0}
.gallery-grid figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden}
.gallery-grid img{margin:0;border-radius:0;width:100%;aspect-ratio:4/3;object-fit:cover}
.gallery-grid figcaption{padding:14px 16px 16px;font-size:14px;line-height:1.5;color:var(--muted)}
.rich-text h2{margin:28px 0 12px}
.highlight details{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.highlight summary{cursor:pointer;font-weight:500;color:var(--ink)}
.highlight .rich-text{font-size:15px;color:var(--text);margin-top:10px}
.highlight .rich-text ul{padding-left:18px;margin:8px 0 0}

/* ---------------------------------------------------------------
 * Smooth scrolling + back to top
 * ------------------------------------------------------------- */
html{scroll-padding-top:calc(var(--hh) + 24px)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
.to-top{position:fixed;right:clamp(16px,2.4vw,28px);bottom:clamp(16px,2.4vw,28px);z-index:60;width:48px;height:48px;border-radius:50%;border:1px solid var(--line-d);display:grid;place-items:center;cursor:pointer;color:#fff;background:radial-gradient(90% 90% at 100% 0%,#0D5576,var(--ink));box-shadow:0 12px 30px rgba(1,36,52,.28);opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .3s,transform .3s,visibility .3s,background .2s}
.to-top.is-visible{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--green)}
.to-top:focus-visible{outline:2px solid var(--sky);outline-offset:3px}
.to-top svg{width:20px;height:20px}
@media (prefers-reduced-motion:reduce){.to-top{transition:none}}

/* ---------------------------------------------------------------
 * Footer — tablet & mobile
 * ------------------------------------------------------------- */
.foot-contact a,.foot-contact span{overflow-wrap:anywhere}
@media (max-width:900px){
  .foot-cols .foot-contact{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));column-gap:20px}
  .foot-cols > div:first-child{grid-column:1 / -1}
}
@media (max-width:560px){
  .foot{padding:10px}
  .foot-in{padding:28px 20px 0;border-radius:24px}
  .foot-top{gap:32px;padding-bottom:36px}
  .foot-top h2{font-size:30px;margin-bottom:22px}
  .foot-cta{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .foot-cta .btn-arrow{grid-column:1 / -1;justify-content:space-between}
  .foot-pill{justify-content:center;padding:0 10px;font-size:14px}
  .foot-cols{gap:28px 16px}
  .foot-cols .foot-contact{grid-template-columns:1fr}
  .foot-meta{flex-direction:column;align-items:flex-start;gap:10px}
  .foot-meta .espa{display:grid;grid-template-columns:1fr;gap:8px;width:100%}
  .foot-meta .espa a{height:56px}
  .foot-meta .espa img{max-width:100%}
  .wordmark{font-size:10.4vw;margin-top:16px}
}
