:root {
	/* 
	 * Modernist Design Tokens 
	 * Ported from the eleonoracongiu.com modern design language
	 */
	--cn-easing-premium: cubic-bezier(0.22, 1, 0.36, 1);
	--cn-duration-premium: 0.2s;
	
	/* Soft ink-tinted shadows replacing harsh black ones.
	 *
	 * Two layers rather than one. A single large blur reads as a soft grey
	 * halo and is the giveaway of a dated card: real objects cast a tight
	 * contact shadow where they meet the surface AND a wide ambient one.
	 * Splitting them, and lowering each layer's alpha so the stack lands at
	 * roughly the previous weight, keeps the same visual mass while giving
	 * the edge definition the single blur was missing. Ink-tinted (#0e2839)
	 * rather than black, as before. */
	--cn-shadow-rest:
		0 1px 2px color-mix(in srgb, #0e2839 8%, transparent),
		0 4px 12px color-mix(in srgb, #0e2839 9%, transparent);
	--cn-shadow-hover-card:
		0 2px 4px color-mix(in srgb, #0e2839 10%, transparent),
		0 12px 32px color-mix(in srgb, #0e2839 16%, transparent);
	--cn-shadow-hover-button:
		0 1px 2px color-mix(in srgb, var(--cn-color-accent) 24%, transparent),
		0 6px 16px color-mix(in srgb, var(--cn-color-accent) 26%, transparent);
	
	/* Typography */
	--cn-font-family: "Inter", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	
	/* Radii - replacing sharp geometries with soft, app-like corners */
	--cn-radius-large: 16px;
	--cn-radius-medium: 12px;
	--cn-radius-small: 8px;
	--cn-radius-pill: 99px;

	/*
	 * Neutral ink scale. These were referenced by rules below but never
	 * defined anywhere, so every use silently fell through to its hardcoded
	 * var() fallback - and two of those fallbacks failed WCAG AA on the white
	 * canvas: #718096 on the footer links measured 4.02:1 against the 4.5:1
	 * minimum, and #a0aec0 on .cn-footer-bottom measured 2.26:1. Defining
	 * them here makes the scale real and keeps every tier accessible.
	 *
	 * 500 and 600 are darkened to pass; 600 matches the theme's existing
	 * --cn-color-text-muted. 800 and 900 keep the exact values they were
	 * already rendering, so nothing that looked right changes.
	 */
	--cn-color-neutral-500: #66707d;   /*  5.03:1 on #fff */
	--cn-color-neutral-600: #55606d;   /*  6.40:1 on #fff */
	--cn-color-neutral-800: #2d3748;   /* 11.99:1 on #fff, unchanged */
	--cn-color-neutral-900: #1a202c;   /* 16.32:1 on #fff, unchanged */

	/*
	 * Accent blue, darkened just enough to stay readable as TEXT on the
	 * tinted panels. The brand accent (--cn-color-accent, #046bd2) is fine
	 * as a button fill - white on it measures 5.20:1 - but the ghost buttons
	 * paint it as text straight onto the #e8eef4 CTA band, where it drops to
	 * 4.45:1 and misses the 4.5:1 minimum. This is text-only and does not
	 * touch --cn-color-accent, so every fill, border and hover state keeps
	 * the exact brand colour.
	 */
	--cn-color-accent-ink: #0563c1;    /*  5.05:1 on #e8eef4, 5.90:1 on #fff */
}

/* 1. Canvas & Shell */
body {
	background-color: #f7fafc; /* Cool, airy tint replacing the warm cardboard */
	color: #0e2839;
	font-family: var(--cn-font-family) !important;
}

.cn-section-full {
	background-color: transparent !important;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, 
.wp-block-heading,
.entry-content .cn-section-full h1,
.entry-content .cn-section-full h2,
.entry-content .cn-section-full h3,
.entry-content .cn-section-full h4,
.cn-label {
	font-family: var(--cn-font-family) !important;
	letter-spacing: -0.015em; /* Tighter editorial tracking */
}

/* 2. Components & Surfaces */
.cn-card, 
.cn-card-white, 
.cn-project-card, 
.cn-panel-white {
	border-radius: var(--cn-radius-medium) !important;
	background-color: #ffffff;
	box-shadow: var(--cn-shadow-rest) !important;
	border: 1px solid rgba(14, 40, 57, 0.08) !important;
	transition: transform var(--cn-duration-premium) var(--cn-easing-premium), 
	            box-shadow var(--cn-duration-premium) var(--cn-easing-premium), 
	            border-color var(--cn-duration-premium) var(--cn-easing-premium) !important;
}

.cn-card:hover, 
.cn-card-white:hover, 
.cn-project-card:hover, 
.cn-panel-white:not(.cn-panel-accent-edge):hover {
	transform: translateY(-2px) !important;
	box-shadow: var(--cn-shadow-hover-card) !important;
	border-color: rgba(14, 40, 57, 0.15) !important;
}

/* 3. Form Inputs */
.wpcf7-form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select,
.cn-input {
	width: 100%;
	padding: 12px 16px;
	font: inherit;
	font-size: 15px;
	color: #0e2839;
	background: #f7fcff !important;
	border: 1px solid rgba(14, 40, 57, 0.12) !important;
	border-radius: var(--cn-radius-small) !important;
	transition: border-color var(--cn-duration-premium) var(--cn-easing-premium),
	            box-shadow var(--cn-duration-premium) var(--cn-easing-premium) !important;
}

.wpcf7-form-control:hover, input:hover, textarea:hover, select:hover {
	border-color: rgba(14, 40, 57, 0.3) !important;
}

.wpcf7-form-control:focus, input:focus, textarea:focus, select:focus,
.wpcf7-form-control:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: none !important;
	border-color: var(--cn-color-accent) !important;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--cn-color-accent) 20%, transparent) !important;
}

/* 4. Tactile Buttons */
.wp-element-button,
.wp-block-button__link,
.cn-button {
	border-radius: var(--cn-radius-pill) !important;
	transition: transform var(--cn-duration-premium) var(--cn-easing-premium),
	            background-color var(--cn-duration-premium) var(--cn-easing-premium),
	            box-shadow var(--cn-duration-premium) var(--cn-easing-premium),
	            color var(--cn-duration-premium) var(--cn-easing-premium) !important;
}

/* A bare <button> is a semantic element, not a visual style: components use
   it for option cards, tabs, toggles and accordion headers as well as CTAs.
   The pill therefore applies here as a DEFAULT, not with !important, so any
   component that sets its own radius wins on specificity alone. Forcing it
   turned the rental finder's option cards (button.cn-rental-finder__option,
   which asks for --cn-radius-large) into 99px blobs, and did the same to
   every other tall button-based card on the site. Buttons with no component
   styling of their own still get the pill, so nothing that looked right
   before changes. */
button {
	border-radius: var(--cn-radius-pill);
	transition: transform var(--cn-duration-premium) var(--cn-easing-premium),
	            background-color var(--cn-duration-premium) var(--cn-easing-premium),
	            box-shadow var(--cn-duration-premium) var(--cn-easing-premium),
	            color var(--cn-duration-premium) var(--cn-easing-premium);
}

/* Tactile press feedback - overrides any active translateY */
.wp-element-button:active, 
.wp-block-button__link:active, 
.cn-button:active, 
button:active {
	transform: scale(0.97) translateY(0) !important; 
	box-shadow: 0 2px 6px color-mix(in srgb, var(--cn-color-accent) 20%, transparent) !important;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link.wp-element-button.is-primary:hover {
	box-shadow: var(--cn-shadow-hover-button) !important;
}

/* 5. Links */
.entry-content a {
	transition: color var(--cn-duration-premium) var(--cn-easing-premium), 
	            text-decoration-color var(--cn-duration-premium) var(--cn-easing-premium) !important;
}

/* 6. Layout Utilities & Header/Footer Overhaul */
:root {
	--cn-header-bg: rgba(255, 255, 255, 0.85);
	--cn-header-blur: blur(16px);
	--cn-header-height: 80px;
	--cn-border-light: rgba(14, 40, 57, 0.08);
}

.cn-site-header {
	position: sticky;
	top: 0;
	width: 100%;
	height: var(--cn-header-height);
	background: var(--cn-header-bg);
	backdrop-filter: var(--cn-header-blur);
	-webkit-backdrop-filter: var(--cn-header-blur);
	border-bottom: 1px solid var(--cn-border-light);
	z-index: 999;
	display: flex;
	align-items: center;
	transition: background-color var(--cn-duration-premium) var(--cn-easing-premium);
}

.cn-header-container, .cn-footer-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cn-header-logo img {
	height: 48px;
	width: auto;
	display: block;
}

.cn-header-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.cn-header-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 24px;
	align-items: center;
}

.cn-header-nav a {
	text-decoration: none;
	color: var(--cn-color-neutral-800, #2d3748);
	font-weight: 500;
	transition: color var(--cn-duration-premium) ease;
}

.cn-header-nav a:hover {
	color: var(--cn-color-accent, #0073aa);
}

.cn-site-footer {
	background: #ffffff;
	border-top: 1px solid var(--cn-border-light);
	padding: 64px 0 32px;
	margin-top: 80px;
}

.cn-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 48px;
	margin-bottom: 48px;
}

.cn-footer-col h4 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 24px;
	color: var(--cn-color-neutral-900, #1a202c);
}

.cn-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cn-footer-col a {
	color: var(--cn-color-neutral-600, #718096);
	text-decoration: none;
	transition: color var(--cn-duration-premium) ease;
}

.cn-footer-col a:hover {
	color: var(--cn-color-accent, #0073aa);
}

.cn-footer-bottom {
	border-top: 1px solid var(--cn-border-light);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: var(--cn-color-neutral-500, #a0aec0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
	.cn-header-nav ul:not(.cn-lang-menu) {
		display: none; /* simple hide for desktop nav on mobile */
	}
	
	.cn-footer-bottom {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}
}

/* --- CN NATIVE HEADER CSS --- */
.cn-site-header {
    background: #fff;
    border-bottom: 1px solid var(--cn-border-light, #e2e8f0);
    position: relative;
    z-index: 1000;
}
.cn-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1240px;
    margin: 0 auto;
}
.cn-site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cn-custom-logo {
    height: 48px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    width: auto;
}
.cn-site-title {
    font-size: 1.25rem;
    font-weight: 700;
}
.cn-site-title-link {
    color: var(--cn-color-text-main, #1a202c);
    text-decoration: none;
}
.cn-main-header-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}
.cn-main-header-menu a {
    color: var(--cn-color-text-main, #1a202c);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}
.cn-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--cn-color-text-main, #1a202c);
}

@media (max-width: 920px) {
    .cn-mobile-menu-toggle {
        display: block;
    }
    .cn-main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1.5rem;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        z-index: 1001;
        border-bottom: 1px solid var(--cn-border-light, #e2e8f0);
    }
    .cn-main-navigation.is-open {
        display: block;
    }
    .cn-main-header-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    /* Language switcher needs slight adjustment on mobile */
    .cn-main-header-menu .cn-lang-switcher-item {
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--cn-border-light, #e2e8f0);
        width: 100%;
    }
    /* Body state */
    body.menu-open {
        overflow: hidden;
    }
    body.menu-open .cn-icon-menu { display: none; }
    body.menu-open .cn-icon-close { display: block !important; }
}

/*
 * Ghost buttons render the accent as TEXT, not as a fill. style.css:3394 sets
 * color: var(--cn-color-accent) !important and is unlayered, so this rule -
 * also unlayered, in a stylesheet that loads later - wins on source order.
 * The hero override at style.css:1717 is inside @layer components, and for
 * !important declarations layered beats unlayered, so hero ghost buttons stay
 * white exactly as before.
 */
.cn-button-ghost {
	color: var(--cn-color-accent-ink) !important;
}

/*
 * Inline links inside the dark hero banner.
 *
 * #hero paints --cn-gradient-sunset (deep-sea #0a3d5c -> accent #046bd2) and
 * its paragraphs correctly switch to white, but a plain <a> kept inheriting
 * .entry-content a's accent blue from @layer primitives. Accent on deep-sea
 * measures 2.2:1, so the link was very nearly invisible against its own
 * background. style.css already whitens the hero's ghost and secondary
 * buttons; bare links were simply never covered.
 *
 * White measures 11.44:1 on the deep-sea stop and 5.20:1 on the accent stop,
 * so it passes across the whole gradient. Unlayered, so it beats the layered
 * primitives rule without needing !important. .cn-button is excluded because
 * style.css:1712-1740 already styles hero buttons deliberately.
 */
#hero a:not(.cn-button) {
	color: #ffffff;
	text-decoration-color: rgba(255, 255, 255, 0.5);
}

#hero a:not(.cn-button):hover {
	text-decoration-color: #ffffff;
}

/*
 * Progress stepper inside the dark hero.
 *
 * style.css:6001 deliberately makes ONLY .is-done and .is-current chips
 * transparent in the --stepper variant. On a light page that is correct, but
 * on #hero's deep-sea gradient it drops their labels straight onto the dark
 * background: .is-done keeps the accent (2.2:1) and .is-current the heading
 * ink (1.3:1, which style.css:499 already documents as failing).
 *
 * Scoped to exactly the two states that lose their chip. A pending step still
 * has its white background from style.css:5913, so it deliberately keeps its
 * dark label - whitening every step would put white text on a white chip.
 * State stays legible without colour: .cn-progress-num remains an accent
 * filled circle with white text.
 */
#hero .cn-progress--stepper .cn-progress-step.is-done,
#hero .cn-progress--stepper .cn-progress-step.is-current {
	color: #ffffff;
}

/*
 * Intro-helper links outside the hero.
 *
 * style.css:4720 sets .cn-intro-helper__links a to rgba(255,255,255,.9)
 * unconditionally. That is right while the component sits inside #hero's dark
 * gradient, which is where it was designed, but the product-list template
 * renders it on the white page: four links measured 1:1 there, white on white,
 * completely invisible rather than merely low contrast.
 *
 * Base colour is now readable on the light canvas; the white treatment is
 * re-applied inside #hero, matching how style.css already scopes the hero's
 * ghost and secondary buttons.
 */
.cn-intro-helper__links a {
	color: var(--cn-color-accent-ink);
}

#hero .cn-intro-helper__links a {
	color: rgba(255, 255, 255, 0.9);
}

#hero .cn-intro-helper__links a:hover {
	color: #ffffff;
}
