/* ==========================================================
   EECS — Power & Electricity website
   ========================================================== */
:root {
    --red: #E8040F;
    --red-dark: #c1030c;
    --dark: #0F0D0D;
    --text: #5B5D61;
    --light: #F4F4F9;
    --stroke: #DCDCDC;
    --white: #fff;
    --font: "Host Grotesk", sans-serif;
    --hex: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    --ease: all .4s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); font-size: 16px; line-height: 24px; background: var(--white); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 700; margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; transition: var(--ease); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 80px 0; }

/* ----- Preloader ----- */
.preloader { position: fixed; inset: 0; background: var(--dark); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity .5s, visibility .5s; }
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader__spinner { width: 76px; height: 76px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--red); display: flex; align-items: center; justify-content: center; animation: spin 1s linear infinite; }
.preloader__spinner i { color: var(--red); font-size: 26px; animation: spin 1s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Buttons ----- */
.btn-main, .btn-line {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 18px; line-height: 18px; font-weight: 500;
    padding: 18px 24px; border-radius: 4px; border: none; cursor: pointer;
    position: relative; overflow: hidden; z-index: 1; transition: var(--ease);
}
.btn-main { background: var(--red); color: var(--white); }
.btn-main::after, .btn-line::after { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 100%; border-radius: 4px; z-index: -1; transition: var(--ease); }
.btn-main::after { background: var(--dark); }
.btn-main:hover { color: var(--white); transform: translateY(-5px); }
.btn-main:hover::after, .btn-line:hover::after { width: 100%; left: 0; right: auto; }
.btn-line { padding: 17px 24px; color: var(--white); border: 1px solid var(--white); background: transparent; }
.btn-line::after { background: var(--white); }
.btn-line:hover { color: var(--dark); transform: translateY(-5px); }
.btn-main i, .btn-line i, .readmore i { transform: rotate(-45deg); transition: var(--ease); }
.btn-main:hover i, .btn-line:hover i, .readmore:hover i { transform: rotate(0); }
.btn-group-main { display: flex; flex-wrap: wrap; gap: 16px; }
.readmore { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; line-height: 18px; font-weight: 500; color: var(--dark); }
.readmore:hover { color: var(--red); }

/* ----- Section heading ----- */
.sub-title { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 16px; line-height: 16px; font-weight: 600; text-transform: uppercase; margin-bottom: 16px; }
.sub-title i { font-size: 13px; }
.sub-title i:first-child { transform: scaleX(-1); }
.sub-title--light { color: var(--white); }
.sub-title--light i { color: var(--red); }
.heading h2 { font-size: 44px; line-height: 52px; margin-bottom: 16px; }
.heading > p { margin-bottom: 8px; }
.heading--center { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.heading--center h2 { margin-bottom: 0; }
.heading--light h2 { color: var(--white); }
.heading--light .sub-title { color: var(--white); }
.heading--light .sub-title i { color: var(--red); }

/* Hexagon icon */
.hex-icon { width: 54px; height: 54px; flex-shrink: 0; clip-path: var(--hex); background: var(--light); color: var(--red); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; transition: var(--ease); }
.hex-icon--lg { width: 80px; height: 80px; font-size: 32px; background: var(--white); }
.hex-icon--red { width: 68px; height: 68px; background: var(--red); color: var(--white); font-size: 24px; }

/* ----- Logo (dynamic) ----- */
.site-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { height: 56px; width: auto; max-width: 190px; object-fit: contain; }
.site-logo--dark img { mix-blend-mode: multiply; }
.site-logo--plate img { background: var(--white); padding: 5px 10px; border-radius: 6px; }
.site-logo__mark { width: 44px; height: 44px; border-radius: 6px; background: var(--red); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.site-logo__text { font-size: 28px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; color: var(--dark); }
.site-logo--light .site-logo__text { color: var(--white); }

/* ----- Header (transparent over hero) ----- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 99; }
.header-top { background: var(--white); padding: 10px 0; }
.header-top__inner { display: flex; align-items: center; justify-content: space-between; }
.header-top__list { display: flex; gap: 24px; }
.header-top__list li, .header-top__list a { display: flex; align-items: center; gap: 6px; color: var(--dark); font-size: 16px; line-height: 16px; }
.header-top__list i, .header-top__phone i { color: var(--red); }
.header-top__list a:hover { color: var(--red); }
.header-top__right { display: flex; align-items: center; gap: 24px; }
.header-top__social { display: flex; gap: 14px; }
.header-top__social a { color: var(--dark); font-size: 15px; }
.header-top__social a:hover { color: var(--red); }
.header-top__phone { display: flex; align-items: center; gap: 6px; color: var(--dark); font-size: 16px; line-height: 16px; }
.header-top__phone:hover { color: var(--red); }

.header-main { position: relative; transition: background .4s ease; }
.header-main::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: #7A7A7A; opacity: .3; }
.header-main.sticky { position: fixed; top: 0; left: 0; right: 0; background: var(--dark); box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: slideDown .5s ease; z-index: 100; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.header-main__inner { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 20px; }
.main-nav ul { display: flex; }
.main-nav a { display: block; color: var(--white); font-size: 18px; font-weight: 500; padding: 36px 16px; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.main-nav li { position: relative; }
.main-nav a i.fa-angle-down { font-size: 13px; margin-left: 2px; transition: var(--ease); }
.main-nav .has-dropdown:hover > a { color: var(--red); }
.main-nav .has-dropdown:hover > a i.fa-angle-down { transform: rotate(180deg); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 300px; display: block; background: var(--dark); border-top: 3px solid var(--red); border-radius: 0 0 6px 6px; padding: 12px 20px 20px; box-shadow: 0 20px 40px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--ease); z-index: 10; }
.main-nav .has-dropdown:hover .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu li { border-bottom: 1px solid rgba(255,255,255,.08); }
.main-nav .sub-menu li:last-child { border-bottom: none; }
.main-nav .sub-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 16px; line-height: 22px; color: var(--white); }
.main-nav .sub-menu a i { color: var(--red); width: 18px; text-align: center; font-size: 14px; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a.active { color: var(--red); padding-left: 6px; }
.main-nav .sub-menu .sub-menu__more a { color: var(--red); font-weight: 600; justify-content: space-between; }
.main-nav .sub-menu .sub-menu__more a i { transform: rotate(-45deg); }
.main-nav .sub-menu .sub-menu__more a:hover { color: var(--white); }
.header-main__actions { display: flex; align-items: center; gap: 20px; }
.header-icon { background: none; border: none; color: var(--white); font-size: 20px; padding: 0; display: inline-flex; align-items: center; transition: var(--ease); position: relative; }
.header-icon:hover { color: var(--red); }
.header-icon--menu { width: 48px; height: 48px; justify-content: center; border-radius: 4px; background: var(--red); }
.header-icon--menu:hover { background: var(--white); color: var(--red); }

/* Side / mobile menu */
.mobile-menu { background: var(--dark); color: #c9c9c9; max-width: 380px; }
.mobile-menu .offcanvas-header { padding: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu__close { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--red); color: var(--white); font-size: 18px; }
.mobile-menu .offcanvas-body { padding: 24px; }
.mobile-menu__nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu__nav a { display: block; padding: 14px 0; color: var(--white); font-weight: 600; font-size: 18px; }
.mobile-menu__nav a:hover { color: var(--red); padding-left: 6px; }
.mobile-menu__row { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__toggle { width: 34px; height: 34px; border: none; border-radius: 4px; background: rgba(255,255,255,.08); color: var(--white); font-size: 13px; }
.mobile-menu__toggle:not(.collapsed) { background: var(--red); }
.mobile-menu__toggle:not(.collapsed) i::before { content: "\f068"; }
.mobile-menu__sub { padding: 0 0 12px 14px; }
.mobile-menu__sub li { border: none; }
.mobile-menu__sub a { font-size: 15px; font-weight: 500; padding: 8px 0; color: rgba(255,255,255,.8); }
.mobile-menu__about { color: rgba(255,255,255,.8); }
.mobile-menu__contact { margin: 32px 0 24px; }
.mobile-menu__contact h6, .mobile-menu__title { color: var(--white); font-size: 20px; margin-bottom: 16px; }
.mobile-menu__contact p { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.mobile-menu__contact i { color: var(--red); width: 16px; }
.mobile-menu__contact a:hover { color: var(--white); }

/* Search modal */
.search-modal .modal-content { background: transparent; border: none; }
.search-modal__form { display: flex; background: var(--white); border-radius: 8px; overflow: hidden; }
.search-modal__form input { flex: 1; border: none; padding: 22px 26px; font-size: 18px; outline: none; font-family: inherit; }
.search-modal__form button { border: none; background: var(--red); color: var(--white); width: 74px; font-size: 20px; }

/* Round social buttons */
.social-round { display: flex; gap: 6px; }
.social-round a { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--dark); border: 1px solid var(--dark); background: transparent; }
.social-round a:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.social-round--dark a { color: var(--white); border-color: rgba(255,255,255,.3); }

/* ----- Hero ----- */
.hero-area { position: relative; background: var(--dark); }
.hero-slide { position: relative; z-index: 1; overflow: hidden; padding: 250px 0 190px; min-height: 860px; display: flex; align-items: center; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0F0D0D 0%, rgba(15,13,13,.75) 45%, rgba(15,13,13,0) 117.69%); z-index: -1; }
.hero-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1); transition: transform 7s ease; }
.swiper-slide-active .hero-slide__bg { transform: scale(1.1); }
.hero-slide .container { width: 100%; }
.hero-slide__content { padding-right: 70px; }
.hero-slide__content h1 { color: var(--white); font-size: 70px; line-height: 82px; margin-bottom: 16px; }
.hero-slide__content p { color: var(--white); opacity: .9; font-size: 20px; line-height: 28px; max-width: 620px; margin-bottom: 38px; }

/* slide-in text like the reference */
.hero-slide__content > * { opacity: 0; transform: translateX(-120px); transition: transform 1s ease, opacity 1s ease; }
.swiper-slide-active .hero-slide__content > * { opacity: 1; transform: none; }
.swiper-slide-active .hero-slide__content > *:nth-child(2) { transition-delay: .15s; }
.swiper-slide-active .hero-slide__content > *:nth-child(3) { transition-delay: .3s; }
.swiper-slide-active .hero-slide__content > *:nth-child(4) { transition-delay: .45s; }

.hero-slider__nav { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 14px; }
.hero-slider__nav button { width: 56px; height: 56px; clip-path: var(--hex); border: none; background: rgba(255,255,255,.12); color: var(--white); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; transition: var(--ease); }
.hero-slider__nav button:hover { background: var(--red); }
.hero-pagination { position: absolute; left: 50% !important; bottom: 50px !important; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; width: auto !important; }
.hero-pagination .swiper-pagination-bullet { width: 12px; height: 12px; background: var(--white); opacity: .4; margin: 0 !important; transition: var(--ease); }
.hero-pagination .swiper-pagination-bullet-active { width: 34px; border-radius: 6px; background: var(--red); opacity: 1; }

/* ----- Highlights ----- */
.others-area { position: relative; background: radial-gradient(circle at 10% 20%, rgba(232,4,15,.05), transparent 40%), radial-gradient(circle at 90% 80%, rgba(232,4,15,.05), transparent 40%); }
.others-box { height: 100%; text-align: center; border-radius: 8px; background: var(--white); box-shadow: 0 4px 40px rgba(0,0,0,.13); padding: 30px; transition: var(--ease); }
.others-box:hover { background: var(--red); transform: translateY(-10px); }
a.others-box { display: block; }
.others-box__icon img { height: 60px; width: 60px; object-fit: contain; margin: 0 auto; transition: var(--ease); }
.others-box:hover .others-box__icon img { filter: brightness(0) invert(1); }
.others-box__icon { font-size: 52px; line-height: 60px; height: 60px; color: var(--red); margin-bottom: 24px; transition: var(--ease); }
.others-box:hover .others-box__icon { color: var(--white); transform: rotateY(180deg); }
.others-box h3 { font-size: 24px; line-height: 32px; font-weight: 600; transition: var(--ease); }
.others-box:hover h3 { color: var(--white); }

/* ----- About ----- */
.about-heading { padding-right: 40px; }
.about-item { display: flex; gap: 16px; margin-top: 24px; }
.about-item h4 { font-size: 24px; line-height: 30px; margin-bottom: 12px; }
.about-item:hover .hex-icon { background: var(--red); color: var(--white); }
.about-image { position: relative; padding: 0 20px 20px 0; }
.about-image img { position: relative; width: 100%; height: 620px; object-fit: cover; border-radius: 8px; }
.about-image__dots { position: absolute; width: 130px; height: 130px; background-image: radial-gradient(var(--red) 2px, transparent 2px); background-size: 16px 16px; opacity: .45; z-index: 0; }
.about-image__dots--1 { top: 50%; left: -30px; }
.about-image__dots--2 { right: 0; bottom: 0; }
.about-image__counter { position: absolute; top: 0; left: 0; z-index: 2; background: var(--red); border-radius: 8px 0 8px 0; padding: 32px; text-align: center; }
.about-image__counter h3 { color: var(--white); font-size: 32px; line-height: 32px; margin-bottom: 16px; }
.about-image__counter p { color: rgba(255,255,255,.9); font-size: 20px; line-height: 24px; }

/* ----- Services ----- */
.service-area { background: var(--light); }
.service-box { position: relative; z-index: 1; overflow: hidden; height: 100%; border-radius: 8px; border: 1px solid var(--stroke); padding: 30px; transition: var(--ease); }
.service-box::after { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 100%; background: var(--red); opacity: .8; z-index: -1; transition: var(--ease); }
.service-box__bg { position: absolute; top: 0; right: 0; width: 0; height: 100%; object-fit: cover; z-index: -2; transition: var(--ease); }
.service-box:hover::after, .service-box:hover .service-box__bg { width: 100%; left: 0; right: auto; }
.service-box h3 { font-size: 24px; line-height: 28px; margin: 16px 0; }
.service-box p { margin-bottom: 24px; transition: var(--ease); }
.service-box:hover h3 a, .service-box:hover p, .service-box:hover .readmore { color: var(--white); }
.service-box:hover .hex-icon { transform: rotateY(180deg); }

/* ----- Projects ----- */
.project-area { overflow: hidden; }
.project-box { position: relative; }
.project-box__img { overflow: hidden; border-radius: 8px; }
.project-box__img img { width: 100%; height: 460px; object-fit: cover; border-radius: 8px; transition: transform .8s ease; }
.project-box:hover .project-box__img img, .swiper-slide-active .project-box__img img { transform: scale(1.1) rotate(-4deg); }
.project-box__content { position: absolute; left: 0; right: 20px; bottom: 20px; opacity: 0; transition: var(--ease); }
.project-box:hover .project-box__content, .swiper-slide-active .project-box__content { opacity: 1; }
.project-box__text { background: var(--white); padding: 24px 57px 24px 24px; clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%); max-width: 88%; }
.project-box__text span { display: block; color: var(--red); font-size: 16px; line-height: 16px; margin-bottom: 12px; }
.project-box__text .title { color: var(--dark); font-size: 24px; line-height: 28px; font-weight: 700; }
.project-box__text .title:hover { color: var(--red); }
.project-box__arrow { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; clip-path: var(--hex); background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; }
.project-box__arrow i { transform: rotate(-45deg); transition: var(--ease); }
.project-box__arrow:hover { background: var(--dark); color: var(--white); }
.project-box__arrow:hover i { transform: none; }

.slider-arrows { display: flex; gap: 14px; }
.slider-arrows button { width: 56px; height: 56px; clip-path: var(--hex); border: none; background: var(--light); color: var(--dark); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; transition: var(--ease); }
.slider-arrows button:hover { background: var(--red); color: var(--white); }

/* ----- Testimonials ----- */
.testimonial-area { position: relative; background-color: var(--dark); background-image: radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.5px); background-size: 22px 22px; overflow: hidden; }
.testimonial-area .slider-arrows button { background: rgba(255,255,255,.1); color: var(--white); }
.testimonial-area .slider-arrows button:hover { background: var(--red); }
.testimonial-box { background: var(--white); border-radius: 8px; padding: 30px; text-align: center; }
.testimonial-box__stars { display: flex; justify-content: center; gap: 4px; color: var(--red); font-size: 18px; margin: 24px 0 16px; }
.testimonial-box > p { font-size: 18px; line-height: 26px; }
.testimonial-box__author { margin-top: 24px; }
.testimonial-box__author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.testimonial-box__author h4 { font-size: 24px; line-height: 24px; margin-bottom: 10px; }
.testimonial-box__author span { font-size: 16px; }

