/* =========================================================
   Comet Security & Cleaning Services — stylesheet
   ========================================================= */

:root {
  --navy: #164863;
  --navy-2: #21617F;
  --coral: #F13355;
  --coral-dark: #D31E3E;
  --gold: #D5AF4E;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --ink: #16222A;
  --muted: #5B6B75;
  --border: #E7EBEE;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(1, 30, 46, 0.06);
  --shadow-md: 0 12px 32px rgba(1, 30, 46, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 .5em; line-height: 1.15; }
p { line-height: 1.7; color: var(--muted); margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(241, 51, 85, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(241, 51, 85, .45); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__contact { display: flex; gap: 20px; }
.topbar__contact a:hover { color: var(--gold); }
.topbar__badge { color: var(--gold); font-weight: 600; letter-spacing: .2px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 58px; width: auto; }
.brand__word { display: flex; flex-direction: column; line-height: 1.1; }
.brand__word strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--coral);
  letter-spacing: .2px;
}
.brand__word small {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.brand__word--footer strong { color: var(--white); font-size: 1.5rem; }
.brand__word--footer small { color: rgba(255,255,255,.55); }
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a { color: var(--navy); position: relative; padding: 6px 0; }
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--coral);
  transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }
.header__cta { margin-left: 12px; padding: 11px 22px; font-size: 0.88rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #21617F 0%, #164863 40%, #0C3247 100%);
  overflow: hidden;
  padding: 88px 0 64px;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .9;
}
.hero__blob--pink {
  width: 480px; height: 480px;
  background: radial-gradient(circle at 30% 30%, var(--coral), transparent 70%);
  top: -180px; right: -160px;
  opacity: .35;
}
.hero__blob--gold {
  width: 320px; height: 320px;
  background: radial-gradient(circle at 30% 30%, var(--gold), transparent 70%);
  bottom: -140px; left: -120px;
  opacity: .2;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: .4px;
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero__lead {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong { color: var(--white); font-family: var(--font-head); font-size: 1.5rem; }
.hero__stats span { color: rgba(255,255,255,.55); font-size: 0.82rem; }
.hero__emblem {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__emblem::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.24) 0%, rgba(255,255,255,.08) 55%, transparent 75%);
  border-radius: 50%;
}
.hero__emblem img {
  position: relative;
  width: 100%;
  max-width: 540px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
}

/* ---------- Trust strip ---------- */
.trust { background: var(--off-white); border-bottom: 1px solid var(--border); }
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  padding: 20px 24px;
}
.trust__item {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.trust__item span { color: var(--coral); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--dark { background: var(--navy); }
.section--dark p { color: rgba(255,255,255,.65); }
.section--tint { background: var(--off-white); }

.section-eyebrow {
  display: inline-block;
  color: var(--coral);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-eyebrow--light { color: var(--gold); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy); }
.about__pillars {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 150px;
}
.pillar strong { font-family: var(--font-head); color: var(--coral); font-size: 1.4rem; }
.pillar span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

.about__panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.about__panel h3 { color: var(--gold); font-size: 1.1rem; }
.about__panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.about__panel dl div:last-child { border-bottom: none; }
.about__panel dt { color: rgba(255,255,255,.55); font-size: 0.85rem; }
.about__panel dd { margin: 0; font-weight: 600; text-align: right; font-size: 0.9rem; }

/* ---------- Services ---------- */
.grid--services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  background: rgba(255,255,255,.07);
}
.card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--white);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--white); font-size: 1.05rem; }
.card p { color: rgba(255,255,255,.6); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Why us ---------- */
.why {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.why__emblem {
  display: flex;
  justify-content: center;
}
.why__emblem img {
  width: 100%;
  max-width: 380px;
  opacity: .95;
  filter: drop-shadow(0 16px 30px rgba(1,30,46,.18));
}
.why h2 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.why__list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.why__list li {
  padding-left: 30px;
  position: relative;
  color: var(--muted);
  line-height: 1.6;
}
.why__list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.why__list strong { color: var(--navy); }

/* ---------- Leadership ---------- */
.leadership {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 56px;
  align-items: center;
}
.leadership__photo img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  filter: drop-shadow(0 14px 28px rgba(1,30,46,.22));
}
.leadership h2 { color: var(--navy); font-size: 1.8rem; margin-bottom: 2px; }
.leadership__role { color: var(--coral); font-weight: 700; margin-bottom: 18px; }

.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: center;
  gap: 56px;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
.team__card { text-align: center; }
.team__card img {
  width: 100%;
  max-width: 190px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 12px 22px rgba(1,30,46,.18));
}
.team__card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.team__role { color: var(--coral); font-weight: 700; font-size: 0.85rem; margin: 0 0 6px; }
.team__desc { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- Our Team (staff grid) ---------- */
.grid--members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.member {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.member__avatar {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border-radius: 50%;
}
div.member__avatar {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
img.member__avatar {
  object-fit: cover;
  display: block;
}
.member__body { min-width: 0; }
.member h3 { color: var(--navy); font-size: 1rem; margin-bottom: 2px; }
.member__role { color: var(--coral); font-weight: 700; font-size: 0.82rem; margin-bottom: 12px; }
.member__bio { font-size: 0.88rem; margin-bottom: 16px; }
.member__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact__list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255,255,255,.8); }
.contact__list a:hover { color: var(--gold); }
.contact__icon { font-size: 1.1rem; }

.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__form h3 { color: var(--navy); margin-bottom: 6px; }
.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.contact__form-status {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  min-height: 1.2em;
}
.contact__form-status.is-success { color: #1B8A5A; }
.contact__form-status.is-error { color: var(--coral-dark); }
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: var(--font-body);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--coral);
}

/* ---------- Footer ---------- */
.footer { background: #0C3247; color: rgba(255,255,255,.6); padding: 64px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand .brand__word--footer { margin-bottom: 16px; }
.footer__brand p { font-size: 0.85rem; max-width: 280px; }
.footer__social {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  margin-top: 8px;
}
.footer__social:hover { background: var(--coral); }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; }
.footer__col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 4px; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 24px;
  font-size: 0.8rem;
  text-align: center;
}
.footer__credit {
  color: rgba(255,255,255,.4);
  position: relative;
  padding-left: 16px;
  transition: color .15s ease;
}
.footer__credit:hover { color: rgba(255,255,255,.7); }
.footer__credit::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}

/* ---------- Floating call button (mobile) ---------- */
.fab {
  display: none;
  position: fixed;
  bottom: 20px; right: 20px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(241,51,85,.4);
  z-index: 90;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__emblem { order: -1; max-width: 220px; margin: 0 auto; }
  .about, .why, .leadership, .contact { grid-template-columns: 1fr; }
  .why__emblem { max-width: 160px; margin: 0 auto; }
  .leadership__photo img { max-width: 220px; }
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--members { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar__inner { justify-content: center; text-align: center; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 200;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { color: var(--white); font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .grid--services { grid-template-columns: 1fr; }
  .grid--members { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .fab { display: flex; }
  .section { padding: 64px 0; }
}
