/* ==========================================================================
   Brian Malone Homes - Main Stylesheet
   Design System & Core Components
   ========================================================================== */

/* ==================== DESIGN SYSTEM ==================== */
:root {
  /* Brand Colors */
  --color-primary: #0F2A4A;      /* Deep Navy Blue */
  --color-secondary: #C9A227;    /* Gold/Bronze */
  --color-white: #FFFFFF;
  --color-light: #F5F7FA;
  --color-gray: #6B7280;
  --color-dark: #1A1F2E;

  /* Typography Scale */
  --font-size-xs: 0.75rem;       /* 12px */
  --font-size-sm: 0.875rem;      /* 14px */
  --font-size-base: 1rem;        /* 16px */
  --font-size-lg: 1.125rem;      /* 18px */
  --font-size-xl: 1.25rem;       /* 20px */
  --font-size-2xl: 1.5rem;       /* 24px */
  --font-size-3xl: 1.875rem;     /* 30px */
  --font-size-4xl: 2.25rem;      /* 36px */
  --font-size-5xl: 3rem;         /* 48px */

  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */

  /* Container Widths */
  --container-max: 1200px;
  --container-narrow: 960px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ==================== BASE STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }

.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
  position: relative;
  padding-bottom: var(--space-4);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  margin: var(--space-2) auto 0;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #B89020 100%);
  color: var(--color-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}

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

/* Body-area gold / ghost buttons (unscoped — hero/banner variants override these) */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #C9A227 0%, #B89520 100%);
  color: #fff;
  padding: 14px 30px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
  color: #fff;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #0F2A4A;
  border: 2px solid #0F2A4A;
  padding: 14px 30px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  background: #0F2A4A;
  color: #fff;
  transform: translateY(-3px);
}

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

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

/* ==================== SECTIONS ==================== */
section {
  padding: var(--space-16) var(--space-4);
}

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

/* ==================== HEADER ==================== */
.header-topbar {
  background: linear-gradient(135deg, var(--color-primary) 0%, #143359 100%);
  color: var(--color-white);
  padding: var(--space-4) 0;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.header-topbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.topbar-info span {
  margin-right: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar-info .icon {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

.topbar-info a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.topbar-info a:hover {
  color: var(--color-secondary);
}

.main-header {
  background: linear-gradient(to bottom, var(--color-white) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-4); /* 原：var(--space-6)=24px，紧凑化 */
  max-width: var(--container-max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.98) 100%); /* 原：深蓝色渐变 → 浅色 */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* 原：0 4px 15px rgba(15, 42, 74, 0.15) → 减轻阴影 */
  transition: all var(--transition-normal);
}

.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); /* 原：0 6px 20px rgba(15, 42, 74, 0.25) */
}

.logo img {
  max-height: 42px; /* 原：60px，紧凑化以节省头部空间 */
  width: auto;
  display: block;
}

/* ==================== NAVIGATION ==================== */
/* 紧凑化设计：确保 9 项 + Logo 在 1200px 容器内单行显示 */
.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-1); /* 原：var(--space-2)=8px → 4px */
  align-items: center;
  flex-shrink: 0;
}

.nav-menu > li {
  position: relative;
  white-space: nowrap;
  flex-shrink: 0; /* 防止 li 被压缩导致文字溢出 */
}

.nav-menu > li > a {
  display: block;
  padding: var(--space-3) var(--space-3); /* 12×12 */
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.75rem; /* 12px，略小以节省空间 */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-menu > li > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary), #A8861E);
  transition: width var(--transition-normal);
}

.nav-menu > li > a:hover::before,
.nav-menu > li.active > a::before {
  width: 100%;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--color-secondary);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 240px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: all var(--transition-normal);
  list-style: none;
  padding: var(--space-3) 0;
  margin: 0;
  border-top: 3px solid var(--color-secondary);
}

.menu-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.08), transparent);
  color: var(--color-secondary);
  padding-left: var(--space-5);
  transform: translateX(4px);
}

