/* ==================================================================
   MAC Real Estate - brand overrides & custom sections
   (loaded after style.css)
   ================================================================== */

:root {
  --theme-color1: #af0031;          /* MAC crimson (from logo) */
  --theme-color1-rgb: 175, 0, 49;
  --theme-color1-text-color: #ffffff;
  --mac-grey: #77767b;              /* logo bar grey */
  --mac-dark: #1c1b1f;
  --mac-light: #f6f5f7;
}

::selection { background: var(--theme-color1); color: #fff; }

/* ---------- Logo sizing ---------- */
.header-style-one .header-lower .inner-container .main-box .logo-box .logo { max-width: 170px; padding: 10px 0; }
.header-style-one .header-lower .inner-container .main-box .logo-box .logo img { width: 170px; }
.sticky-header .logo img { max-height: 52px; width: auto; }
.mobile-menu .nav-logo img { max-width: 150px; }
.footer-style-one .footer-widget .footer-logo img,
.footer-style-one .about-widget .footer-logo img { max-width: 210px; }
@media (max-width: 1024px) {
  .header-style-one .header-lower .inner-container .main-box .logo-box .logo img { width: 130px; }
}

/* header top bar */
.header-style-one .header-upper .inner-box { background-color: var(--mac-dark); }
.header-style-one .header-upper .inner-box .info-box .info:hover { color: var(--theme-color1); }

/* the template's lime decorative shapes are not used; keep accents crimson */
.page-title:before { opacity: .65; }
.page-title .title { font-size: 64px; }
@media (max-width: 767px) { .page-title .title { font-size: 40px; } .page-title { min-height: 340px; } }

/* banner */
.banner-section .banner-block .inner-block .bg:before { background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.25)); }
.banner-circle-link { color: inherit; }
.banner-section .count-box { display: inline-flex; align-items: baseline; }

/* ---------- Featured project (Amethyst 2196) ---------- */
.featured-project { padding: 120px 0; position: relative; }
.featured-image { position: relative; border-radius: 30px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.18); max-width: 460px; margin: 0 auto; }
.featured-image img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
.featured-image:hover img { transform: scale(1.04); }
.featured-badge { position: absolute; left: 20px; top: 20px; background: var(--theme-color1); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px; border-radius: 30px; }
.featured-facts { list-style: none; padding: 0; margin: 25px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.featured-facts li { background: var(--mac-light); border-left: 3px solid var(--theme-color1); border-radius: 10px; padding: 14px 18px; }
.featured-facts li span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mac-grey); }
.featured-facts li strong { color: var(--headings-color); font-family: var(--heading-font-family); font-size: 17px; }

/* about images */
.about-section .image-column .inner-column .images-box.one .image img { max-height: 620px; }

/* services slider images */
.service-block-two .inner-block .images-box .image img { aspect-ratio: 6 / 5; }

/* project blocks on home */
.project-block .inner-block .image img { width: 838px; height: 500px; }
@media (max-width: 767.98px) { .project-block .inner-block .image img { height: 400px; } }

