
:root{
  --red:#d71920;
  --red-dark:#a60f18;
  --ink:#101828;
  --muted:#667085;
  --line:rgba(16,24,40,.10);
  --soft:#f5f6f8;
  --white:#fff;
  --shadow:0 24px 70px rgba(15,23,42,.10);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#fff;
  overflow-x:hidden;
}

button,input,textarea{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
.site-shell{width:min(92%,1380px);margin:auto}

.site-header{
  position:fixed;
  top:0;left:0;width:100%;
  z-index:1000;
  padding:18px 0;
  transition:.28s ease;
}
.site-header.is-scrolled{
  background:rgba(255,255,255,.96);
  border-bottom:1px solid rgba(16,24,40,.08);
  box-shadow:0 14px 38px rgba(15,23,42,.08);
  backdrop-filter:blur(18px);
}
.nav-wrap{
  display:grid;
  grid-template-columns:220px minmax(0,1fr) 220px;
  align-items:center;
  gap:24px;
}
.brand{justify-self:start}
.brand img{height:66px;display:block;width:auto}
.main-nav{
  justify-self:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
}
.main-nav button{
  border:0;background:transparent;
  color:#101828;
  font-size:14px;
  font-weight:800;
  position:relative;
  padding:0;
}
.main-nav button:after{
  content:"";
  position:absolute;
  left:0;bottom:-10px;
  height:2px;width:0;
  border-radius:99px;
  background:var(--red);
  transition:.25s;
}
.main-nav button.active,.main-nav button:hover{color:var(--red)}
.main-nav button.active:after,.main-nav button:hover:after{width:100%}
.nav-right{
  justify-self:end;
  display:flex;align-items:center;gap:12px;
}
.socials{display:flex;gap:10px;align-items:center}
.socials a,.lang-current,.menu-toggle{
  width:38px;height:38px;border-radius:50%;
  border:1px solid rgba(16,24,40,.08);
  background:#fff;
  display:grid;place-items:center;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  color:#101828;
  transition:.25s;
}
.socials a:hover{background:var(--red);color:#fff;transform:translateY(-2px)}
.lang{position:relative}
.lang-current{width:auto;min-width:60px;padding:0 12px;display:flex;gap:7px;align-items:center;justify-content:center;font-weight:900}
.lang-menu{
  position:absolute;right:0;top:48px;
  display:none;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:16px;
  padding:8px;
}
.lang.open .lang-menu{display:grid}
.lang-menu button{border:0;background:transparent;padding:9px 18px;border-radius:10px;font-weight:900}
.lang-menu button:hover{background:rgba(215,25,32,.08);color:var(--red)}
.menu-toggle{display:none;border:0}

.page{min-height:100vh}
.hero-page{
  position:relative;
  min-height:100vh;
  padding:145px 0 0;
  background:
    linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.80) 48%,rgba(255,255,255,.06) 100%),
    url("../img/hero-box.webp") center right/cover no-repeat;
  overflow:hidden;
}
.hero-page:after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:190px;
  background:linear-gradient(180deg,transparent,#fff);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:2;
  min-height:calc(100vh - 250px);
  display:grid;
  grid-template-columns:minmax(0,1fr) 380px;
  align-items:center;
  gap:40px;
}
.hero-copy{max-width:780px}
.hero-copy h1{
  font-size:clamp(44px,4.9vw,76px);
  line-height:1.02;
  letter-spacing:-3.2px;
  margin-bottom:26px;
}
.hero-copy h1 span{color:var(--red)}
.hero-copy p{
  max-width:620px;
  color:#344054;
  font-size:18px;
  line-height:1.8;
}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:34px}
.btn{
  min-height:52px;
  padding:0 27px;
  border-radius:4px;
  border:0;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:.25s;
}
.btn-primary{background:var(--red);color:#fff;box-shadow:0 18px 40px rgba(215,25,32,.22)}
.btn-primary:hover{background:var(--red-dark);transform:translateY(-2px)}
.btn-light{background:#fff;color:#101828;border:1px solid var(--line);box-shadow:0 12px 30px rgba(15,23,42,.06)}
.btn-light:hover{transform:translateY(-2px)}
.hero-side{display:grid;gap:18px}
.hero-stat{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 18px 55px rgba(15,23,42,.10);
  border-radius:4px;
  padding:24px;
  backdrop-filter:blur(10px);
}
.hero-stat strong{font-size:34px;color:var(--red);display:block}
.hero-stat span{font-weight:800;color:#475467}

.feature-bar{
  position:relative;
  z-index:3;
  transform:translateY(42px);
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-radius:4px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 28px 80px rgba(15,23,42,.14);
  border:1px solid rgba(16,24,40,.08);
}
.feature-item{
  padding:32px;
  border-right:1px solid rgba(16,24,40,.08);
}
.feature-item:last-child{border-right:0}
.feature-item i{font-size:30px;color:var(--red);margin-bottom:20px}
.feature-item h3{font-size:18px;margin-bottom:10px}
.feature-item p{font-size:14px;line-height:1.7;color:var(--muted)}

.section{padding:115px 0;background:#fff}
.section.soft{background:#f6f7f9}
.section-head{text-align:center;max-width:780px;margin:0 auto 58px}
.section-head h2{
  font-size:clamp(34px,3.5vw,52px);
  letter-spacing:-1.8px;
  line-height:1.1;
  margin-bottom:14px;
}
.section-head p{color:var(--muted);line-height:1.75}
.red-line{width:42px;height:3px;background:var(--red);margin:16px auto 0;border-radius:99px}

.why-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:60px;
  align-items:center;
}
.why-copy span{font-size:12px;text-transform:uppercase;letter-spacing:1.2px;color:var(--red);font-weight:900}
.why-copy h2{font-size:clamp(32px,3.4vw,50px);line-height:1.12;letter-spacing:-1.6px;margin:16px 0}
.why-copy p{color:var(--muted);line-height:1.8;margin-bottom:22px}
.checks{display:grid;gap:12px}
.checks div{display:flex;gap:10px;align-items:center;color:#344054;font-weight:800}
.checks i{color:var(--red)}
.why-media{position:relative;border-radius:4px;overflow:hidden;box-shadow:0 28px 80px rgba(15,23,42,.16)}
.why-media img{display:block;width:100%;height:360px;object-fit:cover}
.why-card{
  position:absolute;
  left:34px;bottom:34px;
  background:var(--red);
  color:#fff;
  width:210px;
  padding:28px;
  border-radius:6px;
  box-shadow:0 18px 45px rgba(215,25,32,.25);
}
.why-card img{height:42px;width:auto;object-fit:contain;margin-bottom:18px;filter:brightness(0) invert(1)}

.services-preview{margin-top:30px}
.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.service-card{
  background:#fff;
  border:1px solid rgba(16,24,40,.08);
  box-shadow:0 18px 55px rgba(15,23,42,.06);
  border-radius:4px;
  overflow:hidden;
  transition:.28s;
}
.service-card:hover{transform:translateY(-6px);box-shadow:0 28px 75px rgba(15,23,42,.11)}
.service-image{height:170px;background:#eef1f5;overflow:hidden}
.service-image img{width:100%;height:100%;object-fit:cover;display:block}
.service-body{padding:24px}
.service-body i{
  width:54px;height:54px;border-radius:4px;
  display:grid;place-items:center;
  color:var(--red);
  background:rgba(215,25,32,.07);
  font-size:23px;
  margin-bottom:18px;
}
.service-body h3{font-size:18px;line-height:1.35;margin-bottom:10px}
.service-body p{color:var(--muted);font-size:14px;line-height:1.7}

.service-list-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.service-list-grid .service-card .service-image{display:none}
.service-list-grid .service-card{padding:30px}
.service-list-grid .service-body{padding:0}

.logo-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.logo-card{
  min-height:132px;
  background:#fff;
  border:1px solid rgba(16,24,40,.08);
  box-shadow:0 14px 42px rgba(15,23,42,.05);
  border-radius:4px;
  display:grid;place-items:center;
  padding:24px;
}
.logo-card img{max-width:100%;max-height:80px;object-fit:contain}

.reference-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.reference-card{
  background:#fff;
  border:1px solid rgba(16,24,40,.08);
  box-shadow:0 18px 55px rgba(15,23,42,.07);
  border-radius:4px;
  overflow:hidden;
}
.reference-img{height:155px;background:#eef1f5;display:grid;place-items:center;padding:16px}
.reference-img img{max-width:100%;max-height:100%;object-fit:contain}
.reference-body{padding:22px}
.reference-body h3{font-size:17px;line-height:1.35;min-height:45px}
.detail-btn{
  margin-top:18px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(16,24,40,.12);
  background:#fff;
  color:#101828;
  border-radius:4px;
  min-height:42px;
  padding:0 14px;
  font-weight:900;
  font-size:13px;
  transition:.25s;
}
.detail-btn span{
  width:32px;height:32px;border-left:1px solid rgba(16,24,40,.10);
  display:grid;place-items:center;
}
.detail-btn:hover{border-color:var(--red);color:var(--red);transform:translateY(-2px)}

.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:34px}
.contact-info{display:grid;gap:16px}
.info-card,.contact-form{
  background:#fff;
  border:1px solid rgba(16,24,40,.08);
  box-shadow:0 18px 55px rgba(15,23,42,.06);
  border-radius:4px;
  padding:28px;
}
.info-card i{color:var(--red);font-size:24px;margin-bottom:14px}
.info-card h3{margin-bottom:8px}
.info-card p{color:var(--muted);line-height:1.6}
.contact-form{display:grid;gap:14px}
.contact-form input,.contact-form textarea{
  width:100%;border:1px solid rgba(16,24,40,.10);
  background:#f8fafc;border-radius:4px;
  padding:15px 16px;outline:none;color:#101828;
}
.contact-form textarea{min-height:150px;resize:vertical}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--red);background:#fff}
.form-msg{font-weight:800;color:var(--red)}

.footer{
  background:#fff;
  border-top:1px solid rgba(16,24,40,.08);
  padding:52px 0 24px;
}
.footer-grid{display:grid;grid-template-columns:1.25fr .8fr 1fr 1fr .8fr;gap:34px}
.footer-logo{height:58px;margin-bottom:16px}
.footer p,.footer a{color:var(--muted);font-size:14px;line-height:1.8}
.footer h4{font-size:15px;margin-bottom:16px}
.footer-links{display:grid;gap:8px}
.footer-social{display:flex;gap:10px}
.footer-social a{width:38px;height:38px;border-radius:4px;background:#101828;color:#fff;display:grid;place-items:center}
.copyright{text-align:center;border-top:1px solid rgba(16,24,40,.08);margin-top:34px;padding-top:20px;color:var(--muted);font-size:13px}

.modal{
  position:fixed;inset:0;z-index:2000;
  background:rgba(16,24,40,.72);
  display:none;align-items:center;justify-content:center;
  padding:24px;backdrop-filter:blur(8px);
}
.modal.open{display:flex}
.modal-card{
  width:min(860px,100%);
  background:#fff;
  border-radius:6px;
  box-shadow:0 40px 140px rgba(0,0,0,.35);
  padding:34px;
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:30px;
  position:relative;
}
.modal-close{position:absolute;right:18px;top:18px;border:0;background:#fff;color:#999;font-size:24px}
.modal-image{display:grid;place-items:center}
.modal-image img{max-width:100%;max-height:220px;object-fit:contain}
.modal-content span{font-size:12px;color:var(--red);font-weight:900;text-transform:uppercase;letter-spacing:1px}
.modal-content h3{font-size:28px;margin:14px 0}
.modal-content p{color:var(--muted);line-height:1.8}

.whatsapp{
  position:fixed;right:24px;bottom:24px;z-index:1500;
  width:58px;height:58px;border-radius:50%;
  display:grid;place-items:center;
  background:#22c55e;color:#fff;
  font-size:28px;box-shadow:0 18px 45px rgba(34,197,94,.42);
}

@media(max-width:1180px){
  .nav-wrap{grid-template-columns:180px minmax(0,1fr) 180px}
  .main-nav{gap:18px}
  .main-nav button{font-size:13px}
  .card-grid,.service-list-grid,.reference-grid{grid-template-columns:repeat(3,1fr)}
  .logo-grid{grid-template-columns:repeat(4,1fr)}
}

@media(max-width:980px){
  .site-header{background:rgba(255,255,255,.96);border-bottom:1px solid rgba(16,24,40,.08);padding:10px 0}
  .nav-wrap{grid-template-columns:1fr auto 1fr}
  .brand{grid-column:2;justify-self:center}
  .brand img{height:56px}
  .nav-right{grid-column:1 / 4;justify-self:stretch;display:grid;grid-template-columns:1fr auto 1fr;position:static}
  .lang{grid-column:1;justify-self:start;grid-row:1;margin-top:-48px}
  .menu-toggle{display:grid;grid-column:3;justify-self:end;grid-row:1;margin-top:-48px}
  .socials{display:none}
  .main-nav{
    position:absolute;top:78px;left:5%;right:5%;
    display:none;flex-direction:column;gap:18px;
    background:rgba(255,255,255,.96);border:1px solid rgba(16,24,40,.08);
    box-shadow:0 24px 70px rgba(15,23,42,.15);border-radius:8px;
    padding:22px;backdrop-filter:blur(18px)
  }
  .main-nav.open{display:flex}
  .hero-page{padding-top:112px;background-position:center}
  .hero-inner{grid-template-columns:1fr;min-height:auto;padding:50px 0}
  .hero-side{display:none}
  .hero-copy h1{font-size:clamp(38px,10vw,56px);letter-spacing:-2px}
  .feature-bar{transform:none;margin-top:20px}
  .feature-grid,.why-grid,.contact-grid,.footer-grid{grid-template-columns:1fr}
  .card-grid,.service-list-grid,.reference-grid{grid-template-columns:repeat(2,1fr)}
  .logo-grid{grid-template-columns:repeat(3,1fr)}
  .modal-card{grid-template-columns:1fr}
}
@media(max-width:640px){
  .site-shell{width:90%}
  .hero-actions{flex-direction:column;align-items:flex-start}
  .card-grid,.service-list-grid,.reference-grid,.logo-grid{grid-template-columns:1fr}
  .feature-item{border-right:0;border-bottom:1px solid rgba(16,24,40,.08)}
  .feature-item:last-child{border-bottom:0}
}


/* CONTENT MERGE POLISH - REFERENCES / MODAL / LOGOS */
.service-list-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.service-list-grid .service-card {
    min-height: 230px;
}

.service-list-grid .service-body i {
    width: 58px;
    height: 58px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--red);
    background: rgba(215,25,32,.07);
    font-size: 24px;
    margin-bottom: 18px;
}

.reference-img {
    height: 180px !important;
    background: #fff !important;
    padding: 22px !important;
    border-bottom: 1px solid rgba(16,24,40,.06);
}

.reference-img img {
    max-width: 92% !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.reference-card {
    display: grid;
    grid-template-rows: 180px 1fr;
}

.reference-body h3 {
    min-height: 46px;
    display: flex;
    align-items: flex-start;
}

.modal-card {
    align-items: center;
}

.modal-image {
    min-height: 260px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid rgba(16,24,40,.06);
    padding: 24px;
}

.modal-image img {
    max-width: 92% !important;
    max-height: 190px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.modal-content p {
    white-space: pre-line;
    min-height: 80px;
}

.logo-card img {
    max-width: 90% !important;
    max-height: 76px !important;
    width: auto !important;
    height: auto !important;
}

@media(max-width:1180px){
    .service-list-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media(max-width:640px){
    .service-list-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ROUND 2 FIXES */

/* References centered */
.reference-body {
    text-align: center !important;
    display: grid !important;
    justify-items: center !important;
}

.reference-body h3 {
    width: 100%;
    justify-content: center !important;
    text-align: center !important;
    align-items: center !important;
}

.detail-btn {
    justify-self: center !important;
}

/* Same-size reference modals with scrollable text */
.modal-card {
    width: min(920px, 94vw) !important;
    height: min(620px, 88vh) !important;
    max-height: 88vh !important;
    grid-template-columns: 0.9fr 1.1fr !important;
    overflow: hidden !important;
}

.modal-image {
    height: 100% !important;
    min-height: 0 !important;
}

.modal-content {
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.modal-content p {
    overflow-y: auto !important;
    padding-right: 10px !important;
    max-height: 420px !important;
}

.modal-content p::-webkit-scrollbar {
    width: 6px;
}
.modal-content p::-webkit-scrollbar-thumb {
    background: rgba(215,25,32,.35);
    border-radius: 99px;
}

/* Footer compact: no logo/text column */
.footer-grid-compact {
    grid-template-columns: 1fr 1.15fr 1.25fr .85fr !important;
}

.footer-social a {
    transition: .25s ease !important;
}
.footer-social a:hover {
    background: var(--red) !important;
    color: #fff !important;
    transform: translateY(-3px);
}

/* Custom service icons */
.custom-icon {
    width: 34px;
    height: 34px;
    position: relative;
    display: inline-block;
}

.custom-barrier::before {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 3px;
    width: 7px;
    height: 26px;
    border-radius: 3px;
    background: currentColor;
}
.custom-barrier::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 8px;
    width: 25px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-24deg);
    transform-origin: left center;
    box-shadow: -5px 21px 0 -2px currentColor;
}

.custom-xray::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 30px;
    height: 18px;
    border: 3px solid currentColor;
    border-radius: 5px;
}
.custom-xray::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 13px;
    width: 13px;
    height: 10px;
    border: 3px solid currentColor;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    box-shadow: -10px 13px 0 -4px currentColor, 10px 13px 0 -4px currentColor;
}

.custom-turnstile::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 4px;
    width: 6px;
    height: 27px;
    border-radius: 999px;
    background: currentColor;
}
.custom-turnstile::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 15px;
    width: 26px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 currentColor;
    transform: rotate(0deg);
}
.custom-turnstile {
    transform: rotate(0deg);
}
.custom-turnstile span { display:none; }
.custom-turnstile {
    background:
      linear-gradient(currentColor,currentColor) 50% 50%/5px 26px no-repeat,
      linear-gradient(currentColor,currentColor) 50% 50%/26px 5px no-repeat,
      linear-gradient(currentColor,currentColor) 50% 50%/24px 5px no-repeat;
}
.custom-turnstile::after {
    transform: rotate(60deg);
}
.custom-turnstile::before {
    transform: rotate(-60deg);
}

/* Location modal */
.location-trigger {
    border: none;
    background: transparent;
    color: var(--red);
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}
.location-trigger:hover {
    text-decoration: underline;
}

.location-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(16,24,40,.72);
    backdrop-filter: blur(8px);
}
.location-modal.open {
    display: flex;
}
.location-card {
    width: min(900px, 94vw);
    height: min(620px, 88vh);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 40px 140px rgba(0,0,0,.35);
    padding: 28px;
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
}
.location-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: #fff;
    color: #999;
    font-size: 24px;
}
.location-head span {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.location-head h3 {
    margin-top: 10px;
    font-size: 28px;
}
.location-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
    min-height: 390px;
}

@media(max-width:980px){
    .modal-card {
        grid-template-columns: 1fr !important;
        height: min(720px, 90vh) !important;
        overflow-y: auto !important;
    }
    .modal-content p {
        max-height: 260px !important;
    }
    .footer-grid-compact {
        grid-template-columns: 1fr !important;
    }
    .location-card {
        height: min(680px, 90vh);
    }
}


/* ROUND 3 ICON + MODAL TITLE FIX */

/* Put modal main title first, job-description label below it */
.modal-content {
    display: flex !important;
    flex-direction: column !important;
}

.modal-content h3 {
    order: 1 !important;
    margin: 0 0 10px !important;
}

.modal-content span {
    order: 2 !important;
    margin: 0 0 14px !important;
    color: var(--red) !important;
}

.modal-content p {
    order: 3 !important;
}

/* Make custom service icons red, clean and more literal */
.service-body > i,
.service-card .service-body > i {
    color: var(--red) !important;
}

/* custom icon base */
.custom-icon {
    width: 48px !important;
    height: 38px !important;
    position: relative !important;
    display: inline-block !important;
    color: var(--red) !important;
    background: none !important;
}

/* car + barrier arm icon */
.custom-barrier {
    width: 54px !important;
    height: 38px !important;
}
.custom-barrier::before {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 23px;
    height: 11px;
    border: 3px solid currentColor;
    border-radius: 8px 8px 4px 4px;
    background: transparent;
    box-shadow:
        5px 8px 0 -5px currentColor,
        17px 8px 0 -5px currentColor;
}
.custom-barrier::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 3px;
    width: 7px;
    height: 31px;
    border-radius: 4px;
    background: currentColor;
    box-shadow:
        -28px 7px 0 -1px currentColor;
    transform: none;
}
.custom-barrier .arm {
    display: block;
}

/* X-Ray device with conveyor and bag */
.custom-xray {
    width: 52px !important;
    height: 38px !important;
}
.custom-xray::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 6px;
    width: 32px;
    height: 21px;
    border: 3px solid currentColor;
    border-radius: 5px;
    background: transparent;
}
.custom-xray::after {
    content: "";
    position: absolute;
    left: 30px;
    top: 14px;
    width: 16px;
    height: 13px;
    border: 3px solid currentColor;
    border-radius: 4px;
    background: transparent;
    box-shadow:
        -30px 18px 0 -6px currentColor,
        -16px 18px 0 -6px currentColor,
        -2px 18px 0 -6px currentColor;
}

/* card access turnstile: pedestal + three-arm tripod + card reader */
.custom-turnstile {
    width: 48px !important;
    height: 40px !important;
    background: none !important;
}
.custom-turnstile::before {
    content: "";
    position: absolute;
    left: 6px;
    bottom: 2px;
    width: 12px;
    height: 28px;
    border: 3px solid currentColor;
    border-radius: 5px;
    background: transparent;
}
.custom-turnstile::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 13px;
    width: 23px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    box-shadow:
        -7px 8px 0 -1px currentColor,
        -7px -8px 0 -1px currentColor;
}

