/* =============================================================
   AIDE NUMERIQUE COLOMBES - CSS
   Copié des valeurs exactes du site WordPress/Elementor
   Breakpoints: 1440px, 1254px, 1140px (tablet), 767px (mobile)
   ============================================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #414141;
    background-color: #FAFAFA;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== SCROLLBAR (from WP custom CSS) ===== */
body::-webkit-scrollbar { width: 5px; }
body::-webkit-scrollbar-thumb { background-color: #F9D44F; border-radius: 15px; }

/* ===== LAYOUT ===== */
.page-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 1920px;
    margin: 0 auto;
    gap: 0;
}

/* ==========================================================
   SIDEBAR (Desktop)
   WP: position sticky, height 97vh, overflow-y scroll
   box-shadow: 9px 0px 10px -6px rgba(0, 0, 0, 0.15)
   z-index: 1, background: #FFFFFF
   ========================================================== */
.sidebar {
    width: 400px;
    min-width: 400px;
    flex-grow: 0;
    flex-shrink: 0;
    background: #FFFFFF;
    box-shadow: 9px 0px 10px -6px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background-color: rgba(249, 212, 79, 0.4); border-radius: 15px; }

.sidebar__top {
    padding: 42px 75px 0;
}

.sidebar__logo {
    text-align: center;
    margin-bottom: 10px;
}

.sidebar__logo img {
    width: 90%;
    margin: 0 auto;
}

.sidebar__tagline {
    font-size: 14px;
    font-weight: 500;
    color: #414141;
    text-align: center;
    letter-spacing: 1.4px;
    margin-top: 30px;
}

.sidebar__divider {
    border: none;
    height: 2px;
    background: #41414121;
    margin: 15px 0;
}

.sidebar__nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 94px;
}

.sidebar__nav a {
    display: block;
    padding: 10px 0;
    padding-left: 30px;
    color: #414141;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.4px;
    cursor: pointer;
    transition: none;
}

.sidebar__nav a:hover,
.sidebar__nav a.active {
    font-weight: 800;
}

/* WP: background-image: url(Subtract.png); background-repeat: no-repeat; background-position-y: center; */
.sidebar__nav a.active {
    position: relative;
    background-image: url('../images/Subtract.png');
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: 0;
    background-size: 20px;
}

.sidebar__bottom {
    padding: 0 45px;
    text-align: center;
}

.sidebar__contact-label {
    font-size: 14px;
    font-weight: 500;
    color: #414141;
    letter-spacing: 3.22px;
    margin-bottom: 4px;
}

.sidebar__contact-name {
    font-size: 22px;
    font-weight: 500;
    color: #414141;
    letter-spacing: 2.4px;
    margin-bottom: 12px;
}

.sidebar__btn-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFE177;
    color: #414141;
    border-radius: 6px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 4.83px;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 314px;
    height: 67px;
    margin: 0 auto 8px;
    transition: background-color 0.3s;
}

.sidebar__btn-phone:hover {
    background: #F9D44F;
}

.sidebar__btn-email {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #414141;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.48px;
    border: 1px solid #B3B3B3;
    width: 100%;
    max-width: 314px;
    height: 67px;
    margin: 0 auto;
    transition: background-color 0.3s;
}

.sidebar__btn-email:hover {
    background: #FAFAFA;
}

.sidebar__footer-bar {
    background: #414141;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 45px;
    margin-top: 17px;
}

.sidebar__credit {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar__credit a {
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
}

.sidebar__credit-logo {
    height: 12px;
    width: auto;
    display: inline;
}

/* ==========================================================
   MOBILE HEADER (hidden on desktop, visible at <=1140px)
   WP: position fixed, box-shadow: 0px -9px 25px 6px rgba(0, 0, 0, 0.18)
   ========================================================== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0px -9px 25px 6px rgba(0, 0, 0, 0.18);
    z-index: 200;
    padding: 5px 20px;
    align-items: center;
    justify-content: space-between;
}

.mobile-header__logo img {
    height: 39px;
}

.mobile-header__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* WP post-285: font-size:23px; font-weight:800; letter-spacing:6px; padding:25px 67px; at tablet: font-size:14px; padding:15px 9px */
.mobile-header__phone {
    display: none;
    background: #FFE177;
    color: #414141;
    padding: 15px 9px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 6px;
    font-family: 'Poppins', sans-serif;
    margin-right: 30px;
}

.mobile-header__phone:hover {
    background: #F9D44F;
}

.mobile-header__burger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 22px;
    position: relative;
}

