:root{
  --bg:#e8f6f4;
  --accent:#0e7b6b;
  --muted:#6b7a80;
  --card:#fff;
  --radius:12px;
  --shadow:0 6px 18px rgba(10,20,20,0.06);
  font-family:"Inter",system-ui,sans-serif;
}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:#123;
  line-height:1.5;
  scroll-behavior:smooth;
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 32px;
}

/* Header */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 40px;
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(8px);
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--accent)
}

.logo img{
  height:46px;
  width:auto;
}

.brand{
  font-weight:700;
  font-size:20px;
}

nav a{
  margin-left:22px;
  color:#123;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
}

nav a:hover{
  color:var(--accent);
}

/* Hero */
.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  background:linear-gradient(180deg,#f0faf8,#e8f6f4);
  border-radius:16px;
  padding:60px 40px;
  margin-top:30px;
  box-shadow:var(--shadow);
}

.hero-text{
  flex:1 1 55%;
  min-width:280px;
}

.hero-text h1{
  font-size:2.2rem;
  margin:0 0 12px;
  color:#043;
}

.hero-text p{
  margin:0 0 18px;
  color:var(--muted);
  max-width:550px;
}

.hero-img{
  flex:1 1 35%;
  min-width:260px;
}

.small-text{
  font-size:14px;
  color:var(--muted);
}

.small-list{
  margin:0 0 0 18px;
  font-size:14px;
  color:var(--muted);
}

/* Buttons */
.btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:12px 20px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
}

.btn:hover{
  opacity:0.9;
}

/* Services */
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
}

.services{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
  margin-top:22px;
}

.service h4{
  margin:6px 0;
  color:var(--accent);
}

.service div{
  color:var(--muted);
  font-size:14px;
}

section{
  margin-top:40px;
}

/* Portfolio */
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:18px;
  margin-top:18px;
}

.portfolio-item{
  border-radius:10px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.portfolio-item img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

.portfolio-item span{
  display:block;
  padding:10px;
  font-weight:600;
  font-size:14px;
  color:var(--muted);
  background:#fff;
}

/* ★★★ Offices (now wrapped & aligned) */
.offices{
  background:#f5fbfa;
  padding:80px 0;
}

.offices h2{
  font-size:32px;
  color:#0e7b6b;
  text-align:center;
  margin:0;
}

.subtitle{
  text-align:center;
  font-size:16px;
  color:#555;
  margin-top:10px;
  margin-bottom:50px;
}

.office-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:40px;
}

.office-card img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:14px;
  box-shadow:0 6px 20px rgba(0,0,0,0.1);
}

.office-card h3{
  color:#0e7b6b;
  margin:20px 0 8px;
  text-align:center;
}

.office-card p{
  margin:0;
  font-size:15px;
  color:#345;
  line-height:1.7;
  text-align:center;
}

/* ★★★ Contact Section (aligned) */
#contact{
  margin:80px 0;
}

.contact-box{
  background:#fff;
  padding:40px;
  border-radius:16px;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
  max-width:850px;
  margin:0 auto;
}

#contact h3{
  text-align:center;
  color:#0e7b6b;
  margin-bottom:25px;
}

form label{
  display:block;
  font-weight:600;
  margin:10px 0 6px;
}

form input,
form select,
form textarea{
  width:100%;
  padding:10px;
  border:1px solid #e0e6e8;
  border-radius:8px;
  font-size:15px;
}

form textarea{
  min-height:100px;
  resize:vertical;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

@media(max-width:800px){
  .form-row{
    grid-template-columns:1fr;
  }
}

/* ★★★ Footer (wrapped and aligned) */
footer{
  background:linear-gradient(180deg,#f3faf9 0%,#e9f6f4 100%);
  border-top:1px solid #d7ebe8;
  padding:60px 0 25px;
  color:#234;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:40px;
  align-items:start;
}

.footer-logo{
  height:55px;
  width:auto;
  margin-bottom:10px;
}

.company-box{
  font-size:14px;
  color:#345;
  margin-top:10px;
  line-height:1.6;
}

.footer-img-box{
  width:100%;
  height:230px;
  overflow:hidden;
  border-radius:14px;
  box-shadow:0 6px 20px rgba(0,0,0,0.1);
}

.footer-img-box img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.bottom{
  text-align:center;
  font-size:13px;
  color:#678;
  margin-top:35px;
}

/* Popup */
#popup{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.4);
  align-items:center;
  justify-content:center;
  z-index:1000;
}

#popup .box{
  background:#fff;
  padding:24px 28px;
  border-radius:12px;
  max-width:340px;
  text-align:center;
}

#popup .box h3{
  color:var(--accent);
  margin-top:0;
}

#popup .box button{
  background:var(--accent);
  color:#fff;
  border:none;
  border-radius:8px;
  padding:8px 18px;
  cursor:pointer;
}
