/* Osmopharm – site styles (on top of Bootstrap 5.3) */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../Fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../Fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../Fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../Fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
    --osmo-blue: #085aa3;
    --osmo-blue-dark: #064a87;
    --osmo-blue-mid: #3778b3;
    --osmo-blue-soft: #326ea3;
    --osmo-orange: #e07f00;
    --osmo-grey: #eeeff0;
    --osmo-text: #222;
    --bs-body-font-family: "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-color: var(--osmo-text);
    --bs-link-color: var(--osmo-blue);
    --bs-link-color-rgb: 8, 90, 163;
    --bs-link-hover-color: var(--osmo-blue-dark);
    --bs-link-hover-color-rgb: 6, 74, 135;
}

body { background: #fff; line-height: 1.6; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: "Roboto", "Lato", Arial, sans-serif; font-weight: 700; color: var(--osmo-blue); line-height: 1.2; }
h1, .h1 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); text-transform: uppercase; }
h2, .h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); }
h3, .h3 { font-size: 1.3rem; }
h4, .h4 { font-size: 1.1rem; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .15em; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid #e3e5e8; position: relative; z-index: 1030; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand img { display: block; width: auto; max-height: 70px; max-width: 100%; }
.header-contact { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; }
.header-contact a { color: var(--osmo-blue); text-decoration: none; font-weight: 700; }
.header-contact a:hover { text-decoration: underline; }
.header-contact .fa { width: 1.1em; }
.swissmade { width: 80px; height: auto; }

.main-nav { border-top: 1px solid #e3e5e8; padding: 0; }
.main-nav .navbar-nav { gap: .25rem; }
.main-nav .nav-link { font-family: "Roboto", Arial, sans-serif; font-weight: 700; font-size: .875rem; text-transform: uppercase; color: #444; padding: 1rem .65rem; border-bottom: 3px solid transparent; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus-visible { color: var(--osmo-blue); }
.main-nav .nav-link.active { color: var(--osmo-blue); border-bottom-color: var(--osmo-blue); }
.main-nav .dropdown-menu { border-radius: 0; border: 0; border-top: 3px solid var(--osmo-blue); box-shadow: 0 .5rem 1rem rgba(0,0,0,.12); padding: 0; margin-top: 0; }
.main-nav .dropdown-item { padding: .6rem 1rem; font-size: .9rem; }
.main-nav .dropdown-item.active, .main-nav .dropdown-item:active { background: var(--osmo-blue); color: #fff; }
.navbar-toggler { border: 1px solid #ccd; margin: .5rem 0; font-family: "Roboto", Arial, sans-serif; font-weight: 700; font-size: .9rem; color: var(--osmo-blue); display: inline-flex; align-items: center; gap: .5rem; }
@media (min-width: 992px) {
    .main-nav .dropdown:hover > .dropdown-menu, .main-nav .dropdown:focus-within > .dropdown-menu { display: block; }
}
@media (max-width: 991.98px) {
    .header-top { flex-wrap: wrap; }
    .brand img { max-height: 52px; }
    .main-nav .nav-link { padding: .7rem 0; border-bottom: 1px solid #eee; }
    .main-nav .nav-link.active { border-bottom-color: #eee; }
    .main-nav .dropdown-menu { box-shadow: none; border-top: 0; padding-left: 1rem; }
}
@media (max-width: 575.98px) {
    .header-contact { width: 100%; justify-content: space-between; font-size: .85rem; }
    .header-contact ul { display: flex; flex-direction: column; }
}

/* ---------- Page head ---------- */
.page-banner { background: var(--osmo-grey); }
.page-banner-img { display: block; width: 100%; height: clamp(140px, 22vw, 260px); object-fit: cover; }
.breadcrumb { margin: 0; padding: .75rem 0; font-size: .875rem; background: none; }
.breadcrumb a { text-decoration: none; }
.section-band { background: var(--osmo-blue); color: #fff; }
.section-band-title { font-family: "Roboto", Arial, sans-serif; font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); text-transform: uppercase; margin: 0; padding: 1.1rem 0; }

.page-body { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.page-bottom { padding-bottom: 3rem; }
.home-main { padding-top: 2.5rem; padding-bottom: 1rem; }

/* ---------- Content grid ---------- */
.content-grid > .ce { margin-bottom: 2rem; }
.ce-inner > :last-child { margin-bottom: 0; }
.ce-shortcut > .ce-inner > .ce { padding: 0; }
.ce .ce { width: 100%; padding: 0; }
.space-before-small { margin-top: 1rem; } .space-before-medium { margin-top: 2rem; } .space-before-large { margin-top: 3rem; }
.space-after-small { margin-bottom: 1rem !important; } .space-after-medium { margin-bottom: 2.5rem !important; } .space-after-large { margin-bottom: 4rem !important; }

.frame-box-light > .ce-inner, .frame-box-light > .iconbox { background: var(--osmo-grey); padding: 1.75rem; height: 100%; }
.frame-border-blue > .ce-inner { border: 1px solid var(--osmo-blue); padding: 1.5rem; height: 100%; }
.frame-band-blue > .ce-inner, .frame-band-blue > .iconbox { background: var(--osmo-blue-soft); color: #fff; text-align: center; padding: 3rem 1.5rem; }
.frame-band-blue h1, .frame-band-blue h2, .frame-band-blue h3, .frame-band-blue a:not(.btn) { color: #fff; }
.frame-band-blue .btn-outline-osmo { color: #fff; border-color: #fff; }
.frame-band-blue .btn-outline-osmo:hover { background: #fff; color: var(--osmo-blue); }

/* fluid_styled_content images */
.ce-gallery img, .ce-gallery video { max-width: 100%; height: auto; }
.ce-gallery figure { margin: 0 0 1rem; }
.ce-gallery figcaption { font-size: .875rem; color: #555; padding-top: .35rem; }
.ce-textpic::after { content: ""; display: table; clear: both; }
.ce-intext.ce-right .ce-gallery { float: right; margin: 0 0 1rem 1.5rem; max-width: 50%; }
.ce-intext.ce-left .ce-gallery { float: left; margin: 0 1.5rem 1rem 0; max-width: 50%; }
.ce-above .ce-gallery { margin-bottom: 1rem; }
.ce-below .ce-gallery { margin-top: 1rem; }
.ce-center .ce-outer { text-align: center; }
.ce-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.ce-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 767.98px) {
    .ce-intext.ce-right .ce-gallery, .ce-intext.ce-left .ce-gallery { float: none; max-width: 100%; margin: 0 0 1rem; }
    .ce-row { flex-direction: column; }
}
.ce-bodytext table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.ce-bodytext table td, .ce-bodytext table th { border: 1px solid #dde; padding: .4rem .6rem; }
.ce-html iframe { width: 100%; max-width: 100%; border: 0; }
.ce-uploads { list-style: none; padding: 0; }
.ce-uploads li { margin-bottom: .5rem; }

/* Carousel */
.osmo-carousel { background: var(--osmo-grey); }
.osmo-carousel .carousel-item img { max-height: 560px; object-fit: contain; margin: 0 auto; }
.osmo-carousel .carousel-control-prev-icon, .osmo-carousel .carousel-control-next-icon { background-color: rgba(8,90,163,.85); border-radius: 50%; background-size: 55%; width: 2.6rem; height: 2.6rem; }
.carousel-caption-text { padding: .5rem 1rem; font-size: .9rem; }

/* Buttons */
.btn-outline-osmo { border: 1px solid var(--osmo-blue); color: var(--osmo-blue); border-radius: 0; text-transform: uppercase; font-weight: 700; font-size: .85rem; padding: .6rem 2.2rem; }
.btn-outline-osmo:hover, .btn-outline-osmo:focus-visible { background: var(--osmo-blue); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #f4f7fb; min-height: 520px; display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,0) 70%); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero-text { max-width: 560px; padding: 3rem 0; }
.hero-intro { font-family: "Roboto", Arial, sans-serif; font-weight: 700; font-size: clamp(1.15rem, .9rem + 1vw, 1.6rem); line-height: 1.25; margin-bottom: .5rem; color: #111; }
.hero-title { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.2rem); line-height: .95; color: var(--osmo-blue); margin-bottom: 1.5rem; text-transform: uppercase; }
.hero-title small { font-size: 1.1rem; vertical-align: baseline; letter-spacing: .02em; }
.hero-body { font-size: 1.15rem; margin-bottom: 1.5rem; }
.hero-links { display: flex; gap: 2rem; flex-wrap: wrap; margin: 0; }
.hero-links a { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none; color: #111; font-size: .95rem; min-width: 6rem; }
.hero-link-icon { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--osmo-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: transform .2s; }
.hero-links a:hover .hero-link-icon, .hero-links a:focus-visible .hero-link-icon { transform: scale(1.08); background: var(--osmo-blue-dark); }
@media (max-width: 767.98px) {
    .hero { min-height: 0; }
    .hero::before { background: rgba(255,255,255,.88); }
    .hero-links { gap: 1rem; justify-content: space-between; }
}

/* ---------- Tiles ---------- */
.tiles { margin-bottom: .5rem; }
.tile { position: relative; height: 100%; padding: 1.5rem 1.25rem 3.5rem; background: var(--osmo-blue-mid); color: #fff; border: 1px solid rgba(255,255,255,.35); transition: transform .2s, box-shadow .2s; }
.tiles > div:nth-child(4n+2) .tile { background: var(--osmo-blue-soft); }
.tiles > div:nth-child(4n+3) .tile { background: var(--osmo-orange); color: #111; }
.tiles > div:nth-child(4n+3) .tile-title, .tiles > div:nth-child(4n+3) .tile-link, .tiles > div:nth-child(4n+3) .tile-link:hover { color: #111; }
.tiles > div:nth-child(4n+4) .tile { background: var(--osmo-blue); }
.tile:hover, .tile:focus-within { transform: translateY(-4px); box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.15); }
.tile-icon { font-size: 1.6rem; display: block; margin-bottom: .5rem; }
.tile-title { color: #fff; font-size: 1.15rem; margin-bottom: .5rem; }
.tile-text { font-size: .9rem; margin: 0; }
.tile-link { position: absolute; left: 1.25rem; bottom: 1.25rem; color: #fff; font-weight: 700; text-transform: uppercase; font-size: .85rem; text-decoration: none; }
.tile-link:hover { color: #fff; text-decoration: underline; }
.tile-link:focus-visible { outline: none; }
.tile:focus-within { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* ---------- Cards ---------- */
.osmo-card { position: relative; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--osmo-blue); background: #fff; transition: box-shadow .2s; }
.osmo-card:hover, .osmo-card:focus-within { box-shadow: 0 .75rem 1.5rem rgba(8,90,163,.18); }
.osmo-card-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.osmo-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; text-align: center; }
.osmo-card-title { font-size: 1.25rem; color: #111; }
.osmo-card-text { font-size: .9rem; flex: 1; }
.osmo-card-text p:last-child { margin-bottom: 0; }
.osmo-card-link { margin-top: 1rem; font-weight: 700; text-transform: uppercase; font-size: .85rem; text-decoration: none; }
.osmo-card-link:focus-visible { outline: none; }
.osmo-card:focus-within { outline: 3px solid var(--osmo-orange); outline-offset: 2px; }

/* ---------- Icon box ---------- */
.iconbox { height: 100%; }
.iconbox-title { display: flex; align-items: center; gap: .9rem; }
.iconbox-icon { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 50%; background: var(--osmo-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.frame-box-light .iconbox { display: flex; flex-direction: column; }
.frame-box-light .iconbox-text { flex: 1; }
.frame-box-light .iconbox .btn-outline-osmo { background: var(--osmo-blue); color: #fff; width: 100%; padding-left: 1rem; padding-right: 1rem; }
.frame-box-light .iconbox .btn-outline-osmo:hover, .frame-box-light .iconbox .btn-outline-osmo:focus-visible { background: var(--osmo-blue-dark); border-color: var(--osmo-blue-dark); }
.iconbox-text a[href^="mailto:"], .iconbox-text a[href^="tel:"] { font-weight: 700; word-break: break-word; }
.frame-band-blue .iconbox-title { justify-content: center; }
.frame-band-blue .iconbox-icon { background: #fff; color: var(--osmo-blue); }

/* ---------- Forms (EXT:form) ---------- */
.ce-form_formframework .form-group, .ce-form_formframework .mb-3 { margin-bottom: 1rem; }
.ce-form_formframework label { font-weight: 700; font-size: .9rem; margin-bottom: .25rem; }
.ce-form_formframework .form-control { border-radius: 0; }
.ce-form_formframework .required { color: #b00020; }
.ce-form_formframework .actions .btn, .ce-form_formframework button[type=submit] { background: var(--osmo-orange); border: 0; border-radius: 0; color: #111; font-weight: 700; text-transform: uppercase; padding: .6rem 2rem; width: 100%; }
.ce-form_formframework .actions .btn:hover, .ce-form_formframework button[type=submit]:hover { background: #c96f00; color: #fff; }
.ce-form_formframework .help-block, .ce-form_formframework .error { color: #b00020; font-size: .85rem; }
.ce-form_formframework .actions nav, .ce-form_formframework .actions ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Sub navigation ---------- */
.subnav ul { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--osmo-blue); }
.subnav a { display: block; padding: .65rem .9rem; border-bottom: 1px solid #e3e5e8; text-decoration: none; color: #333; font-size: .95rem; }
.subnav a::before { content: "\203A"; color: var(--osmo-blue); margin-right: .5rem; font-weight: 700; }
.subnav a:hover { background: var(--osmo-grey); color: var(--osmo-blue); }
.subnav a.active { background: var(--osmo-blue); color: #fff; }
.subnav a.active::before { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--osmo-blue-dark); color: #fff; padding-top: 2.5rem; font-size: .95rem; }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer .footer-title { color: #fff; font-size: 1.05rem; text-transform: uppercase; margin-bottom: .75rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd9a3; }
.site-footer .ce { margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: .35rem; }
.site-footer ul li a { text-decoration: none; }
.site-footer ul li a::before { content: "\203A"; margin-right: .45rem; }
.footer-infotable td { padding: .2rem .5rem .2rem 0; vertical-align: top; }
.footer-bottom { margin-top: 1.5rem; padding: 1rem 0; background: rgba(0,0,0,.18); font-size: .85rem; }
.btn-link-footer { background: none; border: 0; color: #fff; text-decoration: underline; padding: 0; font-size: inherit; }

/* ---------- Cookie consent ---------- */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; background: #fff; border-top: 4px solid var(--osmo-blue); box-shadow: 0 -.5rem 1.5rem rgba(0,0,0,.18); padding: 1.25rem 0; }
.consent-banner[hidden] { display: none; }
.consent-inner { display: flex; align-items: center; gap: 1.5rem; }
.consent-title { font-size: 1.15rem; margin-bottom: .35rem; }
.consent-text { font-size: .9rem; margin: 0; }
.consent-actions { display: flex; gap: .75rem; flex: 0 0 auto; }
.consent-btn { border-radius: 0; font-weight: 700; text-transform: uppercase; font-size: .85rem; padding: .7rem 1.4rem; background: var(--osmo-blue); color: #fff; border: 2px solid var(--osmo-blue); }
.consent-btn:hover, .consent-btn:focus-visible { background: var(--osmo-blue-dark); border-color: var(--osmo-blue-dark); color: #fff; }
@media (max-width: 767.98px) {
    .consent-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
    .consent-actions { flex-direction: column; }
    .consent-btn { width: 100%; }
}
.consent-placeholder { background: var(--osmo-grey); border: 1px dashed #9aa7b5; padding: 2rem 1.5rem; text-align: center; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; }
.consent-placeholder p { max-width: 36rem; margin: 0; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .main-nav, .site-footer, .page-banner, .subnav { display: none !important; }
}