.mobile-header__burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #414141;
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s, top 0.3s;
}

.mobile-header__burger span:nth-child(1) { top: 0; }
.mobile-header__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-header__burger span:nth-child(3) { top: 100%; transform: translateY(-100%); }

.mobile-header__burger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-header__burger.active span:nth-child(2) {
    opacity: 0;
}

.mobile-header__burger.active span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ==========================================================
   MOBILE NAV PANEL
   WP post-285: width 383px, height 95vh
   box-shadow: 0px 29px 26.5px 0px rgba(0, 0, 0, 0.15)
   ========================================================== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 198;
}
.mobile-nav-overlay.active { display: block; }

.mobile-nav {
    position: fixed;
    top: 59px;
    right: -383px;
    width: 383px;
    height: 96vh;
    background: #FFFFFF;
    z-index: 199;
    padding: 0;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: nowrap;
    transition: right 0.3s ease;
    overflow-y: scroll;
    box-shadow: 0px 29px 26.5px 0px rgba(0, 0, 0, 0.15);
}

.mobile-nav::-webkit-scrollbar { width: 5px; }
.mobile-nav::-webkit-scrollbar-thumb { background-color: #F9D44F; border-radius: 15px; }

.mobile-nav.active { right: 0; }

.mobile-nav__header {
    text-align: center;
    padding: 45px 47px;
}

.mobile-nav__header p {
    font-size: 14px;
    font-weight: 500;
    color: #414141;
    letter-spacing: 1.5px;
    line-height: normal;
}

.mobile-nav__divider {
    border: solid 2px #E6E6E6;
}

.mobile-nav__menu {
    margin: 10px 35px;
}

.mobile-nav__menu ul {
    list-style: none;
}

.mobile-nav__menu li a {
    display: block;
    padding: 12px 15px;
    color: #414141;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.4px;
    border-radius: 6px;
}

.mobile-nav__menu li a:hover { background-color: #FFE177; }

.mobile-nav__bottom {
    text-align: center;
}

.mobile-nav__btn-phone {
    display: inline-block;
    border-radius: 3.911px;
    background: #FFE177;
    color: #414141;
    font-family: 'Poppins', sans-serif;
    font-size: 13.689px;
    font-weight: 800;
    letter-spacing: 3.149px;
    text-transform: uppercase;
    margin-bottom: 18px;
    margin-top: 18px;
    padding: 12px 70px;
}

.mobile-nav__btn-email {
    display: inline-block;
    border-radius: 3.911px;
    border: 0.652px solid #C2C2C2;
    color: #414141;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.313px;
    background-color: white;
    padding: 15px 17px;
    margin-bottom: 18px;
}

.mobile-nav__credit {
    text-align: center;
    background-color: #FFF;
    padding: 10px 0;
    margin-bottom: 38px;
}

.mobile-nav__credit a {
    color: #414141;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mobile-nav__credit-logo {
    height: 21px;
    width: auto;
    display: inline;
}

/* ==========================================================
   MAIN CONTENT
   ========================================================== */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* ==========================================================
   BUTTONS (global)
   WP: font-family: Poppins, font-weight: 500, border-radius: 6px
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none;
    padding: 12px 45px;
}

.btn--primary {
    background: #FFE177;
    color: #414141;
}

.btn--primary:hover {
    background: #F9D44F;
}

.btn--outline {
    background: #FFFFFF;
    color: #414141;
    border: 1px solid #C2C2C2;
}

.btn--outline:hover {
    background: #414141;
    color: #FFFFFF;
}

/* ==========================================================
   HERO SECTION
   WP aae6dd9: margin 5% 8% 0 6%, padding 3% 0% 3% 3%
   border-radius 6px, background-size cover, background-position top right
   overlay-opacity 0.83
   ========================================================== */
.hero {
    background: #FAFAFA;
}

.hero__banner {
    width: auto;
    margin: 5% 8% 0 6%;
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 6px;
    padding: 3% 0% 3% 3%;
    display: flex;
    align-items: center;
}

/* WP c47dde5: background #FFFFFFCC, border-radius 6px, padding 4% 1% 3% 3% */
.hero__text-box {
    max-width: 503px;
    background: rgba(255, 255, 255, 0.8);
    padding: 4% 1% 3% 3%;
    border-radius: 6px;
}

.hero__text-box--mobile {
    display: none;
}

/* WP 552f6df: font-size 1.7vw, line-height 3vw, letter-spacing 1.9px, font-weight 500 */
.hero__title {
    font-size: 1.7vw;
    font-weight: 500;
    color: #414141;
    letter-spacing: 1.9px;
    line-height: 3vw;
    margin-bottom: 16px;
}

.hero__title strong {
    font-weight: 700;
}

/* WP c7261da: font-size 16px, font-weight 500, line-height 27px, letter-spacing 0.4px */
.hero__description {
    font-size: 16px;
    font-weight: 500;
    color: #414141;
    letter-spacing: 0.4px;
    line-height: 27px;
    margin-bottom: 24px;
    padding-top: 10px;
}

.hero__description strong {
    font-weight: 700;
}

.hero__phone-cta {
    display: none;
}

/* ==========================================================
   CARDS (Accessibilité, Sécurité, Sérénité)
   WP: margin 0 8% 0 6%, padding-top 32px
   Cards: min-height 308px, border 1px solid #C2C2C2, border-radius 6px, bg #FFFFFF
   ========================================================== */
.cards {
    margin: 0 8% 0 6%;
    padding-top: 32px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
}

.card {
    width: 33.333%;
    min-height: 308px;
    background: #FFFFFF;
    border-radius: 6px;
    border: 1px solid #C2C2C2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card__icon-title {
    display: flex;
    align-items: center;
    min-height: 85px;
    border-bottom: 1px solid #C2C2C2;
    border-radius: 6px 6px 0 0;
}

.card__icon {
    width: 85px;
    min-width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #C2C2C2;
    border-radius: 6px 0 0 0;
}

.card__icon svg {
    width: 40px;
    height: 40px;
}

/* WP f54d0f1: text-align center, padding 30px 0, border-left 1px solid #C2C2C2 */
.card__title {
    font-size: 1.2vw;
    font-weight: 700;
    color: #414141;
    letter-spacing: 3.8px;
    padding: 30px 15px;
    text-align: center;
    flex: 1;
}

/* WP 09ab899: margin 23px 35px, font-size 16px, font-weight 400, line-height 26px */
.card__description {
    font-size: 16px;
    font-weight: 400;
    color: #414141;
    line-height: 26px;
    padding: 0 35px;
    margin: 23px 0;
    flex: 1;
    text-align: start;
}

/* WP 27e10a8: bg #FFF, border 1px solid #C2C2C2, radius 6px, padding 12px 45px
   hover: bg #FFDD6612, color #FEAB0BCF, border-color #FFDD66 */
.card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    border: 1px solid #C2C2C2;
    border-radius: 6px;
    background: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.4px;
    color: #414141;
    padding: 12px 45px;
    margin: 0 auto 22px;
    transition: all 0.3s ease;
}

