/*
Theme Name: SWELL Child Corporate Redesign
Theme URI: https://example.com
Description: SWELL child theme for Corporate Website Redesign React data migration.
Author: Codex
Template: swell
Version: 1.0.0
Text Domain: swell-child-corporate
*/

:root {
  --corp-bg: #f3f4f6;
  --corp-card: #ffffff;
  --corp-border: #d7dce2;
  --corp-text: #0f172a;
  --corp-sub: #4b5563;
  --corp-accent: #1f96be;
  --corp-pill: #d8ecf5;
}

.page-template-page-corporate-home .l-mainContent,
.page-template-page-corporate-home .l-mainContent__inner,
.page-template-page-corporate-home .l-content,
.page-template-page-corporate-home .post_content,
.page-template-page-corporate-home .entry-content,
.page-template-page-corporate-home .swell-block-fullWide,
.page-template-page-corporate-home .c-pageTitle {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.page-template-page-corporate-home .l-mainContent {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-template-page-corporate-home .l-mainContent__inner,
.page-template-page-corporate-home .l-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-template-page-corporate-home .l-header {
  margin-bottom: 0 !important;
  border-bottom-width: 0 !important;
}

.page-template-page-corporate-home .c-pageTitle,
.page-template-page-corporate-home .p-breadcrumb,
.page-template-page-corporate-home .p-postList {
  display: none !important;
}

/* Hide SWELL top utility bar (site name/search icons row). */
.page-template-page-corporate-home .l-header .l-header__bar,
.page-template-page-corporate-home .l-header .p-headbar,
.page-template-page-corporate-home .l-header [class*="headbar"],
.page-template-page-corporate-home .l-header [class*="topBar"] {
  display: none !important;
}

/* Keep header menu in a centered container instead of edge-to-edge. */
.page-template-page-corporate-home .l-header .l-container,
.page-template-page-corporate-home .l-header .l-header__inner {
  max-width: 1200px !important;
  width: min(1200px, 92%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.corp-page {
  background: var(--corp-bg);
}

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

.corp-section {
  padding: 64px 0;
}

.corp-section.-alt {
  background: #eceff3;
}

.corp-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #f5f7fb 0%, #eceff5 45%, #e6eaf2 100%);
  min-height: calc(100svh - 88px);
  display: flex;
  align-items: center;
}

.corp-hero .corp-wrap {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  padding-bottom: 76px;
}

.corp-hero-bg {
  position: absolute;
  inset: -10% -8%;
  z-index: 0;
  pointer-events: none;
  filter: saturate(110%);
}

.corp-orb {
  position: absolute;
  border-radius: 999px;
  mix-blend-mode: multiply;
  filter: blur(46px);
  opacity: 0.62;
}

.corp-orb.-a {
  width: 44vw;
  height: 44vw;
  min-width: 360px;
  min-height: 360px;
  left: -8%;
  top: -12%;
  background: radial-gradient(circle at 30% 30%, rgba(109, 209, 255, 0.82), rgba(31, 150, 190, 0.22) 62%, rgba(31, 150, 190, 0.05) 100%);
  animation: corpFloatA 18s ease-in-out infinite alternate;
}

.corp-orb.-b {
  width: 38vw;
  height: 38vw;
  min-width: 320px;
  min-height: 320px;
  right: -6%;
  top: 8%;
  background: radial-gradient(circle at 65% 35%, rgba(255, 174, 201, 0.85), rgba(240, 105, 158, 0.26) 58%, rgba(240, 105, 158, 0.04) 100%);
  animation: corpFloatB 22s ease-in-out infinite alternate;
}

.corp-orb.-c {
  width: 34vw;
  height: 34vw;
  min-width: 280px;
  min-height: 280px;
  left: 36%;
  bottom: -24%;
  background: radial-gradient(circle at 45% 40%, rgba(138, 255, 220, 0.78), rgba(76, 201, 240, 0.23) 56%, rgba(76, 201, 240, 0.04) 100%);
  animation: corpFloatC 20s ease-in-out infinite alternate;
}

.corp-orb.-d {
  width: 28vw;
  height: 28vw;
  min-width: 220px;
  min-height: 220px;
  right: 26%;
  top: -10%;
  background: radial-gradient(circle at 55% 45%, rgba(255, 230, 141, 0.7), rgba(255, 195, 76, 0.18) 62%, rgba(255, 195, 76, 0.02) 100%);
  animation: corpFloatD 16s ease-in-out infinite alternate;
}

.corp-grid-glow {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 35% 45%, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.12) 68%, transparent 100%);
  opacity: 0.35;
  animation: corpGridShift 24s linear infinite;
}

.corp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.corp-title {
  margin: 0 0 14px;
  color: var(--corp-text);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.2;
}

.corp-hero-title {
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.corp-lead {
  margin: 0 0 18px;
  color: var(--corp-sub);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.65;
}

.corp-hero-actions {
  display: flex;
  gap: 12px;
  margin: 0 0 34px;
}

.corp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.corp-btn:hover {
  opacity: 0.88;
}

.corp-btn.-primary {
  background: var(--corp-accent);
  color: #fff;
}

.corp-btn.-ghost {
  background: transparent;
  color: #111827;
  border: 1px solid #c8ced6;
}

.corp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid #d0d7df;
  padding-top: 28px;
}

.corp-stats dl {
  margin: 0;
}

.corp-stats dt {
  margin: 0 0 6px;
  font-size: clamp(2.05rem, 3vw, 2.9rem);
  line-height: 1;
  font-weight: 700;
  color: var(--corp-accent);
}

.corp-stats dd {
  margin: 0;
  color: #4b5563;
  font-size: 1.08rem;
}

.corp-hero-motion {
  position: relative;
  min-height: 530px;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
  box-shadow: none;
}

.corp-hero-sphere,
.corp-hero-ring,
.corp-hero-beam {
  position: absolute;
}

.corp-hero-sphere {
  width: 390px;
  height: 390px;
  border-radius: 50%;
  right: 18%;
  top: 20%;
  background: radial-gradient(circle at 30% 32%, rgba(255, 210, 255, 0.95), rgba(188, 108, 255, 0.78) 48%, rgba(94, 36, 170, 0.7) 74%, rgba(40, 20, 90, 0.86) 100%);
  box-shadow: 0 0 60px rgba(180, 98, 255, 0.35);
  animation: corpSphereFloat 8s ease-in-out infinite alternate;
}

.corp-hero-sphere.-small {
  width: 205px;
  height: 205px;
  right: 54%;
  top: 14%;
  opacity: 0.82;
  filter: saturate(1.1);
  animation-duration: 6.8s;
}

.corp-hero-ring {
  width: 520px;
  height: 520px;
  right: 6%;
  top: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  animation: corpRingSpin 16s linear infinite;
}

.corp-hero-ring.-inner {
  width: 330px;
  height: 330px;
  right: 22%;
  top: 25%;
  border-color: rgba(255, 255, 255, 0.38);
  animation-duration: 12s;
  animation-direction: reverse;
}

.corp-hero-beam {
  width: 220%;
  height: 160px;
  left: -50%;
  top: 62%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 228, 255, 0.45), rgba(209, 241, 255, 0.35), rgba(255, 255, 255, 0));
  transform: rotate(-12deg);
  filter: blur(6px);
  animation: corpBeam 5.2s ease-in-out infinite;
}