/* add a tiny card reader dot on turnstile */
.service-card:has(.custom-turnstile) .custom-turnstile {
    box-shadow: inset 10px 13px 0 -8px currentColor;
}

/* Keep icon container red and refined */
.service-list-grid .service-body i,
.service-list-grid .service-body .custom-icon,
.services-preview .service-body i,
.services-preview .service-body .custom-icon {
    color: var(--red) !important;
}

@supports not selector(:has(*)) {
    .custom-turnstile {
        filter: none;
    }
}


/* ROUND 4 - EDITABLE SERVICE ICON SLOTS + ABOUT PAGE + FORMSPREE */

/* Editable service icon slots: keep red box, icon image is replaceable */
.service-body > i,
.service-body > .custom-icon {
    display: none !important;
}

.editable-service-icon {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
    display: block !important;
    opacity: 1 !important;
    filter: none !important;
}

/* The red icon box remains via service-body first icon image wrapper behavior */
.service-body .editable-service-icon {
    margin-bottom: 18px !important;
    padding: 0 !important;
}

.service-body:has(.editable-service-icon)::before {
    content: "";
    display: none;
}

/* Make the image itself sit inside the existing red box area */
.service-body > .editable-service-icon {
    width: 58px !important;
    height: 58px !important;
    padding: 13px !important;
    border-radius: 6px !important;
    background: rgba(215,25,32,.07) !important;
    border: 1px solid rgba(215,25,32,.10) !important;
    box-shadow: 0 14px 28px rgba(215,25,32,.06) !important;
}