.card__link:hover {
    background: rgba(255, 221, 102, 0.07);
    color: rgba(254, 171, 11, 0.81);
    border-color: #FFDD66;
}

/* ==========================================================
   SERVICES / PRICING
   WP f2c07cf: margin-top 50px, padding-top 70px, background #FAFAFA
   ========================================================== */
.services {
    background: #FAFAFA;
    margin: 50px 8% 0 6%;
    padding-top: 70px;
}

.service-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.service-header__title {
    font-size: 35px;
    font-weight: 700;
    color: #414141;
    letter-spacing: 3.15px;
}

.service-header__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 248px;
    height: 53px;
    background: #414141;
    border-radius: 6px 6px 0 0;
    gap: 8px;
    padding-bottom: 5px;
}

.service-header__badge-label {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 400;
}

.service-header__badge-price {
    font-size: 24px;
    color: #FFFFFF;
    font-weight: 500;
}

.service-yellow-divider {
    width: 100%;
    height: 11px;
    background: #FFDD66;
    border: none;
    margin-bottom: 12px;
}

.service-content {
    width: 100%;
    display: flex;
    gap: 22px;
}

.service-block {
    display: flex;
    flex: 1;
    min-height: 287px;
    background: #FFFFFF;
    border: 1px solid #C2C2C2;
    align-items: center;
}

