/********** MAW Media — 3D Premium CSS 2026 **********/

:root {
    --primary: #059669;
    --primary-light: #34D399;
    --primary-dark: #047857;
    --accent: #F59E0B;
    --accent-light: #FCD34D;
    --secondary: #64748B;
    --light: #F8FAFC;
    --dark: #0F172A;
    --surface: #FFFFFF;
    --surface-warm: #F0FDF4;
    --text-body: #334155;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --shadow-color: 148, 163, 184;
    --gradient-start: #059669;
    --gradient-end: #0D9488;
    /* 3D shared */
    --card-radius: 20px;
    --card-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.06), 0 24px 48px rgba(5,150,105,0.06);
    --card-shadow-hover: 0 4px 8px rgba(0,0,0,0.06), 0 16px 32px rgba(0,0,0,0.1), 0 32px 64px rgba(5,150,105,0.12);
    --card-border: 1px solid rgba(255,255,255,0.6);
    --glass-bg: rgba(255,255,255,0.75);
    --glass-blur: blur(20px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
    perspective: 1200px;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-4, .display-5, .display-6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
}

::selection {
    background: var(--primary-light);
    color: var(--dark);
}


/*** Back to Top — 3D floating ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background: linear-gradient(135deg, var(--primary), var(--gradient-end)) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(5,150,105,0.3), 0 12px 28px rgba(5,150,105,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 16px !important;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 16px rgba(5,150,105,0.4), 0 18px 36px rgba(5,150,105,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

.fw-medium { font-weight: 500; }


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Buttons — 3D with depth ***/
.btn {
    transition: all .35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--gradient-end)) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(5,150,105,0.3), 0 1px 0 rgba(255,255,255,0.15) inset;
    border-radius: 14px !important;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(5,150,105,0.4), 0 2px 0 rgba(255,255,255,0.2) inset;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
    color: #FFFFFF;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(5,150,105,0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.4) !important;
    backdrop-filter: blur(8px);
    border-radius: 14px !important;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.7) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.1);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.rounded-pill { border-radius: 14px !important; }


/*** Topbar — 3D elevated bar ***/
.container-fluid.bg-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--gradient-end)) !important;
    box-shadow: 0 4px 20px rgba(5,150,105,0.25), inset 0 -1px 0 rgba(0,0,0,0.1);
    position: relative;
    z-index: 1001;
}


/*** Navbar — Glassmorphism 3D ***/
.sticky-top {
    top: -100px;
    transition: all .5s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: var(--glass-bg) !important;
    border-bottom: var(--card-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 0 rgba(255,255,255,0.8) inset;
    z-index: 1000;
}

.navbar .navbar-nav .nav-link {
    margin-right: 4px;
    padding: 8px 16px;
    color: var(--text-body);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    outline: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar .navbar-nav .nav-link:hover {
    color: var(--primary);
    background: var(--surface-warm);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(5,150,105,0.08);
}

.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--surface-warm);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(5,150,105,0.1), inset 0 -2px 0 var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link { margin-right: 0; padding: 10px 14px; }
    .navbar .navbar-nav { margin-top: 15px; border-top: 1px solid var(--border); }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        border-radius: 16px;
        box-shadow: var(--card-shadow);
        backdrop-filter: var(--glass-blur);
        background: var(--glass-bg);
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Page Header ***/
.page-header {
    background: linear-gradient(135deg, #0F172A 0%, #064E3B 50%, #0F172A 100%);
}
.page-header .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.6); }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.85);
}
.page-header h1 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}


/*** Service Cards — 3D Floating ***/
.service-item {
    perspective: 800px;
}

.service-item .service-text {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: all .45s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    overflow: hidden;
}

/* Shine overlay */
.service-item .service-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
    z-index: 3;
    pointer-events: none;
}

.service-item:hover .service-text::before {
    left: 120%;
}

.service-item:hover .service-text {
    top: -1rem;
    border-color: var(--primary-light);
    box-shadow: var(--card-shadow-hover);
    transform: rotateX(2deg);
}

.service-item .service-text h5 {
    transition: .4s;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}
.service-item:hover .service-text h5 { color: var(--primary); }

.service-item .service-text p {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.7;
}

.service-item .service-btn {
    position: absolute;
    width: 80%;
    height: 3rem;
    left: 10%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    box-shadow: 0 4px 12px rgba(var(--shadow-color), 0.08);
    transition: all .5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}
.service-item:hover .service-btn { bottom: -1.5rem; }

.service-item .service-btn a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Icon circles — 3D orbs */
.service-item .rounded-circle {
    box-shadow: 0 4px 12px rgba(5,150,105,0.3), inset 0 2px 4px rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-item:hover .rounded-circle {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(5,150,105,0.4), inset 0 2px 4px rgba(255,255,255,0.3);
}


/*** About ***/
.about { background: transparent; }


/*** Team / De Ce Noi — 3D Cards ***/
.team-item {
    position: relative;
    text-align: center;
    border-radius: var(--card-radius);
    border: var(--card-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--card-shadow);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

/* Shine effect */
.team-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.6s ease;
    z-index: 3;
    pointer-events: none;
}
.team-item:hover::before { left: 120%; }

.team-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-6px) rotateX(2deg) rotateY(-1deg);
}