/* Empty placeholder stays as clean red slot */
.service-body > .editable-service-icon[src$=".svg"] {
    background:
      linear-gradient(180deg, rgba(215,25,32,.09), rgba(215,25,32,.04)) !important;
}

/* About page redesign */
.about-page-new {
    background: #fff !important;
}

.about-head-left {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.about-head-left .red-line {
    margin-left: 0 !important;
}

.about-new-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 42px;
    align-items: start;
}

.about-new-media {
    position: sticky;
    top: 110px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(15,23,42,.14);
}

.about-new-media img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.about-new-content {
    display: grid;
    gap: 20px;
}

.about-text-card {
    background: #ffffff;
    border: 1px solid rgba(16,24,40,.08);
    box-shadow: 0 18px 55px rgba(15,23,42,.06);
    border-radius: 6px;
    padding: 30px;
}

.about-text-card h3 {
    font-size: 24px;
    letter-spacing: -.6px;
    margin-bottom: 16px;
    color: #101828;
}

.about-text-card p {
    color: #667085;
    line-height: 1.9;
    font-size: 15.5px;
}

.about-mini-checks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.about-mini-checks div {
    background: #fff;
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 6px;
    padding: 16px;
    color: #344054;
    font-weight: 800;
    line-height: 1.45;
    box-shadow: 0 12px 32px rgba(15,23,42,.045);
}