.service-block--full {
    width: 100%;
}

.service-block__left {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border-right: 1px solid #C2C2C2;
    align-self: stretch;
    justify-content: center;
}

.service-block__left h3 {
    font-size: 20px;
    font-weight: 700;
    color: #414141;
    margin-bottom: 8px;
}

.service-block__left .price {
    font-size: 14px;
    color: #414141;
}

.service-block__right {
    flex: 1;
    padding: 10px;
}

.service-block__right p {
    font-size: 16px;
    color: #414141;
    line-height: 1.7;
}

.service-block__right p strong {
    font-weight: 600;
}

.service-block__right .note {
    font-size: 12px;
    color: #414141;
    margin-top: 8px;
}

.service-block__icons {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
}

.service-block__icons img {
    height: 30px;
    width: auto;
}

/* Assistance + Formation side by side */
.services__row {
    width: 100%;
    margin-top: 61px;
    display: flex;
    gap: 22px;
    padding-bottom: 30px;
}

.services__col {
    flex: 1;
}

.formation-images {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.formation-images img:nth-child(1) { width: 74px; }
.formation-images img:nth-child(2) { width: 91px; }
.formation-images img:nth-child(3) { width: 76px; }

.services__footer {
    width: 100%;
    padding: 15px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.services__footer p {
    font-size: 16px;
    color: #414141;
}

/* ==========================================================
   MAP SECTION
   ========================================================== */
.map-section {
    margin: 50px 8% 0 6%;
    background: #FFFFFF;
    padding: 30px 47px 50px 65px;
    display: flex;
    align-items: center;
}

.map-section__left {
    flex: 1;
    padding-right: 40px;
}

.map-section__left h2 {
    display: none;
}

.map-section__left img {
    width: 100%;
}

.map-section__right {
    width: 28%;
    min-width: 260px;
    display: flex;
    flex-direction: column;
}

.map-section__right h2 {
    font-size: 1.8vw;
    font-weight: 700;
    color: #414141;
    letter-spacing: 5.95px;
    margin-bottom: 30px;
}

.map-section__right-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.map-section__right-images img {
    width: 100%;
}

/* ==========================================================
   ABOUT & CONTACT
   ========================================================== */
.about-contact {
    margin: 50px 8% 0 6%;
    background: #FFFFFF;
    display: flex;
}

.about-contact__left {
    width: 48%;
    flex-shrink: 0;
    background-image: url('../images/Rectangle-380-1.png');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
}

.about-contact__text-overlay {
    background: rgba(255, 255, 255, 0.81);
    padding: 41px 53px;
    margin: 66px 63px;
    max-width: calc(100% - 126px);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.64px;
    color: #414141;
}

.about-contact__text-overlay strong {
    font-weight: 600;
}


.about-contact__right {
    flex: 1;
    padding: 40px 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================
   CONTACT FORM
   ========================================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    font-weight: 400;
    color: #414141;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    padding: 10px 16px;
    height: 45px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #E6E6E6;
    border-radius: 6px;
    color: #414141;
    background: #FFFFFF;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F9D44F;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    height: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-form .btn {
    align-self: flex-end;
}

.form-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.form-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================
   LEGAL PAGES (CGU, Mentions, Confidentialité)
   ========================================================== */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    font-family: 'Poppins', sans-serif;
    color: #414141;
    line-height: 1.8;
}

.legal-page__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #414141;
}

.legal-page__back {
    display: inline-block;
    margin-bottom: 30px;
}

.legal-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #414141;
}

