/* FINAL — Hero + mobile menu + subtle animation, centered text */
:root{
  --bg:#e6fffa;
  --surface:#fff;
  --text:#0f172a;
  --muted:#475569;
  --shadow:0 10px 30px rgba(2,8,23,.08);
  --radius:18px;
  --teal-500:#14b8a6;
  --blue-500:#3b82f6;
  --violet-500:#8b5cf6;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

/* Layout helpers */
.container{max-width:1120px;margin:0 auto;padding:0 20px}
.section{padding:72px 0}
.section.alt{background:linear-gradient(180deg,rgba(255,255,255,.85),rgba(255,255,255,.7))}
.section-title{font-size:clamp(26px,3vw,36px);margin:0 0 8px}
.grid-2{display:grid;grid-template-columns:1.1fr .9fr;gap:40px}
.stack>*{margin:0 0 14px}
.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:44px;
  padding:0 16px;
  border-radius:12px;
  border:1px solid rgba(2,8,23,.08);
  cursor:pointer;
  text-decoration:none;
  font-weight:600;
}
.btn:hover{transform:translateY(-1px);transition:transform .15s ease}
.btn-primary{
  background:linear-gradient(135deg,var(--teal-500),var(--blue-500),var(--violet-500));
  color:#fff;
  border:0;
  box-shadow:var(--shadow);
}
/* Helpdesk button */
.btn-helpdesk{
  background:transparent;
  color:var(--teal-500);
  border:none;
  font-weight:600;
  height:36px;
  padding:0 12px;
  white-space:nowrap;
  border-radius:12px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}
.btn-helpdesk:hover{transform:translateY(-1px);transition:transform .15s ease}

.eyebrow{letter-spacing:.12em;font-weight:700;color:var(--teal-500);font-size:12px}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(2,8,23,.06);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:120px;
  padding:0 40px;
  position:relative;
}
.brand img{height:108px;width:480px}
.main-nav{gap:18px;position:relative}
.menu-toggle{
  display:none;
  align-items:center;
  background:var(--teal-500);
  color:#fff;
  border:none;
  padding:14px 28px;
  border-radius:12px;
  font-weight:600;
  font-size:16px;
  cursor:pointer;
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  z-index:1000;
  box-shadow:0 4px 12px rgba(20,184,166,.3);
}
.nav-list{
  display:flex;
  align-items:center;
  gap:2px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-list a{
  color:#0f172a;
  text-decoration:none;
  font-weight:600;
  padding:10px 8px;
  border-radius:10px;
}
.nav-list a:hover{background:rgba(2,8,23,.06)}
.nav-list .btn{
  height:36px;
  padding:0 12px;
  white-space:nowrap;
}
.nav-list a.active{background:rgba(20,184,166,.18)}

/* Mobile Menu */
.mobile-menu{
  position:fixed;
  top:0;
  right:-300px;
  width:300px;
  height:100%;
  background:#fff;
  box-shadow:-6px 0 30px rgba(0,0,0,.2);
  z-index:999;
  transition:right .35s cubic-bezier(0.4,0,0.2,1);
  padding:0;
  overflow-y:auto;
  display:block !important;
}
.mobile-menu.open{right:0}
.mobile-menu .mobile-header{
  padding:20px 30px 10px;
  font-weight:600;
  color:#0f172a;
  font-size:18px;
  border-bottom:1px solid #eee;
}
.mobile-menu .nav-list{
  display:block !important;
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
}
.mobile-menu .nav-list li{width:100%}
.mobile-menu .nav-list a{
  display:block !important;
  padding:18px 30px;
  font-size:20px;
  color:#0f172a !important;
  border-bottom:1px solid #eee;
  transition:all .2s;
  text-decoration:none;
}
.mobile-menu .nav-list a:hover{
  color:var(--teal-500);
  background:rgba(20,184,166,.1);
}

/* HERO — background-based, with subtle animation */
.hero{
  position:relative;
  min-height:440px;
  display:flex;
  align-items:center;           /* center child vertically */
  justify-content:center;       /* center child horizontally */
  overflow:hidden;
  background:#020617;
  background-size:cover;
  background-position:50% 50%;
  background-repeat:no-repeat;
  animation:hero-pan 24s ease-in-out infinite alternate;
}

/* Teal-tinted overlay for contrast */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    135deg,
    rgba(15,23,42,0.8),
    rgba(20,184,166,0.55)
  );
  z-index:0;
  pointer-events:none;
}