.testi-thumbs { position: absolute; inset: 180px 0 0 0; pointer-events: none; }
.testi-thumb { position: absolute; pointer-events: auto; width: 78px; height: 78px; padding: 4px; border: none; border-radius: 50%; background: transparent; transition: var(--ease); animation: float 5s ease-in-out infinite; }
.testi-thumb img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.testi-thumb.active, .testi-thumb:hover { background: var(--red); }
.testi-thumb--1 { left: 40px; bottom: 60px; }
.testi-thumb--2 { left: 0; top: 40px; animation-delay: -1s; }
.testi-thumb--3 { left: 60px; top: 170px; animation-delay: -2s; }
.testi-thumb--4 { right: 40px; bottom: 60px; animation-delay: -3s; }
.testi-thumb--5 { right: 0; top: 40px; animation-delay: -4s; }
.testi-thumb--6 { right: 60px; top: 170px; animation-delay: -1.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ----- FAQ ----- */
.faq-accordion .accordion-item { border: none; background: var(--red); border-radius: 8px !important; margin: 0 0 24px 24px; position: relative; overflow: visible; }
.faq-accordion .accordion-button { position: relative; border: none; box-shadow: none; background: var(--light); color: var(--dark); font-family: var(--font); font-size: 24px; line-height: 30px; font-weight: 600; padding: 30px 60px 30px 50px; border-radius: 6px !important; transition: var(--ease); }
.faq-accordion .accordion-button:not(.collapsed) { background: transparent; color: var(--white); padding-bottom: 18px; }
.faq-accordion .accordion-button::after { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); background-image: none; content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; width: auto; height: auto; font-size: 18px; color: var(--dark); }
.faq-accordion .accordion-button:not(.collapsed)::after { content: "\f068"; color: var(--white); transform: translateY(-50%); }
.faq-number { position: absolute; left: -24px; top: 50%; transform: translateY(-50%); width: 48px; height: 52px; clip-path: var(--hex); background: var(--white); color: var(--dark); font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 30px rgba(0,0,0,.08); }
.faq-accordion .accordion-button.collapsed .faq-number { background: var(--dark); color: var(--white); }
.faq-accordion .accordion-button:not(.collapsed) .faq-number { color: var(--red); }
.faq-accordion .accordion-body { padding: 0; }
.faq-accordion .accordion-body p { color: rgba(255,255,255,.9); padding: 0 30px 30px 50px; }

