/* ==========================================================================
   Lourifrotas: global styles.
   Colors and fonts come from Elementor Global Colors / Fonts (Site Settings),
   so the scheme is changed in ONE place. Fallbacks = brand values.
   ========================================================================== */

:root {
	--lf-navy: var(--e-global-color-primary, #153b50);
	--lf-burgundy: var(--e-global-color-secondary, #773344);
	--lf-cta: var(--e-global-color-accent, #971e43);
	--lf-ink: var(--e-global-color-text, #080705);
	--lf-paper: var(--e-global-color-lfpaper, #fffdfd);
	--lf-white: var(--e-global-color-lfwhite, #ffffff);
	--lf-gray-50: var(--e-global-color-lfgray50, #f5f5f4);
	--lf-gray-text: var(--e-global-color-lfgraytext, #57534e);
	--lf-border: var(--e-global-color-lfborder, #e7e5e4);
	--lf-deep: var(--e-global-color-lfdeep, #0a1f2e);
	--lf-error: var(--e-global-color-lferror, #dc2626);
	--lf-gradient: linear-gradient(135deg, var(--lf-burgundy) 0%, var(--lf-navy) 100%);
	--lf-overlay-hero: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.30) 50%, rgba(0,0,0,.50));
	--lf-overlay-page-hero: linear-gradient(to top, rgba(0,0,0,.80), rgba(0,0,0,.40) 50%, rgba(0,0,0,.50));

	--lf-font: var(--e-global-typography-text-font-family, "Poppins"), system-ui, -apple-system, "Segoe UI", sans-serif;
	--lf-font-accent: var(--e-global-typography-lfaccent-font-family, "Newsreader"), Georgia, "Times New Roman", serif;

	--lf-radius-md: 0.4rem;
	--lf-radius-3xl: 1.1rem;
	--lf-radius-pill: 9999px;
	--lf-shadow-lg: 0 10px 15px rgba(0,0,0,.1);
	--lf-shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);

	--lf-container: 72rem;
	--lf-container-narrow: 56rem;
	--lf-container-medium: 64rem;
	--lf-container-text: 48rem;
	--lf-gutter: 1rem;
	--lf-section-y: 5rem;
	--lf-section-y-home: 6rem;
}
@media (min-width: 640px) { :root { --lf-gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --lf-gutter: 2rem; --lf-section-y: 7rem; } }

/* ---- Base --------------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	background: var(--lf-paper);
	color: var(--lf-ink);
	font-family: var(--lf-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: var(--lf-font); }
h1, h2, h3, h4, h5, h6,
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--lf-font);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
	color: inherit;
}
a { color: var(--lf-navy); }
::selection { background: color-mix(in srgb, var(--lf-navy) 20%, transparent); }

/* Visible focus ring everywhere (navy). */
:focus-visible {
	outline: 2px solid var(--lf-navy);
	outline-offset: 2px;
}

/* ---- Layout helpers ------------------------------------------------------ */
.lf-container {
	width: 100%;
	max-width: var(--lf-container);
	margin-inline: auto;
	padding-inline: var(--lf-gutter);
}
.lf-section { padding-block: var(--lf-section-y); }
.lf-section--home { padding-block: var(--lf-section-y-home); }
.lf-bg-muted { background: var(--lf-gray-50); }
.lf-bg-ink { background: var(--lf-ink); color: var(--lf-white); }
.lf-bg-deep { background: var(--lf-deep); color: var(--lf-white); }
.lf-bg-gradient { background: var(--lf-gradient); color: var(--lf-white); }

/* ---- Eyebrow label ------------------------------------------------------- */
.lf-eyebrow,
.lf-eyebrow .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lf-gray-text);
}
.lf-eyebrow::before,
.lf-eyebrow .elementor-heading-title::before {
	content: "";
	width: 8px;
	height: 8px;
	flex: none;
	background: var(--lf-cta);
}
.lf-eyebrow .elementor-heading-title { display: inline-flex; }
.lf-dark .lf-eyebrow,
.lf-dark .lf-eyebrow .elementor-heading-title { color: rgba(255,255,255,.6); }

.lf-accent,
.lf-accent .elementor-heading-title {
	font-family: var(--lf-font-accent);
	font-style: italic;
	font-weight: 500;
	letter-spacing: 0;
}

/* ---- Section heading (H2) ------------------------------------------------ */
.lf-h2,
.lf-h2 .elementor-heading-title {
	font-size: 36px;
	line-height: 40px;
	font-weight: 700;
	letter-spacing: -0.025em;
	margin-top: 12px;
}
@media (min-width: 640px) {
	.lf-h2, .lf-h2 .elementor-heading-title { font-size: 48px; line-height: 1; }
}
.lf-dark .lf-h2, .lf-dark .lf-h2 .elementor-heading-title { color: var(--lf-white); }
.lf-muted { color: var(--lf-gray-text); }

/* ---- Buttons ------------------------------------------------------------- */
/* Works on plain <a class="lf-btn"> and on Elementor Button widgets with the
   CSS class lf-btn / lf-btn--secondary / lf-btn--inverse / lf-btn--on-dark. */
.lf-btn,
.lf-btn .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border: 2px solid transparent;
	border-radius: var(--lf-radius-pill);
	background: var(--lf-cta);
	color: var(--lf-white);
	font-family: var(--lf-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.lf-btn .elementor-button { fill: currentColor; }
.lf-btn:hover,
.lf-btn .elementor-button:hover,
.lf-btn .elementor-button:focus {
	background: color-mix(in srgb, var(--lf-cta) 90%, transparent);
	color: var(--lf-white);
}
/* Trailing arrow-up-right, always present. */
.lf-btn::after,
.lf-btn .elementor-button .elementor-button-text::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	vertical-align: -3px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s;
}
a.lf-btn::after { margin-left: 0; }
.lf-btn:hover::after,
.lf-btn .elementor-button:hover .elementor-button-text::after { transform: translate(2px, -2px); }

.lf-btn--sm, .lf-btn--sm .elementor-button { height: 32px; padding: 0 14px; }

.lf-btn--secondary, .lf-btn--secondary .elementor-button {
	background: transparent;
	border-color: var(--lf-navy);
	color: var(--lf-navy);
}
.lf-btn--secondary:hover, .lf-btn--secondary .elementor-button:hover {
	background: var(--lf-navy);
	color: var(--lf-white);
}
.lf-btn--on-dark, .lf-btn--on-dark .elementor-button {
	background: transparent;
	border-color: rgba(255,255,255,.4);
	color: var(--lf-white);
}
.lf-btn--on-dark:hover, .lf-btn--on-dark .elementor-button:hover {
	background: var(--lf-white);
	color: var(--lf-navy);
}
.lf-btn--inverse, .lf-btn--inverse .elementor-button {
	background: var(--lf-white);
	color: var(--lf-navy);
}
.lf-btn--inverse:hover, .lf-btn--inverse .elementor-button:hover {
	background: rgba(255,255,255,.9);
	color: var(--lf-navy);
}

/* ---- Cards and inputs ---------------------------------------------------- */
.lf-card {
	background: var(--lf-white);
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius-md);
}
.lf-input,
.lf-form input[type="text"],
.lf-form input[type="email"],
.lf-form input[type="tel"],
.lf-form textarea,
.lf-form select {
	width: 100%;
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius-md);
	background: var(--lf-paper);
	padding: 12px 16px;
	font-size: 16px;
	color: var(--lf-ink);
	box-shadow: none;
}
.lf-input::placeholder, .lf-form ::placeholder { color: var(--lf-gray-text); opacity: 1; }
.lf-input:focus,
.lf-form input:focus,
.lf-form textarea:focus,
.lf-form select:focus {
	outline: none;
	border-color: var(--lf-navy);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--lf-navy) 20%, transparent);
}

/* ---- Screen-reader helper ------------------------------------------------ */
.lf-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

/* ---- Elementor resets ---------------------------------------------------- */
/* Elementor writes --display:flex per container; grid helpers override it. */
.lf-grid { --display: grid !important; }

/* ==========================================================================
   Global components
   ========================================================================== */

/* ---- Astra cleanup ------------------------------------------------------- */
.site-content > .ast-container { max-width: none; padding: 0; display: block; }
.ast-separate-container, .ast-plain-container, .site-content { background: var(--lf-paper); }
#content:focus { outline: none; }

/* ---- Skip link ----------------------------------------------------------- */
.lf-skip {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	padding: 8px 16px; border-radius: var(--lf-radius-md);
	background: var(--lf-navy); color: var(--lf-white); font-size: 14px; font-weight: 500; text-decoration: none;
}
.lf-skip:focus { top: 16px; color: var(--lf-white); }

/* ---- Wordmark ------------------------------------------------------------ */
.lf-wordmark {
	font-family: var(--lf-font); font-size: 20px; font-weight: 700; letter-spacing: -0.025em; line-height: 1;
	text-decoration: none; color: var(--lf-white); transition: color .3s;
}
.lf-header.is-solid .lf-wordmark,
.lf-wordmark--footer {
	background: var(--lf-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lf-wordmark--footer { font-size: 18px; display: inline-block; }

/* ---- Header (floating pill) ---------------------------------------------- */
.lf-header { position: fixed; top: 16px; left: 16px; right: 16px; z-index: 100; }
.admin-bar .lf-header { top: 48px; }
@media (max-width: 782px) { .admin-bar .lf-header { top: 62px; } }
@media (min-width: 640px) { .lf-header { left: 24px; right: 24px; } }
.lf-header__pill {
	max-width: var(--lf-container-medium); height: 64px; margin: 0 auto; padding: 0 16px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	border: 1px solid transparent; border-radius: var(--lf-radius-pill);
	background: transparent; box-shadow: none; transition: all .3s;
}
@media (min-width: 640px) { .lf-header__pill { padding: 0 24px; } }
.lf-header.is-solid .lf-header__pill {
	background: color-mix(in srgb, var(--lf-paper) 95%, transparent);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-color: var(--lf-border); box-shadow: var(--lf-shadow-lg);
}
.lf-nav { display: none; }
.lf-nav ul { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.lf-nav__link { font-size: 14px; font-weight: 500; color: var(--lf-white); text-decoration: none; transition: color .3s, opacity .2s; }
.lf-nav__link:hover { opacity: .75; color: var(--lf-white); }
.lf-header.is-solid .lf-nav__link, .lf-header.is-solid .lf-nav__link:hover { color: var(--lf-ink); }
.lf-header__cta { display: none !important; }
@media (min-width: 768px) {
	.lf-nav { display: block; }
	.lf-header__cta { display: inline-flex !important; }
	.lf-burger { display: none !important; }
}
.lf-burger {
	display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
	width: 44px; height: 44px; margin-right: -10px; padding: 0 12px;
	background: transparent !important; border: 0; cursor: pointer;
}
.lf-burger span { display: block; height: 2px; border-radius: 2px; background: var(--lf-white); transition: transform .3s, opacity .3s, background-color .3s; }
.lf-header.is-solid .lf-burger span { background: var(--lf-ink); }
.lf-header.is-open .lf-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lf-header.is-open .lf-burger span:nth-child(2) { opacity: 0; }
.lf-header.is-open .lf-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lf-mobile {
	max-width: var(--lf-container-medium); margin: 8px auto 0; padding: 16px;
	background: var(--lf-white); border: 1px solid var(--lf-border); border-radius: var(--lf-radius-3xl); box-shadow: var(--lf-shadow-lg);
}
.lf-mobile[hidden] { display: none; }
.lf-mobile ul { margin: 0 0 12px; padding: 0; list-style: none; }
.lf-mobile__link {
	display: block; padding: 8px 12px; border-radius: var(--lf-radius-md);
	font-size: 14px; font-weight: 500; color: var(--lf-ink); text-decoration: none;
}
.lf-mobile__link:hover { background: var(--lf-gray-50); color: var(--lf-ink); }
.lf-mobile .lf-btn { width: 100%; }

/* Pages without a dark hero start below the pill. */
body:not(.lf-has-hero) .site-content { padding-top: 0; }

/* ---- Footer -------------------------------------------------------------- */
.lf-footer { background: var(--lf-white); border-top: 1px solid var(--lf-border); }
.lf-footer__top { display: flex; flex-direction: column; gap: 32px; padding-block: 48px; }
@media (min-width: 768px) { .lf-footer__top { flex-direction: row; justify-content: space-between; } }
.lf-footer__addr { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--lf-gray-text); }
.lf-footer__contacts { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.lf-footer__contacts a { color: var(--lf-navy); text-decoration: none; }
.lf-footer__contacts a:hover { text-decoration: underline; }
.lf-footer__nav { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lf-footer__nav a { font-size: 14px; color: var(--lf-gray-text); text-decoration: none; }
.lf-footer__nav a:hover { color: var(--lf-navy); }
.lf-footer__bottom {
	max-width: var(--lf-container); margin: 0 auto; padding: 24px var(--lf-gutter);
	border-top: 1px solid var(--lf-border); text-align: center; font-size: 12px; line-height: 16px; color: var(--lf-gray-text);
}
.lf-footer__bottom p { margin: 0; }
.lf-footer__bottom p + p { margin-top: 8px; }
.lf-footer__bottom a { color: inherit; text-decoration: underline; }
.lf-footer__bottom a:hover { color: var(--lf-navy); }

/* ---- 404 ----------------------------------------------------------------- */
.lf-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 128px var(--lf-gutter) 64px; text-align: center; }
.lf-404__inner { max-width: 448px !important; }
.lf-404__num { margin: 0; font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -0.025em; color: color-mix(in srgb, var(--lf-ink) 10%, transparent); }
.lf-404__title { margin: -24px 0 0; font-size: 30px; line-height: 36px; }
@media (min-width: 640px) { .lf-404__title { font-size: 36px; line-height: 40px; } }
.lf-404__text { margin: 16px 0 32px; }

/* ---- Info notice (cookies + AI disclosure) ------------------------------- */
.lf-notice {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	background: var(--lf-white); border-top: 1px solid var(--lf-border); box-shadow: 0 -4px 12px rgba(0,0,0,.06); padding: 16px 0;
}
.lf-notice[hidden] { display: none; }
.lf-notice__inner { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (min-width: 640px) { .lf-notice__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; } }
.lf-notice p { margin: 0; font-size: 14px; line-height: 20px; color: var(--lf-gray-text); }
.lf-notice a { color: var(--lf-navy); text-decoration: underline; }
.lf-btn--noicon::after { display: none !important; }