/* hero content */
.hero .inner{
  position:relative;
  color:#fff;
  text-shadow:0 2px 9px rgba(0,0,0,.6);
  z-index:1;
  animation:hero-content 900ms ease-out 120ms backwards;
  text-align:center;            /* center text */
  max-width:800px;
  width:100%;
  padding:64px 20px 104px;      /* a bit more bottom than top -> text sits higher */
}
.hero h1{
  font-size:clamp(28px,4vw,44px);
  margin:0 0 10px;
}
.hero .actions{
  display:flex;
  justify-content:center;
}
.hero .actions .btn{
  box-shadow:0 10px 30px rgba(20,184,166,.25);
}

/* Background pan animation (position only) */
@keyframes hero-pan{
  0%{
    background-position:50% 48%;
  }
  100%{
    background-position:50% 52%;
  }
}

/* Text fade/slide animation */
@keyframes hero-content{
  0%{
    opacity:0;
    transform:translateY(24px);
  }
  100%{
    opacity:1;
    transform:translateY(0);
  }
}

/* Per-page hero backgrounds */
.hero-home{
  background-image:url("assets/server_room.jpeg");
}
.hero-services{
  background-image:url("assets/services.jpeg");
}
.hero-about{
  background-image:url("assets/about.jpeg");
}
.hero-clients{
  background-image:url("assets/clients.jpeg");
}
.hero-insights{
  background-image:url("assets/insights.jpeg");
}
.hero-contact{
  background-image:url("assets/contact.jpeg");
}

/* Footer */
.site-footer{
  padding:36px 0;
  border-top:1px solid rgba(2,8,23,.06);
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(6px);
}
.footer-grid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

/* Forms */
label{
  display:grid;
  gap:6px;
  font-weight:600;
  margin-bottom:12px;
}
input,select,textarea{
  height:42px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(2,8,23,.12);
  background:#fff;
  color:var(--text);
  outline:none;
}
textarea{height:auto;resize:vertical}
input:focus,select:focus,textarea:focus{
  border-color:var(--blue-500);
  box-shadow:0 0 0 3px rgba(59,130,246,.15);
}

/* Desktop */
@media (min-width:721px){
  .mobile-menu,
  .menu-toggle{display:none !important}
}

/* Mobile */
@media (max-width:720px){
  .header-inner{height:80px;padding:0 16px}
  .brand img{height:60px}
  .nav-list{display:none}
  .menu-toggle{display:flex;right:16px}

  /* Single column layout */
  .grid-2{
    grid-template-columns:1fr;
    gap:24px;
  }
/* Prevent cards from overflowing grid */
  .grid-2 figure.card{
    min-width:0;
    width:100%;
    margin:0 auto;
  }
  /* Reduce vertical breathing room */
  .section{padding:48px 0}
  .container{padding:0 16px}

  /* Hero tightening */
  .hero{min-height:300px}
  .hero .inner{
    padding:52px 16px 68px;
  }
  .hero h1{font-size:clamp(22px,6vw,32px)}

  /* Full-width form elements */
  input,
  select,
  textarea{
    width:100%;
    font-size:16px; /* prevents iOS auto-zoom on focus */
  }

  /* Full-width CTA button inside card */
  .card .btn{
    width:100%;
    height:48px;       /* easier tap target */
  }

  /* Card padding reduction */
  .card{padding:18px 16px}

  /* Footer stacks vertically */
  .footer-grid{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    text-align:left;
  }
  /* Hide helpdesk button in mobile header */
  .btn-helpdesk{display:none}
}  
