/*
Theme Name: HDF
Template: hello-elementor
Description: Tema Hrvatskog društva fiziologa
Author: minimal.media
Author URI: https://minimal.com.hr
Version: 0.3.0
Requires PHP: 8.3
Text Domain: hdf
*/

/* Self-hosted fonts (OFL, see assets/fonts/OFL.txt). Zero requests to Google. */
@font-face{font-family:'Newsreader';font-style:normal;font-weight:400 500;font-display:swap;src:url('assets/fonts/newsreader-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:400 500;font-display:swap;src:url('assets/fonts/newsreader-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400 700;font-display:swap;src:url('assets/fonts/newsreader-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400 700;font-display:swap;src:url('assets/fonts/newsreader-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url('assets/fonts/manrope-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url('assets/fonts/manrope-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------------------------------------------------------------
   Global styles. Colours and typography come from the Elementor kit
   (Site Settings > Global Colors / Fonts); the variables below are only
   for things the kit cannot express. Fallback hex values equal the kit.
   Source: Proposal 01 (tokens.css, public.css) and
   .agency/reports/accessibility-brief-header-footer.md
   --------------------------------------------------------------- */
:root {
	--hdf-navy: var(--e-global-color-primary, #142940);
	--hdf-navy-deep: var(--e-global-color-hdf-navy-deep, #0e1e30);
	--hdf-blue: var(--e-global-color-secondary, #285d98);
	--hdf-red: var(--e-global-color-accent, #c6353b);
	--hdf-focus: #142940; /* navy on light backgrounds (14.78:1 on white) */
	--hdf-focus-on-dark: #fff; /* white on footer #0e1e30 (16.84:1) and on navy fills */
	--hdf-gutter: clamp(20px, 4.5vw, 64px); /* Proposal 01: clamp(20px, 4.5cqi, 64px) */
	/* Height of the sticky header; fallback until assets/js/site-chrome.js writes the measured value. */
	--hdf-header-h: 118px;
	--hdf-scroll-gap: 16px;
}
@media (max-width: 1239px) { :root { --hdf-header-h: 81px; } }
@media (max-width: 639px) { :root { --hdf-header-h: 73px; } }

html {
	background: #fff;
	scroll-padding-top: calc(var(--hdf-header-h) + var(--hdf-scroll-gap));
}
body { background: #fff; -webkit-font-smoothing: antialiased; }

/* Fluid side padding for Elementor containers (the kit holds stepped values as fallback). */
html body .e-con {
	--container-default-padding-left: var(--hdf-gutter);
	--container-default-padding-right: var(--hdf-gutter);
}

/* Focus (accessibility brief section 6): 3px outline, navy on light, white on dark. */
html body :focus-visible {
	outline: 3px solid var(--hdf-focus);
	outline-offset: 2px;
}
html body footer :focus-visible,
html body .elementor-location-footer :focus-visible,
html body [aria-expanded='true'].hdf-menu:focus-visible {
	outline-color: var(--hdf-focus-on-dark);
}
/* Never remove focus without a replacement; Elementor's own resets are overridden above. */
.elementor-item:focus:not(:focus-visible) { outline: 0; }

/* Skip link (output by the theme or header template): visible only on focus. */
.hdf-skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 100000;
	background: var(--hdf-navy); color: #fff; padding: 10px 14px;
	font: 600 14px/1.2 var(--e-global-typography-text-font-family, 'Manrope'), system-ui, sans-serif;
}
.hdf-skip-link:focus { left: 12px; color: #fff; }

/* The header is CSS sticky (see site-chrome.css), not static on short viewports: no scroll offset there. */
@media (max-height: 500px) {
	html { scroll-padding-top: 0; }
}

/* Reduced motion (brief section 7). */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
	.elementor-invisible { visibility: visible !important; }
}

/* Focus moves must not animate (smooth scrolling hides the focus change from keyboard users). */
html { scroll-behavior: auto; }