.about-mini-checks i {
    color: var(--red);
    margin-right: 8px;
}

/* Formspree visual confirmation area */
.form-msg {
    min-height: 22px;
    font-weight: 900;
    color: var(--red);
}

/* Small helper note for editable icons */
.services-preview .service-card,
.service-list-grid .service-card {
    position: relative;
}

@media(max-width:980px){
    .about-new-grid {
        grid-template-columns: 1fr;
    }
    .about-new-media {
        position: relative;
        top: auto;
    }
    .about-new-media img {
        height: 340px;
    }
    .about-mini-checks {
        grid-template-columns: 1fr;
    }
}


/* ROUND 5 FIXES */

/* Remove home hero stat boxes completely */
.hero-inner {
    grid-template-columns: minmax(0, 1fr) !important;
}
.hero-side {
    display: none !important;
}

/* Fix feature text clipping/half visibility on homepage */
.feature-bar {
    transform: none !important;
    margin-top: 42px !important;
    padding-bottom: 20px !important;
}
.hero-page {
    padding-bottom: 80px !important;
    overflow: visible !important;
}
.hero-page:after {
    display: none !important;
}
.feature-grid {
    overflow: visible !important;
    align-items: stretch !important;
}
.feature-item {
    min-height: 210px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}
.feature-item p {
    display: block !important;
    overflow: visible !important;
    min-height: auto !important;
}