.cta-button {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #B89020 100%);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--font-size-sm);
  border-radius: 6px;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.5);
}

/* 紧凑化：CTA 按钮防止文字换行和压缩 */
.cta-button {
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  height: 85vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: #f0f0f0 url('hero-placeholder.jpg') no-repeat center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 42, 74, 0.7) 0%, rgba(15, 42, 74, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-4);
}

.hero-slogan {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: var(--space-6);
}

.hero-description {
  font-size: var(--font-size-lg);
  opacity: 0.95;
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.service-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: var(--space-6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a5a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-secondary);
}

.service-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

.service-card p {
  color: var(--color-gray);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-4);
}

.service-link {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.service-link:hover {
  gap: var(--space-4);
}

/* ==================== PROJECTS GRID ==================== */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
}

.project-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-weight: 600;
}

.project-image.has-bg {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.project-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: 2px;
}

.project-content {
  padding: var(--space-5);
}

.project-category {
  color: var(--color-secondary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.project-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.project-location {
  color: var(--color-gray);
  font-size: var(--font-size-sm);
}

.project-details {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: var(--font-size-sm);
  color: var(--color-gray);
}

.project-details div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

/* ==================== BUILD PROCESS ==================== */
.build-process {
  max-width: 900px;
  margin: var(--space-12) auto 0;
}

.process-step {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.process-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a5a 100%);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.step-content h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

.step-content p {
  color: var(--color-gray);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-light);
  padding: var(--space-8);
  border-radius: 8px;
}

.testimonial-stars {
  color: var(--color-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

.testimonial-text {
  font-style: italic;
  font-size: var(--font-size-base);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.client-name {
  font-weight: 700;
  color: var(--color-primary);
}

.client-location {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
}

/* ==================== FAQ ==================== */
.faq-list {
  max-width: 900px;
  margin: var(--space-8) auto 0;
}

.faq-item {
  margin-bottom: var(--space-4);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.faq-question {
  padding: var(--space-5);
  background: var(--color-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: var(--font-size-base);
}

.faq-question::after {
  content: '+';
  font-size: var(--font-size-2xl);
  color: var(--color-secondary);
}

.faq-question[open]::after {
  content: '−';
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-gray);
  line-height: 1.8;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a5a 100%);
  padding: var(--space-16) var(--space-4);
  text-align: center;
  color: var(--color-white);
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: var(--font-size-lg);
  opacity: 0.95;
  margin-bottom: var(--space-8);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: linear-gradient(180deg, #0B1E33 0%, #08162A 100%);
  color: var(--color-white);
  padding: var(--space-16) var(--space-4) var(--space-8);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), #D4AF3F, #B89020, var(--color-secondary));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 1;
}

.footer-col h4 {
  color: var(--color-secondary);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--color-secondary), #D4AF3F, var(--color-secondary)) 1;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  position: relative;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--space-3);
  padding-left: var(--space-4);
}

.footer-col ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-size: var(--font-size-lg);
  line-height: 1;
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.footer-col ul li:hover::before {
  opacity: 1;
  transform: translateX(4px);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: var(--font-size-sm);
}

.footer-col ul li a:hover {
  color: var(--color-secondary);
  padding-left: var(--space-2);
}

.company-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2);
  line-height: 1.7;
  font-size: var(--font-size-sm);
}

.company-info a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.company-info a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  text-align: center;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

.footer-bottom .separator {
  margin: 0 var(--space-3);
  color: rgba(255, 255, 255, 0.3);
}

/* ==================== FOOTER ENHANCED ==================== */
.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-grid::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.4), transparent);
}

.footer-col h4 {
  font-size: 15px;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary), transparent);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 18px;
}

.footer-col ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.footer-col ul li:hover::before {
  opacity: 1;
  transform: translateX(4px);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-secondary);
  padding-left: 6px;
}

