/* ================================================
   AOHEDS Website - Main Stylesheet v2.0
   Oil & Gas Technology Services Company Website
   ================================================ */

/* ─── CSS Variables ─── */
:root {
  /* Primary Colors */
  --primary-dark: #001a3d;
  --primary: #003366;
  --primary-mid: #004488;
  --accent: #e87722;
  --accent-light: #f5a623;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f0f4f9;
  --bg-dark: #001a3d;
  
  /* Text Colors */
  --text-dark: #1a1a2e;
  --text-gray: #4a5568;
  --text-light: #718096;
  
  /* Borders & Shadows */
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  
  /* Spacing & Border Radius */
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography ─── */
.section {
  padding: 96px 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(232, 119, 34, 0.08);
  border-radius: 4px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.8;
  max-width: 640px;
}

.section-header.center .section-sub {
  margin: 0 auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #d66a15;
  border-color: #d66a15;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 119, 34, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-outline-dark:hover {
  border-color: var(--primary);
  background: rgba(0,51,102,0.05);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ─── Grid Layouts ─── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
  .section { padding: 64px 0; }
}

/* ─── Navigation Bar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  height: 72px;
}

.navbar.scrolled {
  background: rgba(0, 26, 61, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  height: 68px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-en {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.05em;
}

.nav-logo-cn {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 0;
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  padding: 4px;
  border-radius: 6px;
}

.lang-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--accent);
  color: white;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 999;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--accent);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ─── Hero Sections ─── */
.home-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #00204d 0%, #003366 55%, #004e99 100%);
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 119, 34, 0.2);
  border: 1px solid rgba(232, 119, 34, 0.4);
  color: var(--accent-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-diagram-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
}

.hero-diagram-wrap svg { width: 100%; max-width: 480px; height: auto; }

@media(max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { justify-content: center; }
  .hero-diagram-wrap { display: none; }
}

/* Page Hero */
.hero-page {
  background: linear-gradient(135deg, #00204d 0%, #003366 100%);
  padding: 140px 0 80px;
  position: relative;
}

.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.hero-breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.hero-breadcrumb a:hover {
  color: var(--accent-light);
}

.hero-breadcrumb .sep {
  opacity: 0.4;
}

.hero-page-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.hero-page-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 800px;
  position: relative;
  z-index: 2;
}

/* ─── Stats Bar ─── */
.stats-bar {
  background: var(--primary-dark);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

/* CMS 数据到达前隐藏所有 CMS 驱动的内容(id 以 cms- 开头), 避免 HTML 写死的旧默认文案
   (公司介绍/副标题/统计数字等) 先闪现再被服务端真实值覆盖。
   main.js 在渲染完成后移除 <html> 上的 cms-loading 类。 */
html.cms-loading [id^="cms-"] {
  visibility: hidden;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-page-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .stat-number { font-size: 2rem; }
}

/* ─── Service Cards ─── */
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

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

.service-card-text {
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-list {
  margin-bottom: 16px;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--text-gray);
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-light);
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

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

/* ─── Software Cards ─── */
.software-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.software-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.software-card-top {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.software-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  color: white;
}

.software-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.software-card-tag {
  font-size: 0.78rem;
  color: var(--text-light);
}

.software-card-body {
  padding: 20px;
}

.software-card-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 14px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.feature-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--bg-light);
  border-radius: 12px;
  color: var(--text-gray);
}

/* ─── Cards (About Page) ─── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.divider {
  height: 1px;
  background: var(--border);
}

/* ─── CTA Section ─── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

/* ─── Footer ─── */
footer {
  background: var(--primary-dark);
  color: white;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 16px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

.footer-col ul li a:hover {
  color: var(--accent-light);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item .ic {
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ─── Forms ─── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* ─── News Page ─── */
.news-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-gray);
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.news-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-body {
  padding: 24px;
}

.news-card-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 12px;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

.news-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-light);
}

.news-empty .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ─── Contact Page ─── */
.contact-info-card {
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 100%;
}

.contact-info-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 32px;
}

