/* ==========================================================================
   FengNing — Computer Systems Design & Engineering
   Light lotus theme: cream-white base, deep plum-ink text, lotus-pink accent
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #FBF7F4;
  color: #33272C;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 12px;
}

p {
  margin: 0 0 16px;
}

a {
  transition: color .2s ease;
}

::selection {
  background: #E58BA0;
  color: #33272C;
}

/* ==========================================================================
   PETAL NAVIGATION
   ========================================================================== */

.petal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FBF7F4;
  border-bottom: 2px solid #7A3B4E;
  transition: box-shadow .25s ease;
}

.petal-nav.scrolled {
  box-shadow: 0 4px 16px rgba(122, 59, 78, 0.16);
}

.nav-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7A3B4E;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand-petal {
  display: inline-block;
  width: 16px;
  height: 24px;
  background: #E58BA0;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7A3B4E;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a .petal-dot {
  display: none;
  width: 10px;
  height: 14px;
  background: #E58BA0;
  border-radius: 50%;
}

.site-nav a.active {
  color: #7A3B4E;
  border-bottom-color: #E58BA0;
}

.site-nav a.active .petal-dot {
  display: inline-block;
}

.site-nav a:hover {
  color: #4A2733;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #7A3B4E;
  border-radius: 2px;
  margin: 5px 0;
  transition: transform .3s ease, opacity .3s 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);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary {
  background: #E58BA0;
  color: #33272C;
}

.btn-primary:hover {
  background: #D97E94;
  color: #FFFFFF;
}

.btn-secondary {
  background: transparent;
  color: #7A3B4E;
  border-color: #7A3B4E;
}

.btn-secondary:hover {
  background: #7A3B4E;
  color: #FFFFFF;
}

.btn-dark {
  background: #7A3B4E;
  color: #FFFFFF;
}

.btn-dark:hover {
  background: #5F2E3E;
  color: #FFFFFF;
}

/* ==========================================================================
   LOTUS HERO
   ========================================================================== */

.lotus-hero {
  background: #FBF7F4;
  padding: 96px 0;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.hero-copy {
  flex: 1 1 auto;
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  background: #E58BA0;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.lotus-hero h1 {
  color: #7A3B4E;
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 28px;
}

.hero-sub {
  color: #33272C;
  font-size: 1.18rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 36px;
}

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

.lotus-flower {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  height: 300px;
}

.lotus-flower .petal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 134px;
  margin-left: -37px;
  margin-top: -134px;
  background: #E58BA0;
  border-radius: 50%;
  transform-origin: 50% 100%;
}

.lotus-flower .petal.p1 { transform: rotate(0deg); }
.lotus-flower .petal.p2 { transform: rotate(72deg); }
.lotus-flower .petal.p3 { transform: rotate(144deg); }
.lotus-flower .petal.p4 { transform: rotate(216deg); }
.lotus-flower .petal.p5 { transform: rotate(288deg); }

.lotus-flower .center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 66px;
  margin-left: -33px;
  margin-top: -33px;
  background: #7A3B4E;
  border-radius: 50%;
}

/* ==========================================================================
   PROMISE BAND
   ========================================================================== */

.promise-band {
  background: #E58BA0;
  padding: 72px 0;
}

.promise-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: #4A2733;
}

