/* ===== NetZeroPro Shared Styles ===== */

/* RESET & BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans TC', 'Inter', system-ui, sans-serif;
  color: #1a2e1a; background: #fafdf7; line-height: 1.7; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* CSS VARIABLES */
:root {
  --green-900: #0d2818; --green-800: #1a4731; --green-700: #1e5631;
  --green-600: #2d7a4f; --green-500: #3a9d6a; --green-400: #52c47e;
  --green-300: #8edcaa; --green-200: #c5f0d5; --green-100: #e8f8ee;
  --green-50: #f0faf4;
  --earth-700: #5c4a2a; --earth-500: #8b7355; --earth-300: #c4a97d; --earth-100: #f5efe6;
  --warm-white: #fafdf7;
  --text-primary: #1a2e1a; --text-secondary: #4a6349; --text-muted: #7a937a;
  --shadow-sm: 0 1px 3px rgba(13,40,24,0.06);
  --shadow-md: 0 4px 16px rgba(13,40,24,0.08);
  --shadow-lg: 0 8px 32px rgba(13,40,24,0.10);
  --shadow-xl: 0 16px 48px rgba(13,40,24,0.12);
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 32px;
}

/* UTILITY */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 16px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--green-400); border-radius: 2px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.25;
  color: var(--green-900); margin-bottom: 16px;
}
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; line-height: 1.8; }

/* NAVIGATION */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,253,247,0.85); backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(26,71,49,0.06); transition: all 0.3s ease;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--green-800); flex-shrink: 0; min-width: 120px; }
.nav-logo-icon {
  width: 40px; height: 40px; background: linear-gradient(135deg, var(--green-600), var(--green-400));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 0.7rem; letter-spacing: 0.05em;
}
.nav-logo-img { height: 36px !important; width: auto !important; max-width: none !important; }
.nav-company-name {
  font-size: 13px; font-weight: 600; color: var(--green-800);
  letter-spacing: 0.04em; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--green-700); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--green-500); border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--green-700); font-weight: 600; }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 10px 24px; background: var(--green-700); color: white !important;
  border-radius: 100px; font-weight: 600; font-size: 0.88rem;
  transition: all 0.3s; border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-cta::after { display: none !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--green-800); margin: 5px 0; border-radius: 2px; }

/* NAV DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.nav-dropdown > a .dropdown-arrow {
  width: 12px; height: 12px; transition: transform 0.3s;
  stroke: currentColor; stroke-width: 2; fill: none;
}
.nav-dropdown:hover > a .dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 16px 0 8px; min-width: 260px; z-index: 1000;
  border: 1px solid rgba(15,90,63,0.08);
}
.nav-dropdown::after {
  content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 16px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 0.88rem !important;
  white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { background: var(--green-50); color: var(--green-700); }
.nav-dropdown-menu a strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--green-900); }
.nav-dropdown-menu a .nav-sub { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; font-weight: 400; }
.nav-dropdown-menu a:hover strong { color: var(--green-700); }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--green-700); color: white;
  border-radius: 100px; font-weight: 600; font-size: 1rem;
  transition: all 0.3s; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(30,86,49,0.25);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(30,86,49,0.3); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: transparent; color: var(--green-800);
  border: 2px solid rgba(30,86,49,0.2); border-radius: 100px;
  font-weight: 600; font-size: 1rem; transition: all 0.3s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--green-600); background: rgba(30,86,49,0.04); }
.btn-sm { padding: 10px 24px; font-size: 0.88rem; }
.btn-arrow { width: 18px; height: 18px; }

/* PAGE HERO */
.page-hero {
  padding: 140px 0 80px; position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--warm-white) 0%, var(--green-50) 50%, var(--green-100) 100%);
}
.page-hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.page-hero-shapes .circle { position: absolute; border-radius: 50%; opacity: 0.1; }
.page-hero-shapes .circle:nth-child(1) { width: 500px; height: 500px; background: var(--green-300); top: -200px; right: -100px; }
.page-hero-shapes .circle:nth-child(2) { width: 300px; height: 300px; background: var(--green-400); bottom: -100px; left: -50px; }
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 0.85rem; color: var(--text-muted);
}
.page-hero .breadcrumb a { color: var(--green-600); transition: color 0.2s; }
.page-hero .breadcrumb a:hover { color: var(--green-700); }
.page-hero .breadcrumb .sep { opacity: 0.4; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.2;
  color: var(--green-900); margin-bottom: 16px;
}
.page-hero h1 .highlight {
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero .hero-desc { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.85; max-width: 600px; }

/* PAGE HERO DARK VARIANT */
.page-hero-dark .breadcrumb { color: rgba(255,255,255,0.6); }
.page-hero-dark .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-hero-dark .breadcrumb a:hover { color: #ffffff; }
.page-hero-dark .breadcrumb .sep { color: rgba(255,255,255,0.4); }

/* FOOTER */
.footer { background: var(--green-900); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; color: white; }
.footer-brand p { font-size: 0.88rem; line-height: 1.75; max-width: 300px; }
.footer-col h4 { color: white; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-col li { list-style: none; }
.footer-col a { font-size: 0.88rem; transition: color 0.2s; white-space: nowrap; }
.footer-col a:hover { color: var(--green-300); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem;
}

/* CTA SECTION (shared) */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--green-100), var(--green-50), var(--earth-100));
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: var(--green-200); opacity: 0.2; top: -200px; right: -100px;
}
.cta-inner { text-align: center; position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-inner .section-title { margin-bottom: 20px; }
.cta-inner .section-subtitle { margin: 0 auto 40px; text-align: center; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* CTA BUTTON */
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: white; color: var(--green-900);
  text-decoration: none; border-radius: 100px; font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem; font-weight: 600; transition: all 0.3s; cursor: pointer;
  border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-btn svg { width: 18px; height: 18px; }

/* CARDS (generic) */
.card {
  padding: 32px; border-radius: var(--radius-lg); background: white;
  border: 1px solid rgba(0,0,0,0.05); transition: all 0.4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-200); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px; background: var(--green-100);
}
.card-title { font-size: 1.15rem; font-weight: 700; color: var(--green-900); margin-bottom: 10px; }
.card-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.75; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 0.88rem; font-weight: 600; color: var(--green-600); transition: gap 0.3s;
}
.card-link:hover { gap: 10px; color: var(--green-700); }

/* ANIMATION */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(15, 90, 63, 0.08);
  }
  .nav-links.show { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
  .nav-links li:last-child { border-bottom: none; padding-top: 16px; }
  .nav-links .nav-cta { display: inline-block; text-align: center; width: 100%; }
  .mobile-toggle { display: block; }
  .nav-dropdown-menu {
    display: none; position: static; transform: none;
    box-shadow: none; border: none; backdrop-filter: none;
    background: var(--green-50); border-radius: var(--radius-sm);
    padding: 4px 0; min-width: auto; margin-top: 4px;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 8px 16px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; }
}
