/* ---------- Warm Neutral Palette (darker text + slightly darker bg + responsive) ---------- */
:root{
  /* palette */
  --bg: #efe8df;
  --paper: #fbf8f3;
  --paper-2: #f2eadf;
  --ink: #191f2a;
  --muted: #59525b;
  --line: #e3d7cc;
  --accent: #b98f6a;
  --accent-2: #d8b79a;
  --shadow: 0 14px 38px rgba(25, 31, 42, 0.10);
  --shadow-soft: 0 10px 26px rgba(25, 31, 42, 0.07);
  --radius: 18px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 560px at 18% -10%, #ffffff 0%, var(--bg) 55%),
    linear-gradient(180deg, var(--bg), #e7ded3);
  color: var(--ink);
  line-height: 1.6;
}

/* Page container */
.container{
  width: min(92%, 1100px);
  margin: 0 auto;
  padding: 26px 0 44px;
}

/* ---------- Header ---------- */
.header{
  text-align:center;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 1px solid var(--line);
  padding: 30px 22px;
  border-radius: calc(var(--radius) + 6px);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.header::before{
  content:"";
  position:absolute;
  inset:-80px -60px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(217,183,154,.55), rgba(217,183,154,0) 65%);
  transform: rotate(12deg);
  pointer-events:none;
}

.header h1{
  margin:0;
  font-size: 30px;
  letter-spacing: .6px;
  font-weight: 900;
  color: var(--ink);
}

.header h2{
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #2f3340;
}

.tagline{
  margin: 12px 0 14px;
  color: #2f3340;
  font-weight: 750;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.75);
  backdrop-filter: blur(2px);
}

