/* ===== VARIABLES ===== */
:root {
  --navy: #0d1b3e;
  --navy-mid: #162550;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --white: #ffffff;
  --off-white: #f7f8fc;
  --gray: #6b7280;
  --light-gray: #e8eaf0;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(13,27,62,0.97);
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

a.nav-logo { text-decoration: none; display: flex; align-items: center; cursor: pointer; }
.nav-logo img { height: 58px; width: 190px; object-fit: contain; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  cursor: pointer;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }

/* ===== PAGE WRAPPER ===== */
.page { padding-top: 72px; min-height: 100vh; }

/* ===== SECTION STYLES ===== */
section { padding: 80px 5%; }

.section-tag {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 580px;
}

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

.divider-gold { width: 48px; height: 3px; background: var(--gold); margin: 16px 0 24px; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm {
  display: inline-block;
  margin-top: 20px;
  padding: 9px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover { background: var(--gold); color: var(--navy); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-block;
}
.btn-dark:hover { background: #1a2d5a; transform: translateY(-1px); }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 64px 5%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px;
}
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--navy); max-width: 520px; }
.cta-band p { font-size: 16px; color: rgba(13,27,62,0.7); margin-top: 8px; }

/* ===== WHY GRID (shared: home + cleaning) ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }

.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px 24px;
  transition: all 0.3s;
}
.why-card:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}
.why-icon { font-size: 36px; margin-bottom: 20px; color: var(--gold); }
.why-title { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.why-text { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ===== SERVICE HERO (shared: ict + cleaning + security) ===== */
.service-hero {
  min-height: 75vh;
  display: flex; align-items: center;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}
.service-hero.ict {
  background: linear-gradient(rgba(13,27,62,0.65), rgba(10,42,94,0.65)),
              url('../images/ict/ImagePM.png') center/cover no-repeat;
}
.service-hero.cleaning {
  background: linear-gradient(rgba(13,51,51,0.65), rgba(10,80,80,0.65)),
              url('../images/cleaning/cleaningPM.png') center/cover no-repeat;
}
.service-hero.security {
  background: linear-gradient(rgba(26,13,62,0.65), rgba(42,10,94,0.65)),
              url('../images/security/securityhomepage.png') center/cover no-repeat;
}
.service-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 60px);
  color: var(--white); margin-bottom: 16px;
}
.service-hero p { font-size: 18px; color: rgba(255,255,255,0.72); max-width: 560px; margin-bottom: 32px; }

/* ===== SERVICES GRID (shared: ict + cleaning + security) ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 80px 5%;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.3s;
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(13,27,62,0.1);
  transform: translateY(-4px);
}
.sc-icon { font-size: 36px; margin-bottom: 18px; color: var(--gold); }
.sc-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.sc-desc { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ===== CHATBOT ===== */
.chatbot-fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
  transition: all 0.2s;
}
.chatbot-fab:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(201,168,76,0.5); }

.chatbot-window {
  position: fixed; bottom: 96px; right: 28px;
  width: 340px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 9998;
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 500px;
}
.chatbot-window.open { display: flex; }

.chat-header {
  background: var(--navy);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--navy);
}
.chat-header-info .chat-name { font-size: 15px; font-weight: 600; color: var(--white); }
.chat-header-info .chat-status { font-size: 12px; color: rgba(255,255,255,0.6); }
.chat-close { margin-left: auto; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 20px; line-height: 1; }

.chat-body { flex: 1; padding: 20px; overflow-y: auto; background: #f8f9fc; }
.chat-msg {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px 12px 12px 2px;
  padding: 12px 16px;
  font-size: 14px; color: var(--navy);
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 90%;
}
.chat-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.chat-option {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px; font-weight: 500; color: var(--navy);
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.chat-option:hover { border-color: var(--gold); background: rgba(201,168,76,0.06); }
.chat-option .co-arrow { margin-left: auto; color: var(--gold); }

.chat-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--light-gray);
  display: flex; gap: 10px;
}
.chat-input {
  flex: 1;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
}
.chat-input:focus { border-color: var(--gold); }
.chat-send {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}
.chat-send:hover { background: var(--gold); color: var(--navy); }

/* ===== FOOTER ===== */
footer { background: var(--navy); padding: 64px 5% 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 64px; width: 190px; object-fit: contain; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; padding: 4px 0; cursor: pointer; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-gold { color: var(--gold); }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(13,27,62,0.98);
    backdrop-filter: blur(12px);
    padding: 16px 5% 28px;
    gap: 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
    z-index: 999;
    border-bottom: 1px solid rgba(201,168,76,0.2);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-links li:last-child a { border-bottom: none; margin-top: 12px; text-align: center; padding: 14px; border-radius: 4px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