/* ----- Blog ----- */
.blog-area { background: var(--light); }
.blog-box { height: 100%; display: flex; flex-direction: column; }
.blog-box__img { overflow: hidden; border-radius: 8px; flex-shrink: 0; }
.blog-box__img img { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; transition: transform .8s ease; }
.blog-box:hover .blog-box__img img { transform: scale(1.1) rotate(-4deg); }
.blog-box__content { position: relative; text-align: center; background: var(--white); box-shadow: 0 4px 34px rgba(0,0,0,.15); border-radius: 8px; padding: 30px 24px; margin: -40px 10px 0; flex-grow: 1; display: flex; flex-direction: column; align-items: center; transition: var(--ease); }
.blog-box:hover .blog-box__content { background: var(--red); }
.blog-box__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.blog-box__meta li { display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 16px; transition: var(--ease); }
.blog-box__meta i { color: var(--red); transition: var(--ease); }
.blog-box__content h4 { font-size: 24px; line-height: 30px; margin-bottom: 12px; }
.blog-box__content p { margin-bottom: 24px; flex-grow: 1; transition: var(--ease); }
.blog-box:hover .blog-box__meta li, .blog-box:hover .blog-box__meta i, .blog-box:hover h4 a, .blog-box:hover p, .blog-box:hover .readmore { color: var(--white); }

