/* === Section-Specific Styles === */

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  height: 44px;
  width: auto;
  background: #fff;
  padding: 2px 8px 2px 3px;
  border-radius: var(--radius-sm);
}

/* Nav */
.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.82);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.header.scrolled .header__nav-link {
  color: var(--color-text-secondary);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width var(--transition-fast);
}

.header__nav-link:hover,
.header__nav-link.active {
  color: #fff;
}

.header.scrolled .header__nav-link:hover,
.header.scrolled .header__nav-link.active {
  color: var(--color-primary);
}

.header__nav-link.active::after {
  width: 100%;
}

/* Mobile menu button */
.header__menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: 101;
}

.header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-base);
}

.header.scrolled .header__menu-btn span {
  background: var(--color-text);
}

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

.header__menu-btn.open span:nth-child(2) {
  opacity: 0;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-gradient);
  overflow: hidden;
}

.hero__bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: var(--header-height);
  padding-bottom: var(--space-16);
}

.hero__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero__highlight {
  background: linear-gradient(90deg, #4fc3f7, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ===== Service Block (shared by multiple sections) ===== */
.service-block {
  margin-bottom: var(--space-16);
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block__heading {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
  border-left: 4px solid var(--color-primary);
}

.service-block__intro {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 720px;
}

.service-block__subtitle {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.service-block__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

/* ===== OPC Section ===== */
.opc-block {
  margin-bottom: var(--space-16);
}

.opc-block:last-child {
  margin-bottom: 0;
}

.opc-questions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.opc-question {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-primary-light);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.opc-question:hover {
  border-left-color: var(--color-primary);
  background: var(--color-primary-bg);
}

/* ===== Contact Layout ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.contact-info__intro {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}

/* ---- QR Code ---- */
.contact-qrcode {
  display: flex;
  justify-content: center;
}

.contact-qrcode__card {
  text-align: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-16);
  transition: box-shadow var(--transition-base);
}

.contact-qrcode__card:hover {
  box-shadow: var(--shadow-lg);
}

.contact-qrcode__img-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.contact-qrcode__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-qrcode__label {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.contact-qrcode__hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ===== School Logo Grid ===== */
.school-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.school-logo-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition-base);
}

.school-logo-card:hover {
  box-shadow: var(--shadow-lg);
}

.school-logo-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

/* ===== Case Blocks ===== */
.case-block {
  margin-bottom: var(--space-16);
}

.case-block:last-child {
  margin-bottom: 0;
}

.case-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.case-images__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.case-images__item:hover {
  box-shadow: var(--shadow-lg);
}

.case-images__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Footer ===== */
.footer {
  color: var(--color-footer-text);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo img {
  height: 44px;
  width: auto;
  background: #fff;
  padding: 2px 8px 2px 3px;
  border-radius: var(--radius-sm);
  margin-right: 8px;
}

.footer__brand-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: #fff;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-footer-text);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-sm);
  color: var(--color-footer-text);
  text-align: center;
}

.footer__icp {
  margin-top: var(--space-2);
  font-size: 0.75rem;
  opacity: 0.7;
}

.footer__icp a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.footer__icp a:hover {
  opacity: 1;
  text-decoration: underline;
}