.header p{
  margin: 10px auto 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Services (4 cards) ---------- */
.services{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.card{
  background: linear-gradient(180deg, #ffffff, var(--paper));
  border: 1px solid var(--line);
  padding: 18px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(185,143,106,0));
  opacity: .9;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(185,143,106,.40);
}

.card h3{
  margin: 6px 0 10px;
  font-size: 16px;
  font-weight: 950;
  color: var(--ink);
}

.card p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Section (About + Industries) ---------- */
.section{
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}

.section h2{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 950;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

.section p{
  margin: 0 0 16px;
  color: var(--muted);
}

/* ---------- PPT blocks ---------- */
.ppt-block{
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}

.ppt-title{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .2px;
  color: var(--ink);
}

/* ✅ NEW: Contact Assistant Box (same style as ppt blocks) */
.contact-assistant-box .contact-assistant-text{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14.5px;
}

.assistant-open-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: #8a8a8a;
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.assistant-open-btn:hover{
  background: #777;
}

/* OUR SERVICES two boxes */
.ppt-services{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ppt-box{
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px 18px;
  box-shadow: 0 10px 22px rgba(25, 31, 42, 0.06);
}

.ppt-box h3{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 950;
  color: #232836;
}

.ppt-box ul{
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.ppt-box li{ margin: 6px 0; }

/* WHY CHOOSE + image */
.ppt-why{
  display:grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  align-items: start;
}

.ppt-why-cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 26px;
}

.tick{
  margin: 8px 0;
  color: var(--muted);
  font-size: 14.5px;
}

.tick::before{
  content: "✓ ";
  font-weight: 950;
  color: var(--accent);
}

.ppt-image img{
  width: 100%;
  max-width: 260px;
  height: auto;
  display:block;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ppt-industries{
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Project stages table ---------- */
.ppt-bottom{
  display:block;
  margin-bottom: 14px;
}

.ppt-stages-title{
  margin: 0 0 12px;
  font-size: 20px;
  color: #232836;
  font-weight: 950;
}

.ppt-stages{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.stageTable{
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.stageTable th,
.stageTable td{
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  word-wrap: break-word;
}

.stageTable th:last-child,
.stageTable td:last-child{ border-right: none; }
.stageTable tr:last-child td{ border-bottom: none; }

.stageTable th{
  background: linear-gradient(180deg, rgba(185,143,106,.32), rgba(185,143,106,.18));
  color: #232836;
  font-weight: 950;
  font-size: 14px;
}

.stageTable td{
  background: linear-gradient(180deg, #ffffff, rgba(242,234,223,.55));
  color: #2f3340;
  font-weight: 800;
  font-size: 13px;
}

/* ---------- Contact tab ---------- */
.contact-tab{
  position: relative;
  border: 1px solid var(--line);
}

.contact-tab::before{
  content:"";
  position:absolute;
  left:20px;
  top:0;
  width:90px;
  height:3px;
  background: linear-gradient(90deg, var(--accent), rgba(185,143,106,0));
  border-radius: 999px;
}

.contact-content p{
  margin: 8px 0;
  font-size: 15px;
  font-weight: 850;
  color: #2f3340;
}

/* Make links black but keep underline */
.contact-content a{
  color: #2f3340 !important;
}

.contact-content a:visited,
.contact-content a:hover,
.contact-content a:active,
.contact-content a:focus{
  color: #2f3340 !important;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 1200px){
  .container{ padding-top: 34px; }
  .header h1{ font-size: 32px; }
}

@media (max-width: 1024px){
  .container{ width: 94%; }
  .ppt-why{ grid-template-columns: 1fr 220px; }
  .ppt-image img{ max-width: 220px; }
}

@media (max-width: 820px){
  .services{ grid-template-columns: 1fr; }
  .ppt-services{ grid-template-columns: 1fr; }
  .ppt-why{ grid-template-columns: 1fr; }
  .ppt-why-cols{ grid-template-columns: 1fr; }
  .header{ padding: 26px 18px; }
  .header h1{ font-size: 26px; }
}

@media (max-width: 480px){
  .container{ width: 94%; padding-bottom: 36px; }
  .ppt-block, .section, .card{ border-radius: 16px; }
  .header{ border-radius: 20px; }
  .tagline{ font-size: 13px; padding: 7px 12px; }
  .card p, .ppt-box ul, .tick, .ppt-industries{ font-size: 14px; }
  .ppt-stages-title{ font-size: 18px; }
}

/* ---------------- Chat Assistant Popup ---------------- */
.chat-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 999px;
  background: #7a7a7a;
  color: white;
  font-size: 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,.20);
  cursor: pointer;
  z-index: 9999;
}

.chat-modal{
  position: fixed;
  right: 16px;
  bottom: 86px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #f6efe6;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0,0,0,.22);
  overflow: hidden;
  display: none;
  z-index: 9999;
}

.chat-modal.open{ display:block; }

.chat-header{
  background: #8a8a8a;
  color: white;
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
}

.chat-back, .chat-min{
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chat-title-main{
  font-weight: 900;
  text-align: center;
}

.chat-title-sub{
  font-size: 12px;
  opacity: .9;
  text-align: center;
}

.chat-body{
  padding: 14px;
  background: linear-gradient(180deg, #f6efe6, #ede3d8);
  max-height: 460px;
  overflow: auto;
}

.chat-msg{ margin-bottom: 14px; }

.bubble{
  background: white;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.08);
}

.meta{
  font-size: 12px;
  color: rgba(0,0,0,.55);
  margin-top: 6px;
}

.quick{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.quick-btn{
  border: 1px solid rgba(0,0,0,.12);
  background: #f3f3f3;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.quick-btn:hover{
  background: #eaeaea;
}

.chat-form{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.chat-form label{
  font-size: 12px;
  color: rgba(0,0,0,.65);
  display: grid;
  gap: 6px;
}

.chat-form input,
.chat-form textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,.10);
  outline: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f2ec;
}

.send-btn{
  justify-self: center;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: #8a8a8a;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.send-btn:hover{
  background: #777;
}

.form-note{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(0,0,0,.65);
  text-align: center;
}

/* ✅ NEW: Overlay + Large Modal */
.chat-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.chat-overlay.open{
  display: flex;
}

.chat-modal--large{
  position: relative;
  right: auto;
  bottom: auto;
  width: min(720px, calc(100vw - 32px));
  display: block;
  max-height: calc(100vh - 64px);
}

.chat-modal--large .chat-body{
  max-height: calc(100vh - 160px);
}

/* Mobile */
@media (max-width: 480px){
  .chat-modal{
    right: 12px;
    left: 12px;
    width: auto;
  }

  .chat-overlay{
    align-items: flex-end;
  }

  .chat-modal--large{
    width: 100%;
    border-radius: 18px;
  }
}