/* ----- Contact ----- */
.contact-map { height: 100%; min-height: 540px; border-radius: 8px; overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; min-height: 540px; border: 0; }
.contact-form { padding-left: 20px; }
.contact-form h4 { font-size: 24px; line-height: 24px; margin-bottom: 12px; }
.contact-form > p { margin-bottom: 24px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; background: var(--light); border: 1px solid var(--stroke); border-radius: 8px;
    padding: 18px 16px; font-family: inherit; font-size: 18px; line-height: 18px; color: var(--dark); outline: none; transition: var(--ease);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text); }
.contact-form select { appearance: none; color: var(--text); background: var(--light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B5D61' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 18px center; }
.contact-form textarea { height: 170px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--red); }

/* ----- CTA ----- */
.cta-area { position: relative; z-index: 2; margin-bottom: -175px; }
.cta-box { position: relative; overflow: hidden; background: var(--red); border-radius: 16px; padding: 0 60px; }
.cta-box__shape { position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); pointer-events: none; }
.cta-box__content { padding: 60px 0; position: relative; z-index: 1; }
.cta-box h2 { color: var(--white); font-size: 44px; line-height: 54px; margin-bottom: 16px; }
.cta-box p { color: rgba(255,255,255,.9); font-size: 18px; line-height: 26px; margin-bottom: 32px; }
.cta-form { position: relative; }
.cta-form input { width: 100%; background: var(--white); border: none; outline: none; border-radius: 8px; padding: 27px 190px 27px 20px; font-family: inherit; font-size: 18px; line-height: 18px; color: var(--dark); }
.cta-form button { position: absolute; right: 10px; top: 11px; }
.cta-box__image { position: relative; z-index: 1; padding: 40px 0; }
.cta-box__image img { width: 100%; height: 380px; object-fit: cover; border-radius: 8px; }