.promise-label {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.promise-inner h2 {
  color: #4A2733;
  font-size: 2.1rem;
  margin: 0 0 18px;
}

.promise-sentence {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.7;
}

.promise-items {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.promise-items span {
  padding: 0 36px;
  font-weight: 700;
  font-size: 1.05rem;
}

.promise-items span + span {
  border-left: 2px solid #4A2733;
}

/* ==========================================================================
   SERVICE ROWS
   ========================================================================== */

.service-rows {
  padding: 92px 0;
}

.service-rows-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  color: #7A3B4E;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.service-rows-inner > h2 {
  color: #7A3B4E;
  font-size: 2.3rem;
  margin: 0 0 14px;
}

.section-lead {
  color: #33272C;
  font-size: 1.12rem;
  max-width: 760px;
  margin: 0 0 44px;
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 34px 0;
  border-bottom: 2px solid #7A3B4E;
}

.service-row:first-of-type {
  border-top: 2px solid #7A3B4E;
}

.row-marker {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: #E58BA0;
  margin-top: 8px;
}

.service-row h3 {
  color: #7A3B4E;
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.service-row p {
  color: #33272C;
  margin: 0;
  max-width: 920px;
}

/* ==========================================================================
   DUO STATEMENT
   ========================================================================== */

.duo-statement {
  background: #FFFFFF;
  padding: 92px 0;
}

.duo-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.duo-left {
  padding: 0 48px 0 0;
}

.duo-left h2 {
  color: #7A3B4E;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
}

.duo-right {
  padding: 0 0 0 48px;
  border-left: 2px solid #7A3B4E;
}

.duo-right p {
  color: #33272C;
  font-size: 1.05rem;
  margin: 0;
}

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

.cta-band {
  background: #E58BA0;
  padding: 84px 0;
  text-align: center;
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  color: #4A2733;
}

.cta-band h2 {
  color: #4A2733;
  font-size: 2.4rem;
  margin: 0 0 16px;
}

.cta-band p {
  color: #4A2733;
  font-size: 1.12rem;
  max-width: 660px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   LOTUS POND FOOTER
   ========================================================================== */

.pond-top {
  background: #E58BA0;
  padding: 38px 0;
}

.pond-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #4A2733;
}

.foot-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 1.2rem;
  color: #4A2733;
}

.foot-company {
  font-size: 0.85rem;
}

.foot-links {
  display: flex;
  gap: 26px;
}

.foot-links a {
  color: #4A2733;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.foot-links a:hover {
  text-decoration: underline;
}

.foot-contact {
  font-size: 0.92rem;
}

.foot-contact a {
  color: #4A2733;
  text-decoration: none;
  font-weight: 600;
}

.foot-contact a:hover {
  text-decoration: underline;
}

.pond-bottom {
  background: #7A3B4E;
  padding: 18px 0;
  text-align: center;
}

.pond-bottom p {
  color: #F5E6EA;
  margin: 0;
  font-size: 0.85rem;
}

.pond-bottom a {
  color: #F5E6EA;
  text-decoration: none;
}

.pond-bottom a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SECONDARY PAGES — PAGE HERO
   ========================================================================== */

.page-hero {
  background: #FBF7F4;
  padding: 88px 0 76px;
  border-bottom: 2px solid #E58BA0;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero h1 {
  color: #7A3B4E;
  font-size: 3rem;
  line-height: 1.12;
  margin: 0 0 20px;
  max-width: 920px;
}

.page-hero p {
  color: #33272C;
  font-size: 1.16rem;
  max-width: 760px;
  margin: 0;
}

/* ==========================================================================
   SERVICES PAGE
   ========================================================================== */

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

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.svc-block {
  display: flex;
  gap: 32px;
  padding: 44px 0;
  border-bottom: 2px solid #EAD8DC;
}

.svc-rail {
  flex: 0 0 auto;
  width: 8px;
  border-radius: 4px;
  background: #E58BA0;
}

.svc-block h3 {
  color: #7A3B4E;
  font-size: 1.5rem;
  margin: 0 0 12px;
}

.svc-block p {
  color: #33272C;
  max-width: 900px;
}

.svc-block p + p {
  margin-top: 14px;
}

.metrics-band {
  background: #7A3B4E;
  padding: 60px 0;
}

.metrics-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.metric-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: #F5E6EA;
}

.metric-label {
  color: #EAD8DC;
  font-size: 0.9rem;
  margin-top: 8px;
}

.process-strip {
  background: #FFFFFF;
  padding: 88px 0;
}

.process-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid #7A3B4E;
  border-bottom: 2px solid #7A3B4E;
  margin-top: 40px;
}

