:root {
  --color-primary: #2A5CAA;
  --color-primary-700: #214a87;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-sm: 12px;
  --radius-md: 16px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Han Sans SC", "Noto Sans SC", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: var(--space-2);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-2);
  color: var(--color-muted);
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: #9ca3af;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
}

.site-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background-color: rgba(248, 250, 252, 0.92);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

.site-title-link {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.primary-nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background-color 180ms ease, color 180ms ease;
}

.primary-nav a:hover {
  background-color: rgba(42, 92, 170, 0.08);
}

.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .primary-nav ul {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: rgba(248, 250, 252, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 220ms ease, opacity 220ms ease;
  }
  .primary-nav ul.is-open {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    padding: 10px 14px;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  }
  .nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
  .nav-toggle-bar {
    width: 20px;
    height: 2px;
    background-color: var(--color-text);
  }
  .nav-toggle-label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
  }
}

.hero-section {
  padding-top: clamp(56px, 6vw, 88px);
  padding-bottom: clamp(56px, 6vw, 88px);
  background: radial-gradient(circle at top left, rgba(42, 92, 170, 0.95) 0, rgba(15, 23, 42, 1) 62%);
  color: #ffffff;
}

.hero-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
  }
}

.hero-content h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-subtitle {
  color: rgba(226, 232, 240, 0.92);
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: 0;
}

.hero-media {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.12);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.carousel-section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.carousel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.carousel-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

.carousel-btn {
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.carousel-slide {
  display: none;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.carousel-slide.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  gap: 8px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(42, 92, 170, 0.28);
}

.btn-primary:hover {
  background-color: var(--color-primary-700);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.services-section,
.cases-section,
.testimonials-section,
.cta-section,
.page-services .container,
.page-about .container,
.page-contact .container {
  padding-top: clamp(56px, 6vw, 88px);
  padding-bottom: clamp(56px, 6vw, 88px);
}

.services-grid,
.cases-grid,
.testimonials-grid,
.team-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .testimonials-grid,
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  }
}

.service-card,
.case-card,
.testimonial-card,
.team-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.case-card:hover,
.testimonial-card:hover,
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(42, 92, 170, 0.28);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background-color: rgba(42, 92, 170, 0.08);
  color: var(--color-primary);
  margin-bottom: 12px;
  font-size: 18px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-link {
  font-weight: 600;
  color: var(--color-primary);
}

.case-link {
  color: inherit;
  display: block;
}

.case-thumbnail {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background-color: rgba(15, 23, 42, 0.04);
}

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

.contact-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-details li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--color-muted);
}

.contact-details i {
  color: var(--color-primary);
  margin-top: 3px;
}

.map-embed iframe {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.testimonial-text {
  color: var(--color-text);
  font-weight: 500;
}

.testimonial-author {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.cta-section {
  background-color: #0f172a;
  color: #ffffff;
}

.cta-section p {
  color: rgba(226, 232, 240, 0.92);
}

.cta-section a {
  color: inherit;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  padding-bottom: 24px;
  background-color: var(--color-surface);
}

.site-footer p {
  margin: 0;
  color: var(--color-muted);
}

.page-header {
  margin-bottom: 24px;
}

.page-title,
.entry-title {
  color: var(--color-text);
}

.entry-content,
.entry-summary {
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background-color: var(--color-primary);
  color: #ffffff;
  z-index: 10000;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 16px;
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
textarea:hover,
select:hover {
  border-color: rgba(42, 92, 170, 0.35);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(42, 92, 170, 0.65);
  box-shadow: 0 0 0 4px rgba(42, 92, 170, 0.18);
}

.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0 0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.wpcf7 form .wpcf7-not-valid-tip {
  font-size: 14px;
  margin-top: 6px;
}

.wpcf7 form p {
  margin-bottom: 16px;
  color: var(--color-muted);
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  background-color: var(--color-primary);
  color: #ffffff;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  box-shadow: 0 10px 24px rgba(42, 92, 170, 0.28);
}

.wpcf7 input[type="submit"]:hover {
  background-color: var(--color-primary-700);
  transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