/* ----- Footer ----- */
.site-footer { position: relative; overflow: hidden; background: var(--light); padding: 100px 0 32px; }
.site-footer--cta { padding-top: 275px; }
.site-footer__shape { position: absolute; border-radius: 50%; pointer-events: none; }
.site-footer__shape--1 { left: -120px; top: 100px; width: 260px; height: 260px; border: 50px solid rgba(232,4,15,.04); }
.site-footer__shape--2 { right: -60px; bottom: -60px; width: 200px; height: 200px; background-image: radial-gradient(rgba(232,4,15,.25) 2px, transparent 2px); background-size: 16px 16px; }
.footer-widget { position: relative; }
.footer-widget .site-logo img { height: 62px; max-width: 175px; }
.footer-about { margin: 16px 0 24px; }
.footer-widget h3 { font-size: 24px; line-height: 24px; margin-bottom: 24px; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: var(--text); font-size: 16px; line-height: 16px; }
.footer-links a:hover { color: var(--red); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.footer-contact i { color: var(--red); width: 16px; margin-top: 4px; }
.footer-contact a:hover { color: var(--red); }
.footer-bottom { position: relative; margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--stroke); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom ul { display: flex; gap: 8px; }
.footer-bottom li + li::before { content: "|"; margin-right: 8px; }
.footer-bottom a:hover { color: var(--red); }

/* ----- Scroll top ----- */
.scroll-top { position: fixed; right: 26px; bottom: 26px; width: 50px; height: 54px; clip-path: var(--hex); background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; z-index: 90; opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--ease); }
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--dark); color: var(--white); }