/* Remove red box inside 'Güvenilir Teknoloji Çözümleri' image */
.why-card {
    display: none !important;
}

/* Formspree success message style */
.form-msg {
    min-height: 24px !important;
    margin-top: 4px !important;
    font-weight: 900 !important;
    color: var(--red) !important;
}
.contact-form button[disabled] {
    opacity: .65;
    cursor: wait;
}

/* Keep hero content nice after removing stat boxes */
.hero-copy {
    max-width: 860px !important;
}
.hero-copy p {
    max-width: 720px !important;
}

@media(max-width:980px){
    .feature-item {
        min-height: auto !important;
    }
}


/* ABOUT PAGE TITLE CENTER FIX */
.about-head-left {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 780px !important;
}

.about-head-left .red-line {
    margin-left: auto !important;
    margin-right: auto !important;
}


/* SCREENSHOT STYLE REFERENCE MODAL */
.modal {
    background: rgba(16, 24, 40, 0.70) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 24px !important;
}

.modal-card {
    width: min(860px, 92vw) !important;
    height: auto !important;
    min-height: 360px !important;
    max-height: 78vh !important;
    display: grid !important;
    grid-template-columns: 1fr 1.15fr !important;
    grid-template-rows: 72px minmax(260px, auto) !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 34px 110px rgba(15, 23, 42, 0.32) !important;
    border: 1px solid rgba(255,255,255,0.72) !important;
    align-items: stretch !important;
}

