/* ===== 安達裝飾設計公司 — 主樣式表 ===== */
:root {
  --navy: #1E2A38;
  --orange: #27AE60;
  --orange-dark: #1E8449;
  --light-gray: #F5F5F5;
  --text: #333333;
  --text-light: #666;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(30, 42, 56, 0.12);
  --shadow-lg: 0 12px 40px rgba(30, 42, 56, 0.18);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --header-h: 72px;
  --font-cn: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --font-en: 'Poppins', 'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

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

img[loading="lazy"] {
  background: var(--light-gray);
  min-height: 80px;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-cn);
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin-top: 12px;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 16px 0;
}

.site-header.scrolled {
  background: rgba(30, 42, 56, 0.97);
  box-shadow: var(--shadow);
  padding: 10px 0;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logo span { font-family: var(--font-en); font-size: 0.75rem; opacity: 0.85; display: block; font-weight: 400; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after { width: 100%; }

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--orange); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 20px;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 500;
}

.nav-mobile a:hover { color: var(--orange); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.35);
}

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

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

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

.btn-dark:hover {
  background: #2c3e50;
  transform: translateY(-2px);
}

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 42, 56, 0.88) 0%, rgba(30, 42, 56, 0.65) 100%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px 80px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: rgba(39, 174, 96, 0.2);
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--font-en);
  letter-spacing: 1px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Sections ===== */
section { padding: 80px 0; }

.section-light { background: var(--light-gray); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.75); }

.bg-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 56, 0.82);
}

.bg-section .container { position: relative; z-index: 1; }

/* ===== Intro Split ===== */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.intro-text p { margin-bottom: 16px; color: var(--text-light); }
.intro-text p:last-of-type { margin-bottom: 24px; }

.intro-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.intro-images img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.intro-images img:hover { transform: scale(1.03); }
.intro-images img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }

/* ===== Feature Boxes ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-box {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 42, 56, 0.06);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(39, 174, 96, 0.2), var(--shadow-lg);
}

.feature-box:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(39, 174, 96, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--orange);
}

.feature-box h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-box p { color: var(--text-light); font-size: 0.95rem; }

.checklist-anim li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.checklist-anim li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Stats Counter ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 50px 0;
}

.stat-item .stat-number {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.stat-item .stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ===== Service Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.service-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img { transform: scale(1.08); }

.service-card-icon {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.service-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.service-card-heading h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.service-card-body { padding: 24px; }
.service-card-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }

.service-card-link {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card-link:hover { gap: 10px; }

/* ===== Service Detail ===== */
.service-detail {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}

.service-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.service-detail-header.reverse { direction: rtl; }
.service-detail-header.reverse > * { direction: ltr; }

.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-detail-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.service-steps {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.service-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--light-gray);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
}

.service-step-num {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 40px;
  margin: 30px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--orange);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
}

.timeline-item h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-item p { color: var(--text-light); font-size: 0.9rem; }

/* Water drop animation */
.water-drops {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
}

.water-drop {
  position: absolute;
  width: 8px;
  height: 12px;
  background: var(--orange);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: drip 3s infinite ease-in;
}

@keyframes drip {
  0% { transform: translateY(-20px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}

/* ===== Cases Gallery ===== */
.cases-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.cases-gallery--preview {
  grid-template-columns: repeat(3, 1fr);
}

.case-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--light-gray);
  transition: box-shadow var(--transition), transform var(--transition);
}

.case-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-item:hover img {
  transform: scale(1.06);
}

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

@media (max-width: 480px) {
  .cases-gallery,
  .cases-gallery--preview {
    grid-template-columns: 1fr;
  }
}

/* Legacy case cards (unused) */
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.case-card.hidden { display: none; }

.case-card:hover { box-shadow: var(--shadow-lg); }

.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  position: relative;
}

.case-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  transition: opacity var(--transition);
}

.case-images img:hover { opacity: 0.85; }

.case-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.case-body { padding: 20px; }
.case-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.case-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 8px; }
.case-body .solution { color: var(--navy); font-weight: 500; font-size: 0.9rem; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.95rem;
}

