/*
Theme Name: DRS Modern
Theme URI: https://drs-cph.dk
Author: Danish Refuelling Services I/S
Description: Moderne block-tema til Danish Refuelling Services I/S – flybrændstof (JET A-1) i Københavns Lufthavn. Fuld Site Editing, lokale skrifttyper (GDPR-venligt) og færdige mønstre til alle sider.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drs-modern
Tags: full-site-editing, block-patterns, custom-colors, one-column, wide-blocks
*/

/* ---------- Basics ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--red); color: #fff; }
:where(a, button, input, textarea, select):focus-visible {
	outline: 2px solid var(--wp--preset--color--sky);
	outline-offset: 3px;
	border-radius: 4px;
}
img { height: auto; }

/* ---------- Header ---------- */
.drs-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu overlay inside the header bar. */
.drs-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
}
.admin-bar .drs-header { top: var(--wp-admin--admin-bar--height, 32px); }
.drs-header .wp-block-image img { width: 210px; max-width: 46vw; }
.drs-header .wp-block-navigation-item__content { padding: 0.4rem 0.2rem; position: relative; }
.drs-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.drs-header .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--red); }
.drs-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 2px; background: var(--wp--preset--color--red);
	transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.drs-header .wp-block-navigation-item__content:hover::after,
.drs-header .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }
.drs-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.drs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.6rem; font-family: var(--wp--preset--font-family--display); font-weight: 600;
}
.drs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.drs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
}
.drs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }

/* Language switcher */
.drs-lang-switch {
	display: inline-flex; align-items: center; gap: .35rem;
	margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .04em;
	color: var(--wp--preset--color--muted);
}
.drs-lang-switch a {
	color: var(--wp--preset--color--muted); text-decoration: none;
	padding: .3rem .45rem; border-radius: 6px;
}
.drs-lang-switch a:hover { color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--surface); }
.drs-lang-switch a.is-active { color: var(--wp--preset--color--navy); background: var(--wp--preset--color--surface); }
.drs-lang-switch span { opacity: .4; }

/* Contact link lives in the mobile overlay only */
.drs-header .drs-nav-contact { display: none; }
.drs-header .is-menu-open .drs-nav-contact { display: flex; }

@media (max-width: 599px) {
	.drs-header .drs-header-cta { display: none; }
	.drs-header .wp-block-image img { width: 150px !important; }
	.drs-header .wp-block-group { gap: .75rem; }
}

/* ---------- Eyebrow / labels ---------- */
.drs-eyebrow {
	display: flex; align-items: center; gap: .6rem;
	text-transform: uppercase; letter-spacing: .14em;
	font-size: .78rem !important; font-weight: 600;
}
.drs-eyebrow::before {
	content: ""; width: 28px; height: 2px; background: var(--wp--preset--color--red); display: inline-block;
}
.has-text-align-center.drs-eyebrow { justify-content: center; }

/* ---------- Hero ---------- */
.drs-hero {
	overflow: hidden;
	padding-left: var(--wp--style--root--padding-left) !important;
	padding-right: var(--wp--style--root--padding-right) !important;
}
.drs-hero .wp-block-cover__image-background { opacity: 1; }
.drs-hero h1 { color: #fff; max-width: 14ch; }
.drs-hero h1 em { font-style: normal; color: var(--wp--preset--color--sky); }
.drs-hero .drs-lead { color: rgba(255,255,255,.82); max-width: 40ch; }
.drs-hero .is-style-outline .wp-block-button__link,
.drs-on-dark .is-style-outline .wp-block-button__link {
	background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45);
}
.drs-hero .is-style-outline .wp-block-button__link:hover,
.drs-on-dark .is-style-outline .wp-block-button__link:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Stat strip inside the hero */
.drs-stats { border-top: 1px solid rgba(255,255,255,.16); }
.drs-stat .drs-stat__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; color: #fff; line-height: 1; margin: 0;
}
.drs-stat .drs-stat__label { color: rgba(255,255,255,.66); font-size: .9rem; margin-top: .5rem; }

/* ---------- Cards ---------- */
.drs-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	height: 100%;
}
.drs-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--soft);
	border-color: transparent;
}
.wp-block-column > .drs-card { height: 100%; }
.drs-num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600; font-size: .9rem; color: var(--wp--preset--color--red);
	letter-spacing: .08em;
}
.drs-icon {
	width: 48px; height: 48px; border-radius: 14px;
	display: grid; place-items: center;
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--navy);
	margin: 0 !important;
}
.drs-icon svg { width: 24px; height: 24px; }

/* ---------- Partner logos ---------- */
.drs-logos .wp-block-image img {
	max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s;
}
.drs-logos .wp-block-image:hover img { filter: none; opacity: 1; }

/* ---------- Dark bands ---------- */
.drs-on-dark, .drs-on-dark :where(h1,h2,h3,h4,p,li) { color: #fff; }
.drs-on-dark .has-muted-color { color: rgba(255,255,255,.7) !important; }
.drs-on-dark a:where(:not(.wp-block-button__link)) { color: var(--wp--preset--color--sky); }

/* Diagonal accent echoing the DRS logo swoosh */
.drs-swoosh { position: relative; overflow: hidden; }
.drs-swoosh::after {
	content: ""; position: absolute; right: -8%; top: -40%;
	width: 46%; height: 180%;
	background: linear-gradient(180deg, rgba(90,171,214,.0), rgba(90,171,214,.14));
	transform: skewX(-24deg); pointer-events: none;
}
.drs-swoosh > * { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.drs-contact-row a { text-decoration: none; font-weight: 600; }
.drs-contact-row a:hover { text-decoration: underline; }
.drs-person { border-left: 3px solid var(--wp--preset--color--red); }
.drs-contact-label {
	display: inline-block; min-width: 3.2rem;
	font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.drs-on-dark .drs-contact-label { color: rgba(255,255,255,.55); }
.drs-role { margin-top: .15rem !important; font-weight: 600; letter-spacing: .02em; }
.drs-contact-band .drs-card h3 { margin: 0; }

/* ---------- Page header band ---------- */
.drs-page-hero h1 { color: #fff; }
.drs-page-hero .wp-block-post-title { margin-top: .5rem; }

/* ---------- Content styling ---------- */
.entry-content > .wp-block-list li::marker,
.is-style-drs-checks li::marker { color: var(--wp--preset--color--red); }
.is-style-drs-checks { list-style: none; padding-left: 0 !important; }
.is-style-drs-checks li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.is-style-drs-checks li::before {
	content: ""; position: absolute; left: 0; top: .35em;
	width: 1.15rem; height: 1.15rem; border-radius: 50%;
	background: var(--wp--preset--color--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/62% no-repeat;
}

/* ---------- Footer ---------- */
.drs-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.drs-footer a:hover { color: #fff; text-decoration: underline; }
.drs-footer .drs-logo-chip { background: #fff; border-radius: 12px; display: inline-block; }
.drs-footer .drs-logo-chip img { width: 200px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 781px) {
	.drs-hero h1 { max-width: none; }
	.wp-block-columns.drs-stats { flex-wrap: wrap !important; row-gap: 1.5rem; }
	.wp-block-columns.drs-stats > .wp-block-column.drs-stat { flex-basis: calc(50% - 1rem) !important; flex-grow: 0; }
}
