:root{
  --primary-color:#2E86AB;
  --secondary-color:#56B870;
  --accent-color:#F6F7F8;
  --text-dark:#333;
  --text-light:#fff;
  --font-main:'Helvetica Neue',Helvetica,Arial,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:var(--font-main);
  color:var(--text-dark);
  background:#fcfcfc;
  line-height:1.6;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Container (site-wide) ---------- */
.container{
  width:95%;
  margin:0 auto;
  /* no display:flex here — container is a generic wrapper */
}

/* ---------- Header (header-specific flex row) ---------- */
.header-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

/* Header visuals */
header{background:var(--primary-color);position:sticky;top:0;z-index:1000;padding:0.6rem 0}
.logo-img {
    height: 48px;   /* recommended */
    width: auto;
    display: block;
    margin-right: 10px;
}
.logo{color:var(--text-light);font-weight:700;font-size:1.6rem;display:flex;align-items:center;gap:0px;text-decoration:none}
.logo span{color:var(--secondary-color)}
nav ul{list-style:none;display:flex;gap:18px;align-items:center}
nav a{color:var(--text-light);text-decoration:none;font-weight:500}
.menu-toggle{display:none;background:transparent;border:0;color:var(--text-light);font-size:1.8rem;cursor:pointer}

/* ---------- Hero slider ---------- */
.hero{position:relative;height:95vh;overflow:hidden;background:#000}
.slide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;
  opacity:0;visibility:hidden;transition:opacity .9s ease,visibility .1s;
  background-size:cover;background-position:center}
.slide.active{opacity:1;visibility:visible}
.slide::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.4);z-index:1}
.hero-content{position:relative;z-index:2;color:#fff;padding:20px;max-width:980px;width:100%}
.hero-content h1{font-size:3rem;margin-bottom:1rem;line-height:1.05}
.hero-content p{font-size:1.1rem;max-width:800px;margin: 30px auto}

/* ---------- Buttons ---------- */
.btn{background:var(--secondary-color);color:#fff;padding:10px 24px;border-radius:6px;border:0;font-weight:700;text-decoration:none;cursor:pointer}
.btn:hover{background:#429658}

/* ---------- Sections ---------- */
.section{padding:60px 0}
.container .lead{max-width:800px;margin:0 auto;text-align:center}
.section-title{text-align:center;margin-bottom:40px;font-size:2rem;color:var(--primary-color);width:100%;display:block}

/* ---------- Services grid ---------- */
.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.service-card{background:#fff;padding:26px;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.06);text-align:center}
.service-icon{font-size:2.8rem;color:var(--secondary-color);margin-bottom:12px}

/* ---------- About ---------- */
.about-content{display:flex;gap:30px;align-items:flex-start;padding-left:0}
.about-text{flex:1}
.about-img{flex:1;display:flex;flex-direction:column;gap:16px}
.about-img img{    width: 100%;            /* scales within its column */
    max-width: 100%;        /* prevents overflow */
    height: auto;           /* keeps correct aspect ratio */
    border-radius: 8px;
    object-fit: cover;      /* clean cropping if needed */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);}
.centered-card{background:#fff;padding:30px;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.06);margin:0 auto;max-width:700px}
.team-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
}

/* ---------- Contact form ---------- */
.contact-form{max-width:700px;margin:0 auto;background:#fff;padding:26px;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.05)}
.form-group{margin-bottom:16px}
.form-group label{display:block;margin-bottom:6px;font-weight:600}
.form-group input,.form-group textarea,.form-group select{width:100%;padding:10px;border:1px solid #ddd;border-radius:6px}
.form-group.split{display:flex;gap:12px}
.form-group.split > div{flex:1}
/* Popup overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Popup box */
.popup-box {
  background: #fff;
  padding: 30px 26px;
  text-align: center;
  border-radius: 10px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Success tick */
.popup-success {
  font-size: 52px;
  color: #22c55e; /* green */
}

/* Error icon */
.popup-error {
  font-size: 52px;
  color: #ef4444; /* red */
}


/* ---------- Career ---------- */
.about-ul{    margin-top: 16px; margin-bottom: 30px;}
.career-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    text-align: left;
    display: inline-block;    /* keep centered box */
}

.career-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.career-list .emoji {
    font-size: 1.4rem;
}
/* ---------- Footer ---------- */
footer{background:#333;color:#fff;padding:15px 0;margin-top:auto;text-align:center}

/* ---------- Responsive ---------- */
@media (max-width: 992px){
  .hero{height:520px}
  .hero-content h1{font-size:2.4rem}
}

@media (max-width: 768px){
  .menu-toggle{display:block}
  nav ul{display:none;position:absolute;top:100%;left:0;width:100%;flex-direction:column;background:var(--primary-color);padding:0;margin:0;box-shadow:0 8px 20px rgba(0,0,0,.08)}
  nav ul.active{display:flex}
  nav ul li{border-top:1px solid rgba(255,255,255,.08)}
  nav ul li a{display:block;padding:14px;font-size:1.05rem}

  .hero{height:420px}
  .hero-content{padding-left:18px;padding-right:18px}
  .hero-content h1{font-size:2rem;line-height:1.05}
  .hero-content p{font-size:1rem}

  .btn{width:100%;padding:14px}

  .section{padding:36px 0}
  .container{width:95%}
  .services-grid{grid-template-columns:1fr}

  /* Section title: appear at top and left-aligned on mobile */
  .section-title{
    text-align:left;
    margin-bottom:20px;
    font-size:1.7rem;
    width:100%;
    display:block;
    order:-1; /* only takes effect if inside a flex parent; harmless otherwise */
  }

  /* About stacking */
  .about-content{flex-direction:column;align-items:stretch;padding-left:0}
  .about-img img {
    max-height: 280px;  /* prevents giant images on phones */
    }
  .form-group.split{flex-direction:column}
}
