/* ========== RESET + BASE (MATCH INDEX) ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --teal: #176d80;
  --orange: #f7931e;
  --text: #0e2f36;
  --muted: #9D9E91;
  --ease: cubic-bezier(.2,.8,.2,1);
}

html, body{
  width: 100%;
  overflow-x: hidden;
}

body{
  font-family: 'Rotis sans serif', sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.4;
  scroll-behavior: smooth;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* ========== HEADER (MATCH INDEX) ========== */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}

header.is-scrolled{
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.96);
}

.header-left img {
  height: 120px;
  padding: 10px 20px;
  display: block;
}

.burger{
  display:none;
  font-size:30px;
  cursor:pointer;
  color: var(--teal);
  user-select:none;
}

/* Nav */
.nav-menu{
  background: var(--orange);
  padding:55px 100px;
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0% 100%);
  display:flex;
  gap:40px;
  align-items:center;
}

.nav-menu a{
  color: var(--teal);
  font-weight:800;
  text-decoration:none;
  letter-spacing:.4px;
  position:relative;
  transition: transform .25s var(--ease), color .25s var(--ease);
}

.nav-menu a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-10px;
  width:70%;
  height:3px;
  border-radius:3px;
  background: var(--teal);
  transform: translateX(-50%) scaleX(0);
  transform-origin:center;
  transition: transform .28s var(--ease);
}

.nav-menu a:hover{
  transform: translateY(-1px);
  color:#0c4251;
}

.nav-menu a:hover::after,
.nav-menu a.active::after{
  transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active{ color: var(--muted); }

/* ========== SHARED LINES (MATCH INDEX) ========== */
.orange-line{
  width:40px;
  height:3px;
  background: var(--orange);
  border:none;
  margin-bottom:16px;

  opacity:0;
  transform: translateY(10px);
  animation: fadeUp .9s var(--ease) forwards;
  animation-delay: .12s;
}

.green-line{
  width:20px;
  height:3px;
  background: var(--teal);
  border:none;
  margin-bottom:16px;

  opacity:0;
  transform: translateY(10px);
  animation: fadeUp .9s var(--ease) forwards;
  animation-delay: .20s;
}

/* ========== CONTACT LAYOUT ========== */
.contact-section{
  display:flex;
  flex-wrap:wrap;
  min-height: 100vh;
  width:100%;
  box-sizing:border-box;
  padding: 30px 20px;
  gap: 22px;
  align-items: flex-start;
}

.form-section{
  flex: 1 1 58%;
  min-width: 320px;
}

/* Grid that holds the panels */
.contact-grid{
  display: grid;
  gap: 18px;
}

/* ========== PANELS (CONTAINERS) ========== */
.panel{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);

  opacity:0;
  transform: translateY(16px);
  animation: fadeUp .9s var(--ease) forwards;
}

.panel-form{ animation-delay: .10s; }
.panel-details{ animation-delay: .18s; }
.panel-clients{ animation-delay: .26s; }

.panel h2{
  color: var(--teal);
  font-weight: 860;
  font-size: 32px;
  margin-bottom: 8px;
}

.panel h3{
  color: var(--orange);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
}

/* ========== FORM ========== */
form{
  display:flex;
  flex-direction:column;
  gap: 14px;
  margin-top: 6px;
}

form label{
  font-weight: 700;
  color: var(--text);
}

form input,
form textarea{
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 10px;
  font-size: 16px;
  width: 100%;
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  background: #fff;
  color: var(--text);
  margin-top: 8px;
}

form input::placeholder,
form textarea::placeholder{
  color: rgba(14,47,54,0.55);
}

form input:focus,
form textarea:focus{
  border-color: rgba(23,109,128,0.55);
  box-shadow: 0 0 0 4px rgba(23,109,128,0.14);
}

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

