/* ========================================
   迅猛龍行銷 Impactshot - Global Styles
   Brand Colors: Brown + Cream/Beige
   ======================================== */

/* CSS Variables */
:root {
  --brown-dark: #4A2C1A;
  --brown-main: #6B3A2A;
  --brown-medium: #8B5E3C;
  --brown-light: #A67C5B;
  --cream: #F5F0EB;
  --cream-dark: #EDE5DB;
  --beige: #D4C5B2;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --gray-dark: #333333;
  --gray: #666666;
  --gray-light: #999999;
  --gray-lighter: #F8F8F8;

  --font-heading: 'Montserrat', 'Noto Sans TC', sans-serif;
  --font-body: 'Inter', 'Noto Sans TC', sans-serif;

  --max-width: 1200px;
  --section-padding: 100px 0;
  --section-padding-mobile: 60px 0;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 12px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  transition: color 0.3s;
}

.navbar.scrolled .navbar-logo { color: var(--brown-dark); }

.navbar-logo .logo-img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
}

.navbar.scrolled .nav-links a { color: var(--gray-dark); }

.nav-links a:hover { color: var(--brown-light); }

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

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

.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--brown-main);
  color: var(--white) !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.nav-cta:hover { background: var(--brown-dark); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.navbar.scrolled .menu-toggle span { background: var(--brown-dark); }

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-main) 50%, var(--brown-medium) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 .highlight {
  color: var(--beige);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  font-weight: 400;
}

.hero-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
}

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

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

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

.btn-brown {
  background: var(--brown-main);
  color: var(--white);
}

.btn-brown:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74,44,26,0.3);
}

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

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

/* ========================================
   Section Styles
   ======================================== */
.section { padding: var(--section-padding); }

.section-dark {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-main));
  color: var(--white);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
}

.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ========================================
   Stats Section (Threads Data)
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--beige);
  line-height: 1;
  margin-bottom: 8px;
}

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

.stat-sublabel {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* ========================================
   Services Section
   ======================================== */
.services-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

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

.service-card {
  padding: 40px 32px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--brown-light);
}

.service-card.featured {
  border: 2px solid var(--brown-main);
  background: linear-gradient(to bottom right, var(--white), var(--cream));
}

.service-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brown-main);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
}

.service-badge.coming { background: var(--gray-light); }

.service-card h3 { margin-bottom: 12px; color: var(--brown-dark); }

.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 16px; }

.service-stats {
  font-size: 0.85rem;
  color: var(--brown-medium);
  font-weight: 600;
  margin-bottom: 16px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brown-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.service-link:hover { gap: 12px; }

.services-note {
  text-align: center;
  margin-top: 32px;
  padding: 20px;
  background: var(--cream);
  border-radius: 8px;
  color: var(--gray);
  font-size: 0.9rem;
}

/* ========================================
   Why Choose Us
   ======================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.why-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.why-card h4 { margin-bottom: 10px; color: var(--beige); font-size: 1.05rem; }

.why-card p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

.why-cta {
  text-align: center;
  margin-top: 48px;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

/* ========================================
   Results / Numbers
   ======================================== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.result-item { text-align: center; }

.result-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--brown-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.result-label {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ========================================
   Logo Wall
   ======================================== */
.logos-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
  padding: 20px 0;
}

.logo-item {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--beige);
  opacity: 0.7;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.logo-item:hover { opacity: 1; }

.logos-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* ========================================
   About Section
   ======================================== */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content > p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 48px;
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cream-dark);
}

.timeline-item {
  text-align: center;
  position: relative;
  flex: 1;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--brown-main);
  border-radius: 50%;
  margin: 14px auto 16px;
  position: relative;
  z-index: 1;
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brown-dark);
  font-size: 1.1rem;
}

.timeline-text {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
  line-height: 1.5;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}

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

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

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* ========================================
   Floating CTA
   ======================================== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.floating-cta a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--brown-main);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(74,44,26,0.4);
  transition: all 0.3s;
}

.floating-cta a:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(74,44,26,0.5);
}

/* ========================================
   Inner Page Hero
   ======================================== */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-main));
  color: var(--white);
}

.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.15rem; }

/* ========================================
   Case Studies Grid
   ======================================== */
.cases-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--beige);
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  color: var(--gray);
}

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

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

.case-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  transition: all 0.3s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.case-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--brown-light), var(--brown-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
}

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

.case-card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--cream);
  color: var(--brown-medium);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

.case-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--brown-dark);
}

.case-card-body p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.case-card-link {
  color: var(--brown-main);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========================================
   FAQ
   ======================================== */
.faq-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--cream-dark);
}

.faq-question {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--brown-main);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ========================================
   Contact
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info h3 { color: var(--brown-dark); margin-bottom: 24px; }

.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.contact-detail-icon {
  width: 20px;
  text-align: center;
  color: var(--brown-main);
}

.contact-form { background: var(--cream); padding: 40px; border-radius: 12px; }

.form-group { margin-bottom: 20px; }

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--beige);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--white);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brown-main);
}

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

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

/* ========================================
   Blog Grid
   ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.blog-card-img {
  height: 180px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-light);
  font-size: 0.85rem;
  font-weight: 600;
}

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

.blog-card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--cream);
  color: var(--brown-medium);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--gray-dark);
  line-height: 1.5;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* ========================================
   Animations (Scroll Reveal)
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: var(--section-padding-mobile); }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brown-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .nav-links.open { display: flex; }
  .nav-links a { color: var(--white) !important; font-size: 1.2rem; }

  .menu-toggle { display: flex; }

  .hero { min-height: 90vh; }
  .hero-content { padding: 0 8px; }
  .hero-buttons { flex-direction: column; }

  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .services-main { grid-template-columns: 1fr; }
  .services-extend { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline { flex-direction: column; gap: 24px; }
  .timeline::before { display: none; }
  .form-row { grid-template-columns: 1fr; }

  .floating-cta a {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}
