/* ==========================================================================
   ZuiLiu — Computer Systems Design & Related Services
   Light warm-ivory theme · fuchsia accent #D946EF
   ========================================================================== */

:root {
  --ivory: #F8F5F1;
  --ivory-deep: #F0EAE2;
  --espresso: #27171F;
  --espresso-soft: #4A3441;
  --fuchsia: #D946EF;
  --fuchsia-deep: #A21CAF;
  --fuchsia-soft: #F0ABFC;
  --fuchsia-mist: #FDF4FF;
  --white: #FFFFFF;
  --line: #E7DDD2;
  --line-fuchsia: #E9B7F3;
  --shadow: 0 18px 45px rgba(39, 23, 31, 0.08);
}

* {
  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.7;
  color: var(--espresso);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

.section-wrap {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ==========================================================================
   FOLDING-FAN NAVIGATION (.fan-nav)
   ========================================================================== */

.fan-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--ivory);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 18px rgba(39, 23, 31, 0.05);
}

.fan-nav .nav-inner {
  width: min(1240px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 74px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-word {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

.brand-word span {
  color: var(--fuchsia-deep);
}

/* Folding fan motif */
.fan-motif {
  position: relative;
  width: 44px;
  height: 34px;
  flex-shrink: 0;
}

.fan-motif .fan-surface {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 0 44px 0 0;
  background: linear-gradient(135deg, var(--fuchsia-mist) 0%, var(--fuchsia-soft) 100%);
  border: 1.5px solid var(--fuchsia);
  border-left: none;
  border-bottom: none;
  overflow: hidden;
}

.fan-motif .fan-rib {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--fuchsia-deep);
  transform-origin: 0 100%;
  border-radius: 2px;
}

.fan-motif .fan-rib.r1 { transform: rotate(10deg); }
.fan-motif .fan-rib.r2 { transform: rotate(28deg); }
.fan-motif .fan-rib.r3 { transform: rotate(46deg); }
.fan-motif .fan-rib.r4 { transform: rotate(64deg); }
.fan-motif .fan-rib.r5 { transform: rotate(78deg); }

.fan-motif .fan-pivot {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fuchsia-deep);
  border: 2px solid var(--ivory);
}

/* Links with fan-rib tick separators */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  margin-left: auto;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li + li::before {
  content: "";
  width: 1px;
  height: 16px;
  background: var(--line-fuchsia);
  margin: 0 14px;
  transform: rotate(12deg);
}

.nav-links a {
  color: var(--espresso-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  position: relative;
}

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

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

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

.nav-cta {
  background: var(--fuchsia);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--fuchsia-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--fuchsia-mist);
  border: 1px solid var(--line-fuchsia);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fuchsia-deep);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   WILLOW-BRANCH HERO (.willow-hero)
   ========================================================================== */

.willow-hero {
  position: relative;
  background: var(--ivory);
  overflow: hidden;
  padding: 88px 0 96px;
}

.willow-hero .section-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.willow-hero .hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--fuchsia-mist);
  color: var(--fuchsia-deep);
  border: 1px solid var(--line-fuchsia);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.willow-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.willow-hero h1 .accent {
  color: var(--fuchsia-deep);
}

.willow-hero .hero-sub {
  font-size: 1.12rem;
  color: var(--espresso-soft);
  max-width: 540px;
  margin-bottom: 34px;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--fuchsia);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(217, 70, 239, 0.28);
}

.btn-primary:hover {
  background: var(--fuchsia-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border: 2px solid var(--line-fuchsia);
}

.btn-ghost:hover {
  border-color: var(--fuchsia);
  color: var(--fuchsia-deep);
  transform: translateY(-2px);
}

/* Willow branches visual */
.willow-tree {
  position: relative;
  height: 460px;
}

.willow-branch {
  position: absolute;
  top: 0;
  width: 7px;
  border-radius: 4px 4px 5px 50%;
  background: linear-gradient(to bottom, #7A146E 0%, var(--fuchsia-deep) 55%, var(--fuchsia) 100%);
  transform-origin: top center;
}

.willow-branch .leaf {
  position: absolute;
  width: 20px;
  height: 10px;
  background: var(--fuchsia);
  border-radius: 50%;
}

.willow-branch .leaf.alt {
  background: var(--fuchsia-deep);
}

.willow-branch.b1 { left: 12%; height: 300px; transform: rotate(6deg); }
.willow-branch.b2 { left: 40%; height: 360px; transform: rotate(2deg); }
.willow-branch.b3 { left: 68%; height: 320px; transform: rotate(-4deg); }
.willow-branch.b4 { left: 88%; height: 270px; transform: rotate(-9deg); }

.willow-branch.b1 .leaf { top: 60px; left: -7px; }
.willow-branch.b1 .leaf.alt { top: 130px; left: 4px; }
.willow-branch.b1 .leaf.l3 { top: 200px; left: -6px; }

.willow-branch.b2 .leaf { top: 70px; left: 3px; }
.willow-branch.b2 .leaf.alt { top: 150px; left: -6px; }
.willow-branch.b2 .leaf.l3 { top: 230px; left: 4px; }
.willow-branch.b2 .leaf.l4 { top: 300px; left: -5px; }

.willow-branch.b3 .leaf { top: 55px; left: -6px; }
.willow-branch.b3 .leaf.alt { top: 135px; left: 3px; }
.willow-branch.b3 .leaf.l3 { top: 210px; left: -5px; }

.willow-branch.b4 .leaf { top: 70px; left: 4px; }
.willow-branch.b4 .leaf.alt { top: 150px; left: -5px; }

/* ==========================================================================
   FULL-WIDTH STATEMENT ROW
   ========================================================================== */

.statement-section {
  background: var(--fuchsia-deep);
  color: var(--white);
  padding: 72px 0;
}

.statement-section .section-wrap {
  max-width: 940px;
  text-align: center;
}

.statement-section h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.statement-section p {
  font-size: 1.1rem;
  color: var(--fuchsia-mist);
}

/* ==========================================================================
   BIG-NUMERAL STAT COLUMNS
   ========================================================================== */

.stats-section {
  background: var(--white);
  padding: 72px 0;
}

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

.stat-block {
  text-align: left;
  padding: 8px 4px;
}

.stat-block .stat-num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--fuchsia-deep);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-block .stat-num .unit {
  color: var(--fuchsia);
}

.stat-block p {
  margin-top: 10px;
  color: var(--espresso-soft);
  font-weight: 600;
}

/* ==========================================================================
   NUMBERED DELIVERY PROCESS
   ========================================================================== */

.process-section {
  background: var(--ivory);
  padding: 84px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 54px;
}

.section-head .kicker {
  display: inline-block;
  color: var(--fuchsia-deep);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--espresso-soft);
  font-size: 1.05rem;
}