/* CTA Button (MATCH INDEX) */
.cta-btn{
  background: var(--orange);
  color: var(--teal);
  border: none;
  padding: 14px 26px;
  cursor: pointer;
  font-weight: 900;
  border-radius: 10px;
  width: fit-content;

  box-shadow: 0 6px 0 #b46810, 0 12px 26px rgba(0,0,0,0.14);
  transition: transform .25s var(--ease), filter .25s var(--ease), box-shadow .25s var(--ease);
}

.cta-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 6px 0 #b46810, 0 16px 32px rgba(0,0,0,0.18);
}

.cta-btn:active{ transform: translateY(0); }

/* ========== CONTACT DETAILS LIST ========== */
.contact-card{
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 6px;
}

.sub-list{
  list-style:none;
  margin-top: 10px;
  padding-left: 0;
}

.sub-list li{
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--text);
  line-height: 1.25;
  display:flex;
  align-items:flex-start;
  gap: 10px;
}

.icon{
  width: 20px;
  margin-top: 2px;
}

/* Clean divider inside details card */
.divider{
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 14px 0;
}

/* Brand links */
.panel a{
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
  transition: color .25s var(--ease);
}

.panel a:hover{
  color:#0c4251;
  text-decoration: underline;
}

/* ========== CLIENT LOGOS ========== */
.client-logos{
  display:flex;
  gap: 18px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding: 10px 0 4px;
}

.client-logos::-webkit-scrollbar{ display:none; }

.client-logos img{
  width: 120px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  flex: 0 0 auto;
  transition: transform .25s var(--ease);
}

.client-logos img:hover{
  transform: translateY(-2px) scale(1.03);
}

/* ========== RIGHT IMAGE PANEL (MATCH INDEX DEPTH + REVEAL) ========== */
.image-box{
  flex: 1 1 38%;
  min-width: 320px;
  background: var(--teal);
  position: relative;
  height: auto;
  margin-left: -30px;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
  align-self: flex-start;
}

.image-box::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,0.18), rgba(0,0,0,0));
  pointer-events:none;
}

.image-overlay{
  background: var(--orange);
  position: relative;
  margin-left: -30px;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  height: 100%;
}

.image-overlay img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin-left: 10px;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);

  opacity:0;
  transform: scale(1.02);
  animation: imgIn 1s var(--ease) forwards;
  animation-delay: .22s;
}

/* ========== FOOTER (MATCH INDEX) ========== */
footer{
  background: linear-gradient(90deg, #0c4251, #a5e2ef, #0c4251);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1000;
}

footer a{
  color:#fff;
  text-decoration: underline;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp{ to{ opacity:1; transform: translateY(0); } }
@keyframes imgIn{ to{ opacity:1; transform: scale(1); } }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px){
  header{
    flex-direction: row;
    align-items:center;
    padding: 12px 16px;
  }

  .header-left img{
    height: 95px;
    padding: 8px 10px;
  }

  .burger{
    display:block;
    position:absolute;
    top:22px;
    right:16px;
  }

  .nav-menu{
    position:absolute;
    right:0;
    top:100%;
    width:100%;
    display:none;
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
    clip-path:none;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.12);
  }

  .nav-menu.show{ display:flex; }

  .nav-menu a::after{
    bottom: -8px;
    width: 40%;
  }

  .contact-section{
    flex-direction: column;
    padding: 20px;
  }

  .form-section,
  .image-box{
    min-width: 100%;
    width: 100%;
  }

  .cta-btn{
    width: 100%;
    text-align: center;
  }

  .image-box,
  .image-overlay,
  .image-overlay img{
    clip-path:none;
    margin-left:0;
    height:auto;
  }

  .image-overlay img{
    margin-left:0;
    width:100%;
    height:auto;
  }

  .client-logos{
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .client-logos img{
    width: 100px;
    height: 60px;
  }

  .sub-list li{ font-size: 16px; }

  footer{
    font-size: 12px;
    padding: 10px;
  }
}

/* ✅ DESKTOP ONLY: hide image */
@media (min-width: 1024px){
  .image-box{
    display: none;
  }
}