.legal-page p {
    font-size: 15px;
    margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.legal-page li {
    font-size: 15px;
    margin-bottom: 8px;
}

.legal-page ul ul {
    margin-top: 8px;
    margin-bottom: 0;
}

.legal-page a {
    color: #414141;
    text-decoration: underline;
}

.legal-page a:hover {
    color: #F9D44F;
}

@media (max-width: 767px) {
    .legal-page {
        padding: 40px 20px;
    }

    .legal-page__title {
        font-size: 22px;
    }

    .legal-page h2 {
        font-size: 18px;
    }
}

@media (max-width: 425px) {
    .legal-page {
        padding: 30px 15px;
    }

    .legal-page__title {
        font-size: 20px;
    }

    .legal-page p,
    .legal-page li {
        font-size: 14px;
    }
}

/* ==========================================================
   PRE-FOOTER (hidden desktop, visible tablet/mobile)
   ========================================================== */
.pre-footer {
    display: none;
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
    width: 100%;
    height: 54px;
    background: #414141;
    margin-top: 70px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
}

footer a {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.4px;
    padding: 10px 15px;
    transition: color 0.3s;
}

footer a:hover {
    color: #F9D44F;
}

/* ==========================================================
   MODAL
   ========================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
    font-size: 15px;
    line-height: 1.8;
}

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px; top: 5px;
    line-height: 1;
    background: none;
    border: none;
}

.modal .close:hover { color: #414141; }

/* ==========================================================
   FLOATING CALL BUTTON
   ========================================================== */
.floating-call {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: #F9D44F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
    animation: pulse-ring 2s ease-out infinite;
}

.floating-call::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #F9D44F;
    z-index: -1;
    animation: pulse-wave 2s ease-out infinite;
}