.footer-about .footer-logo-wrap {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 22px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.footer-about .footer-logo-wrap img {
  height: 38px;
  display: block;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--color-secondary);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 0;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 1;
}

.footer-bottom-bar .legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-bar .legal-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.footer-bottom-bar .legal-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-secondary);
  transition: width var(--transition-fast);
}

.footer-bottom-bar .legal-links a:hover {
  color: var(--color-secondary);
}

.footer-bottom-bar .legal-links a:hover::after {
  width: 100%;
}

.footer-bottom-bar .abn {
  font-size: 13px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  /* 中等屏幕：双行头部布局（logo 居中 + 导航换行居中） */
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    max-width: none;
  }
  
  .logo {
    align-self: center;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
  }
  
  .nav-menu > li > a {
    padding: var(--space-2) var(--space-3);
    font-size: 0.72rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

/* ==================== CONTACT FORM ==================== */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-8);
}

.contact-form-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.form-control {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-control[required] {
  border-left: 3px solid var(--color-secondary);
}

.file-upload-wrapper {
  position: relative;
}

.file-upload-input {
  display: none;
}

.file-upload-label {
  display: block;
  padding: var(--space-3);
  border: 2px dashed #ddd;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  transition: all var(--transition-fast);
}

.file-upload-label:hover,
.file-upload-input:focus + .file-upload-label {
  border-color: var(--color-primary);
  background: rgba(15, 42, 74, 0.05);
}

.submit-button {
  width: 100%;
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-secondary) 0%, #B89020 100%);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

/* ==================== PLACEHOLDER IMAGE ==================== */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 4px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  text-align: center;
  padding: var(--space-4);
  min-height: 200px;
}