.team-item h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

.team-item .team-social {
    position: absolute;
    padding: 0;
    top: 15px;
    left: 0;
    overflow: hidden;
}
.team-item .team-social li {
    list-style-type: none;
    margin-bottom: 10px;
    margin-left: -50px;
    opacity: 0;
    transition: .5s;
}
.team-item:hover .team-social li { margin-left: 15px; opacity: 1; }
.team-item .team-social li .btn {
    background: var(--surface);
    color: var(--primary);
    border-radius: 40px;
    transition: .5s;
    box-shadow: 0 2px 8px rgba(var(--shadow-color), 0.1);
}
.team-item .team-social li .btn:hover {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--gradient-end));
}
.team-item .team-social li:nth-child(1) { transition-delay: .1s; }
.team-item .team-social li:nth-child(2) { transition-delay: .2s; }
.team-item .team-social li:nth-child(3) { transition-delay: .3s; }
.team-item .team-social li:nth-child(4) { transition-delay: .4s; }
.team-item .team-social li:nth-child(5) { transition-delay: .5s; }

/* De Ce Noi icon circles — 3D orbs */
.team-item .btn-lg-square.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--gradient-end)) !important;
    box-shadow: 0 6px 20px rgba(5,150,105,0.35), inset 0 2px 4px rgba(255,255,255,0.25);
    border: none !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.team-item:hover .btn-lg-square.bg-primary {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 28px rgba(5,150,105,0.45), inset 0 2px 4px rgba(255,255,255,0.3);
}


/*** Cifre Cheie — 3D elevated band ***/
#cifre {
    box-shadow: 0 -4px 20px rgba(5,150,105,0.15), 0 4px 20px rgba(5,150,105,0.15);
    position: relative;
}
#cifre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
#cifre::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.container-fluid.bg-primary .display-4 {
    color: #FFFFFF !important;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}


/*** Quote Form — 3D Container ***/
#oferta {
    position: relative;
}

#oferta .form-floating {
    perspective: 600px;
}

/*** Forms — 3D Inputs ***/
.form-control,
.form-select {
    border: 2px solid var(--border) !important;
    border-radius: 14px !important;
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background: var(--surface);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02), inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(5,150,105,0.1), 0 4px 12px rgba(5,150,105,0.08), inset 0 1px 2px rgba(0,0,0,0.02) !important;
    color: var(--dark);
    transform: translateY(-1px);
}

.form-floating > label {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
}

/* Phone CTA in quote section — 3D */
#oferta .border-primary {
    border-radius: 16px !important;
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
#oferta .border-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

/* Submit button in form */
#oferta .btn-primary.w-100 {
    padding: 1rem !important;
    font-size: 1.05rem;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(5,150,105,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
#oferta .btn-primary.w-100:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 28px rgba(5,150,105,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}


/*** Footer — 3D Layered ***/
.footer {
    background: linear-gradient(180deg, var(--dark) 0%, #0B1120 100%) !important;
    color: #CBD5E1;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Top glow line */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0.4;
}

.footer h4 {
    color: #FFFFFF !important;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
}

.footer p, .footer h6 { color: #CBD5E1; }

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 4px 0;
    text-align: left;
    color: #CBD5E1;
    font-weight: normal;
    font-family: 'Inter', sans-serif;
    text-transform: capitalize;
    transition: all .3s ease;
    border-radius: 6px;
}
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}
.footer .btn.btn-link:hover {
    color: var(--primary-light);
    padding-left: 8px;
    box-shadow: none;
}

.footer .form-control {
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #E2E8F0 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}
.footer .form-control::placeholder { color: rgba(255,255,255,0.35); }
.footer .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(5,150,105,0.15), inset 0 1px 2px rgba(0,0,0,0.1) !important;
}

.footer .btn-light {
    border-radius: 12px !important;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}
.footer .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,255,255,0.15);
}

/* Social buttons in footer — 3D glass orbs */
.footer .btn-square.btn-light {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1);
    color: #CBD5E1 !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
.footer .btn-square.btn-light:hover {
    background: linear-gradient(135deg, var(--primary), var(--gradient-end)) !important;
    border-color: transparent;
    color: #FFFFFF !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(5,150,105,0.35);
}


/*** Copyright — 3D depth ***/
.copyright {
    background: rgba(0,0,0,0.3);
    color: #94A3B8;
    border-top: 1px solid rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
}
.copyright a:hover { color: var(--primary-light) !important; }


/*** Section titles — 3D accented ***/
.text-primary { color: var(--primary) !important; }

.fs-5.fw-medium.text-primary {
    font-family: 'Inter', sans-serif;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem !important;
    display: inline-block;
    padding: 6px 16px;
    background: var(--surface-warm);
    border-radius: 100px;
    border: 1px solid rgba(5,150,105,0.1);
}