@keyframes pulse-wave {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

.floating-call:hover {
    background: #FFE177;
    transform: translateY(-2px);
    animation: none;
}

.floating-call:hover::before {
    animation: none;
    opacity: 0;
}

/* ==========================================================
   RESPONSIVE - 1920px+ (clamp vw values)
   WP: font-size 32px at 1920px, line-height 52px
   ========================================================== */
@media (min-width: 1920px) {
    .hero__title {
        font-size: 32px;
        line-height: 52px;
    }

    .card__title {
        font-size: 24px;
    }
}

/* ==========================================================
   RESPONSIVE - 1550px (about-contact)
   ========================================================== */
@media (max-width: 1550px) {
    .about-contact { flex-direction: column; }
    .about-contact__left { width: 100%; min-height: auto; }
    .about-contact__text-overlay { margin: 40px 40px; max-width: 100%; }
}

/* ==========================================================
   RESPONSIVE - 1557px (services layout change)
   WP: flex-direction column for service-content children
   ========================================================== */
@media (max-width: 1557px) {
    .service-content {
        flex-direction: column;
    }

    .services__row {
        flex-direction: column;
        gap: 61px;
    }
}

/* ==========================================================
   RESPONSIVE - 1440px (sidebar shrinks)
   WP: sidebar width 316px
   ========================================================== */
@media (max-width: 1440px) {
    .sidebar {
        width: 316px;
        min-width: 316px;
    }

    .sidebar__top {
        padding: 50px 20px 0 20px;
    }

    .sidebar__nav ul {
        padding-left: 35px;
    }

    .sidebar__bottom {
        padding: 0 20px;
    }

    .sidebar__btn-phone,
    .sidebar__btn-email {
        max-width: 270px;
    }

}

/* ==========================================================
   RESPONSIVE - 1254px (cards start wrapping)
   WP: card 1&2 at 48.5%, card 3 at 99.5%
   ========================================================== */
@media (max-width: 1254px) {
    .cards {
        flex-wrap: wrap;
        gap: 10px;
    }

    .card:nth-child(1),
    .card:nth-child(2) {
        width: 49%;
    }

    .card:nth-child(3) {
        width: 100%;
    }

    .card__title {
        font-size: 1.8vw;
    }
}

/* ==========================================================
   RESPONSIVE - MAP (max-width: 1300px)
   ========================================================== */
@media (max-width: 1300px) {
    .map-section {
        margin: 50px 8% 0 6%;
        padding: 40px 4%;
        flex-direction: column;
    }

    .map-section__left { padding-right: 0; }
    .map-section__left img { width: 75%; justify-self: center; }
    .map-section__left h2 { display: block; font-size: 28px; margin-bottom: 15px; }
    .map-section__right { width: 100%; min-width: auto; margin-top: 30px; }
    .map-section__right h2 { display: none; }
    .map-section__right-images { flex-direction: row; gap: 20px; }
    .map-section__right-images img { width: 48%; }
}

/* ==========================================================
   RESPONSIVE - TABLET (max-width: 1140px)
   WP Elementor tablet breakpoint
   ========================================================== */
@media (max-width: 1140px) {
    .sidebar { display: none; }
    .mobile-header { display: flex; }
    .mobile-header__phone { display: inline-block; }

    .main-content {
        width: 100%;
        padding: 60px 0 0;
    }

    /* Map */
    .map-section { margin: 50px 2%; }

    /* Hero */
    .hero__banner {
        margin: 0;
        border-radius: 0;
        padding: 7% 3% 7% 3%;
    }

    .hero__text-box {
        max-width: 565px;
    }

    /* WP: font-size 2.8vw at tablet, line-height 4vw */
    .hero__title {
        font-size: 2.8vw;
        line-height: 4vw;
        letter-spacing: 1.5px;
    }

    .hero__description {
        font-size: 14px;
    }

    /* Cards: horizontal layout on tablet */
    .cards {
        width: 96%;
        margin: 20px auto 0;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0;
    }

    .card,
    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(3) {
        width: 100%;
        min-height: 137px;
        flex-direction: row;
        border-radius: 6px;
        border: 1px solid #E6E6E6;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 10px;
    }

    .card__icon-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 175px;
        min-height: auto;
        border-bottom: none;
        border-radius: 6px 0 0 6px;
        border-left: 3px solid #FFE177;
        min-width: 160px;
        padding: 15px 10px;
        align-self: stretch;
        justify-content: center;
    }

    .card__icon {
        width: auto;
        min-width: auto;
        height: auto;
        border-right: none;
        border-radius: 0;
        padding: 10px;
    }

    .card__icon svg {
        width: 30px;
        height: 30px;
    }

    .card__title {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 2px;
        padding: 5px 10px;
        flex: 0;
    }

    .card__link {
        margin: 0 15px;
        padding: 8px 20px;
        font-size: 13px;
        width: 161px;
    }

    .card__description {
        font-size: 16px;
        padding: 20px;
        flex: 1;
        color: #414141;
    }

    /* Services */
    .services { margin: 0; padding-top: 40px; }

    .service-header {
        padding: 0 2%;
    }

    .services__col .service-header {
        padding: 0;
    }

    .services__col .service-yellow-divider {
        margin: 0 0 10px 0;
    }

    .service-yellow-divider {
        margin: 0 2% 10px 2%;
        width: auto;
    }

    .service-content {
        flex-direction: column;
        padding: 0 2%;
        gap: 10px;
    }

    .service-block__left { width: 40%; min-width: 200px; }

    .services__row {
        margin-top: 40px;
        flex-direction: column;
        padding: 0 2% 40px;
        gap: 30px;
    }

    .services__footer {
        padding: 15px 4%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .services__footer p {
        font-size: 14px;
        text-align: center;
    }

    /* About */
    .about-contact {
        margin: 40px 0 0 0;
        flex-direction: column;
    }

    .about-contact__left { width: 100%; min-height: 250px; }
    .about-contact__right { padding: 40px 6%; }

    /* Pre-footer */
    .pre-footer {
        display: block;
        text-align: center;
        padding: 40px 4%;
        background: #FAFAFA;
    }

    .pre-footer__label {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 1.4px;
        margin-bottom: 4px;
    }

    .pre-footer__name {
        font-size: 22px;
        font-weight: 500;
        letter-spacing: 2.4px;
        margin-bottom: 15px;
    }

    .pre-footer__buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .pre-footer__buttons a {
        letter-spacing: 0.4px;
        font-weight: 700;
    }

    .pre-footer__buttons .btn {
        width: 100%;
        max-width: 400px;
    }

    footer {
        margin-top: 40px;
        justify-content: center;
        height: auto;
        padding: 10px;
    }
}

/* ==========================================================
   RESPONSIVE - MOBILE (max-width: 767px)
   WP Elementor mobile breakpoint
   ========================================================== */
@media (max-width: 767px) {
    .mobile-header {
        padding: 5px 10px;
    }

    .mobile-header__phone { display: none; }

    .main-content {
        padding: 48px 0 0;
    }

    .mobile-nav {
        top: 49px;
    }

    /* Hero: image above, text box below */
    .hero__banner {
        margin: 0;
        padding: 0;
        border-radius: 0;
        display: block;
        min-height: 34vh;
    }

    .hero__text-box--desktop {
        display: none;
    }

    .hero__text-box--mobile {
        display: block;
        width: 96%;
        max-width: 100%;
        background: #FFFFFF;
        padding: 28px 18px;
        border-radius: 6px;
        box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
        margin: 20px auto 0;
        position: relative;
    }

    /* WP: font-size 5.4vw, line-height 1.5em on mobile */
    .hero__title {
        font-size: 20px;
        line-height: 1.5em;
        letter-spacing: 1px;
    }

    .hero__description {
        font-size: 14px;
    }

    .hero__btn {
        width: 100%;
        max-width: 250px;
    }

    .hero__phone-cta {
        display: block;
        text-align: center;
        padding: 15px 5%;
    }

    .hero__phone-cta a {
        display: block;
        background: #FFE177;
        color: #414141;
        padding: 14px 20px;
        border-radius: 6px;
        font-weight: 600;
        font-size: 18px;
        letter-spacing: 3px;
    }

    /* Cards */
    .cards {
        width: 100%;
        padding: 0 14px;
    }

    .card__icon-title {
        min-width: 100px;
    }

    .card__title { font-size: 14px; letter-spacing: 2px; }
    .card__description { font-size: 14px; padding: 15px; }

    /* Services */
    .service-header__badge {
        width: 220px;
    }
    .service-header__title {
        font-size: 27px;
    }
    .service-block { flex-direction: column; }
    .service-block__left { width: 100%; min-width: auto; border-right: none; border-bottom: 1px solid #E6E6E6; }
    .service-block__right { width: 100%; }

    .map-section__right-images { display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
    .map-section__right-images img:first-child { width: 55%; }
    .map-section__right-images img:nth-child(2) { width: 45%; }

    .about-contact__text-overlay { margin: 20px 20px; padding: 20px 20px; }
    .about-contact__right { padding: 30px 4%; }
    .form-row { grid-template-columns: 1fr; }

    footer { flex-wrap: wrap; }
}

/* ==========================================================
   RESPONSIVE - 600px
   ========================================================== */
@media (max-width: 600px) {
    .card {
        flex-direction: column !important;
        padding: 10px !important;
    }

    .card__description {
        text-align: center;
        font-size: 14px;
        padding: 0 12px 10px 12px;
        margin: 0;
    }

    .card__icon-title {
        min-width: 100%;
        border-left: none;
        padding-bottom: 0;
    }

    .card__title {
        font-size: 20px;
    }
}

/* ==========================================================
   RESPONSIVE - 500px
   ========================================================== */
@media (max-width: 500px) {
    .map-section__left img { width: 100%; }
    .map-section__right-images img { width: 80%; }
    .about-contact__text-overlay { margin: 10px 10px; padding: 10px 10px; }
    .about-contact__right { padding: 30px 2%; }
}

/* ==========================================================
   RESPONSIVE - SMALL MOBILE (max-width: 425px)
   WP post-285: mobile nav full width
   ========================================================== */
@media (max-width: 425px) {
    .mobile-nav {
        width: 100vw;
        right: -100vw;
    }

    .mobile-nav__header {
        padding: 45px 19px;
    }

    .main-content { padding-top: 47px; }

    .card__icon { padding: 10px; }
    .card__icon svg { width: 24px; height: 24px; }
    .card__title { letter-spacing: 1.5px; }


    .map-section__left h2 { font-size: 20px; }

    .service-header__title { font-size: 20px; }
    .service-header__badge { width: auto; min-width: 160px; }
    .service-header__badge-price { font-size: 16px; }
    .service-header__badge-label { font-size: 14px; }

    .contact-form .btn { align-self: center; width: 60%; min-width: auto; }

    footer {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }
}

@media (max-width: 328px) {
    .mobile-nav__header {
        padding: 45px 13px;
    }
}
