/* =========================================================
   Yau Shun Building Services Company Limited — Homepage
   Light theme · indigo + warm rust accents on cream
   ========================================================= */

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --ink: #1B1B1B;
  --muted: #56524A;
  --line: #E4E0D6;
  --indigo: #3B3E8C;
  --indigo-deep: #2A2C63;
  --indigo-ink: #23255A;
  --rust: #C2573F;
  --rust-deep: #A6422E;
  --cream-soft: #EFEBE0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  color: var(--rust);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Split navigation bar — CTA on the left
   ========================================================= */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-nav.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.nav-cta {
  display: inline-block;
  background-color: var(--rust);
  color: #FFFFFF;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 2px solid var(--rust);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--rust-deep);
  border-color: var(--rust-deep);
  color: #FFFFFF;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--indigo);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--rust);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   Hero — full-bleed background band with overlay text
   ========================================================= */

.hero-band {
  position: relative;
  margin-top: 68px;
  background:
    radial-gradient(circle at 80% 20%, #4A3D8C 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, #3B3E8C 0%, transparent 60%),
    linear-gradient(135deg, var(--indigo-deep) 0%, var(--indigo) 55%, #4A3D8C 100%);
  background-color: var(--indigo-deep);
  color: #FFFFFF;
  padding: 110px 0 100px;
  overflow: hidden;
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 14px);
  pointer-events: none;
}

.hero-band::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background-color: #FFFFFF;
  color: var(--indigo-deep);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  color: #FFFFFF;
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}

.hero-title .accent {
  color: #F2B28C;
}

.hero-lead {
  color: #E9E7F5;
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--rust);
  color: #FFFFFF;
  border-color: var(--rust);
}

.btn-primary:hover {
  background-color: var(--rust-deep);
  border-color: var(--rust-deep);
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-ghost:hover {
  background-color: #FFFFFF;
  color: var(--indigo-deep);
}

.hero-panel {
  background-color: #FFFFFF;
  color: var(--ink);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(20, 20, 50, 0.35);
}

.hero-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.metric {
  background-color: var(--cream-soft);
  border-radius: 12px;
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 1.7rem;
  color: var(--indigo);
  line-height: 1.1;
}

.metric span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* =========================================================
   Statement row — large full-width statement
   ========================================================= */

.statement-row {
  padding: 90px 0 70px;
}

.statement-text {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  max-width: 1000px;
  letter-spacing: -0.3px;
}

.statement-text em {
  font-style: normal;
  color: var(--rust);
}

.statement-meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
}

.statement-meta .rule {
  width: 56px;
  height: 3px;
  background-color: var(--rust);
  border-radius: 2px;
}

/* =========================================================
   About — split two-column
   ========================================================= */

.about-section {
  padding: 70px 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.section-label {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}

.about-grid h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-grid p {
  color: var(--muted);
  margin-bottom: 18px;
}

.about-grid p strong {
  color: var(--ink);
}

.checklist {
  list-style: none;
  margin-top: 22px;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 600;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--indigo);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg);
}

.about-figure {
  background: linear-gradient(150deg, var(--indigo-deep), var(--indigo) 70%);
  border-radius: 20px;
  padding: 34px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.about-figure::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.about-figure .big-number {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: #F2B28C;
}

.about-figure h3 {
  color: #FFFFFF;
  margin: 16px 0 10px;
  font-size: 1.3rem;
}

.about-figure p {
  color: #D8D6EC;
  font-size: 0.98rem;
}

/* =========================================================
   Services — numbered list, large numerals
   ========================================================= */

.services-section {
  padding: 90px 0;
}

.services-head {
  max-width: 640px;
  margin-bottom: 50px;
}

.services-head h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.services-head p {
  color: var(--muted);
}

.services-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 30px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.service-item:hover {
  background-color: #FFFFFF;
}

.service-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--line);
  line-height: 1;
  letter-spacing: -1px;
}

.service-item:hover .service-num {
  color: var(--rust);
}