.text-muted { color: var(--text-muted) !important; }


/*** About feature boxes — 3D ***/
#despre .col-sm-6 > div:first-child {
    box-shadow: 0 2px 8px rgba(5,150,105,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#despre .col-sm-6:hover > div:first-child {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(5,150,105,0.15);
}


/*** Topbar social icons — 3D glass ***/
.container-fluid.bg-primary .btn-sm-square {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}
.container-fluid.bg-primary .btn-sm-square:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}


/*** Generic page sections — depth separators ***/
.container-fluid.py-5 {
    position: relative;
}


/*** Carousel leftovers cleanup ***/
.carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center;
    background: linear-gradient(135deg, rgba(15,23,42,0.72), rgba(5,150,105,0.28));
    z-index: 1;
}
.carousel-caption h1 { color: #FFFFFF !important; text-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.carousel-control-prev, .carousel-control-next { width: 15%; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 3.5rem; height: 3.5rem; border-radius: 50%;
    background-color: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease;
}
@media (max-width: 768px) {
    #header-carousel .carousel-item { position: relative; min-height: 450px; }
    #header-carousel .carousel-item img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
}


/*** ============================== ***/
/*** RESPONSIVE MEDIA QUERIES       ***/
/*** ============================== ***/

/* Tablets and below */
@media (max-width: 991.98px) {
    /* Hero section */
    [style*="min-height: 85vh"] {
        min-height: 70vh !important;
    }

    /* Page headers */
    [style*="min-height: 45vh"] {
        min-height: 35vh !important;
    }

    /* About 3D box */
    #despre [style*="min-height: 400px"] {
        min-height: 300px !important;
    }

    /* Heading sizes */
    .display-1 { font-size: 2.5rem !important; }
    .display-2 { font-size: 2.2rem !important; }
    .display-5 { font-size: 1.8rem !important; }
    .display-6 { font-size: 1.5rem !important; }

    /* Navbar links spacing */
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 14px;
    }
}

/* Mobile phones */
@media (max-width: 767.98px) {
    /* Hero section mobile */
    [style*="min-height: 85vh"] {
        min-height: 60vh !important;
        padding-top: 2rem !important;
    }

    /* Page headers mobile */
    [style*="min-height: 45vh"] {
        min-height: 30vh !important;
    }

    /* About section */
    #despre [style*="min-height: 400px"] {
        min-height: 250px !important;
    }

    /* Heading sizes mobile */
    .display-1 { font-size: 2rem !important; }
    .display-2 { font-size: 1.8rem !important; }
    .display-4 { font-size: 1.6rem !important; }
    .display-5 { font-size: 1.5rem !important; }
    .display-6 { font-size: 1.3rem !important; }

    /* Hero text */
    .fs-4 { font-size: 1rem !important; }

    /* Service cards — remove 3D tilt on mobile (performance) */
    .service-item:hover .service-text {
        transform: none;
        top: -0.5rem;
    }

    /* Team cards — simpler hover on mobile */
    .team-item:hover {
        transform: translateY(-3px);
    }

    /* Cifre Cheie — 2 per row, tighter */
    #cifre .display-4 {
        font-size: 2rem !important;
    }

    /* Quote form section */
    #oferta .display-5 {
        font-size: 1.5rem !important;
    }

    /* Footer columns */
    .footer .col-lg-3 {
        margin-bottom: 1rem;
    }

    .footer h4 {
        font-size: 1.1rem;
    }

    /* Section title pills */
    .fs-5.fw-medium.text-primary {
        font-size: 0.75rem !important;
        padding: 5px 12px;
    }

    /* Buttons — slightly smaller on mobile */
    .btn.py-3.px-5 {
        padding: 0.65rem 1.5rem !important;
        font-size: 0.9rem;
    }

    /* Phone CTA in quote */
    #oferta .fs-5 {
        font-size: 1rem !important;
    }

    /* Pie chart container */
    #pie-portfolio {
        overflow-x: hidden;
    }

    /* Google Maps */
    iframe.w-100 {
        min-height: 220px !important;
    }

    /* Textarea heights */
    textarea.form-control {
        min-height: 100px !important;
        height: auto !important;
    }
}

/* Extra small phones */
@media (max-width: 575.98px) {
    /* Hero */
    [style*="min-height: 85vh"] {
        min-height: 55vh !important;
    }

    .display-1 { font-size: 1.75rem !important; }

    /* About box */
    #despre [style*="min-height: 400px"] {
        min-height: 200px !important;
    }

    /* Form floating labels — better spacing */
    .form-floating {
        margin-bottom: 0.25rem;
    }

    /* Footer newsletter */
    .footer .position-relative.w-100 {
        margin-top: 0.5rem;
    }

    /* Back to top — smaller on mobile */
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
    .back-to-top.btn-lg-square {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Large desktops */
@media (min-width: 1400px) {
    /* Slight scaling up for very large screens */
    .container {
        max-width: 1320px;
    }

    .display-1 { font-size: 4.5rem; }
}