.process-phase {
  padding: 36px 28px;
  border-left: 2px solid #7A3B4E;
}

.process-phase:first-child {
  border-left: 0;
}

.phase-tag {
  display: inline-block;
  background: #E58BA0;
  color: #4A2733;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.process-phase h3 {
  color: #7A3B4E;
  margin: 0 0 10px;
}

.process-phase p {
  color: #33272C;
  margin: 0;
  font-size: 0.95rem;
}

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

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

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-detail {
  margin-bottom: 26px;
}

.contact-detail h3 {
  color: #7A3B4E;
  font-size: 0.95rem;
  margin: 0 0 6px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-detail p {
  color: #33272C;
  margin: 0;
}

.contact-detail a {
  color: #7A3B4E;
  text-decoration: none;
  font-weight: 600;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.contact-card {
  background: #FFFFFF;
  border: 2px solid #E58BA0;
  border-radius: 16px;
  padding: 40px;
}

.contact-card h2 {
  color: #7A3B4E;
  font-size: 1.7rem;
  margin: 0 0 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #7A3B4E;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #EAD8DC;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: #33272C;
  background: #FBF7F4;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #E58BA0;
}

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

.form-status.ok {
  color: #2E6B46;
}

.form-status.error {
  color: #A6333F;
}

.faq-block {
  margin-top: 48px;
}

.faq-block h2 {
  color: #7A3B4E;
  font-size: 1.6rem;
  margin: 0 0 20px;
}

.faq-item {
  border: 2px solid #EAD8DC;
  border-radius: 12px;
  background: #FFFFFF;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font: inherit;
  font-weight: 700;
  color: #7A3B4E;
  cursor: pointer;
  font-size: 1rem;
}

.faq-q .faq-arrow {
  color: #E58BA0;
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform .3s ease;
}

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

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 20px;
}

.faq-a p {
  color: #33272C;
  margin: 0 0 18px;
}

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

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

.fade-up.visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 960px) {
  .lotus-hero h1 {
    font-size: 48px;
  }

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

  .duo-left {
    padding: 0 0 32px;
  }

  .duo-right {
    padding: 32px 0 0;
    border-left: 0;
    border-top: 2px solid #7A3B4E;
  }

  .pond-top-inner {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .foot-links {
    flex-wrap: wrap;
    justify-content: center;
  }

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

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

  .process-phase {
    border-left: 0;
    border-top: 2px solid #7A3B4E;
  }

  .process-phase:nth-child(-n + 2) {
    border-top: 0;
  }

  .process-phase:nth-child(odd) {
    border-right: 2px solid #7A3B4E;
  }

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

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FBF7F4;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 20px;
    border-bottom: 2px solid #7A3B4E;
  }

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

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid #EAD8DC;
    border-bottom-color: #EAD8DC;
  }

  .site-nav a.active {
    border-bottom-color: #EAD8DC;
  }

  .lotus-hero {
    padding: 72px 0;
  }

  .hero-inner {
    flex-direction: column;
    gap: 56px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .lotus-flower {
    width: 220px;
    height: 220px;
  }

  .lotus-flower .petal {
    width: 54px;
    height: 98px;
    margin-left: -27px;
    margin-top: -98px;
  }

  .lotus-flower .center {
    width: 48px;
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
  }

  .promise-items {
    flex-direction: column;
    gap: 12px;
  }

  .promise-items span + span {
    border-left: 0;
    padding-top: 12px;
    border-top: 2px solid #4A2733;
  }

  .page-hero {
    padding: 64px 0 56px;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .svc-block {
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .lotus-hero h1 {
    font-size: 44px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

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

  .process-phase,
  .process-phase:nth-child(odd),
  .process-phase:nth-child(-n + 2) {
    border: 0;
    border-top: 2px solid #7A3B4E;
  }

  .process-phase:first-child {
    border-top: 0;
  }

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

  .contact-card {
    padding: 28px 22px;
  }
}