/* ----- Page banner & service details ----- */
.page-banner { position: relative; z-index: 1; overflow: hidden; background: var(--dark); padding: 250px 0 120px; text-align: center; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: rgba(15,13,13,.78); z-index: -1; }
.page-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-banner h1 { color: var(--white); font-size: 56px; line-height: 66px; max-width: 900px; margin: 0 auto 20px; }
.breadcrumb-list { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; background: rgba(255,255,255,.08); padding: 12px 22px; border-radius: 4px; }
.breadcrumb-list li { color: var(--red); font-size: 16px; line-height: 16px; }
.breadcrumb-list li a { color: var(--white); }
.breadcrumb-list li a:hover { color: var(--red); }
.breadcrumb-list li + li::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--white); margin-right: 10px; font-size: 12px; }

.service-details__image { overflow: hidden; border-radius: 8px; margin-bottom: 32px; }
.service-details__image img { width: 100%; height: 460px; object-fit: cover; border-radius: 8px; }
.service-details__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.service-details__head h2 { font-size: 36px; line-height: 44px; }
.service-details__lead { font-size: 18px; line-height: 28px; color: var(--dark); font-weight: 500; margin-bottom: 18px; }
.service-details__main > p { margin-bottom: 18px; }

.service-sidebar { position: sticky; top: 120px; }
.sidebar-box { background: var(--light); border-radius: 8px; padding: 30px; margin-bottom: 30px; }
.sidebar-box h3 { font-size: 24px; line-height: 24px; margin-bottom: 24px; }
.sidebar-services li + li { margin-top: 12px; }
.sidebar-services a { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--white); border-radius: 4px; padding: 16px 18px; color: var(--dark); font-weight: 600; font-size: 16px; line-height: 22px; }
.sidebar-services a span { display: flex; align-items: center; gap: 12px; }
.sidebar-services a span i { color: var(--red); width: 18px; text-align: center; transition: var(--ease); }
.sidebar-services a > i { transform: rotate(-45deg); transition: var(--ease); }
.sidebar-services a:hover, .sidebar-services a.active { background: var(--red); color: var(--white); }
.sidebar-services a:hover span i, .sidebar-services a.active span i { color: var(--white); }
.sidebar-services a:hover > i, .sidebar-services a.active > i { transform: none; }
.sidebar-contact { background: var(--red); border-radius: 8px; padding: 36px 30px; text-align: center; color: rgba(255,255,255,.9); }
.sidebar-contact .hex-icon { width: 70px; height: 70px; font-size: 28px; background: var(--white); margin-bottom: 20px; }
.sidebar-contact h3 { color: var(--white); font-size: 24px; line-height: 30px; margin-bottom: 12px; }
.sidebar-contact__phone { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--white); font-size: 22px; font-weight: 700; margin: 20px 0; }
.sidebar-contact__phone:hover { color: var(--white); opacity: .85; }
.btn-main--dark { background: var(--dark); }
.btn-main--dark::after { background: var(--white); }
.btn-main--dark:hover { color: var(--dark); }
/* ----- Responsive ----- */
@media (max-width: 1399.98px) {
    .hero-slide__content h1 { font-size: 60px; line-height: 70px; }
    .main-nav a { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 1199.98px) {
    .section-pad { padding: 80px 0; }
    .heading h2 { font-size: 38px; line-height: 46px; }
    .hero-slide { min-height: 760px; }
    .hero-slider__nav { right: 24px; }
    .about-heading { padding-right: 0; }
    .contact-form { padding-left: 0; }
    .cta-box { padding: 0 40px; }
}
@media (max-width: 991.98px) {
    .header-main { background: var(--dark); }
    .header-main::after { display: none; }
    .header-main__inner { min-height: 80px; }
    .hero-slide { padding: 170px 0 140px; min-height: 680px; }
    .hero-slide__content { padding-right: 0; }
    .hero-slide__content h1 { font-size: 48px; line-height: 58px; }
    .hero-slider__nav { display: none; }
    .about-image img { height: 480px; }
    .cta-area { margin-bottom: -140px; }
    .site-footer--cta { padding-top: 220px; }
}
@media (max-width: 767.98px) {
    .section-pad { padding: 60px 0; }
    .section-pad-sm { padding: 60px 0; }
    .heading h2 { font-size: 32px; line-height: 40px; }
    .heading--center { margin-bottom: 40px; }
    .site-logo img { height: 46px; }
    .site-logo__text { font-size: 22px; }
    .hero-slide { padding: 140px 0 110px; min-height: 600px; }
    .hero-slide::after { background: linear-gradient(90deg, rgba(15,13,13,.95), rgba(15,13,13,.6)); }
    .hero-slide__content h1 { font-size: 32px; line-height: 40px; }
    .hero-slide__content p { font-size: 16px; line-height: 24px; }
    .btn-main, .btn-line { font-size: 16px; padding: 15px 20px; }
    .others-box h3 { font-size: 20px; line-height: 28px; }
    .about-item { flex-direction: column; }
    .about-item h4 { font-size: 20px; line-height: 26px; }
    .about-image { padding: 0; }
    .about-image img { height: 380px; }
    .about-image__dots { display: none; }
    .about-image__counter { padding: 22px; }
    .service-box h3, .project-box__text .title, .blog-box__content h4, .testimonial-box__author h4 { font-size: 20px; line-height: 26px; }
    .project-box__img img { height: 380px; }
    .testimonial-box > p { font-size: 16px; line-height: 24px; }
    .faq-accordion .accordion-button { font-size: 17px; line-height: 24px; padding: 22px 44px 22px 40px; }
    .faq-accordion .accordion-button::after { right: 16px; }
    .faq-accordion .accordion-body p { padding: 0 20px 22px 40px; }
    .contact-map, .contact-map iframe { min-height: 360px; }
    .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
    .cta-box { padding: 0 20px; border-radius: 12px; }
    .cta-box__content { padding: 40px 0; }
    .cta-box h2 { font-size: 28px; line-height: 36px; }
    .cta-box p { font-size: 16px; }
    .cta-form input { padding: 20px 16px; }
    .cta-form button { position: static; width: 100%; justify-content: center; margin-top: 12px; }
    .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 991.98px) {
    .page-banner { padding: 170px 0 90px; }
    .page-banner h1 { font-size: 40px; line-height: 50px; }
    .service-sidebar { position: static; }
}
@media (max-width: 767.98px) {
    .page-banner { padding: 140px 0 70px; }
    .page-banner h1 { font-size: 30px; line-height: 38px; }
    .service-details__image img { height: 260px; }
    .service-details__head h2 { font-size: 26px; line-height: 34px; }
    .sidebar-box, .sidebar-contact { padding: 24px 20px; }
}

/* ----- Rich text (Summernote content) ----- */
.rich-text { color: var(--text); font-size: 16px; line-height: 26px; }
.rich-text > *:last-child { margin-bottom: 0; }
.rich-text p { margin-bottom: 16px; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin: 28px 0 14px; }
.rich-text h2 { font-size: 30px; line-height: 38px; }
.rich-text h3 { font-size: 24px; line-height: 32px; }
.rich-text h4 { font-size: 20px; line-height: 28px; }
.rich-text ul, .rich-text ol { margin: 0 0 18px; padding-left: 0; }
.rich-text ol { padding-left: 22px; list-style: decimal; }
.rich-text ul li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.rich-text ul li::before { content: "\f0e7"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 0; color: var(--red); }
.rich-text ol li { margin-bottom: 10px; }
.rich-text a { color: var(--red); text-decoration: underline; }
.rich-text a:hover { color: var(--dark); }
.rich-text img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.rich-text blockquote { border-left: 4px solid var(--red); background: var(--light); padding: 20px 24px; margin: 20px 0; border-radius: 0 8px 8px 0; color: var(--dark); font-size: 18px; font-style: italic; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.rich-text th, .rich-text td { border: 1px solid var(--stroke); padding: 10px 14px; }
.rich-text th { background: var(--light); color: var(--dark); }
.rich-text hr { border-color: var(--stroke); opacity: 1; margin: 28px 0; }
.about-heading .rich-text { margin-bottom: 8px; }

/* ----- Project details ----- */
.project-details__title { font-size: 36px; line-height: 44px; margin-bottom: 18px; }
.project-info { background: var(--light); border-radius: 8px; padding: 30px; margin-bottom: 30px; }
.project-info h3 { font-size: 24px; line-height: 24px; margin-bottom: 24px; }
.project-info li { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: 6px; padding: 14px 16px; color: var(--dark); font-weight: 600; }
.project-info li + li { margin-top: 12px; }
.project-info li .hex-icon { width: 46px; height: 46px; font-size: 18px; background: var(--red); color: var(--white); }
.project-info li small { display: block; font-weight: 400; color: var(--text); font-size: 14px; line-height: 18px; }
.project-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--stroke); }
.project-nav__link { display: flex; align-items: center; gap: 14px; color: var(--dark); font-weight: 700; max-width: 48%; }
.project-nav__link small { display: block; color: var(--red); font-weight: 600; font-size: 14px; text-transform: uppercase; }
.project-nav__link--next { text-align: right; margin-left: auto; }
.project-nav__arrow { width: 52px; height: 52px; flex-shrink: 0; clip-path: var(--hex); background: var(--light); display: inline-flex; align-items: center; justify-content: center; transition: var(--ease); }
.project-nav__link:hover { color: var(--red); }
.project-nav__link:hover .project-nav__arrow { background: var(--red); color: var(--white); }
.related-projects { background: var(--light); }
.project-box--static .project-box__content { opacity: 1; }
.project-box--static .project-box__img img { height: 380px; }
@media (max-width: 767.98px) {
    .project-details__title { font-size: 26px; line-height: 34px; }
    .project-info { padding: 24px 20px; }
    .project-nav { flex-direction: column; }
    .project-nav__link { max-width: 100%; }
}

