/* ================================================
   HEMS CONSTRUCTION LTD — MAIN STYLESHEET
   Design: Navy + Teal, Inter typeface
   ================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0D1B2A;
  --navy-2:  #122236;
  --teal:    #00C9B1;
  --teal-2:  #00A896;
  --white:   #FFFFFF;
  --slate:   #F0F4F8;
  --slate-2: #E2E8F0;
  --text:    #1E293B;
  --muted:   #64748B;
  --radius:  14px;
  --radius-lg: 24px;
  --shadow:  0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }

.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, #00EDCB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0,201,177,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,201,177,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-full { width: 100%; justify-content: center; }

/* --- SECTIONS --- */
.section { padding: 100px 0; }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 64px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); margin: 12px 0 16px; }
.section-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0,201,177,0.1);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0,201,177,0.25);
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}
.logo-icon { color: var(--teal); font-size: 1.4rem; }
.logo-accent { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.shape-1 { width: 500px; height: 500px; background: var(--teal); top: -200px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: #0077B6; bottom: -100px; left: -50px; }
.shape-3 { width: 200px; height: 200px; background: var(--teal); bottom: 200px; right: 400px; opacity: 0.1; }

/* Sparkles */
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  animation: sparkleAnim var(--dur) var(--delay) infinite ease-in-out;
  opacity: 0;
}
@keyframes sparkleAnim {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(0,201,177,0.1);
  border: 1px solid rgba(0,201,177,0.3);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.6rem; font-weight: 900; color: var(--white); }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* Hero visual cards */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.visual-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 220px;
  transition: var(--transition);
}
.visual-card:hover {
  border-color: rgba(0,201,177,0.4);
  background: rgba(0,201,177,0.07);
}
.visual-icon-wrap svg { width: 48px; height: 48px; }
.vc-2 { margin-left: 24px; }
.vc-3 { margin-left: 12px; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ================================================
   SERVICES
   ================================================ */
.services { background: var(--slate); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s both;
  animation-delay: var(--delay, 0ms);
}
.service-card:hover {
  border-color: var(--teal);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card.featured {
  background: var(--navy);
  color: var(--white);
  border-color: var(--teal);
}
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: rgba(255,255,255,0.7); }
.service-card.featured .service-list li { color: rgba(255,255,255,0.8); }
.service-card.featured .service-list li::before { background: var(--teal); }

.featured-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--teal);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,201,177,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}
.service-icon svg { width: 32px; height: 32px; }

.service-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ================================================
   WHY US
   ================================================ */
.why-us { background: var(--white); }

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-text .section-eyebrow { margin-bottom: 12px; display: inline-block; }
.why-text .section-title { margin: 12px 0 16px; }
.why-text .section-sub { margin-bottom: 36px; }

.why-features { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }

.why-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.wf-icon {
  width: 36px; height: 36px;
  background: rgba(0,201,177,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-feature h4 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; font-weight: 700; }
.why-feature p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* Why Visual */
.why-visual { position: relative; height: 480px; }

.wv-card {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
}

.wv-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated shine lines */
.shine-lines { position: absolute; inset: 0; overflow: hidden; }
.sl {
  position: absolute;
  top: -100%;
  left: 50%;
  height: 200%;
  background: linear-gradient(to bottom, transparent, rgba(0,201,177,0.06), transparent);
  transform-origin: top center;
  animation: shineAnim 6s infinite linear;
}
.sl1 { width: 1px; animation-delay: 0s; }
.sl2 { width: 2px; margin-left: -80px; animation-delay: 2s; opacity: 0.6; }
.sl3 { width: 1px; margin-left: 80px; animation-delay: 4s; }
@keyframes shineAnim {
  0% { transform: translateY(-20%) rotate(15deg); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(120%) rotate(15deg); opacity: 0; }
}

.wv-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 40px;
}
.wv-num {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--white), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.wv-label { color: rgba(255,255,255,0.5); font-size: 0.85rem; letter-spacing: 0.06em; margin: 4px 0 20px; }
.wv-divider { width: 40px; height: 2px; background: var(--teal); margin: 0 auto 20px; }
.wv-tagline { color: rgba(255,255,255,0.8); font-size: 1.1rem; font-weight: 600; line-height: 1.5; }

.wv-accent {
  position: absolute;
  background: var(--white);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}
.wv-a1 { bottom: 60px; left: -20px; animation: floatA 4s ease-in-out infinite; }
.wv-a2 { bottom: 100px; right: -20px; animation: floatA 4s ease-in-out infinite reverse; }
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ================================================
   PROCESS
   ================================================ */
.process { background: var(--navy); }
.process .section-eyebrow { color: var(--teal); }
.process .section-title { color: var(--white); }
.process .section-sub { color: rgba(255,255,255,0.6); }

.process-steps {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.ps-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), rgba(0,201,177,0.2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.ps-content { padding: 0 24px; }
.ps-content h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 10px; }
.ps-content p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

.ps-arrow {
  position: absolute;
  right: -20px;
  top: 28px;
  font-size: 1.5rem;
  color: rgba(0,201,177,0.4);
  z-index: 2;
}
.last-arrow { color: var(--teal); font-size: 1.2rem; }

/* ================================================
   CONTACT
   ================================================ */
.contact { background: var(--slate); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-eyebrow { margin-bottom: 12px; display: inline-block; }
.contact-info .section-title { margin: 12px 0 16px; }
.contact-info .section-sub { margin-bottom: 40px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ci-icon {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.ci-label { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.ci-value { font-size: 0.95rem; font-weight: 600; color: var(--navy); }
a.ci-value:hover { color: var(--teal); }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--slate-2);
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--slate-2);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--slate);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,201,177,0.12);
}
.form-group textarea { resize: vertical; }
.form-group select { cursor: pointer; }

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: -4px;
}

.form-success {
  display: none;
  background: rgba(0,201,177,0.1);
  border: 1px solid rgba(0,201,177,0.3);
  color: var(--teal-2);
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  gap: 8px;
}
.form-success.visible { display: flex; align-items: center; justify-content: center; }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 340px; margin-bottom: 24px; }

.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact-quick a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-contact-quick a:hover { color: var(--teal); }

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom a:hover { color: var(--teal); }

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; max-width: 440px; margin: 0 auto; }
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { height: 380px; order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 64px;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; color: var(--white); }

  /* Hero */
  .hero { padding: 100px 24px 60px; align-items: flex-start; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .vc-2, .vc-3 { margin-left: 0; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-scroll { display: none; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; max-width: none; }

  /* Process */
  .process-steps { flex-direction: column; gap: 32px; }
  .ps-arrow { display: none; }

  /* Contact form */
  .contact-form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}
