/* =============================================
   前江股份投資股份有限公司 - 官方網站樣式
   ============================================= */

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

:root {
  --gold:        #b8965a;
  --gold-light:  #d4b07a;
  --gold-dark:   #8a6d38;
  --navy:        #0d1b2a;
  --navy-mid:    #162534;
  --navy-light:  #1e3448;
  --white:       #ffffff;
  --off-white:   #f7f4ef;
  --gray:        #6b7280;
  --gray-light:  #e5e7eb;
  --text:        #1a1a2e;
  --text-light:  #4b5563;

  --font-serif: 'Noto Serif TC', serif;
  --font-sans:  'Noto Sans TC', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius:    12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

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

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,150,90,0.4);
}
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 13px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ---- Section Common ---- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.section-label.light { color: var(--gold-light); border-color: var(--gold-light); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header h2 { font-family: var(--font-serif); font-size: 2.2rem; color: var(--navy); margin-bottom: 16px; }
.section-header p { color: var(--gray); font-size: 1rem; line-height: 1.8; }
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,0.72); }

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 0;
  transition: all var(--transition);
  background: transparent;
}
#navbar.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-zh {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.logo-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 40%, #1a2f45 70%, var(--navy-light) 100%);
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184,150,90,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(30,52,72,0.6) 0%, transparent 50%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8965a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 820px;
  animation: fadeUp 1s ease both;
}
.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.9;
  margin-bottom: 40px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}

/* ============================================
   STATS
   ============================================ */
#stats {
  background: var(--navy);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(184,150,90,0.06); }
.stat-item i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.stat-item h3 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item h3::after { content: '+'; font-size: 1.8rem; color: var(--gold); }
.stat-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  padding: 120px 0;
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  height: 420px;
}
.about-card-main {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  box-shadow: 0 0 0 16px rgba(13,27,42,0.08), 0 0 0 32px rgba(13,27,42,0.04);
}
.about-card-main i { font-size: 2.4rem; color: var(--gold); }
.about-card-main span { font-size: 0.8rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }
.about-card-sub {
  position: absolute;
  width: 100px; height: 100px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--gold-light);
}
.about-card-sub i { font-size: 1.4rem; color: var(--navy); }
.about-card-sub p { font-size: 0.72rem; font-weight: 600; color: var(--navy); }
.card-1 { top: 8%;  left: 8%; }
.card-2 { top: 8%;  right: 8%; }
.card-3 { bottom: 8%; left: 50%; transform: translateX(-50%); }

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 24px;
}
.about-text p {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}
.about-list i { color: var(--gold); font-size: 1rem; }

/* ============================================
   SERVICES
   ============================================ */
#services {
  padding: 120px 0;
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  padding: 40px 32px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  background: var(--off-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: var(--gold); }
.service-icon i {
  font-size: 1.5rem;
  color: var(--gold);
  transition: color var(--transition);
}
.service-card:hover .service-icon i { color: var(--white); }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.8; }

/* ============================================
   VALUES
   ============================================ */
#values {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1c3350 100%);
  position: relative;
  overflow: hidden;
}
#values::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8965a' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.value-item {
  padding: 40px 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: rgba(255,255,255,0.03);
}
.value-item:hover {
  background: rgba(184,150,90,0.1);
  border-color: rgba(184,150,90,0.4);
  transform: translateY(-6px);
}
.value-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(184,150,90,0.2);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition);
}
.value-item:hover .value-num { color: rgba(184,150,90,0.5); }
.value-item h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 12px;
}
.value-item p { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.8; }

/* ============================================
   TEAM
   ============================================ */
#team {
  padding: 120px 0;
  background: var(--off-white);
}
.team-center {
  display: flex;
  justify-content: center;
}
.team-card {
  display: flex;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  padding: 52px 60px;
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
}
.team-avatar {
  flex-shrink: 0;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(13,27,42,0.35), 0 0 0 4px var(--gold), 0 0 0 8px rgba(184,150,90,0.18);
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-avatar i { font-size: 3rem; color: var(--gold); }
.team-info h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}
.team-title {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(184,150,90,0.1);
  padding: 4px 12px;
  border-radius: 20px;
}
.team-divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 18px 0;
}
.team-info p { color: var(--text-light); font-size: 0.92rem; line-height: 1.9; }

/* ============================================
   VISION — 微光植事
   ============================================ */
#vision {
  padding: 120px 0;
  background: linear-gradient(180deg, #f0f7f0 0%, var(--off-white) 100%);
  position: relative;
  overflow: hidden;
}
#vision::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,180,100,0.1) 0%, transparent 70%);
  pointer-events: none;
}
#vision::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(100,180,100,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.vision-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 60px 64px;
  position: relative;
}
.vision-deco {
  position: absolute;
  top: -28px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(76,175,80,0.4);
}
.vision-deco i { font-size: 1.5rem; color: var(--white); }

.vision-content { display: flex; flex-direction: column; gap: 20px; }

.vision-lead {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.9;
  font-weight: 500;
  padding-top: 12px;
}
.vision-content > p {
  color: var(--text-light);
  line-height: 1.9;
  font-size: 0.95rem;
}

.vision-quote {
  border-left: 4px solid #4caf50;
  padding: 20px 28px;
  background: #f1f8f1;
  border-radius: 0 10px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vision-quote p {
  color: #2e7d32;
  font-family: var(--font-serif);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.7;
}

.vision-beliefs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 8px 0;
}
.belief-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border: 1.5px solid #c8e6c9;
  border-radius: var(--radius);
  background: #fafff9;
  transition: all var(--transition);
}
.belief-item:hover {
  border-color: #4caf50;
  box-shadow: 0 4px 16px rgba(76,175,80,0.12);
  transform: translateY(-3px);
}
.belief-item i {
  font-size: 1.2rem;
  color: #4caf50;
  flex-shrink: 0;
  margin-top: 2px;
}
.belief-item p {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

.vision-slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  margin-top: 8px;
}
.vision-slogan span {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.8;
}
.vision-slogan span:first-child {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* Responsive */
@media (max-width: 768px) {
  .vision-wrap { padding: 52px 28px 40px; }
  .vision-beliefs { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  padding: 120px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 20px;
}
.contact-info > p {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 36px;
}
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item i {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  margin-top: 2px;
}
.contact-item strong { display: block; font-size: 0.8rem; color: var(--gray); letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-item p { color: var(--text); font-size: 0.92rem; }

/* Contact Form */
.contact-form-wrap {
  background: var(--off-white);
  border-radius: 16px;
  padding: 44px 40px;
}
.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.form-group label span { color: var(--gold); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,150,90,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg {
  margin-top: 12px;
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: 6px;
  display: none;
}
.form-msg.success { background: #ecfdf5; color: #065f46; display: block; }
.form-msg.error   { background: #fef2f2; color: #991b1b; display: block; }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--navy);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.8; max-width: 300px; }
.footer-links h4,
.footer-services h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-services ul { display: flex; flex-direction: column; gap: 10px; }
.footer-services li { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }

  .about-grid     { grid-template-columns: 1fr; gap: 60px; }
  .about-visual   { height: 320px; }

  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
  .contact-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    height: 100vh;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: flex; position: relative; z-index: 1001; }

  .hero-btns { flex-direction: column; align-items: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

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

  .team-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }
  .team-divider { margin: 18px auto; }
  .team-card::before { width: 100%; height: 5px; top: 0; left: 0; }

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

  .contact-form-wrap { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .section-header h2 { font-size: 1.7rem; }
  .hero-content h1   { font-size: 2rem; }
  .about-text h2     { font-size: 1.6rem; }
}
