/* ════════════════════════════════════════════════════════
   SAVI SO.  —  home.css
   Homepage Specific Styles (Matching Yiran Studio Layout)
════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════
   SHARED BUTTONS
════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  padding: 13px 32px;
  background: #ffffff;
  color: var(--mint);
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  box-shadow: none !important;
}

.btn-primary:hover {
  background: var(--yellow);
  color: #0d0d0d;
  box-shadow: none !important;
}

.btn-ghost {
  display: inline-block;
  padding: 13px 32px;
  border: 2px solid rgba(255, 255, 255, 0.50);
  color: #ffffff;
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-3px);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
#hero {
  background: var(--mint);
  color: #ffffff;
  min-height: calc(100vh - 54px);
  min-height: calc(100svh - 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px 100px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  box-sizing: border-box;
}

#hero .container {
  padding: 0 20px;
  margin: auto 0;
  max-width: 1100px;
  width: 100%;
}

/* checkerboard texture */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg,  rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(45deg,  transparent 75%, rgba(255,255,255,0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.06) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'BBHBartle', sans-serif;
  font-size: clamp(0.78rem, 1.1vw, 1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero-h1 {
  font-family: 'Boldonse', 'SourceHanSansSC', sans-serif;
  font-size: clamp(3.2rem, 14vw, 10rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  padding: 14px 0;
  background: linear-gradient(180deg, #ffffff 55%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: visible;
  display: block;
}

#hero > .container > p {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 20px auto 0;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 44px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta .btn-primary,
.hero-cta .btn-ghost {
  width: 250px;
  max-width: 100%;
  padding: 14px 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    width: 100%;
  }
}

/* scroll emblem */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.60);
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--yellow);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════ */
#about {
  background: var(--bg);
  padding: 100px 0;
  text-align: center;
  transition: background 0.3s;
}

#about h2 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: clamp(1.6rem, 8vw, 3.5rem);
  color: var(--mint);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

#about p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ════════════════════════════════════════════════════════
   SERVICES (Scope & Offering)
════════════════════════════════════════════════════════ */
#services {
  background: var(--mint);
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: clip;
  overflow-clip-margin: 0px;
  transition: background 0.3s;
}

#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg,  rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(45deg,  transparent 75%, rgba(255,255,255,0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.06) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  pointer-events: none;
  z-index: 0;
}

#services .container {
  position: relative;
  z-index: 1;
}

#services h2 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: clamp(1.4rem, 6vw, 3.5rem);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

#services > .container > p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.services-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  text-align: left;
}

.service-card {
  background: var(--bg-alt);
  color: var(--text);
  border: 2px solid transparent;
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
}

.service-card-num {
  font-family: 'BBHBartle', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--mint);
  line-height: 1;
}

.service-card h3 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════
   CONTACT (Matching Yiran Studio Layout)
════════════════════════════════════════════════════════ */
#contact {
  background: var(--bg);
  padding: 100px 0;
  text-align: center;
  transition: background 0.3s;
}

#contact h2 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: clamp(1.6rem, 8vw, 3.5rem);
  color: var(--mint);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#contact > .container > p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  text-align: left;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  font-family: 'BBHBartle', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.contact-list a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mint);
  text-decoration: none;
  transition: color 0.15s;
  word-break: break-all;
}

.contact-list a:hover {
  color: var(--yellow);
}
