/* 香港小徐 膽機維修工作室 */

:root {
  --blue: #1b8be0;
  --ink: #222;
  --text: #373737;
  --soft: #555;
  --muted: #666;
  --line: #ddd;
  --panel: #f5f5f5;
  --dark: linear-gradient(#252525, #0a0a0a);
  --max: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(56px, 10vw, 96px);
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 3px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.btn {
  color: #fff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 3px;
}
.btn-ghost { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); }
.btn-compact { padding: 12px 22px; }

/* Navigation */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--dark);
  border-bottom: 1px solid #000;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 32px);
  min-height: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 32px;
}

.brand { display: flex; align-items: baseline; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-name { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.brand-sub { color: #999; font-size: 13px; white-space: nowrap; }

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
  font-size: 14px;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link { color: #ddd; }
.nav-cta { color: #fff; background: var(--blue); padding: 7px 16px; border-radius: 3px; }

/* Hero */

.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #111;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 8, 8, .94) 0%, rgba(8, 8, 8, .72) 50%, rgba(8, 8, 8, .5) 100%),
    linear-gradient(90deg, rgba(8, 8, 8, .45) 0%, rgba(8, 8, 8, 0) 70%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter) clamp(44px, 8vw, 72px);
  color: #fff;
}

.hero-kicker { margin: 0 0 18px; font-size: 12px; letter-spacing: .22em; color: #bdbdbd; }

.hero-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 5.4vw, 64px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: .02em;
  text-wrap: balance;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
  color: #e4e4e4;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 44px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
  color: #bdbdbd;
}

/* Sections */

.section {
  scroll-margin-top: 100px;
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.section-alt { background: var(--panel); }
.section-last { border-bottom: 0; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}

.about-text { margin: 0 0 16px; font-size: 16px; line-height: 1.85; text-wrap: pretty; }

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 700;
}

.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% center;
}
.about-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Services */

.services-title { margin-bottom: 44px; }

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service { background: #fff; padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.service-no { font-size: 13px; color: var(--blue); font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.service h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.service p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--soft); text-wrap: pretty; }

.note { margin: 24px 0 0; font-size: 14px; color: var(--muted); }

/* Booking */

.booking-title { margin-bottom: 12px; }

.booking-lead {
  margin: 0 0 44px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--soft);
  text-wrap: pretty;
}

.booking-card { border: 1px solid var(--line); display: grid; grid-template-columns: 1fr; }

/* The photo fills a sized box instead of using height:100% on a grid item,
   which Safari resolves incorrectly and lets the image overlap the text. */
.booking-photo { position: relative; overflow: hidden; background: #eee; aspect-ratio: 16 / 9; }
.booking-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.booking-body { padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.booking-body h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); }

.steps { margin: 0; padding-left: 1.3em; font-size: 15px; line-height: 1.9; color: #444; }

.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 12px; }

.contact {
  font-style: normal;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
  padding: clamp(20px, 4vw, 28px) var(--gutter);
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 15px;
}
.contact-label { margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.contact-value { font-weight: 700; color: var(--ink); }
.contact-email { font-weight: 700; }

/* Footer */

.site-footer { margin-top: auto; padding: 40px var(--gutter); background: var(--dark); color: #999; }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.footer-name { margin-bottom: 6px; color: #fff; font-size: 16px; font-weight: 700; }

.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer-links a { color: #ddd; padding: 6px 0; }

/* Responsive */

@media (min-width: 880px) {
  .booking-card { grid-template-columns: 1fr 1fr; }
  .booking-photo { aspect-ratio: auto; min-height: 220px; }
}

@media (max-width: 640px) {
  .nav-inner { padding-top: 8px; padding-bottom: 8px; min-height: 0; row-gap: 4px; }
  .nav-link { padding: 8px 0; }
  .nav-cta { padding: 6px 14px; }
  .hero-inner { padding-top: 88px; }
  .section { scroll-margin-top: 96px; }
  .about-grid { gap: 36px; }
  .services-title { margin-bottom: 28px; }
  .service { padding: 24px 20px; }
  .booking-lead { margin-bottom: 28px; }
}

@media (max-width: 480px) {
  .nav-links { width: 100%; justify-content: space-between; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .hero-title { font-size: 7.2vw; }
  .hero-facts { gap: 8px 20px; }
  .contact-email { overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .nav-links { gap: 10px; font-size: 13px; }
}