.img-placeholder[data-size="small"] { min-height: 150px; }
.img-placeholder[data-size="medium"] { min-height: 250px; }
.img-placeholder[data-size="large"] { min-height: 400px; }
.img-placeholder[data-size="xlarge"] { min-height: 500px; }
.ph-img { width: 100%; height: auto; display: block; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .topbar-content {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-menu {
    display: none;
  }
  
  .header-container {
    padding: var(--space-3) var(--space-4);
  }
  
  .footer-main,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== PAGE HERO ==================== */
.page-hero { position: relative; background-size: cover; background-position: center; overflow: hidden; min-height: 1040px; display: flex; align-items: flex-end; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,42,74,0.45) 0%, rgba(15,42,74,0.78) 100%); z-index: 1; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1; }
.page-hero-bg .page-hero-img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 960px; margin: 0 auto; padding: 70px 24px 80px; text-align: center; color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 10px; font-weight: 800; letter-spacing: -1px; text-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.page-hero .page-kicker, .page-hero .page-hero-sub { color: #fff; }
.page-kicker { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.85; margin-bottom: 12px; font-weight: 700; }
.page-hero-sub { font-size: 16px; line-height: 1.65; opacity: 0.95; margin-bottom: 18px; max-width: 680px; }
.page-hero .hero-ctas, .page-banner .hero-ctas { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.page-hero .btn-gold, .page-banner .btn-gold { position: relative; overflow: hidden; display: inline-block; background: linear-gradient(135deg, #C9A227 0%, #B89520 100%); color: #fff; padding: 14px 30px; font-size: 14.5px; font-weight: 700; border-radius: 50px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3); border: none; cursor: pointer; }
.page-hero .btn-gold::before, .page-banner .btn-gold::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%); opacity: 0; transition: opacity 0.3s ease; }
.page-hero .btn-gold:hover, .page-banner .btn-gold:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5); color: #fff; }
.page-hero .btn-gold:hover::before, .page-banner .btn-gold:hover::before { opacity: 1; }
.page-hero .btn-ghost, .page-banner .btn-ghost { display: inline-block; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); color: #fff; border: 2px solid rgba(255,255,255,0.3); padding: 14px 30px; font-size: 14.5px; font-weight: 700; border-radius: 50px; text-decoration: none; transition: all 0.3s ease; cursor: pointer; }
.page-hero .btn-ghost:hover, .page-banner .btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.8); transform: translateY(-3px); color: #fff; }
@media (max-width: 768px) { .page-hero .hero-ctas, .page-banner .hero-ctas { flex-direction: column; } .page-hero .hero-ctas .btn, .page-banner .hero-ctas .btn { width: 100%; } }
.page-hero .crumb { font-size: 13.5px; opacity: 0.85; }
.page-hero .crumb a { color: #C9A227; text-decoration: none; }
.page-hero .crumb a:hover { text-decoration: underline; }
.page-hero-inner nav[aria-label="Breadcrumb"] { font-size: 13.5px; opacity: 0.9; }
.page-hero-inner nav[aria-label="Breadcrumb"] a { color: #C9A227; text-decoration: none; font-weight: 600; }
.page-hero-inner nav[aria-label="Breadcrumb"] a:hover { text-decoration: underline; }

/* ==================== QUOTE FORM ==================== */
.quote-card { background: #fff; border-radius: 14px; padding: 44px 36px; box-shadow: 0 8px 30px rgba(15,42,74,0.1); margin-bottom: 40px; }
.quote-card h2 { font-size: 26px; margin: 0 0 8px; }
.quote-card > p { color: #5A6472; font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.quote-step { display: flex; gap: 18px; margin-bottom: 22px; }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #0F2A4A, #1E3F66); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quote-step-title { font-size: 16px; font-weight: 700; color: #0F2A4A; margin-bottom: 4px; }
.quote-step-desc { font-size: 14px; color: #5A6472; line-height: 1.6; }
.quote-form h2 { font-size: 26px; margin: 0 0 8px; }
.quote-form > p { color: #5A6472; font-size: 15px; line-height: 1.7; margin-bottom: 26px; }
.quote-form .fg { margin-bottom: 18px; }
.quote-btn { background: linear-gradient(135deg, #C9A227, #B89020); color: #fff; border: none; padding: 16px 32px; font-size: 16px; font-weight: 700; border-radius: 6px; cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-normal); }
.quote-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,162,39,0.35); }

/* ==================== INSIGHTS ==================== */
.insight-hero { background: linear-gradient(135deg, #0F2A4A 0%, #1A3A5A 100%); color: #fff; padding: 90px 24px; text-align: center; }
.insight-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 12px; font-weight: 800; letter-spacing: -1px; }
.insight-hero p { font-size: 17px; opacity: 0.9; max-width: 720px; margin: 0 auto; }
.insights-section { padding: 70px 24px; }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.insight-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(15,42,74,0.08); transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(15,42,74,0.12); }
.insight-img-wrap { height: 220px; overflow: hidden; background: #E8EBF0; }
.insight-img-wrap .img-placeholder { height: 100%; min-height: 0; border: none; border-radius: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.insight-body { padding: 24px; }
.insight-body h3 { font-size: 19px; margin: 0 0 10px; color: #0F2A4A; }
.insight-body p { font-size: 14.5px; line-height: 1.7; color: #5A6472; margin: 0; }
.insight-meta { display: flex; gap: 12px; margin-top: 14px; font-size: 13px; color: #8A94A3; }
.insight-meta span { display: inline-flex; align-items: center; gap: 6px; }

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


/* ==================== HAMBURGER MENU (Mobile Navigation) ==================== */
.hamburger-menu {
    display: none; /* 默认隐藏，仅在移动端显示 */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0F2A4A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation states */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Mobile: Show hamburger menu */
    .hamburger-menu {
        display: flex;
    }
    
    /* Mobile: Hide nav menu by default */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    /* Mobile: Show nav menu when active */
    .nav-menu.active {
        display: flex;
    }
    
    /* Mobile: Style nav items */
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu > li > a {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    /* Mobile: Dropdown menu style */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 10px;
        display: none;
    }
    
    .menu-item.active .dropdown-menu {
        display: block;
    }
}