/* ----- Testimonials (dynamic) ----- */
.testimonial-box__stars li.off { color: var(--stroke); }
.testi-initials { width: 70px; height: 70px; border-radius: 50%; background: var(--dark); color: var(--white); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.testi-thumb .testi-initials { background: #2a2626; }
.testi-initials--card { width: 64px; height: 64px; margin: 0 auto 12px; background: var(--red); font-size: 20px; }

/* ----- Blog (dynamic) ----- */
a.blog-box__img { display: block; }
.blog-box__placeholder { display: flex; align-items: center; justify-content: center; height: 280px; border-radius: 8px; background: var(--dark); color: var(--red); font-size: 60px; }
.site-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 60px; }
.site-pagination a, .site-pagination span { width: 50px; height: 54px; clip-path: var(--hex); background: var(--white); color: var(--dark); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: var(--ease); }
.site-pagination a:hover, .site-pagination a.active { background: var(--red); color: var(--white); }
.site-pagination .disabled { opacity: .4; }
.post-details__meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 14px; }
.post-details__meta li { display: flex; align-items: center; gap: 6px; }
.post-details__meta i { color: var(--red); }
.post-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--stroke); }
.post-share span { color: var(--dark); font-weight: 700; margin-right: 6px; }
.post-share a { width: 42px; height: 46px; clip-path: var(--hex); background: var(--light); color: var(--dark); display: inline-flex; align-items: center; justify-content: center; }
.post-share a:hover { background: var(--red); color: var(--white); }
.recent-posts li + li { margin-top: 16px; }
.recent-posts a { display: flex; align-items: center; gap: 14px; color: var(--dark); font-weight: 600; line-height: 22px; }
.recent-posts a:hover { color: var(--red); }
.recent-posts img { width: 84px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 6px; }
.recent-posts small { display: block; color: var(--text); font-weight: 400; font-size: 13px; margin-bottom: 4px; }
.recent-posts small i { color: var(--red); }