.modal-content {
    display: contents !important;
}

.modal-content h3 {
    order: initial !important;
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 76px 0 26px !important;
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(16,24,40,.08) !important;
    color: #d71920 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: -0.2px !important;
    line-height: 1.25 !important;
    background: #ffffff !important;
}

.modal-close {
    position: absolute !important;
    top: 22px !important;
    right: 24px !important;
    z-index: 5 !important;
    width: 34px !important;
    height: 34px !important;
    border: none !important;
    background: transparent !important;
    color: #98a2b3 !important;
    font-size: 24px !important;
    display: grid !important;
    place-items: center !important;
    transition: .25s ease !important;
}

.modal-close:hover {
    color: #d71920 !important;
    transform: rotate(90deg) !important;
}

.modal-image {
    grid-column: 1 !important;
    grid-row: 2 !important;
    height: auto !important;
    min-height: 260px !important;
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    padding: 32px 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-image img {
    max-width: 86% !important;
    max-height: 190px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.modal-content span {
    order: initial !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    margin: 42px 42px 0 0 !important;
    padding: 0 !important;
    color: #d71920 !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    text-transform: none !important;
    letter-spacing: -0.8px !important;
    line-height: 1.15 !important;
}

.modal-content p {
    order: initial !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    margin: 88px 42px 34px 0 !important;
    padding: 0 12px 0 0 !important;
    color: #667085 !important;
    font-size: 15.5px !important;
    line-height: 1.75 !important;
    max-height: 190px !important;
    min-height: 120px !important;
    overflow-y: auto !important;
    white-space: pre-line !important;
}

.modal-content p::-webkit-scrollbar {
    width: 6px !important;
}

.modal-content p::-webkit-scrollbar-track {
    background: rgba(16,24,40,.06) !important;
    border-radius: 99px !important;
}

.modal-content p::-webkit-scrollbar-thumb {
    background: rgba(16,24,40,.32) !important;
    border-radius: 99px !important;
}

@media (max-width: 760px) {
    .modal-card {
        width: min(94vw, 540px) !important;
        max-height: 88vh !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 68px auto auto !important;
        overflow-y: auto !important;
    }

    .modal-content h3 {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-height: 68px !important;
        padding: 0 64px 0 22px !important;
        font-size: 16px !important;
    }

    .modal-image {
        grid-column: 1 !important;
        grid-row: 2 !important;
        min-height: 170px !important;
        padding: 24px !important;
    }

    .modal-image img {
        max-height: 130px !important;
    }

    .modal-content span {
        grid-column: 1 !important;
        grid-row: 3 !important;
        margin: 0 24px 10px !important;
        font-size: 23px !important;
    }

    .modal-content p {
        grid-column: 1 !important;
        grid-row: 3 !important;
        margin: 42px 24px 24px !important;
        max-height: 220px !important;
    }
}


/* REFERENCE CATEGORY FILTERS */
.reference-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: -28px auto 46px;
    max-width: 1120px;
}

.reference-filter-btn {
    border: 1px solid rgba(16,24,40,.10);
    background: #ffffff;
    color: #344054;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    font-weight: 850;
    font-size: 13.5px;
    box-shadow: 0 10px 28px rgba(15,23,42,.05);
    transition: .25s ease;
}

.reference-filter-btn:hover,
.reference-filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(215,25,32,.20);
    transform: translateY(-2px);
}

