
:root {
	/* responsive margins / paddings */
	--margin-sm: 16px;
	--margin-md: 32px;
}

* {
	--min-screen-size: 430;
	--max-screen-size: 1440;
	--interpolate-diff: calc(var(--max-font-size) - var(--min-font-size));
	--interpolate: clamp(calc(var(--min-font-size) * 1px), calc((var(--min-font-size) * 1px) + var(--interpolate-diff) * ((100vw - calc(var(--min-screen-size) * 1px)) / (var(--max-screen-size) - var(--min-screen-size)))), calc(var(--max-font-size) * 1px));
}

html {
	height: 100%;
	font-size: 16px;
}

body {
    background-color: #000;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll from decorative elements */
    min-height: 100vh;
}

/* Atmospheric Mesh Background */
.homepage-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.homepage-circle {
    position: absolute;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.homepage-circle1 {
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.2) 0%, rgba(255, 0, 0, 0) 70%);
}

.homepage-circle2 {
    bottom: -300px;
    left: -200px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, rgba(255, 0, 0, 0) 70%);
}

.homepage-circle3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 0, 0, 0.05) 0%, rgba(255, 0, 0, 0) 70%);
}



/* text utility classes */

.text1 {
	font-style: normal;
	letter-spacing: 0px;
}

.base-bold-desktop {
	color: #fff;
	font-size: 16px;
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0px;
}

.large-bold-desktop-a {
	color: #f00;
	font-size: 19px;
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0px;
}

.small-regular-mobile {
	color: #fff;
	font-size: 13px;
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0px;
}

.h2-bold-desktop {
	color: #fff;
	--min-font-size: 27; --max-font-size: 48; font-size: var(--interpolate);
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0px;
}

.base-regular-mobile-a {
	color: #a1aeb7;
	font-size: 16px;
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0px;
}

.h1-bold-desktop {
	color: #fff;
	--min-font-size: 31; --max-font-size: 57; font-size: var(--interpolate);
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0px;
}

.base-regular-desktop2 {
	color: #fff;
	font-size: 16px;
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0px;
}

.base-regular-desktop1 {
	color: #fff;
	--min-font-size: 15; --max-font-size: 16; font-size: var(--interpolate);
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0px;
}

.base-regular-mobile {
	color: #fff;
	font-size: 16px;
	font-family: 'Montserrat';
	font-weight: 400;
	letter-spacing: 0px;
	text-decoration: none;
}

.large-bold-desktop {
	color: #fff;
	font-size: 19px;
	font-family: 'Montserrat';
	font-weight: 700;
	letter-spacing: 0px;
}

.h6-bold-desktop {
	color: #fff;
	font-size: 23px;
	font-family: 'Montserrat';
	font-weight: 700;
	letter-spacing: 0px;
}



/* button hover utility classes */

.hover-bright:hover {
	filter: brightness(1.2);
}

/* Header Global Fix */
header, .header {
    z-index: 100000 !important;
}

/* Submenu Styling Global - Premium Design */
.despre-noi-dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pod invizibil pentru a menține meniul deschis la mouse move */
.despre-noi-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: 1;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: rgba(27, 27, 27, 0.95); /* Glassmorphism */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 0, 0, 0.1); /* Glow effect */
    z-index: 1000000;
    border-radius: 12px;
    padding: 8px 0;
    margin-top: -5px; /* Împingem meniul un pic mai sus ca să se suprapună cu padding-ul de legătură */
}

.submenu a {
    color: #a1aeb7 !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    display: block !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent;
    text-align: left !important;
}

.submenu a:hover {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 0, 0, 0) 100%) !important;
    color: #fff !important;
    border-left: 3px solid #f00 !important;
    padding-left: 25px !important;
}

/* Submenu opens ONLY on arrow click (JS controlled) - hover disabled */
/* .despre-noi-dropdown:hover .submenu { display: block; } -- REMOVED */

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #f00;
    cursor: pointer;
    padding: 5px;
    user-select: none;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.despre-noi-dropdown.active .submenu {
    display: block !important;
}

/* GLOBAL HEADER STYLING */
header, .header {
    container: header / inline-size;
    position: absolute; top: 0; left: 0; right: 0; 
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    background-color: #000;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.header-group1 { width: 63px; flex-shrink: 0; }
.header-col { margin-top: 17px; width: 182px; display: flex; flex-direction: column; gap: 9px; flex-shrink: 0; }
.header-group { flex-shrink: 0; }
.header-group3 { width: 123px; align-self: start; }
.header-row { margin-left: 92px; margin-top: 16px; display: flex; align-items: flex-start; }

.row-a { margin-top: 2px; display: flex; align-items: flex-start; justify-content: center; gap: 8px; padding: 0 16px; }
.row-text1 { text-align: center; white-space: nowrap; }
.row-xnix-line1 { margin-top: 4px; width: 24px; flex-shrink: 0; }

.header-stomatologie { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; text-align: center; margin-top: 2px; }
.header-line-bottom { width: 81px; height: 0; align-self: center; border-top: 1px solid #f00; border-radius: 1px; }

.header-text-preturi { margin: 2px 16px 0 16px; flex-shrink: 0; text-align: center; white-space: nowrap; }
.header-text-contact { margin: 2px 16px 0 16px; flex-shrink: 0; text-align: center; white-space: nowrap; }
.header-text-right { margin-left: 50px; margin-top: 19px; width: 32px; flex-shrink: 0; color: #fff; text-align: center; }

/* GLOBAL FOOTER STYLING */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    line-height: 1.875;
    background-color: #000;
    padding-top: 27px;
    padding-bottom: 30px;
    width: 100%;
}

.footer-row { margin: 0 auto; width: 90%; max-width: 1119px; display: flex; align-items: flex-start; justify-content: space-between; }
.footer-layer { width: 258px; }
.footer-text-link { 
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    text-align: right !important; 
}
.footer-text-link a {
    display: block !important;
    width: 100% !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}
.footer-text-link a:hover {
    color: #f00;
    opacity: 1;
    padding-right: 5px;
}
.footer-line { margin: 27px 0; height: 1px; width: 100%; max-width: 1120px; background-color: #c2d1d9; opacity: 0.3; }
.footer-row-bottom { margin: 0 auto; width: 90%; max-width: 1120px; display: flex; align-items: center; justify-content: space-between; }
.footer-social-media { display: flex; align-items: center; gap: 20px; }
.footer-social-media img { width: 24px; height: 24px; }
.footer-text-copyright { color: #fff; opacity: 0.7; }

/* PARTNER LOGOS (Now inside footer) */
.homepage-row5 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 41px;
    width: 100%;
    background-color: #1b1b1b;
    padding: 40px 24px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.homepage-img { flex-shrink: 0; }
.homepage-biol-big1 { width: 187px; }
.homepage-bdr-brand { width: 168px; }
.homepage-biol-big2 { width: 162px; }
.homepage-3shape-logo { width: 167px; }
.homepage-bicon { width: 104px; }
.homepage-bredent { width: 123px; }

/* SHARED BUTTONS */
.btn {
    display: inline-flex;
    height: 48px;
    padding: 8px 32px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: linear-gradient(180deg, #F00 0%, #C80000 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* RESPONSIVE HEADER */
/* RESPONSIVE HEADER */
@container header (width < 800px) {
    .header-row { display: none; }
    .header { justify-content: space-between; }
}
.active-link {
    border-bottom: 2px solid #FF0000;
    padding-bottom: 4px;
    width: fit-content;
    margin: 0 auto;
}
