* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f6f9fc;
  color: #1e293b;
  overflow-x: hidden;
}

/* Header */
.header {
  background: #e6f3f5;
  padding: 18px 40px;
  border-bottom: 1px solid #e5e7eb;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 50;
}


.header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Brand */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0f172a; 
}

.brand-logo{
  width: 70px;    
  height: 70px;
  object-fit: contain;
  border-radius: 12px;
  padding: 6px;
}

.brand-text{ line-height: 1.1; }
.brand-name{
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .2px;
  color: #0f172a;
}
.brand-tagline{
  margin-top: 4px;
  font-size: 12.5px;
  color: #475569; 
}

/* Nav */
.nav{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link{
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 10px;
  border-radius: 10px;
}

.nav-link:hover{
  background: rgba(15,124,134,.10);
  color: #0f7c86;
}

/* CTA */
.nav-cta{
  background: #0f7c86;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.nav-cta:hover{
  background: #0c6c74;
}

/* Prevent anchor jumps hiding behind sticky header */
body { scroll-padding-top: 90px; }

/* Mobile */
@media (max-width: 720px){
  .header-inner{
    align-items: flex-start;
    flex-direction: column;
  }
  .nav{ width: 100%; }
  .nav-cta{ width: 100%; }
}

/* Marquee */
.marquee {
  background: #e0f2f1;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  padding: 10px 0;
}

.marquee-track {
  display: inline-block;
  animation: scroll 25s linear infinite;
}

.marquee-item {
  margin: 0 12px;
  font-weight: 600;
  color: #0f7c86;
}

.dot {
  color: #94a3b8;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Layout */
.main {
  display: flex;
  gap: 25px;
  padding: 40px;
}

/* Understanding Card */
.about, .services {
  width: 100%;
  max-width: 100%;
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.about {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-text {
  margin-top: 10px;
  width: 100%;
}

.about-body {
  font-size: 16px;
  color: #475569;
  line-height: 1.8;
}

.about .btn {
  margin-top: 50px;   
}

.photo {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,.08);
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Titles */
h1, h2 { margin-top: 0; }

/* Button */
.btn {
  background: #0f7c86;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
}

.btn:hover {
  background: #0c6c74;
}

/* Services Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.service {
  background: #f1f5f9;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: .2s;
  border: 1px solid #e2e8f0;
}

.service:hover {
  background: #0f7c86;
  color: white;
}

/* Hover Bubble */
.bubble {
  background: #e0f2f1;
  padding: 18px;
  border-radius: 14px;
  border-left: 6px solid #0f7c86;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  color: #64748b;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Modal */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(15, 23, 42, .45);
  justify-content:center;
  align-items:center;
  padding: 18px;
  z-index: 100;
}

.modal-box{
  width: 100%;
  max-width: 520px;
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-close{
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

.modal-close:hover{
  background: rgba(15,124,134,.10);
}

.field{
  display:block;
  margin: 12px 0;
}

.field span{
  display:block;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  margin-bottom: 6px;
}

.field input, .field textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  font-size: 14px;
}

.field input[readonly]{
  background: #f1f5f9;
}

.modal-note{
  margin: 10px 0 0;
  font-size: 12px;
  color: #64748b;
}

.field select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  font-size: 14px;
  background: white;
}


/* ===== Mobile Fix ===== */
@media (max-width: 820px){
  .main{
    display: grid;
    grid-template-columns: 1fr;  /* stack */
    gap: 16px;
    padding: 16px;
  }

  .about, .services{
    padding: 18px;
  }

  /* If your services uses a side-by-side layout */
  .services-layout{
    flex-direction: column;
  }
  .services-list, .service-details{
    width: 100%;
  }

  /* Image should never overflow */
  .photo, .photo img{
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Header: keep it neat */
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav{
    width: 100%;
  }
  .nav-cta{
    width: 100%;
  }
}

/* Prevent horizontal scrolling */
html, body{
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 820px){
  .main {
    grid-template-columns: 1fr; /* stack */
  }
}
