/* ============================================================
   Broaden Joy - Main Stylesheet
   Shaanxi Bowen Lezi Consulting Co., Ltd.
   ============================================================ */

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

:root {
  --color-navy: #1a2744;
  --color-navy-light: #243456;
  --color-gold: #c8963e;
  --color-gold-light: #d4a853;
  --color-gold-dark: #a67c2e;
  --color-teal: #2d5f7e;
  --color-teal-light: #3a7599;
  --color-bg: #f8f6f0;
  --color-white: #ffffff;
  --color-text: #2c2c2c;
  --color-text-light: #555555;
  --color-border: #e0dcd0;
  --color-footer: #0f1a2e;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 6px;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.6rem; font-weight: 700; }
h2 { font-size: 1.9rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-gold);
}

ul, ol {
  margin: 0 0 1rem 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

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

/* --- Header & Navigation --- */
.site-header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--color-gold);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.main-nav a {
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, #1e3558 40%, var(--color-teal) 100%);
  color: var(--color-white);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,62,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,62,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1.2rem;
  max-width: 700px;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-gold);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #c8d4e2;
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy);
}

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

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* --- Section Common --- */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--color-white);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-teal));
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
}

.service-icon.navy { background: #e8edf5; color: var(--color-navy); }
.service-icon.teal { background: #e6f0f5; color: var(--color-teal); }
.service-icon.gold { background: #faf3e6; color: var(--color-gold-dark); }

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Features --- */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.feature-text p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- About Section --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  text-align: left;
  padding-bottom: 0.8rem;
  position: relative;
  margin-bottom: 1.2rem;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.about-org {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
}

.about-org h3 {
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.about-org p {
  color: #c8d4e2;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* --- Industries --- */
.industries-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.industry-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: border-color 0.2s ease;
}

.industry-item:hover {
  border-color: var(--color-gold);
}

.industry-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-navy);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-navy);
  margin-bottom: 0.8rem;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #3d2e10;
}

.cta-banner .btn {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.cta-banner .btn:hover {
  background: var(--color-navy-light);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-footer);
  color: #a0aec0;
  padding: 4rem 2rem 1.5rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #a0aec0;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #1e3050;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* --- Page Header (Privacy/Terms) --- */
.page-header {
  background: linear-gradient(160deg, var(--color-navy) 0%, #1e3558 100%);
  color: var(--color-white);
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #c8d4e2;
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- Content Page --- */
.content-page {
  padding: 4rem 2rem;
  background: var(--color-white);
}

.content-inner {
  max-width: 860px;
  margin: 0 auto;
}

.content-inner h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.5rem;
}

.content-inner h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-inner p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.content-inner ul,
.content-inner ol {
  color: var(--color-text-light);
}

.content-updated {
  background: var(--color-bg);
  border-left: 4px solid var(--color-gold);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.content-updated strong {
  color: var(--color-navy);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 3px solid var(--color-gold);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .main-nav.open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .page-header {
    padding: 3rem 1.5rem;
  }
}