.cinfo-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.cinfo-icon {
  width: 44px;
  height: 44px;
  background: rgba(232,119,34,0.18);
  border: 1px solid rgba(232,119,34,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cinfo-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cinfo-value {
  font-size: 0.95rem;
  color: white;
  font-weight: 500;
}

.form-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 44px;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-sub {
  font-size: 0.88rem;
  color: var(--text-gray);
  margin-bottom: 32px;
}

.submit-success {
  display: none;
  background: rgba(34, 197, 94, 0.1);
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #16a34a;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
}

.submit-success.show {
  display: block;
}

/* ─── Service Detail (Services Page) ─── */
.detail-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-of-type {
  border-bottom: none;
}

.detail-icon-box {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.detail-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.detail-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-gray);
}

.detail-feat::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.placeholder-note {
  background: rgba(232,119,34,0.06);
  border: 1.5px dashed rgba(232,119,34,0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 16px;
}

@media(max-width:640px) {
  .detail-features {
    grid-template-columns: 1fr;
  }
}

/* ─── Software Detail (Software Page) ─── */
.sw-detail {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.sw-detail:last-of-type {
  border-bottom: none;
}

.sw-logo-big {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.sw-logo-big.accent-bg {
  background: linear-gradient(135deg, var(--accent), #c95f10);
}

.sw-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.sw-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.sw-features-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.sw-info-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sw-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.sw-info-row:last-child {
  border-bottom: none;
}

.sw-info-row .label {
  color: var(--text-light);
}

.sw-info-row .value {
  font-weight: 600;
  color: var(--primary);
  text-align: right;
}

/* ─── About Page Timeline ─── */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-text {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ─── About Page Values ─── */
.value-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.value-card .icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ─── Scroll Reveal Animation ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ─── Utilities ─── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* =================================================
   Visual direction: AOHEDS engineering editorial system
   Scope: public homepage only. CMS hooks and dynamic grids remain unchanged.
   ================================================= */
:root { --ink:#0a1b2d; --steel:#27455f; --mist:#eef2f4; --copper:#c87932; --hairline:rgba(10,27,45,.16); }
.home-hero--editorial { min-height:720px; background:linear-gradient(90deg,rgba(5,20,34,.97) 0%,rgba(5,20,34,.90) 42%,rgba(5,20,34,.30) 72%,rgba(5,20,34,.12) 100%),var(--cms-hero-image, url("../images/visuals/hero-offshore-platform-v1.webp")) center center / cover no-repeat; }
.home-hero--editorial::before { opacity:.7; background-image:linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px); background-size:88px 88px; mask-image:linear-gradient(90deg,transparent 0%,#000 42%,#000 100%); }
.home-hero--editorial::after { content:''; position:absolute; width:min(58vw,760px); height:min(58vw,760px); right:-12vw; bottom:-42vw; border:1px solid rgba(214,226,233,.18); border-radius:50%; }
.home-hero--editorial .home-hero-inner { gap:clamp(36px,7vw,104px); }
.home-hero--editorial .hero-badge { padding:0 0 10px; margin-bottom:22px; border:0; border-bottom:1px solid rgba(200,121,50,.72); border-radius:0; background:transparent; color:#e4ab78; font-size:.72rem; letter-spacing:.17em; text-transform:uppercase; }
.home-hero--editorial .hero-title { max-width:820px; font-size:clamp(2.25rem,3.75vw,4.15rem); font-weight:650; line-height:1.04; letter-spacing:-.045em; margin-bottom:24px; }
.home-hero--editorial .hero-sub { max-width:620px; color:rgba(235,242,245,.76); font-size:1.02rem; line-height:1.75; margin-bottom:36px; }
.home-hero--editorial .btn { border-radius:0; padding:13px 22px; letter-spacing:.02em; }
.home-hero--editorial .btn-primary { background:var(--copper); border-color:var(--copper); }
.home-hero--editorial .hero-diagram-wrap { display:none; }
.home-hero--editorial .hero-diagram-wrap::before { content:''; position:absolute; inset:7% 0 0 6%; background:linear-gradient(180deg,rgba(135,181,204,.12),transparent 70%),linear-gradient(135deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size:auto,24px 24px; border-left:1px solid rgba(194,216,226,.38); border-bottom:1px solid rgba(194,216,226,.24); }
.home-hero--editorial .hero-diagram-wrap::after { content:'ENGINEERING / ENERGY / 2008'; position:absolute; right:0; bottom:2px; color:rgba(226,237,242,.46); font-size:.62rem; letter-spacing:.2em; writing-mode:vertical-rl; }
.home-hero--editorial .hero-diagram-wrap svg { position:relative; z-index:1; width:min(100%,440px); max-width:none; filter:drop-shadow(0 28px 38px rgba(0,0,0,.26)); }
.home-metrics { background:var(--ink); padding:22px 0; border-top:1px solid rgba(255,255,255,.12); }
.home-metrics .stats-grid { gap:0; }
.home-metrics .stat-item { padding:13px clamp(12px,3vw,36px); text-align:left; border-left:1px solid rgba(255,255,255,.14); }
.home-metrics .stat-item:first-child { border-left:0; }
.home-metrics .stat-number { color:#e6a26a; font-size:clamp(2rem,3.1vw,3rem); line-height:1; letter-spacing:-.05em; }
.home-metrics .stat-label { color:rgba(231,239,242,.62); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; }
.home-services,.home-software,.home-about { padding:clamp(68px,8vw,118px) 0; }
.home-services .section-header,.home-software .section-header { max-width:760px; margin:0 0 48px; text-align:left; }
.home-services .section-header .section-sub,.home-software .section-header .section-sub { margin:0; }
.home-services .section-tag,.home-software .section-tag,.home-about .section-tag { padding:0 0 10px; border-radius:0; background:transparent; border-bottom:1px solid rgba(200,121,50,.64); font-size:.7rem; letter-spacing:.16em; }
.home-services .section-title,.home-software .section-title,.home-about .section-title { color:var(--ink); font-size:clamp(2.05rem,3.2vw,3.55rem); font-weight:650; letter-spacing:-.045em; }
.home-services .grid-3 { gap:0; border-top:1px solid var(--hairline); }
.home-services .service-card { min-height:300px; padding:28px 28px 22px; border:0; border-radius:0; border-right:1px solid var(--hairline); border-bottom:1px solid var(--hairline); background:transparent; box-shadow:none; }
.home-services .service-card:hover { transform:none; box-shadow:inset 0 4px 0 var(--copper); background:#f5f7f8; }
.home-services .service-card-header,.home-services .service-card-body { padding:0; border:0; }
.home-services .service-card-header { display:block; }
.home-services .service-card-icon { width:auto; height:auto; margin-bottom:42px; border-radius:0; background:transparent; color:var(--copper); font-size:1.85rem; justify-content:flex-start; }
.home-services .service-card-title { color:var(--ink); font-size:1.22rem; }
.home-services .service-card-text { margin-top:16px; color:#526270; }
.home-services .service-list { display:none; }
.home-software { position:relative; overflow:hidden; }
.home-software::before { content:''; position:absolute; top:0; right:8%; width:1px; height:100%; background:rgba(10,27,45,.08); }
.home-software .grid-4 { gap:1px; background:var(--hairline); border:1px solid var(--hairline); }
.home-software .software-card { min-height:265px; border:0; border-radius:0; background:#f8fafb; box-shadow:none; }
.home-software .software-card:hover { transform:none; box-shadow:inset 0 -4px 0 var(--copper); background:#fff; }
.home-software .software-card-top,.home-software .software-card-body { padding:22px; border:0; }
.home-software .software-logo { width:46px; height:46px; border-radius:0; background:var(--ink); font-size:.62rem; }
.home-software .software-card-name { color:var(--ink); font-size:1.02rem; }
.home-software .feature-tags { display:none; }
.home-about { border-top:1px solid var(--hairline); }
.home-about .grid-2 { align-items:start !important; gap:clamp(36px,7vw,110px) !important; }
.home-about .section-sub { max-width:570px; }
.home-capabilities { gap:1px !important; background:var(--hairline); border:1px solid var(--hairline); }
.home-capabilities .card { padding:26px 22px !important; border:0; border-radius:0; background:#f8fafb; box-shadow:none; }
.home-capabilities .card:hover { transform:none; box-shadow:inset 0 3px 0 var(--copper); }
.home-capabilities .card > div:first-child { color:var(--copper); filter:grayscale(1); opacity:.75; }
@media (max-width:900px) { .home-hero--editorial { min-height:auto; padding:148px 0 76px; } .home-hero--editorial .hero-diagram-wrap { display:none; } .home-hero--editorial .home-hero-inner { text-align:left; } .home-hero--editorial .hero-actions { justify-content:flex-start; } }
@media (max-width:768px) { .home-metrics .stats-grid { grid-template-columns:repeat(2,1fr); } .home-metrics .stat-item:nth-child(3) { border-left:0; } .home-services .grid-3 { gap:0; } .home-services .service-card { border-right:0; min-height:auto; } .home-services .service-card-icon { margin-bottom:26px; } .home-software .grid-4 { grid-template-columns:1fr; } }
/* Inner-page editorial system: public pages only */
.hero-page { min-height:365px; display:flex; align-items:flex-end; padding:168px 0 68px; background:linear-gradient(90deg,rgba(5,20,34,.94) 0%,rgba(5,20,34,.76) 48%,rgba(5,20,34,.32) 100%),url("../images/visuals/hero-offshore-platform-v1.webp") center 56% / cover no-repeat; }
.hero-page::before { background:linear-gradient(90deg,rgba(200,121,50,.42) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px); background-size:76px 76px; opacity:.38; }
.hero-page-title { max-width:800px; font-size:clamp(2.4rem,4.2vw,4.6rem); font-weight:650; line-height:1.03; letter-spacing:-.05em; margin-bottom:18px; }
.hero-page-sub { max-width:640px; color:rgba(236,243,245,.78); line-height:1.75; }
.hero-breadcrumb { font-size:.68rem; letter-spacing:.13em; text-transform:uppercase; }
.section { padding:clamp(66px,7vw,104px) 0; }
.section-header { margin-bottom:42px; }
.section-tag { border-radius:0; padding:0 0 9px; background:transparent; border-bottom:1px solid rgba(200,121,50,.58); font-size:.7rem; letter-spacing:.15em; }
.section-title { color:var(--ink); font-size:clamp(2rem,3vw,3.25rem); font-weight:650; letter-spacing:-.04em; }
.section-sub { color:#526270; line-height:1.75; }
.btn { border-radius:0; }
.btn-primary { background:var(--copper); border-color:var(--copper); }
.btn-primary:hover { background:#a95e22; border-color:#a95e22; box-shadow:none; transform:none; }
.btn-outline-dark { border-color:rgba(10,27,45,.35); }

/* Dynamic service and software lists */
#service-list-section .section-header { text-align:left; max-width:720px; }
#service-list-section .section-header .section-sub { margin:0; }
#service-list-section .grid-3 { gap:0; border-top:1px solid var(--hairline); }
#service-list-section .service-card { min-height:320px; padding:30px 28px 24px; border:0; border-radius:0; border-right:1px solid var(--hairline); border-bottom:1px solid var(--hairline); background:#fff; box-shadow:none; }
#service-list-section .service-card:hover { transform:none; box-shadow:inset 0 4px 0 var(--copper); background:#f5f7f8; }
#service-list-section .service-card-header,#service-list-section .service-card-body { padding:0; border:0; }
#service-list-section .service-card-header { display:block; }
#service-list-section .service-card-icon { display:none; }
#service-list-section .service-card-title { color:var(--ink); font-size:1.28rem; }
#service-list-section .service-card-text { margin:20px 0 26px; color:#51616e; }
#service-list-section .service-card .btn { border:0; border-bottom:1px solid var(--copper); padding:0 0 5px; color:var(--ink); font-size:.78rem; letter-spacing:.06em; }
#software-list-section { background:#f2f5f6 !important; }
#software-list-section .grid-4 { gap:1px; border:1px solid var(--hairline); background:var(--hairline); }
#software-list-section .software-card { min-height:285px; border:0; border-radius:0; background:#f9fbfb; box-shadow:none; }
#software-list-section .software-card:hover { transform:none; box-shadow:inset 0 -4px 0 var(--copper); background:#fff; }
#software-list-section .software-card-top,#software-list-section .software-card-body { padding:24px; border:0; }
#software-list-section .software-logo { border-radius:0; background:var(--ink); }
#software-list-section .feature-tag { border-radius:0; background:#edf1f3; }

/* News reads like an engineering journal, not an app dashboard */
.news-filter { display:flex; gap:0; margin-bottom:42px; border-bottom:1px solid var(--hairline); }
.filter-btn { border:0; border-radius:0; background:transparent; padding:12px 18px; color:#536372; }
.filter-btn.active,.filter-btn:hover { color:var(--ink); background:transparent; box-shadow:inset 0 -2px 0 var(--copper); }
#news-grid { gap:0; border-top:1px solid var(--hairline); }
.news-card { min-height:278px; border:0; border-radius:0; border-right:1px solid var(--hairline); border-bottom:1px solid var(--hairline); background:#fff; box-shadow:none; }
.news-card:hover { transform:none; box-shadow:inset 0 4px 0 var(--copper); background:#f7f9fa; }
.news-card-body { height:100%; display:flex; flex-direction:column; padding:28px; }
.news-card-cat { padding:0 0 10px; border-bottom:1px solid rgba(200,121,50,.58); font-size:.68rem; letter-spacing:.12em; }
.news-card-title { color:var(--ink); font-size:1.28rem; line-height:1.28; margin-top:14px; }
.news-card-excerpt { color:#536372; }
.news-card-meta { margin-top:auto; font-size:.72rem; letter-spacing:.06em; }

/* About and contact: clear facts with restraint */
.value-card { border:0; border-radius:0; border-top:1px solid var(--hairline); padding:28px 22px; text-align:left; box-shadow:none; }
.value-card:hover { transform:none; box-shadow:inset 0 3px 0 var(--copper); background:#f6f8f9; }
.value-card .icon { display:none; }
.value-card h3 { color:var(--ink); font-size:1.06rem; }
.timeline::before { width:1px; background:var(--hairline); }
.timeline-dot { width:9px; height:9px; left:-24px; border:0; border-radius:0; background:var(--copper); box-shadow:none; }
.timeline-year { color:var(--copper); font-size:.7rem; letter-spacing:.14em; }
.timeline-title { color:var(--ink); font-size:1.16rem; }
.contact-info-card { border-radius:0; padding:38px; background:var(--ink); }
.cinfo-icon { display:none; }
.cinfo-item { gap:0; padding:15px 0; border-bottom:1px solid rgba(255,255,255,.12); }
.cinfo-item:last-child { border-bottom:0; }
.cinfo-label { font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:rgba(232,240,243,.55); }
.form-card { border-radius:0; border:1px solid var(--hairline); padding:38px; box-shadow:none; }
.form-title { color:var(--ink); font-size:1.65rem; font-weight:650; letter-spacing:-.03em; }
.form-group input,.form-group textarea,.form-group select { border-radius:0; border-color:rgba(10,27,45,.2); }
.form-group input:focus,.form-group textarea:focus,.form-group select:focus { border-color:var(--copper); box-shadow:0 0 0 2px rgba(200,121,50,.12); }

.cta-section { padding:78px 0; text-align:left; background:var(--ink); }
.cta-section::before { background:linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px); background-size:76px 76px; opacity:.38; }
.cta-title { max-width:720px; font-size:clamp(2rem,3.7vw,3.8rem); font-weight:650; letter-spacing:-.045em; }
.cta-sub { max-width:650px; margin:0 0 30px; }
@media (max-width:768px) { .hero-page { min-height:310px; padding:140px 0 52px; } #service-list-section .service-card,.news-card { border-right:0; min-height:auto; } .news-filter { overflow-x:auto; } .filter-btn { flex:0 0 auto; padding:12px 14px; } .contact-info-card,.form-card { padding:28px 22px; } .cta-section { text-align:left; } }.about-overview .grid-2 { align-items:center !important; }
.about-overview-visual { min-height:270px; margin-bottom:1px; background:linear-gradient(90deg,rgba(8,23,35,.22),rgba(8,23,35,0) 60%),url("../images/visuals/about-engineering-detail-v1.webp") center / cover no-repeat; }
.about-overview-visual + div { border-radius:0 !important; border:1px solid var(--hairline) !important; background:#f5f7f8 !important; padding:30px !important; }
.contact-editorial-section{padding:82px 0 94px}.contact-editorial-intro{display:grid;grid-template-columns:160px 1fr;gap:36px;padding-bottom:48px;border-bottom:1px solid var(--hairline)}.contact-editorial-index,.contact-directory-kicker{color:var(--copper);font-size:.7rem;font-weight:800;letter-spacing:.16em}.contact-editorial-intro h2{margin:0 0 14px;font-size:clamp(2rem,3vw,2.45rem);line-height:1.3;color:var(--ink)}.contact-editorial-intro p{margin:0;color:var(--text-gray);font-size:.95rem;line-height:1.85}.contact-editorial-grid{display:grid;grid-template-columns:1fr 1fr;gap:42px;padding-top:22px}.contact-directory-panel{background:var(--ink);border-top:3px solid var(--copper);padding:18px 30px;color:#fff}.contact-directory-kicker{margin-bottom:10px}.contact-person-row{display:grid;grid-template-columns:1fr auto auto;gap:16px;align-items:center;min-height:70px;border-top:1px solid rgba(255,255,255,.15)}.contact-person-name{font-weight:700;font-size:1rem}.contact-person-row a,.contact-directory-row a{color:#fff;text-decoration:none;font-size:.9rem}.contact-directory-row{display:grid;grid-template-columns:110px 1fr;gap:16px;align-items:center;min-height:70px;border-top:1px solid rgba(255,255,255,.15);font-size:.9rem}.contact-address-row{min-height:86px;align-items:start;padding-top:18px}.contact-address-row b{line-height:1.65;color:#d8e2e7}.contact-office-panel{padding:0 4px}.contact-office-panel section{border-top:2px solid var(--copper);padding:22px 0 27px;border-bottom:1px solid var(--hairline)}.contact-office-panel h3{margin:0 0 13px;font-size:.94rem}.contact-office-panel p{margin:0;color:var(--text-gray);line-height:1.85;font-size:.9rem}.contact-company{font-size:1.12rem;font-weight:700}.contact-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:32px}.contact-action{display:flex;justify-content:space-between;align-items:center;min-height:52px;padding:0 15px;border:1px solid var(--ink);color:var(--ink);text-decoration:none;font-weight:700}.contact-action.primary{background:var(--copper);border-color:var(--copper);color:#fff}@media(max-width:768px){.contact-editorial-section{padding:54px 0 64px}.contact-editorial-intro,.contact-editorial-grid{display:block}.contact-editorial-index{margin-bottom:14px}.contact-office-panel{margin-top:32px}.contact-person-row{grid-template-columns:1fr;gap:4px;padding:14px 0}.contact-directory-row{grid-template-columns:86px 1fr}.contact-actions{grid-template-columns:1fr}}
.about-overview-visual + div [id^="cms-stat-"] { color:var(--copper) !important; }
@media (max-width:768px) { .about-overview-visual { min-height:220px; } }
/* Content readability refinements (2026-07-20) */
.home-hero--editorial .hero-badge { font-size:.84rem; }
.home-services .section-tag,.home-software .section-tag,.home-about .section-tag,.section-tag { font-size:.84rem; }
#cms-home-about-sub,#cms-home-software-sub { white-space:nowrap; }
#cms-about-intro,#cms-about-detail { white-space:pre-line; }
@media (max-width:900px) { #cms-home-about-sub,#cms-home-software-sub { white-space:normal; } }