.reference-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 46px 20px;
    background: #ffffff;
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 8px;
    color: #667085;
    font-weight: 800;
}

.reference-card {
    animation: referenceFade .28s ease both;
}

@keyframes referenceFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:640px){
    .reference-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        margin-top: -22px;
    }

    .reference-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}


/* CONTACT SIDE CLICKABLE LINKS */
.info-card a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.info-card a:hover {
    color: var(--red, #d71920);
}


/* LANGUAGE + REFERENCE FILTER BUTTON STYLE FIX */

/* Language dropdown opens directly under the language button */
.lang,
.language-switcher {
    position: relative !important;
}

.lang-menu,
.language-menu {
    top: calc(100% + 10px) !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 92px !important;
    padding: 8px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid rgba(215,25,32,.16) !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.14) !important;
    z-index: 1200 !important;
}

.lang-menu button,
.language-menu button {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    color: #101828 !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-weight: 900 !important;
    transition: .25s ease !important;
}

.lang-menu button:hover,
.lang-menu button.active,
.language-menu button:hover,
.language-menu button.active {
    background: #d71920 !important;
    color: #ffffff !important;
}

/* Language main button same family as reference detail buttons */
.lang-current,
.language-current {
    width: auto !important;
    min-width: 68px !important;
    height: 42px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(215,25,32,.20) !important;
    background: #ffffff !important;
    color: #d71920 !important;
    box-shadow: 0 12px 26px rgba(215,25,32,.09) !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    transition: .25s ease !important;
}