.corp-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0f172a;
  z-index: 3;
}

.corp-scroll-cue__line {
  width: 1px;
  height: 34px;
  background: rgba(15, 23, 42, 0.45);
}

.corp-scroll-cue__arrow {
  font-size: 1.2rem;
  animation: corpScrollCue 1.6s ease-in-out infinite;
}

.corp-grid {
  display: grid;
  gap: 24px;
}

.corp-grid.-trust {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
  margin-bottom: 34px;
}

.corp-grid.-trust h3 {
  margin: 12px 0 8px;
  font-size: 1.9rem;
}

.corp-grid.-trust p {
  margin: 0;
  color: var(--corp-sub);
}

.corp-circle-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d9ecf6;
  color: var(--corp-accent);
  font-size: 1.8rem;
  font-weight: 700;
}

.corp-tag-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.corp-tag-row span {
  background: var(--corp-pill);
  color: #1184aa;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.corp-heading-row {
  margin-bottom: 28px;
}

.corp-heading-row.-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.corp-link-more {
  text-decoration: none;
  color: var(--corp-accent);
  font-weight: 700;
  white-space: nowrap;
}

.corp-grid.-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.corp-card {
  border: 1px solid var(--corp-border);
  background: var(--corp-card);
  border-radius: 12px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.corp-card.-service {
  padding: 24px;
}

.corp-card.-service:hover {
  transform: translateY(-6px);
  border-color: #95cee1;
  box-shadow: 0 14px 24px rgba(10, 70, 104, 0.08);
}

.corp-service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.corp-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d9ecf4;
  color: #1d95bb;
  font-size: 1.35rem;
  font-weight: 700;
  transition: transform 0.24s ease, background-color 0.24s ease;
}

.corp-service-arrow {
  color: #808b98;
  font-size: 2rem;
  transition: transform 0.24s ease, color 0.24s ease;
}

.corp-card.-service:hover .corp-service-icon {
  transform: scale(1.08);
  background: #cae6f2;
}

.corp-card.-service:hover .corp-service-arrow {
  transform: translateX(8px);
  color: #1f96be;
}

