/* =========================================================
   Nana Services Limited — Stylesheet
   Palette pulled from the company mark: deep cobalt, brushed
   steel and the red ribbon accent.
========================================================= */

:root {
  --navy: #0d2c6b;
  --navy-deep: #081c47;
  --blue: #1856d8;
  --blue-bright: #2f6ff0;
  --steel: #9aa4b2;
  --steel-light: #dde2e8;
  --red: #d31c26;
  --ink: #12161f;
  --paper: #f5f6f9;
  --white: #ffffff;

  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 12px 30px -14px rgba(8, 20, 55, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 600;
}

h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: #414a5a; }

.section { padding: 76px 0; }
.section--tight { padding: 56px 0; }
.section-tag {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--red);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { font-size: 1.05rem; }

.section--dark {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--ink) 100%);
  color: var(--steel-light);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #b7bfcd; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(211, 28, 38, 0.6);
}
.btn--primary:hover { background: #b8161f; }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-deep);
  color: #c7cee0;
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.topbar a:hover { color: var(--white); }
.topbar svg { width: 14px; height: 14px; flex: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--steel-light);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { flex: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy-deep);
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, #14245c 100%);
  color: var(--white);
  padding: 80px 0 92px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero .wrap > * { min-width: 0; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffd7d9;
  background: rgba(211, 28, 38, 0.18);
  border: 1px solid rgba(211, 28, 38, 0.4);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff6b73, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.12rem;
  color: #cfd6e8;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 26px;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
}
.hero-stats div span { font-size: 0.85rem; color: #a9b2c8; }

.hero-art { position: relative; z-index: 2; }
.hero-art .ribbon-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.hero-art .logo-plate {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 20px 20px;
  display: flex;
  justify-content: center;
}
.hero-art .logo-plate img { width: 150px; height: 150px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-tags span {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
}

.hero-swoosh {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-grid > * { min-width: 0; }
.about-copy p { font-size: 1.02rem; }
.pill-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.pill-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--navy-deep);
}
.pill-list svg { flex: none; margin-top: 3px; width: 20px; height: 20px; color: var(--red); }

.about-cards { display: grid; gap: 18px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.info-card strong {
  display: block;
  font-family: var(--font-head);
  color: var(--navy-deep);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.info-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Core values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--steel-light);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.value-card:hover { border-color: var(--blue-bright); transform: translateY(-4px); }
.value-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  color: var(--white);
  margin-bottom: 18px;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { margin-bottom: 8px; color: var(--navy-deep); }
.value-card p { margin: 0; font-size: 0.95rem; color: #414a5a; }
.value-card--wide { grid-column: span 2; display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; background: var(--navy-deep); border: none; }
.value-card--wide .value-icon { background: var(--red); }
.value-card--wide h3, .value-card--wide p { color: var(--white); }
.value-card--wide ul { margin: 0; padding-left: 18px; color: #cfd6e8; display: grid; gap: 6px; font-size: 0.95rem; }

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--steel-light);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}
.cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--steel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--navy);
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.cat-card p { margin: 0; font-size: 0.93rem; }

.cat-icon--navy { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.cat-icon--blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.cat-icon--red { background: var(--red); border-color: var(--red); color: var(--white); }
.cat-icon--steel { background: var(--steel); border-color: var(--steel); color: var(--navy-deep); }

/* ---------- Cleaning services ---------- */
.section--clean { position: relative; overflow: hidden; background: var(--paper); }
.clean-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section--clean .wrap { position: relative; z-index: 1; }

.cleaning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.clean-card {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.clean-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.clean-card p { margin: 0; font-size: 0.93rem; }

.badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
}
.badge-icon svg { width: 28px; height: 28px; }
.badge-icon--navy { background: var(--navy-deep); }
.badge-icon--blue { background: var(--blue); }
.badge-icon--red { background: var(--red); }
.badge-icon--steel { background: var(--steel); color: var(--navy-deep); }

.clean-card--cta {
  background: var(--navy-deep);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.clean-card--cta h3, .clean-card--cta p { color: var(--white); }
.clean-card--cta p { color: #b7c0d6; margin-bottom: 20px; }
.clean-card--cta .btn { align-self: flex-start; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 48px 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #ffe1e3; margin: 0; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn--white { background: var(--white); color: var(--red); }
.btn--white:hover { background: #ffe9ea; }
.btn--outline-white { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--outline-white:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-grid > * { min-width: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.contact-list .ic {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.contact-list .ic svg { width: 20px; height: 20px; color: var(--white); }
.contact-list a, .contact-list span { font-family: var(--font-head); font-weight: 600; overflow-wrap: anywhere; }
.contact-list small { display: block; color: #a9b2c8; font-weight: 400; font-family: var(--font-body); font-size: 0.8rem; margin-bottom: 2px; }

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  color: var(--ink);
}
.contact-form h3 { color: var(--navy-deep); }
.form-row { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--navy-deep); }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-body);
  padding: 12px 14px;
  border: 1px solid var(--steel-light);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--paper);
  width: 100%;
  min-width: 0;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 2px solid var(--blue-bright);
  outline-offset: 1px;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-2 > * { min-width: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #97a0b3;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cleaning-grid { grid-template-columns: repeat(2, 1fr); }
  .value-card--wide { grid-column: span 2; grid-template-columns: 1fr; text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1010px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--steel-light);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    z-index: 49;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-top: 1px solid var(--steel-light); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .topbar .wrap { justify-content: center; }

  .section { padding: 64px 0; }
  .values-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cleaning-grid { grid-template-columns: 1fr; }
  .value-card--wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