.lang-current:hover,
.language-current:hover,
.lang.open .lang-current,
.language-switcher.open .language-current {
    background: #d71920 !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(215,25,32,.22) !important;
    transform: translateY(-2px);
}

/* Reference category filters: same premium button style as detail buttons */
.reference-filter-btn {
    width: auto !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(215,25,32,.20) !important;
    background: #ffffff !important;
    color: #d71920 !important;
    box-shadow: 0 12px 26px rgba(215,25,32,.09) !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    letter-spacing: -.1px !important;
    transition: .25s ease !important;
}

.reference-filter-btn:hover,
.reference-filter-btn.active {
    background: #d71920 !important;
    color: #ffffff !important;
    border-color: #d71920 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 34px rgba(215,25,32,.22) !important;
}

.reference-filters {
    gap: 11px !important;
}

/* Mobile dropdown alignment */
@media(max-width: 980px) {
    .lang-menu,
    .language-menu {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
    }

    .reference-filters {
        gap: 10px !important;
    }
}


/* FORCE ALL REQUESTED BUTTONS TO MATCH DETAIL BUTTON STYLE */

/* one exact shared style */
.detail-btn,
.detail-style-btn,
.reference-filter-btn,
.lang-current,
.language-current,
#langCurrent,
#languageCurrent {
    width: auto !important;
    min-width: unset !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(16,24,40,.12) !important;
    background: #ffffff !important;
    color: #101828 !important;
    box-shadow: none !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    line-height: 1 !important;
    transform: none !important;
    transition: .25s ease !important;
}

/* arrow/inner span behavior like detail button */
.detail-btn span {
    width: 32px;
    height: 32px;
    border-left: 1px solid rgba(16,24,40,.10);
    display: grid;
    place-items: center;
}

/* language chevron should look like detail button right icon area */
.lang-current i,
.language-current i,
#langCurrent i,
#languageCurrent i {
    width: 28px !important;
    height: 28px !important;
    margin-left: 2px !important;
    border-left: 1px solid rgba(16,24,40,.10) !important;
    display: grid !important;
    place-items: center !important;
    font-size: 11px !important;
}

/* hover and active exactly same family */
.detail-btn:hover,
.detail-style-btn:hover,
.reference-filter-btn:hover,
.reference-filter-btn.active,
.lang-current:hover,
.language-current:hover,
#langCurrent:hover,
#languageCurrent:hover,
.lang.open .lang-current,
.language-switcher.open .language-current {
    border-color: #d71920 !important;
    color: #d71920 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transform: translateY(-2px) !important;
}

/* reference filter active: do NOT fill red, keep detail-btn style */
.reference-filter-btn.active {
    border-color: #d71920 !important;
    color: #d71920 !important;
    background: #ffffff !important;
}

/* Dropdown positioning directly under language button */
.lang,
.language-switcher {
    position: relative !important;
}

.lang-menu,
.language-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    min-width: 86px !important;
    padding: 8px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1px solid rgba(16,24,40,.10) !important;
    box-shadow: 0 18px 42px rgba(15,23,42,.14) !important;
    z-index: 9999 !important;
}

.lang-menu button,
.language-menu button {
    width: 100% !important;
    min-height: 36px !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #101828 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

.lang-menu button:hover,
.lang-menu button.active,
.language-menu button:hover,
.language-menu button.active {
    border-color: #d71920 !important;
    color: #d71920 !important;
    background: #ffffff !important;
}

/* Filters alignment */
.reference-filters {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Mobile fix */
@media(max-width: 980px) {
    .lang-menu,
    .language-menu {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
    }

    .reference-filters {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 8px !important;
    }

    .reference-filter-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}


/* REMOVE ONLY TOP HEADER SOCIAL ICONS - EXACT */
.site-header .socials,
.header .socials,
.nav-wrap .socials,
.nav-right .socials,
.header-actions .socials {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Keep footer social icons visible */
.footer-social,
.footer-social a {
    display: flex !important;
    visibility: visible !important;
}
.footer-social a {
    display: grid !important;
}
