/* ============================================
   Anruoya — Steel Blue Industrial (Global)
   ============================================ */

:root {
  --color-primary: #152538;
  --color-secondary: #1a5f8c;
  --color-accent: #1a5f8c;
  --color-accent-hover: #2d7cb0;
  --color-copper: #c87840;
  --color-text: #3d5166;
  --color-text-light: #64748b;
  --color-heading: #152538;
  --color-bg: #f4f6f8;
  --color-bg-alt: #eef2f7;
  --color-surface: #ffffff;
  --color-bg-dark: #1f3347;
  --color-slate-deep: #152538;
  --color-border: rgba(21, 37, 56, 0.12);
  --color-steel: #8fa8be;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 4px;
  --shadow-sm: 0 4px 16px rgba(21, 37, 56, 0.06);
  --shadow-md: 0 10px 36px rgba(21, 37, 56, 0.1);
  --shadow-lg: 0 16px 48px rgba(21, 37, 56, 0.14);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-copper); }

ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.3;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 95, 140, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-accent);
}
.btn-white:hover {
  background: var(--color-bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(244, 246, 248, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: 0.01em;
}
.logo em {
  font-style: normal;
  color: var(--color-copper);
}

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

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-copper);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--color-heading); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  transition: all var(--transition);
}

/* --- Sections --- */
.section { padding: 100px 0; }
.section-alt { background: var(--color-surface); }
.section-dark {
  background: linear-gradient(135deg, var(--color-slate-deep) 0%, var(--color-accent) 100%);
  color: #fff;
}
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark p { color: #b8c9d9; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}
.section-header p {
  color: var(--color-text-light);
  font-size: 17px;
}
.section-header .divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-copper));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* --- Product grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 95, 140, 0.25);
}

.product-card-img {
  position: relative;
  padding-top: 75%;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.product-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-body { padding: 22px; }
.product-card-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
  font-weight: 700;
}
.product-card-body .spec {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}
.product-card-body .card-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card:hover .card-link { gap: 10px; }

/* --- About row --- */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.about-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-text h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin-bottom: 20px;
}
.about-text p { margin-bottom: 16px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
}
.stat-item .stat-label {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-accent);
}
.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.info-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.info-card h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.info-card p { font-size: 14px; color: var(--color-text-light); }

/* --- Form --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-heading);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 95, 140, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Product detail --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-info h1 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 16px;
}
.product-info h2.product-info__heading {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-bottom: 16px;
  color: var(--color-heading);
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.product-meta .tag {
  padding: 6px 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light);
}
.product-desc { margin-bottom: 28px; }
.product-desc h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-heading);
}
.product-desc p { margin-bottom: 12px; }
.product-desc ul { padding-left: 20px; list-style: disc; }
.product-desc li { margin-bottom: 6px; font-size: 15px; }

.product-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.product-nav a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

/* --- Page top: breadcrumb + hero --- */
.page-top {
  margin-top: var(--header-height);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0;
  margin-top: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  list-style: none;
}
.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb-list a {
  color: var(--color-text-light);
  transition: color var(--transition);
}
.breadcrumb-list a:hover { color: var(--color-accent); }
.breadcrumb-list .sep {
  color: var(--color-border);
  user-select: none;
  font-weight: 400;
}
.breadcrumb-list .current,
.breadcrumb-list li:last-child {
  color: var(--color-copper);
  font-weight: 600;
}
.breadcrumb-list .current {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Page header (inner pages hero) --- */
.page-header {
  padding: 56px 0 64px;
  margin-top: 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-slate-deep) 0%, var(--color-bg-dark) 55%, var(--color-accent) 100%);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(200, 120, 64, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.page-header .container {
  position: relative;
  z-index: 1;
}
.page-header__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: 14px;
}
.page-header h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}
.page-header__lead,
.page-header p {
  color: #b8c9d9;
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}
.page-header--product {
  text-align: left;
}
.page-header--product .container {
  max-width: var(--max-width);
}
.page-header--product h1 {
  max-width: 800px;
}
.page-header--product .page-header__lead {
  margin: 0;
  max-width: 640px;
}

/* Product detail body */
.section-product-detail {
  padding-top: 72px;
  padding-bottom: 100px;
}
.product-info .product-title-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- CTA --- */
.cta-banner {
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin-bottom: 16px;
}
.cta-banner p {
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-accent);
}
.cta-banner .btn-primary:hover {
  background: var(--color-bg-alt);
  color: var(--color-heading);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-slate-deep);
  color: var(--color-steel);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h4 {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-body);
}
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--color-steel); font-size: 14px; }
.footer-col a:hover { color: var(--color-copper); }

.footer-brand .logo {
  margin-bottom: 16px;
  color: #fff;
  font-size: 26px;
}
.footer-brand .logo em { color: var(--color-copper); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #6d8499;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .about-row,
  .product-detail,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-toggle { display: flex; }

  .section { padding: 72px 0; }
  .section-header h2 { font-size: 26px; }

  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-item .stat-num { font-size: 24px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }

  .page-header { padding: 48px 0; }
  .page-header h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

.placeholder-img {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #dce3ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
  min-height: 200px;
}
