/* Wajid & Azlan Home Services — navy blue + orange */
:root {
  --navy: #0a2463;
  --navy-dark: #071a4a;
  --navy-light: #123a8a;
  --orange: #f5820b;
  --orange-dark: #d96e00;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --text: #1a2333;
  --muted: #5a6478;
  --border: #dbe2ef;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 36, 99, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-light); }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10, 36, 99, .16); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand-logo { height: 64px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { text-decoration: none; color: var(--navy); font-weight: 600; position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--orange); border-radius: 3px; transition: width .3s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { width: 100%; }
.nav-call { white-space: nowrap; }
.nav-toggle { display: none; background: var(--navy); color: #fff; border: 0; border-radius: 10px; font-size: 20px; padding: 8px 12px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(10, 36, 99, .22); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-whatsapp { background: var(--navy); color: #fff; }
.btn-whatsapp:hover { background: var(--navy-light); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #eef2fb 0%, #fff 100%); padding: 56px 0 48px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-weight: 700; color: var(--navy); font-size: 14px; margin: 0 0 14px;
}
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
.hero h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.05; color: var(--navy); margin: 0 0 12px; }
.hero h1 span { color: var(--orange); }
.hero-services { font-size: 19px; font-weight: 400; color: var(--navy); margin: 0 0 10px; }
.hero-sub { color: var(--muted); margin: 0 0 22px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-note { color: var(--muted); font-size: 15px; }
.hero-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 380px; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-chip {
  position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--navy);
  font-weight: 700; border-radius: 999px; padding: 10px 16px; box-shadow: var(--shadow);
  animation: floaty 3.5s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Hero entrance (on load) */
.hero-anim { opacity: 0; animation: riseIn .7s ease forwards; }
.hero-anim:nth-child(1) { animation-delay: .05s; }
.hero-anim:nth-child(2) { animation-delay: .15s; }
.hero-anim:nth-child(3) { animation-delay: .25s; }
.hero-anim:nth-child(4) { animation-delay: .35s; }
.hero-anim:nth-child(5) { animation-delay: .45s; }
.hero-anim:nth-child(6) { animation-delay: .55s; }
.hero-photo.hero-anim { animation-delay: .25s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy); color: #fff; overflow: hidden; padding: 13px 0; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 18px; font-weight: 700; font-size: 17px; animation: ticker 26s linear infinite; will-change: transform; }
.ticker-track i { color: var(--orange); font-style: normal; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { color: var(--navy); font-size: clamp(28px, 3.5vw, 38px); text-align: center; margin: 0 0 8px; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); max-width: 62ch; margin: 0 auto 36px; }

/* Scroll reveal — only animates when scrolled into view (see script.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 16px rgba(10, 36, 99, .07);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-photo { overflow: hidden; height: 190px; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-photo img { transform: scale(1.08); }
.service-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { color: var(--navy); margin: 0 0 2px; font-size: 23px; }
.service-tag { color: var(--orange); font-weight: 700; margin: 0 0 8px; }
.service-body ul { list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); }
.service-body ul li { padding: 3px 0; }
.btn-book { margin-top: auto; align-self: flex-start; }

/* ---------- Steps / Why ---------- */
.steps-grid, .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-grid { grid-template-columns: repeat(2, 1fr); }
.step, .why-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 4px 16px rgba(10, 36, 99, .06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover, .why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff;
  font-weight: 800; font-size: 20px; margin-bottom: 10px;
}
.step h3, .why-item h3 { color: var(--navy); margin: 0 0 6px; }
.step p, .why-item p { color: var(--muted); margin: 0; }

/* ---------- Booking ---------- */
.booking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-line { font-size: 18px; }
.booking-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.booking-form label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 14px; font-size: 15px; }
.booking-form input, .booking-form select, .booking-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px; font: inherit; font-weight: 400;
  background: #fff; color: var(--text);
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  outline: 3px solid rgba(245, 130, 11, .35); border-color: var(--orange);
}
.field-error { color: #b91c1c; margin: -8px 0 12px; font-size: 14px; }
.btn-submit { width: 100%; }
.form-note { color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #dbe4f5; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-logo { height: 84px; width: auto; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 12px; }
.site-footer h3 { color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .18); padding: 16px 0 90px; text-align: center; }

/* ---------- CEO message ---------- */
.ceo-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.ceo-photo img { width: 100%; border-radius: 16px; display: block; box-shadow: 0 12px 30px rgba(10, 36, 99, .18); }
.ceo-quote { font-size: 1.15rem; line-height: 1.7; color: var(--navy); }
.ceo-name { font-weight: 800; color: var(--navy); margin: 16px 0 2px; }
.ceo-title { color: var(--orange); font-weight: 700; margin: 0; }
@media (max-width: 900px) { .ceo-grid { grid-template-columns: 1fr; } .ceo-photo { max-width: 320px; } }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--border);
  grid-template-columns: 1fr 1fr 1fr; box-shadow: 0 -6px 20px rgba(10, 36, 99, .14);
  animation: slideUp .6s ease .2s both;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sticky-bar a { text-align: center; padding: 14px 4px; text-decoration: none; font-weight: 700; color: var(--navy); }
.sticky-bar .sticky-book { background: var(--orange); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .booking-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-photo img { height: 280px; }
}
@media (max-width: 640px) {
  .brand-logo { height: 48px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 14px 4%; border-bottom: 1px solid var(--border); gap: 12px;
  }
  .main-nav.open { display: flex; }
  .services-grid, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .sticky-bar { display: grid; }
  .footer-bottom { padding-bottom: 130px; }
  .section { padding: 48px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-anim, .reveal { opacity: 1 !important; transform: none !important; }
  .ticker-track { animation: none; }
}