/* ===== FAQ Accordion ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid rgba(30, 42, 56, 0.1);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--light-gray); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

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

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
}

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

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(39, 174, 96, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 { color: var(--orange); font-size: 0.85rem; margin-bottom: 4px; }
.contact-info-item a { color: var(--white); font-size: 1.1rem; font-weight: 600; }
.contact-info-item a:hover { color: var(--orange); }

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition);
}

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

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

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 12px;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Page Banner ===== */
.page-banner {
  position: relative;
  padding: 140px 20px 70px;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 56, 0.85);
}

.page-banner .container { position: relative; z-index: 1; }

.page-banner h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  background: #152028;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
  overflow: hidden;
}

.footer-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%2327AE60' fill-opacity='0.08' d='M0,120 L0,80 L60,60 L120,75 L180,45 L240,70 L300,40 L360,65 L420,35 L480,55 L540,25 L600,50 L660,30 L720,60 L780,20 L840,45 L900,55 L960,35 L1020,65 L1080,40 L1140,70 L1200,50 L1200,120 Z'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.04' d='M0,120 L0,90 L80,70 L160,85 L240,55 L320,80 L400,50 L480,75 L560,45 L640,70 L720,40 L800,65 L880,35 L960,60 L1040,30 L1120,55 L1200,40 L1200,120 Z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
  pointer-events: none;
  opacity: 0;
  animation: footerFade 1.5s ease forwards 0.3s;
}

@keyframes footerFade { to { opacity: 1; } }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; }

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--orange); }

.footer-contact .phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  margin: 8px 0;
}

.footer-company-name {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-address {
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.footer-address strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.footer-email {
  display: block;
  color: var(--orange);
  font-size: 0.9rem;
  margin: 4px 0 12px;
  word-break: break-all;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ===== Floating Buttons ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 1500;
  transition: all var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg { width: 32px; height: 32px; fill: white; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8); }
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 96px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1500;
  box-shadow: var(--shadow);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--orange); transform: translateY(-3px); }

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Masonry texture */
.masonry-bg {
  background-color: var(--light-gray);
  background-image: 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='%23cccccc' fill-opacity='0.15'%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");
}

/* Quick services preview on home */
.quick-services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

.quick-service-item {
  background: var(--white);
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.quick-service-item:hover {
  transform: translateY(-4px);
  border-bottom: 3px solid var(--orange);
}

.quick-service-item .qs-icon { font-size: 2rem; margin-bottom: 10px; }
.quick-service-item h4 { font-size: 0.95rem; }

/* About page */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.value-card .icon { font-size: 2.5rem; margin-bottom: 12px; }

/* CMS banner carousel */
.cms-banner-section {
  padding: 48px 0;
}

.cms-banner-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  scrollbar-width: none;
}

.cms-banner-slider::-webkit-scrollbar { display: none; }

.cms-banner-slide {
  min-width: 100%;
  position: relative;
  scroll-snap-align: start;
  background: var(--dark);
}

.cms-banner-slide a {
  color: inherit;
  display: block;
}

.cms-banner-slide img {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  display: block;
}

.cms-banner-slide span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.56);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.form-alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.form-alert.success {
  color: #17692f;
  background: #e6f7e9;
}

.form-alert.error {
  color: #a72218;
  background: #ffe5e1;
}

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

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card-img {
  display: block;
  height: 220px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

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

.blog-card time,
.blog-article time {
  display: block;
  color: var(--orange);
  font-family: var(--font-en);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.blog-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.blog-card h2 a {
  color: var(--text-dark);
}

.blog-article {
  max-width: 880px;
}

.blog-article img {
  max-width: 100%;
  height: auto;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.page-link,
.page-ellipsis {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-en);
  font-weight: 700;
}

.page-link {
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--white);
  transition: var(--transition);
}

.page-link:hover,
.page-link.active {
  color: var(--white);
  border-color: var(--orange);
  background: var(--orange);
}

.page-link--wide {
  min-width: 82px;
  font-family: var(--font-tc);
}

.page-ellipsis {
  color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .intro-split,
  .service-detail-header,
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-header.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .quick-services { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .about-values { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  section { padding: 60px 0; }
  .intro-images { grid-template-columns: 1fr; }
  .intro-images img:first-child { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .cms-banner-slide img { aspect-ratio: 4 / 3; }
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 16px;
  }
  .back-to-top { right: 80px; bottom: 20px; }
  .bg-section { background-attachment: scroll; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .quick-services { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
}