/* ============================================================
   HaoLan — Computer Systems Design & Related Services
   Main stylesheet (homepage, services, contact)
   Theme: LIGHT — body #F4F8FB / text #14212E
   Accent: classic blue #0F4C81  |  secondary: light blue #4A90C9
   ============================================================ */

:root {
  --ink: #14212E;
  --ink-soft: #2C3E52;
  --classic: #0F4C81;
  --classic-dark: #0B395F;
  --lightblue: #4A90C9;
  --pale: #E4EFF7;
  --pale-2: #D7E7F2;
  --bg: #F4F8FB;
  --white: #FFFFFF;
  --rule: #DCE7F0;
  --rail-w: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--classic-dark);
}

/* ------------------------------------------------------------
   RIGHT VERTICAL TEXT RAIL NAVIGATION (.vtext-nav)
   ------------------------------------------------------------ */
.vtext-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--rail-w);
  height: 100vh;
  background-color: var(--classic);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  z-index: 1000;
}

.vtext-nav .vtext-brand {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.35em;
  color: var(--white);
}

.vtext-nav .vtext-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vtext-nav .vtext-links li {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.vtext-nav .vtext-links a {
  display: inline-block;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  padding: 10px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.vtext-nav .vtext-links a:hover {
  background-color: var(--lightblue);
  color: var(--white);
}

.vtext-nav .vtext-links a.active {
  background-color: var(--lightblue);
  color: var(--ink);
}

.vtext-nav .vtext-cta {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.vtext-nav .vtext-cta a {
  color: var(--pale);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 8px 4px;
}

.vtext-nav .vtext-cta a:hover {
  color: var(--white);
}

/* ------------------------------------------------------------
   MOBILE TOP BAR + HAMBURGER
   ------------------------------------------------------------ */
.mobile-bar {
  display: none;
}

.mobile-bar .mobile-burger {
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.mobile-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--classic);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-burger.open span:nth-child(2) {
  opacity: 0;
}

.mobile-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background-color: var(--classic);
  list-style: none;
  flex-direction: column;
  padding: 8px 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu li a {
  display: block;
  color: var(--white);
  padding: 14px 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--classic-dark);
}

.mobile-menu li a.active {
  background-color: var(--lightblue);
  color: var(--ink);
}

/* ------------------------------------------------------------
   PAGE WRAPPER (offset by the right rail)
   ------------------------------------------------------------ */
.site-shell {
  margin-right: var(--rail-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------
   GENERIC CONTAINERS / BUTTONS
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 88px 0;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 15px 30px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--classic);
  color: var(--white);
  border-color: var(--classic);
}

.btn-primary:hover {
  background-color: var(--classic-dark);
  border-color: var(--classic-dark);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--classic);
  border-color: var(--classic);
}

.btn-outline:hover {
  background-color: var(--classic);
  color: var(--white);
}

.btn-light {
  background-color: var(--white);
  color: var(--classic);
  border-color: var(--white);
}

.btn-light:hover {
  background-color: var(--pale);
  border-color: var(--pale);
  color: var(--classic-dark);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--classic);
  background-color: var(--pale);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ------------------------------------------------------------
   HERO — GIANT GLYPH
   ------------------------------------------------------------ */
.giant-glyph-hero {
  background-color: var(--bg);
  padding: 96px 0 72px;
  overflow: hidden;
}

.giant-glyph-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 24px;
}

.hero-copy h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-copy p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 32px;
}

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

.glyph-stage {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glyph-stage .glyph-frame {
  position: absolute;
  inset: 20px 0 0 0;
  border: 1px solid var(--lightblue);
  border-radius: 4px;
  pointer-events: none;
}

.glyph-stage .glyph-letter {
  font-size: 20rem;
  font-weight: 800;
  line-height: 1;
  color: var(--classic);
  letter-spacing: -0.04em;
  transform: translateY(14px);
  user-select: none;
}

.glyph-stage .glyph-caption {
  position: absolute;
  bottom: 24px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lightblue);
  background-color: var(--bg);
  padding: 4px 10px;
}

/* ------------------------------------------------------------
   STATEMENT ROW
   ------------------------------------------------------------ */
.statement-row {
  background-color: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 72px 0;
}

.statement-row .statement-text {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  max-width: 980px;
}

.statement-row .statement-accent {
  color: var(--classic);
}

/* ------------------------------------------------------------
   STEP LADDER
   ------------------------------------------------------------ */
.step-ladder {
  background-color: var(--bg);
  padding: 96px 0;
}

.step-ladder .section-head {
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
}

.ladder-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.ladder-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}

.ladder-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.ladder-row .ladder-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--classic);
  line-height: 1;
}

.ladder-row h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.ladder-row p {
  color: var(--ink-soft);
  max-width: 680px;
}

.ladder-row.step-1 { width: 74%; margin-left: 0; }
.ladder-row.step-2 { width: 86%; margin-left: 0; }
.ladder-row.step-3 { width: 100%; margin-left: 0; }

/* ------------------------------------------------------------
   METRIC TILES
   ------------------------------------------------------------ */
.metric-tiles {
  background-color: var(--white);
  padding: 88px 0;
}

.metric-tiles .section-head {
  margin-bottom: 48px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.metric-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border-radius: 8px;
}