.service-item h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.service-item p {
  color: var(--muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--indigo);
  background-color: var(--cream-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

/* =========================================================
   Comparison table
   ========================================================= */

.compare-section {
  padding: 90px 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}

.compare-head h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.compare-head p {
  color: var(--muted);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 10px 40px rgba(30, 30, 60, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.compare-table thead th {
  font-size: 1.05rem;
  padding: 24px 22px;
}

.compare-table thead th.ours {
  background-color: var(--indigo-deep);
  color: #FFFFFF;
}

.compare-table thead th.theirs {
  background-color: var(--cream-soft);
  color: var(--ink);
}

.compare-table td.label {
  font-weight: 700;
  color: var(--ink);
  background-color: #FBF9F4;
  width: 30%;
}

.compare-table td.ours {
  background-color: #EFF0FB;
  color: var(--ink);
}

.compare-table td.theirs {
  background-color: #FDFCF9;
  color: var(--muted);
}

.compare-table .yes {
  color: var(--indigo);
  font-weight: 700;
}

.compare-table .no {
  color: var(--rust);
  font-weight: 700;
}

/* =========================================================
   Process — timeline
   ========================================================= */

.process-section {
  padding: 90px 0;
}

.process-head {
  max-width: 620px;
  margin-bottom: 50px;
}

.process-head h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.process-head p {
  color: var(--muted);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background-color: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: var(--rust);
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 3px var(--line);
}

.timeline-item h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.timeline-item .step {
  font-weight: 700;
  color: var(--rust);
  font-size: 0.8rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--muted);
  max-width: 720px;
}

/* =========================================================
   Stats band
   ========================================================= */

.stats-band {
  background: linear-gradient(135deg, var(--indigo-deep), var(--indigo));
  color: #FFFFFF;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.stat span {
  color: #D8D6EC;
  font-weight: 600;
  font-size: 0.92rem;
}

/* =========================================================
   Quote band
   ========================================================= */

.quote-band {
  padding: 90px 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--line);
}

.quote-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-size: 3.4rem;
  color: var(--rust);
  line-height: 1;
}

.quote-text {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 18px 0 24px;
  color: var(--ink);
}

.quote-author {
  font-weight: 700;
  color: var(--indigo);
}

.quote-role {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   Contact
   ========================================================= */

.contact-section {
  padding: 90px 0;
}

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

.contact-grid h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.contact-grid > div:first-child p {
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-detail .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: var(--indigo);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  color: var(--ink);
}

.contact-detail a,
.contact-detail span {
  color: var(--muted);
}

.contact-form {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background-color: #FDFCF9;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(59, 62, 140, 0.15);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* =========================================================
   Footer — multi-column + newsletter + watermark
   ========================================================= */

.site-footer {
  background-color: var(--indigo-ink);
  color: #D8D6EC;
  padding-top: 70px;
}

.newsletter-band {
  padding: 34px;
  background-color: var(--indigo);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.newsletter-band h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.newsletter-band p {
  color: #D8D6EC;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  min-width: 240px;
  color: var(--ink);
}

.newsletter-form button {
  background-color: var(--rust);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}

.newsletter-form button:hover {
  background-color: var(--rust-deep);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: #B9B7D8;
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 260px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #B9B7D8;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #F2B28C;
}

.footer-contact {
  color: #B9B7D8;
  font-size: 0.92rem;
  line-height: 1.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: #A9A7CE;
}

.watermark {
  display: block;
  text-align: center;
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 900;
  color: #2E3074;
  letter-spacing: 2px;
  line-height: 1;
  padding-bottom: 8px;
  white-space: nowrap;
}

/* =========================================================
   Scroll reveal (safe without JS via noscript fallback)
   ========================================================= */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .service-item {
    grid-template-columns: 70px 1fr;
  }

  .service-tags {
    grid-column: 2;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .statement-text {
    font-size: 1.6rem;
  }
}

@media (max-width: 720px) {
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--cream-soft);
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .service-tags {
    grid-column: 1;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .compare-table th,
  .compare-table td {
    padding: 14px 12px;
    font-size: 0.85rem;
  }
}