/* ----- Contact form (dynamic) ----- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form input.is-invalid, .contact-form select.is-invalid, .contact-form textarea.is-invalid { border-color: var(--red); background-color: #fff5f5; }
.field-error { display: block; color: var(--red); font-size: 14px; margin-top: 6px; }
.form-alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.form-alert i { margin-top: 4px; }
.form-alert--success { background: #e9f9ef; color: #146c34; border: 1px solid #b7e6c7; }
.form-alert--error { background: #fff0f0; color: #b3020b; border: 1px solid #f5c2c4; }
.contact-form .btn-main[disabled] { opacity: .7; pointer-events: none; }

/* ----- Simple pages (Privacy Policy, Terms, ...) ----- */
.legal-page__updated { display: inline-flex; align-items: center; gap: 8px; background: var(--light); color: var(--dark); font-weight: 500; padding: 8px 16px; border-radius: 4px; margin-bottom: 28px; }
.legal-page__updated i { color: var(--red); }
.legal-page .rich-text h3 { padding-left: 16px; border-left: 4px solid var(--red); }
.legal-page__contact { display: flex; align-items: center; gap: 20px; background: var(--light); border-radius: 8px; padding: 28px; margin-top: 44px; }
.legal-page__contact h4 { font-size: 22px; margin-bottom: 6px; }
.legal-page__contact a { color: var(--red); font-weight: 600; }
.legal-page__contact a:hover { color: var(--dark); }
@media (max-width: 575.98px) { .legal-page__contact { flex-direction: column; align-items: flex-start; } }

/* ----- Footer developer credit ----- */
.footer-credit { margin-left: 6px; }
.footer-credit::before { content: "|"; margin-right: 8px; }
.footer-credit a { color: var(--red); font-weight: 600; }
.footer-credit a:hover { color: var(--dark); text-decoration: underline; }
@media (max-width: 767.98px) {
    .footer-credit { display: block; margin: 6px 0 0; }
    .footer-credit::before { display: none; }
}