.metric-tile .metric-num {
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.metric-tile .metric-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.metric-tile.tile-classic {
  background-color: var(--classic);
  color: var(--white);
}

.metric-tile.tile-lightblue {
  background-color: var(--lightblue);
  color: var(--white);
}

.metric-tile.tile-ink {
  background-color: var(--ink);
  color: var(--white);
}

.metric-tile.tile-pale {
  background-color: var(--pale-2);
  color: var(--ink);
}

.metric-tile .metric-note {
  margin-top: 14px;
  font-size: 13px;
  color: inherit;
  opacity: 1;
}

.metric-tile.tile-pale .metric-note {
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   OFFER ROWS
   ------------------------------------------------------------ */
.offer-rows {
  background-color: var(--bg);
  padding: 96px 0;
}

.offer-rows .section-head {
  margin-bottom: 48px;
}

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

.offer-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.offer-item .offer-marker {
  width: 22px;
  height: 22px;
  background-color: var(--classic);
  border-radius: 4px;
}

.offer-item .offer-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.offer-item .offer-desc {
  color: var(--ink-soft);
  font-size: 16px;
}

.offer-item .offer-link {
  font-size: 26px;
  font-weight: 700;
  color: var(--classic);
  transition: transform 0.2s ease;
}

.offer-item .offer-link:hover {
  transform: translateX(6px);
  color: var(--classic-dark);
}

/* ------------------------------------------------------------
   FAQ ACCORDION
   ------------------------------------------------------------ */
.faq-accordion {
  background-color: var(--white);
  padding: 96px 0;
}

.faq-accordion .section-head {
  margin-bottom: 48px;
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-q .faq-icon {
  font-size: 24px;
  color: var(--classic);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 0 26px;
  color: var(--ink-soft);
  max-width: 760px;
}

.faq-item.open .faq-a {
  display: block;
}

/* ------------------------------------------------------------
   CTA BAND
   ------------------------------------------------------------ */
.cta-band {
  background-color: var(--classic);
  color: var(--white);
  padding: 84px 0;
}

.cta-band .cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-band h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--white);
}

.cta-band p {
  font-size: 17px;
  color: var(--pale);
  max-width: 520px;
}

/* ------------------------------------------------------------
   ANCHOR FOOTER
   ------------------------------------------------------------ */
.anchor-footer {
  background-color: var(--bg);
  border-top: 3px solid var(--classic);
  padding: 56px 0 40px;
}

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

.anchor-footer .footer-brand .brand-word {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--classic);
  margin-bottom: 10px;
}

.anchor-footer .footer-brand p {
  color: var(--ink-soft);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 15px;
}

.footer-col a:hover {
  color: var(--classic);
}

.anchor-footer .footer-legal {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}

.anchor-footer .footer-legal a {
  color: var(--classic);
  font-weight: 600;
}

/* ------------------------------------------------------------
   SECONDARY PAGES (services / contact)
   ------------------------------------------------------------ */
.page-hero {
  background-color: var(--bg);
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.page-hero .eyebrow {
  margin-bottom: 22px;
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 680px;
}

.service-block {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}

.service-block.alt {
  background-color: var(--white);
}

.service-block .service-inner {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 28px;
  align-items: start;
}

.service-block .service-marker {
  width: 40px;
  height: 40px;
  background-color: var(--classic);
  border-radius: 6px;
  margin-top: 4px;
}

.service-block h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.service-block p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 14px;
  max-width: 820px;
}

.service-block ul {
  list-style: none;
  margin-top: 8px;
}

.service-block ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.service-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background-color: var(--lightblue);
  border-radius: 2px;
}

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.process-steps li {
  background-color: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 24px;
}

.process-steps .ps-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--classic);
  margin-bottom: 8px;
}

.process-steps h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.process-steps p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 72px 0;
}

.contact-details h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.contact-details .detail-item {
  margin-bottom: 22px;
}

.contact-details .detail-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lightblue);
  margin-bottom: 6px;
}

.contact-details .detail-value {
  color: var(--ink);
  font-size: 17px;
}

.contact-form .form-field {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background-color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--classic);
  border-color: var(--classic);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  color: var(--classic);
}

.contact-faq {
  padding: 0 0 72px;
}

/* ------------------------------------------------------------
   SCROLL REVEAL
   ------------------------------------------------------------ */
.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: 900px) {
  .giant-glyph-hero .container {
    grid-template-columns: 1fr;
  }

  .glyph-stage {
    height: 300px;
    order: -1;
  }

  .glyph-stage .glyph-letter {
    font-size: 14rem;
  }

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

  .metric-tile {
    aspect-ratio: auto;
    min-height: 200px;
  }

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

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .site-shell {
    margin-right: 0;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .mobile-bar .mobile-brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--classic);
    font-size: 17px;
  }

  .section {
    padding: 60px 0;
  }

  .ladder-row {
    grid-template-columns: 64px 1fr;
  }

  .ladder-row.step-1,
  .ladder-row.step-2,
  .ladder-row.step-3 {
    width: 100%;
  }

  .ladder-row .ladder-num {
    font-size: 30px;
  }

  .offer-item {
    grid-template-columns: 34px 1fr;
  }

  .offer-item .offer-link {
    grid-column: 2;
  }

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

  .cta-band .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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