@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lora:wght@300;400;500;600&family=Source+Code+Pro:wght@400;500&display=swap');

:root {
  --primary: #0B2545;
  --primary-dark: #082040;
  --accent: #2A6F97;
  --accent-hover: #1f5a7d;
  --bg-primary: #F1FAEE;
  --bg-secondary: #e8f3ed;
  --bg-card: #fff;
  --text-primary: #0B2545;
  --text-secondary: #6C757D;
  --border-color: #d4e6f0;
  --valve-red: #C1121F;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lora', serif;
  --font-mono: 'Source Code Pro', monospace;
  --shadow-light: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow-medium: 0 4px 16px rgba(11, 37, 69, 0.12);
  --shadow-heavy: 0 8px 32px rgba(11, 37, 69, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
}

.hm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(241, 250, 238, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 9999;
  transition: all 0.3s ease;
}

.hm-header.scrolled {
  background: rgba(11, 37, 69, 0.95);
  color: white;
}

.hm-header.scrolled .az-logo {
  color: var(--bg-primary);
}

.hm-header.scrolled .kx-nav a {
  color: var(--bg-primary);
}

.hm-header.scrolled .sp-phone {
  background: var(--accent);
  color: white;
}

.fj-nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.az-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.kx-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.kx-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.kx-nav a:hover {
  color: var(--accent);
}

.kx-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.kx-nav a:hover::after {
  width: 100%;
}

.sp-phone {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.sp-phone:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.rt-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.rt-hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform-origin: center;
}

.rt-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.rt-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.rt-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

main {
  padding-top: 90px;
}

.qw-hero {
  background: linear-gradient(rgba(11, 37, 69, 0.7), rgba(11, 37, 69, 0.8)), url('../images/hero1-modern-office-technology_orig.jpg') center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.qw-hero-content {
  max-width: 900px;
  padding: 2rem;
  z-index: 2;
}

.qw-hero h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #F1FAEE 0%, #2A6F97 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
}

.qw-hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.dx-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  animation: fadeInUp 0.8s ease 0.4s both;
  border: none;
  cursor: pointer;
}

.dx-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.yz-section {
  padding: 5rem 2rem;
  overflow: hidden;
}

.nq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.nq-container.medium {
  max-width: 980px;
}

.nq-container.compact {
  max-width: 720px;
}

.bm-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

.bm-grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bm-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.xu-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

.xu-card:nth-child(2) { animation-delay: 0.1s; }
.xu-card:nth-child(3) { animation-delay: 0.2s; }
.xu-card:nth-child(4) { animation-delay: 0.3s; }

.xu-card:hover {
  transform: perspective(1000px) rotateY(2deg) translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.xu-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xu-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.xu-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.xu-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.pv-section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.pv-section-title h2 {
  font-family: var(--font-heading);
  font-size: 44px;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.pv-section-title p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.mf-timeline {
  position: relative;
  padding: 2rem 0;
}

.mf-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  transform: translateX(-50%);
}

.cv-timeline-item {
  position: relative;
  margin: 3rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.cv-timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.cv-timeline-item:nth-child(odd) .cv-timeline-content {
  margin-right: calc(50% + 2rem);
  text-align: right;
}

.cv-timeline-item:nth-child(even) .cv-timeline-content {
  margin-left: calc(50% + 2rem);
}

.cv-timeline-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  position: relative;
}

.cv-timeline-year {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  box-shadow: var(--shadow-medium);
}

.tv-map {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.tv-map::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
  animation: float 20s linear infinite;
}

.lg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.lg-stat {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.lg-stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.lg-stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.lg-stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.gh-form {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-medium);
  margin: 3rem 0;
}

.gh-form h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.gh-form-group {
  margin-bottom: 1.5rem;
}

.gh-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

.gh-form input,
.gh-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--bg-primary);
}

.gh-form input:focus,
.gh-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.gh-form textarea {
  resize: vertical;
  min-height: 120px;
}

.gh-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.gh-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.gh-checkbox label {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.jk-footer {
  background: var(--primary);
  color: var(--bg-primary);
  padding: 4rem 2rem 2rem;
}

.jk-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.jk-footer-section h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--bg-primary);
}

.jk-footer-section p,
.jk-footer-section li {
  color: rgba(241, 250, 238, 0.9);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.jk-footer-section ul {
  list-style: none;
}

.jk-footer-section a {
  color: rgba(241, 250, 238, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.jk-footer-section a:hover {
  color: var(--bg-primary);
}

.jk-footer-bottom {
  border-top: 1px solid rgba(241, 250, 238, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(241, 250, 238, 0.8);
}

.wp-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 1.5rem 2rem;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.wp-cookie.show {
  transform: translateY(0);
}

.wp-cookie p {
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.wp-cookie-actions {
  display: flex;
  gap: 1rem;
}

.wp-cookie button {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wp-cookie .accept {
  background: var(--accent);
  color: white;
}

.wp-cookie .decline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.heatmap-vis {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin: 1rem 0;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.heatmap-cell:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.legend-scale {
  display: flex;
  height: 20px;
  width: 200px;
  border-radius: 10px;
  background: linear-gradient(90deg, #3b82f6 0%, #f1faee 50%, #dc2626 100%);
}

.legend-labels {
  display: flex;
  justify-content: space-between;
  width: 200px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.tooltip {
  position: absolute;
  background: rgba(11, 37, 69, 0.95);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.tooltip.show {
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -10px) rotate(120deg); }
  66% { transform: translate(-5px, 5px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@media (max-width: 768px) {
  .fj-nav-wrap {
    padding: 1rem;
  }
  
  .kx-nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: top 0.3s ease;
  }
  
  .kx-nav.open {
    top: 100%;
    transform: translateY(0);
  }
  
  .rt-hamburger {
    display: flex;
  }
  
  .sp-phone {
    display: none;
  }
  
  .qw-hero h1 {
    font-size: 2.5rem;
  }
  
  .qw-hero p {
    font-size: 1.1rem;
  }
  
  .yz-section {
    padding: 3rem 1rem;
  }
  
  .bm-grid.three-col,
  .bm-grid.two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .xu-card {
    padding: 1.5rem;
  }
  
  .pv-section-title h2 {
    font-size: 32px;
  }
  
  .mf-timeline::before {
    left: 2rem;
  }
  
  .cv-timeline-item:nth-child(odd) .cv-timeline-content,
  .cv-timeline-item:nth-child(even) .cv-timeline-content {
    margin-left: 4rem;
    margin-right: 0;
    text-align: left;
  }
  
  .cv-timeline-year {
    left: 2rem;
  }
  
  .jk-footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .wp-cookie {
    flex-direction: column;
    text-align: center;
  }
  
  .heatmap-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .legend-scale,
  .legend-labels {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .qw-hero {
    min-height: 80vh;
  }
  
  .qw-hero h1 {
    font-size: 2rem;
  }
  
  .pv-section-title h2 {
    font-size: 28px;
  }
  
  .xu-card {
    padding: 1rem;
  }
  
  .gh-form {
    padding: 2rem;
  }
  
  .heatmap-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}