.corp-card.-service h3 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.corp-card.-service h3 a {
  color: var(--corp-text);
  text-decoration: none;
}

.corp-card.-service p {
  margin: 0;
  color: var(--corp-sub);
  line-height: 1.7;
  font-size: 1.2rem;
}

.corp-grid.-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.corp-card.-case {
  overflow: hidden;
}

.corp-case-thumb {
  background: #dcebf1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #99cadc;
  font-size: 6.4rem;
  font-weight: 700;
}

.corp-case-body {
  padding: 20px;
}

.corp-tag-row.-small {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.corp-tag-row.-small span {
  padding: 4px 10px;
  font-size: 0.84rem;
  background: #e5e7eb;
  color: #374151;
}

.corp-card.-case h3 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.45;
}

.corp-result {
  margin: 0 0 14px;
  color: var(--corp-accent);
  font-weight: 700;
}

.corp-case-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
}

.corp-list.-news {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.corp-list.-news li {
  background: var(--corp-card);
  border: 1px solid var(--corp-border);
  border-radius: 10px;
}

.corp-list.-news li.-active {
  border-color: #a2d4e6;
  box-shadow: 0 3px 12px rgba(44, 148, 181, 0.12);
}

.corp-list.-news li a {
  display: grid;
  align-items: center;
  grid-template-columns: 96px auto 1fr 24px;
  gap: 12px;
  text-decoration: none;
  color: var(--corp-text);
  padding: 18px 20px;
}

.corp-list.-news time {
  color: #5b6470;
  font-weight: 600;
}

.corp-badge {
  display: inline-flex;
  justify-content: center;
  background: #d9ecf6;
  color: #138cb2;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.corp-badge.-news {
  white-space: nowrap;
  line-height: 1.2;
  width: fit-content;
}

.corp-news-title {
  font-size: 1.35rem;
}

.corp-list.-news li.-active .corp-news-title {
  color: #1186ad;
}

.corp-news-arrow {
  text-align: right;
  font-size: 2rem;
  color: #7a8795;
}

.corp-grid.-company {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
}

.corp-subtitle {
  margin: 8px 0 18px;
  font-size: 3rem;
}

.corp-card.-company {
  padding: 22px 28px;
}

.corp-kv {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  border-top: 1px solid #dfe4ea;
}

.corp-kv dt,
.corp-kv dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid #dfe4ea;
  font-size: 1.1rem;
}

.corp-kv dt {
  color: #4b5563;
  font-weight: 600;
}

.corp-kv dd {
  color: #111827;
  white-space: pre-line;
}

.corp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.corp-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes corpFloatA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(9%, 6%, 0) scale(1.15); }
}

@keyframes corpSphereFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(22px, -30px, 0) scale(1.1); }
}

@keyframes corpRingSpin {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.06); }
}

@keyframes corpBeam {
  0% { transform: translate3d(0, 0, 0) rotate(-12deg); opacity: 0.45; }
  50% { transform: translate3d(52px, -16px, 0) rotate(-10deg); opacity: 0.82; }
  100% { transform: translate3d(0, 0, 0) rotate(-12deg); opacity: 0.45; }
}

@keyframes corpScrollCue {
  0% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.45; }
}

@keyframes corpFloatB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-10%, -8%, 0) scale(1.1); }
}

@keyframes corpFloatC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-8%, -4%, 0) scale(1.18); }
}

@keyframes corpFloatD {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(5%, 8%, 0) scale(1.13); }
}

@keyframes corpGridShift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-44px, -44px, 0); }
}

@media (max-width: 1100px) {
  .corp-grid.-services,
  .corp-grid.-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .corp-hero-grid,
  .corp-grid.-trust,
  .corp-grid.-company {
    grid-template-columns: 1fr;
  }

  .corp-heading-row.-between {
    align-items: flex-start;
    flex-direction: column;
  }

  .corp-hero {
    min-height: auto;
  }

  .corp-list.-news li a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .corp-news-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .corp-grid.-services,
  .corp-grid.-cards {
    grid-template-columns: 1fr;
  }

  .corp-title {
    font-size: 2.3rem;
  }

  .corp-hero-title {
    font-size: 3rem;
  }

  .corp-hero-motion {
    min-height: 340px;
  }

  .corp-card.-service h3 {
    font-size: 1.8rem;
  }

  .corp-card.-service p,
  .corp-news-title,
  .corp-kv dt,
  .corp-kv dd {
    font-size: 1rem;
  }

  .corp-orb {
    filter: blur(30px);
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .corp-orb,
  .corp-grid-glow,
  .corp-hero-sphere,
  .corp-hero-ring,
  .corp-hero-beam,
  .corp-reveal {
    animation: none !important;
    transition: none !important;
  }
}
