/* SERFIX Aruba – static rebuild of the original WordPress/Elementor one-page site */

:root {
  --red: #c62127;
  --red-dark: #991a1e;
  --text: #888888;
  --heading: #000000;
  --dark: #222222;
  --header-dark: #3c3c3c;
  --light: #f4f4f4;
  --border: #e4e4e4;
  --header-h: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-weight: 300; color: var(--heading); margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-title { font-size: 40px; line-height: 1.2; letter-spacing: -0.5px; }
.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; margin-right: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
.mobile-topbar { display: none; }
.header-bar {
  display: grid;
  grid-template-columns: 26% 1fr auto;
  align-items: stretch;
  min-height: var(--header-h);
}
.header-logo {
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  padding: 10px 20px;
}
.header-logo img { max-height: 70px; width: auto; transition: max-height .3s; }
.header-nav {
  background: var(--header-dark);
  display: flex; align-items: center;
  padding: 0 30px;
  position: relative;
}
.main-menu { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.main-menu a {
  display: block; position: relative;
  color: #fff; font-weight: 500; font-size: 14px; letter-spacing: 1px;
  padding: 10px 18px;
}
/* underline "drop-out" pointer like Elementor */
.main-menu a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px;
  height: 3px; background: var(--red);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s, transform .3s;
}
.main-menu a:hover, .main-menu a.active { color: #fff; }
.main-menu a:hover::after, .main-menu a.active::after { opacity: 1; transform: translateY(0); }

.header-phone {
  background: var(--header-dark);
  display: flex; align-items: center; padding: 0 30px;
}
.phone-link { color: #fff; font-size: 22px; font-weight: 400; white-space: nowrap; }
.phone-link:hover { color: var(--red); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header.scrolled .header-logo img { max-height: 54px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(80vh - var(--header-h));
  min-height: 600px;
  height: 80vh;
  background-size: cover;
  background-position: center center;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 40px 40px; }
.hero-kicker { font-size: 30px; line-height: 1.2; color: #6b6b6b; margin: 0 0 18px; letter-spacing: 0; }
.hero-line { display: block; width: 320px; max-width: 70%; height: 3px; background: rgba(107,107,107,.5); margin-bottom: 4px; }
.hero-title { font-size: 50px; line-height: 80px; color: #6b6b6b; margin: 0; max-width: 700px; }
.hero-text { font-size: 21px; line-height: 27px; font-weight: 400; color: #6b6b6b; max-width: 657px; margin: 10px 0 40px; }
.hero-btn {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 20px; line-height: 26px; font-weight: 500;
  padding: 12px 35px; border-radius: 3px;
  transition: background .2s;
}
.hero-btn:hover { background: #e00021; color: #fff; }

/* hero entrance animations (replaces Slider Revolution) */
.anim { opacity: 0; }
.loaded .anim-drop { animation: drop 1.5s cubic-bezier(.65,0,.35,1) forwards; }
.loaded .anim-zoom { animation: zoomIn 1.5s cubic-bezier(.16,1,.3,1) forwards; }
.loaded .anim-fade { animation: fadeIn .6s ease forwards .3s; }
@keyframes drop   { from { opacity: 0; transform: translateY(-100%); clip-path: inset(100% 0 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Services ---------- */
.services { padding: 80px 0; background: #fff; }
.services-wrap {
  display: grid;
  grid-template-columns: 26.3% 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,.08);
  padding: 50px;
  margin-top: -140px;
  position: relative; z-index: 2;
}
.services-intro p { font-size: 15px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

/* Flip box – "slide" effect, direction left */
.flip {
  position: relative;
  height: 333px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: default;
  outline: none;
}
.flip-front, .flip-back {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 25px;
  background: #fff;
}
.flip-front img { width: 75%; max-width: 180px; margin-bottom: 15px; }
.flip-front h3 { font-size: 16px; font-weight: 400; margin: 0; }
.flip-back {
  transform: translateX(100%);
  transition: transform .6s cubic-bezier(.2,.85,.4,1.275);
  z-index: 2;
}
.flip-back p { font-size: 13px; line-height: 22px; margin: 0; color: #555; }
.flip:hover .flip-back,
.flip:focus .flip-back,
.flip.is-flipped .flip-back { transform: translateX(0); }

/* ---------- Banner ---------- */
.banner { padding-bottom: 20px; }
.banner img { width: 100%; }

/* ---------- Projects ---------- */
.projects { padding: 60px 0 40px; }
.projects-head {
  display: grid; grid-template-columns: 42.65% 1fr; gap: 30px; align-items: center;
  margin-bottom: 50px;
}
.projects-head .section-title { margin: 0; }
.projects-head p { margin: 0; }
.project {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,.06);
  margin-bottom: 30px;
}
.project-text { padding: 40px 60px; }
.project-text h2 { font-size: 30px; line-height: 1.3; }
.project-img img { width: 100%; }
.project--rev .project-text { order: 2; }
.project--rev .project-img { order: 1; }

/* ---------- CCTV ---------- */
.cctv { padding: 40px 0 80px; text-align: center; }
.cctv img { margin: 30px auto 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--light); }
.cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding-top: 60px; padding-bottom: 60px;
}
.cta-left { background: #fff; padding: 40px; box-shadow: 0 0 30px rgba(0,0,0,.06); }
.cta-left a:not(.cta-btn) { text-decoration: underline; }
.cta-btn {
  display: block; text-align: center;
  background: var(--red); color: #fff;
  font-size: 18px; font-weight: 500; padding: 18px 20px; margin-bottom: 25px;
  transition: transform .3s, background .2s;
}
.cta-btn:hover { background: var(--red-dark); color: #fff; transform: scale(1.03); }
.cta-right {
  background: var(--dark); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 40px;
}
.cta-phone { color: #fff; font-size: 34px; font-weight: 300; margin-bottom: 20px; }
.cta-phone:hover { color: var(--red); }
.cta-small {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 13px; padding: 8px 18px;
}
.cta-small:hover { color: #fff; animation: buzz .15s linear infinite; }
@keyframes buzz { 50% { transform: translateX(3px) rotate(2deg); } 100% { transform: translateX(-3px) rotate(-2deg); } }

.footer-main { background: var(--dark); color: #bbb; padding: 60px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 40px; }
.footer-main h2 { color: #fff; font-size: 30px; margin-bottom: 20px; }
.footer-main a { color: #fff; }
.footer-main a:hover { color: var(--red); }
.footer-spaced { margin-top: 65px; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu a { font-weight: 400; letter-spacing: 1px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid #3a3a3a;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 20px; padding-bottom: 20px; font-size: 14px;
}
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.scrollup {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.scrollup svg { width: 24px; height: 24px; fill: #fff; }
.scrollup.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header-bar { grid-template-columns: 30% 1fr auto; }
  .phone-link { font-size: 16px; }
  .header-nav, .header-phone { padding: 0 15px; }
  .services-wrap { grid-template-columns: 1fr; margin-top: -80px; padding: 40px 30px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 44px; line-height: 64px; }
  .project-text { padding: 30px; }
}

@media (max-width: 767px) {
  :root { --header-h: 70px; }
  .mobile-topbar {
    display: block; background: var(--header-dark); text-align: right; padding: 4px 15px;
  }
  .mobile-topbar .phone-link { font-size: 15px; }
  .header-bar { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
  .header-nav { order: 1; padding: 0 10px; }
  .header-logo { order: 2; justify-content: flex-end; }
  .header-logo img { max-height: 50px; }
  .menu-toggle { display: block; }
  .main-menu {
    position: absolute; top: 100%; left: 0; width: 100vw;
    flex-direction: column; gap: 0;
    background: var(--header-dark);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-menu.open { max-height: 300px; }
  .main-menu a { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); }
  .main-menu a::after { display: none; }

  .hero { height: auto; min-height: 560px; text-align: center; }
  .hero-inner { padding: 50px 20px; }
  .hero-kicker { font-size: 26px; }
  .hero-line { margin: 0 auto 4px; width: 262px; }
  .hero-title { font-size: 32px; line-height: 44px; font-weight: 500; margin: 0 auto; }
  .hero-text { font-size: 18px; line-height: 28px; font-weight: 500; margin: 20px auto 30px; }
  .hero-btn { font-size: 17px; }

  .section-title { font-size: 30px; }
  .services { padding: 40px 0; }
  .services-wrap { margin-top: 0; padding: 25px 15px; box-shadow: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .flip { height: 280px; }
  .flip-back { padding: 15px; }
  .flip-back p { font-size: 12.5px; line-height: 19px; }

  .projects-head { grid-template-columns: 1fr; gap: 10px; }
  .project, .project--rev { grid-template-columns: 1fr; }
  .project .project-img, .project--rev .project-img { order: 1; }
  .project .project-text, .project--rev .project-text { order: 2; padding: 25px 20px; text-align: center; }
  .project-text h2 { font-size: 24px; }

  .cta { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 30px; }
  .cta-left, .cta-right { padding: 25px; }
  .cta-right { align-items: center; text-align: center; }
  .footer-cols { grid-template-columns: 1fr; text-align: center; }
  .footer-spaced { margin-top: 0; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; clip-path: none !important; }
  .flip-back { transition: none; }
}