.process-list {
  position: relative;
  list-style: none;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line-fuchsia);
}

.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 22px 0;
}

.process-item .step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fuchsia);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(217, 70, 239, 0.25);
}

.process-item h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.process-item p {
  color: var(--espresso-soft);
  max-width: 620px;
}

/* ==========================================================================
   SERVICES / EXPERTISE
   ========================================================================== */

.services-section {
  background: var(--ivory-deep);
  padding: 84px 0;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--fuchsia);
  border-radius: 16px;
  padding: 30px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--espresso);
}

.service-card h3 .mark {
  color: var(--fuchsia-deep);
}

.service-card p {
  color: var(--espresso-soft);
}

.services-note {
  margin-top: 34px;
  padding: 26px 30px;
  background: var(--fuchsia-mist);
  border: 1px solid var(--line-fuchsia);
  border-radius: 16px;
}

.services-note p {
  color: var(--espresso);
  font-size: 1.02rem;
}

.services-note strong {
  color: var(--fuchsia-deep);
}

/* ==========================================================================
   TWO-COLUMN COMPARISON TABLE
   ========================================================================== */

.compare-section {
  background: var(--white);
  padding: 84px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 18px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  background: var(--espresso);
  color: var(--white);
  font-size: 1.02rem;
}

.compare-table thead th:first-child {
  background: var(--fuchsia-deep);
}

.compare-table tbody tr:nth-child(even) {
  background: var(--fuchsia-mist);
}

.compare-table tbody td:first-child {
  font-weight: 700;
  color: var(--espresso);
}

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

.compare-table .no {
  color: var(--espresso-soft);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-section {
  background: var(--ivory);
  padding: 84px 0;
}

.faq-list {
  max-width: 820px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

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

.faq-q .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fuchsia-mist);
  color: var(--fuchsia-deep);
  border: 1px solid var(--line-fuchsia);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item.open .faq-q .faq-icon {
  transform: rotate(45deg);
  background: var(--fuchsia);
  color: var(--white);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  padding: 0 24px 22px;
  color: var(--espresso-soft);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-section {
  background: var(--ivory-deep);
  padding: 84px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--espresso-soft);
  margin-bottom: 24px;
}

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

.contact-detail .cd-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--fuchsia);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.contact-detail .cd-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fuchsia-deep);
  font-weight: 700;
}

.contact-detail .cd-value {
  color: var(--espresso);
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--espresso);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--ivory);
  color: var(--espresso);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--fuchsia);
  background: var(--white);
}

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

.form-status {
  margin-top: 14px;
  font-weight: 600;
  min-height: 22px;
}

.form-status.ok { color: var(--fuchsia-deep); }
.form-status.err { color: #B3261E; }

/* ==========================================================================
   SPLIT CTA BAND
   ========================================================================== */

.cta-section {
  background: var(--fuchsia);
  padding: 0;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 56px 0;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--fuchsia-mist);
  font-size: 1.05rem;
}

.cta-band .btn-light {
  background: var(--white);
  color: var(--fuchsia-deep);
  white-space: nowrap;
}

.cta-band .btn-light:hover {
  background: var(--fuchsia-mist);
  color: var(--fuchsia-deep);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--espresso);
  border-top: 4px solid var(--fuchsia);
  padding: 60px 0 0;
  color: #EDE3DC;
}

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

.footer-brand .brand-word {
  color: var(--white);
}

.footer-brand p {
  margin-top: 14px;
  color: #C9BBB4;
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

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

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

.footer-col a {
  color: #C9BBB4;
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid #3A2A33;
  padding: 22px 0;
  text-align: center;
  color: #A8978F;
  font-size: 0.88rem;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

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

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

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

  .willow-tree {
    height: 300px;
  }

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

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

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

  .cta-band {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(39, 23, 31, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 0;
    padding: 0;
  }

  .nav-links.open {
    max-height: 420px;
  }

  .nav-links li {
    display: block;
  }

  .nav-links li + li::before {
    display: none;
  }

  .nav-links a {
    display: block;
    padding: 15px 28px;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

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

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

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