/* ---------- Stats ---------- */
.mac-stats { padding: 90px 0; background: var(--theme-color1); }
.mac-stats .stat .num { font-family: var(--heading-font-family); font-size: 54px; font-weight: 700; color: #fff; line-height: 1.1; }
.mac-stats .stat .lbl { color: rgba(255,255,255,.85); font-size: 16px; margin-top: 6px; }
@media (max-width: 767px) { .mac-stats .stat .num { font-size: 38px; } }

/* contact CTA honeypot */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* blog cards */
.blog-block .inner-block .image-box .image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.blog-block .content .sub-title span { color: var(--theme-color1); margin-right: 10px; }
.news-excerpt { margin: 10px 0 0; font-size: 15px; line-height: 1.7; }

/* ---------- About page ---------- */
.mac-history { padding: 110px 0; background: var(--mac-light); }
.history-card { background: #fff; border-radius: 20px; padding: 35px 30px; height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.05); border-top: 4px solid var(--theme-color1); }
.history-card .step { font-family: var(--heading-font-family); font-size: 42px; font-weight: 700; color: rgba(var(--theme-color1-rgb), .18); line-height: 1; margin-bottom: 12px; }
.history-card p { margin: 0; font-size: 15px; line-height: 1.75; }

.mac-mission { padding: 110px 0 0; }
.mission-card { background: var(--mac-light); border-radius: 24px; padding: 45px 40px; height: 100%; }
.mission-card.dark { background: var(--mac-dark); }
.mission-card.dark h3, .mission-card.dark p { color: #fff; }
.mission-card.dark p { opacity: .85; }
.mission-card .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--theme-color1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 22px; }
.mac-mission + .why-choose-us-section { margin-top: 110px; }

.mac-ceo { padding: 120px 0; }
.ceo-photo { position: relative; display: inline-block; padding: 30px 30px 0; }
.ceo-photo:before { content: ""; position: absolute; inset: 90px 0 0 0; background: linear-gradient(160deg, var(--theme-color1), #5e001a); border-radius: 200px 200px 30px 30px; z-index: 0; }
.ceo-photo img { position: relative; z-index: 1; max-height: 520px; width: auto; }
.ceo-message p { font-size: 17px; line-height: 1.85; }
.ceo-message .signature { margin-top: 25px; padding-left: 18px; border-left: 3px solid var(--theme-color1); }
.ceo-message .signature strong { display: block; font-family: var(--heading-font-family); font-size: 22px; color: var(--headings-color); }
.ceo-message .signature span { color: var(--mac-grey); }

.mac-team { padding: 110px 0; background: var(--mac-light); }
.team-structure { list-style: none; padding: 0; margin: 25px 0 0; }
.team-structure li { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 15px; }
.team-structure li strong { display: block; color: var(--headings-color); font-family: var(--heading-font-family); font-size: 18px; }
.team-photo img { border-radius: 24px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.12); }

.mac-clients { padding: 110px 0; }
.client-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.client-tags span { background: var(--mac-light); border: 1px solid rgba(0,0,0,.06); padding: 9px 18px; border-radius: 30px; font-weight: 500; color: var(--headings-color); }
.auditors { margin-top: 28px; font-size: 15px; color: var(--mac-grey); }
.certificate-card { background: var(--mac-light); border-radius: 24px; padding: 25px; text-align: center; }
.certificate-card img { max-height: 420px; width: auto; max-width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.certificate-card p { margin: 15px 0 0; font-size: 14px; color: var(--mac-grey); }

/* ---------- Services page ---------- */
.mac-intro { padding: 110px 0 40px; }
.service-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.service-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 30px; background: var(--mac-light); color: var(--headings-color); font-weight: 500; transition: all .3s; }
.service-nav a:hover { background: var(--theme-color1); color: #fff; }
.mac-services { padding: 40px 0 80px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 50px 0; border-bottom: 1px solid rgba(0,0,0,.07); scroll-margin-top: 110px; }
.service-row:last-child { border-bottom: 0; }
.service-row.reverse .service-img { order: 2; }
.service-img img { width: 100%; height: 400px; object-fit: cover; border-radius: 30px; }
.service-num { font-family: var(--heading-font-family); font-size: 60px; font-weight: 700; color: rgba(var(--theme-color1-rgb), .15); line-height: 1; }
.service-body h3 { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; }
.service-body h3 i { color: var(--theme-color1); font-size: 34px; }
.list-check { list-style: none; padding: 0; margin: 20px 0 0; }
.list-check li { padding: 5px 0; color: var(--headings-color); }
.list-check li i { color: var(--theme-color1); margin-right: 8px; }
@media (max-width: 991px) {
  .service-row { grid-template-columns: 1fr; gap: 25px; }
  .service-row.reverse .service-img { order: 0; }
  .service-img img { height: 300px; }
}

.mac-safety { padding: 110px 0; background: var(--mac-dark); }
.mac-safety .sec-title .title { color: #fff; }
.safety-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 32px 28px; height: 100%; transition: all .3s; }
.safety-card:hover { background: rgba(var(--theme-color1-rgb), .18); border-color: rgba(var(--theme-color1-rgb), .6); }
.safety-card i { font-size: 30px; color: var(--theme-color1); margin-bottom: 18px; display: block; }
.safety-card h3 { color: #fff; }
.safety-card p { color: rgba(255,255,255,.72); margin: 0; font-size: 15px; line-height: 1.7; }

.mac-equipment { padding: 110px 0; }
.equipment-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.equipment-list li { padding: 10px 14px; background: var(--mac-light); border-radius: 10px; font-size: 15px; color: var(--headings-color); }
.equipment-list li i { color: var(--theme-color1); margin-right: 8px; }
@media (max-width: 575px) { .equipment-list { grid-template-columns: 1fr; } }

.mac-cta { padding: 0 0 120px; }
.cta-box { background: linear-gradient(120deg, var(--theme-color1), #6d001f); border-radius: 30px; padding: 50px 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-box h2, .cta-box p { color: #fff; margin: 0; }
.cta-box p { opacity: .85; margin-top: 6px; }

/* ---------- Projects page ---------- */
.project-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 45px; }
.project-filter button { border: 1px solid rgba(0,0,0,.12); background: #fff; color: var(--headings-color); padding: 9px 20px; border-radius: 30px; font-weight: 500; transition: all .3s; }
.project-filter button:hover, .project-filter button.active { background: var(--theme-color1); border-color: var(--theme-color1); color: #fff; }
.project-item.is-hidden { display: none; }
.project-box1 .inner-box .thumb { aspect-ratio: 4 / 3; }
.project-box1 .inner-box .thumb img { position: absolute; inset: 0; }
.project-box1 .inner-box .thumb .tag { z-index: 2; }
.project-box1 .inner-box .content .catogory-box span { color: var(--mac-grey); font-size: 15px; }
.project-box1 .inner-box .content .catogory-box span i { color: var(--theme-color1); margin-right: 4px; }
.project-section-two { padding-bottom: 90px; }

.mac-project-list { padding: 30px 0 120px; }
.mac-project-list .accordion { max-width: 1000px; margin: 0 auto; }
.mac-project-list .accordion-item { border: 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.mac-project-list .accordion-button { font-family: var(--heading-font-family); font-size: 20px; font-weight: 600; color: var(--headings-color); padding: 22px 6px; background: transparent; box-shadow: none; }
.mac-project-list .accordion-button:not(.collapsed) { color: var(--theme-color1); }
.mac-project-list .accordion-button .count { margin-left: 12px; font-size: 13px; background: var(--mac-light); color: var(--mac-grey); border-radius: 20px; padding: 2px 10px; font-weight: 500; }
.ref-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.ref-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,.1); font-size: 15px; }
.ref-list li strong { font-weight: 500; color: var(--headings-color); }
.ref-list li span { color: var(--mac-grey); text-align: right; }
@media (max-width: 767px) { .ref-list { grid-template-columns: 1fr; } }

/* ---------- Project details ---------- */
.project-details { padding-bottom: 100px; }
.project-cover img { width: 100%; max-height: 720px; object-fit: cover; border-radius: 24px; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.project-gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: 14px; transition: opacity .3s; }
.project-gallery a:hover img { opacity: .8; }
.sub-title-red { color: var(--theme-color1); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.project-details__details-box { padding: 30px 35px; }
.project-details__details-list li { padding: 12px 0; }
.project-details__name { font-size: 18px !important; }
.project-pager { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(0,0,0,.08); }
.project-pager a { display: inline-flex; align-items: center; gap: 14px; color: var(--headings-color); font-family: var(--heading-font-family); font-weight: 600; }
.project-pager a small { display: block; font-family: var(--body-font-family); font-weight: 400; color: var(--mac-grey); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.project-pager a i { width: 46px; height: 46px; border-radius: 50%; background: var(--mac-light); display: inline-flex; align-items: center; justify-content: center; transition: all .3s; }
.project-pager a:hover i { background: var(--theme-color1); color: #fff; }
.project-pager .next { text-align: right; }
@media (max-width: 575px) { .project-pager a span { display: none; } }

/* ---------- News details sidebar ---------- */
.sidebar-feature__card { display: block; border-radius: 16px; overflow: hidden; position: relative; }
.sidebar-feature__card img { width: 100%; height: 320px; object-fit: cover; }
.sidebar-feature__card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; font-weight: 600; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }
.blog-details__img img { width: 100%; max-height: 520px; object-fit: cover; }
.sidebar__post-image img { width: 70px; height: 70px; object-fit: cover; }

/* ---------- Contact ---------- */
.form-alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 25px; font-weight: 500; }
.form-alert i { margin-right: 8px; }
.form-alert.success { background: #e8f6ee; color: #146c3b; }
.form-alert.error { background: #fdecef; color: var(--theme-color1); }
.contact-details__info li .icon { background-color: var(--theme-color1) !important; color: #fff; }

/* footer */
.footer-address { color: rgba(255,255,255,.7); margin-top: 10px; }
.footer-address i { color: var(--theme-color1); margin-right: 6px; }

/* preloader uses the MAC logo */
.preloader:after { background-image: url(../images/logo.png); background-size: contain; }

/* ---------- Template colour fixes ---------- */
.btn-style-one { color: var(--headings-color); }
.btn-style-one:hover { color: #fff; }
.btn-style-one:before { background-color: var(--theme-color1); }
.sec-title .sub-title:before,
.sec-title.light .sub-title:before {
  background-image: none;
  background-color: var(--theme-color1);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.sec-title.light .sub-title:before { background-color: #fff; }
.services-section-two .outer-box { background-color: var(--mac-dark); }
.featured-project { padding: 90px 0 110px; }
.footer-style-one .widgets-section { background-color: #141316; }
.why-choose-us-section .list-style-one li strong { color: #fff; }
.why-choose-us-section .image-column .image img { width: 100%; height: 100%; object-fit: cover; }
.mac-stats + .contact-section { margin-top: 110px; }
.footer-style-one .widgets-section:before { background-image: url(../images/site/footer-bg.png); }
.mac-stats { margin-top: 0; }
.project-details__details-list li { margin: 0 !important; padding: 9px 0 !important; }
.project-details__details-list li + li { border-top: 1px solid rgba(0,0,0,.06); }
.project-details__client { margin: 0; }
.project-cover img { max-height: 900px; object-position: center top; }
.page-title .page-breadcrumb li a { color: rgba(255,255,255,.8); }
.page-title .page-breadcrumb li a:hover { color: #fff; }
.sidebar__post-content h3 { font-size: 16px !important; line-height: 1.45 !important; margin: 0; }
.sidebar__post-content h3 .sidebar__post-content-meta { display: block; font-size: 12px; margin-bottom: 4px; }
.sidebar__post-list li { align-items: center; }
