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

:root {
  --primary: #1e3a8a;
  --primary-dark: #1e40af;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 80rem;
  --radius: 0.75rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.header-scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border-bottom-color: var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.logo:hover .logo-icon { background: var(--primary-dark); }

.logo-text strong {
  display: block;
  font-size: 0.875rem;
  line-height: 1.3;
}

.logo-text {
  min-width: 0;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.nav { display: none; gap: 0.25rem; }

.nav a {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: all 0.2s;
}

.nav a:hover { background: var(--slate-100); color: var(--slate-900); }
.nav a.active { background: var(--primary); color: var(--white); }

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.header-phone:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary:hover,
.btn-accent:hover,
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.btn-outline:hover {
  transform: translateY(-2px);
}

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

.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-outline {
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

.btn-outline:hover { border-color: var(--slate-400); background: var(--slate-50); }

.btn-white { background: var(--white); color: var(--accent); font-weight: 700; }
.btn-white:hover { background: #fff7ed; }

.menu-toggle {
  display: flex;
  flex-shrink: 0;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-600);
  border-radius: 0.5rem;
}

.menu-toggle:hover { background: var(--slate-100); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--slate-200);
  padding: 1rem 1.5rem;
  background: var(--white);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  margin-bottom: 0.25rem;
}

.mobile-nav a.active { background: var(--primary); color: var(--white); }
.mobile-nav a:hover:not(.active) { background: var(--slate-100); }

.mobile-nav .btn-accent {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .header-actions { display: flex; }
  .menu-toggle { display: none; }
  .logo { flex: initial; }
}

@media (max-width: 767px) {
  .logo { padding-right: 0.5rem; }
  .logo-text strong {
    font-size: 0.6875rem;
    line-height: 1.25;
  }
  .logo-text span {
    font-size: 0.625rem;
  }
}

main { flex: 1; }

/* Page Header */
.page-header {
  background: var(--primary);
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.page-header--image {
  background: center / cover no-repeat;
}

.page-header--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(23, 37, 84, 0.9) 0%,
    rgba(30, 58, 138, 0.78) 50%,
    rgba(30, 58, 138, 0.65) 100%
  );
  z-index: 0;
}

.page-header--image h1,
.page-header--image p,
.page-header--image .breadcrumb {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.page-header--image p {
  color: rgba(255, 255, 255, 0.95);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 25%,
    transparent 25%, transparent 50%,
    rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%,
    transparent 75%
  );
  background-size: 60px 60px;
  opacity: 0.3;
}

.page-header--image::before {
  display: none;
}

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

.page-header .breadcrumb {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
}

.page-header p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #bfdbfe;
  max-width: 42rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-50), var(--white), #eff6ff);
  padding: 5rem 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner { flex-direction: row; gap: 4rem; }
  .hero-content { flex: 1; }
  .hero-cards { flex: 1; width: 100%; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e40af;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-tagline {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent);
}

.hero-desc {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  color: var(--slate-600);
  max-width: 36rem;
  line-height: 1.7;
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.hero-card .bar {
  width: 2rem;
  height: 4px;
  background: var(--accent);
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.hero-card h3 { font-weight: 700; font-size: 0.9375rem; }
.hero-card p { font-size: 0.8125rem; color: var(--slate-500); margin-top: 0.25rem; }

/* Stats */
.stats {
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--slate-200);
}

@media (min-width: 640px) {
  .stat-item { border-bottom: none; border-right: 1px solid var(--slate-200); }
  .stat-item:last-child { border-right: none; }
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
}

/* Sections */
.section { padding: 5rem 0; }
.section-gray { background: var(--slate-50); }
.section-dark { background: var(--primary); color: var(--white); }

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.section-dark .section-label { color: #fb923c; }

.section-header h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
}

.section-header p {
  margin-top: 0.75rem;
  color: var(--slate-600);
  max-width: 42rem;
}

.section-dark .section-header p { color: #bfdbfe; }
.section-header.center p { margin-left: auto; margin-right: auto; }

.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .section-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.link-arrow:hover { color: var(--primary-dark); }

/* Cards Grid */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1rem; }
.grid-4 { display: grid; gap: 1.5rem; }

@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-card h3 { font-weight: 700; font-size: 1rem; }
.service-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--slate-500); line-height: 1.6; }

.product-card {
  display: flex;
  gap: 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.product-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  background: #fff7ed;
  color: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.product-card h3 { font-size: 1.125rem; font-weight: 700; }
.product-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--slate-500); }

.tags { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* Vision Mission */
.vm-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) { .vm-grid { grid-template-columns: 1fr 1fr; } }

.vm-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vm-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.vm-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.vm-icon.blue { background: var(--primary); color: var(--white); }
.vm-icon.orange { background: var(--accent); color: var(--white); }

.vm-card h3 { font-size: 1.25rem; font-weight: 700; }
.vm-card p { margin-top: 1rem; color: var(--slate-600); line-height: 1.7; }

.mission-list { margin-top: 1rem; }
.mission-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--slate-600);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.mission-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* Customers */
.customer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .customer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .customer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .customer-grid { grid-template-columns: repeat(5, 1fr); } }

.customer-item {
  border: 1px solid #1e40af;
  background: rgba(30,64,175,0.5);
  border-radius: 0.5rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.2s;
}

.customer-item:hover {
  border-color: rgba(251,146,60,0.5);
  background: #1e40af;
}

.customer-item p { font-size: 0.875rem; font-weight: 500; color: var(--white); }

/* Client logo marquee */
.client-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.client-marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: client-marquee 45s linear infinite;
}

.client-marquee-track:hover {
  animation-play-state: paused;
}

.client-logo-item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 11rem;
  height: 5.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.client-logo-item img {
  width: 10rem;
  height: 4rem;
  object-fit: contain;
}

@keyframes client-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
  background: url('../images/products/transfluid/high-speed.png') center / cover no-repeat;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(234, 88, 12, 0.92) 0%,
    rgba(249, 115, 22, 0.88) 50%,
    rgba(249, 115, 22, 0.82) 100%
  );
  z-index: 0;
}

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

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .cta-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.cta h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.cta p {
  margin-top: 0.5rem;
  color: #ffedd5;
  max-width: 36rem;
  font-size: 0.9375rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

/* Product detail cards */
.detail-card {
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.detail-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
}

.detail-card-header .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.detail-card-header .num {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.detail-card-header h2 { font-size: 1.25rem; font-weight: 700; }

.detail-card-body { padding: 2rem; }
.detail-card-body p { color: var(--slate-600); line-height: 1.7; }

.feature-list { margin-top: 1.5rem; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-700);
  margin-bottom: 0.75rem;
}

.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 700; }

.info-box {
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-box:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

@media (min-width: 1024px) { .info-box { padding: 3rem; } }

.info-box h3 { font-size: 1.5rem; font-weight: 700; }
.info-box p { margin-top: 1rem; color: var(--slate-600); max-width: 48rem; line-height: 1.7; }

.info-box-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) { .info-box-grid { grid-template-columns: repeat(3, 1fr); } }

.info-box-item {
  background: var(--white);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Service page large cards */
.service-detail {
  display: flex;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--white);
  transition: all 0.2s;
}

.service-detail:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.service-detail .service-icon { width: 4rem; height: 4rem; font-size: 2rem; margin-bottom: 0; flex-shrink: 0; }
.service-detail .num { font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.service-detail h2 { margin-top: 0.25rem; font-size: 1.25rem; font-weight: 700; }
.service-detail p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--slate-500); }

.process-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.2s;
}

.process-step:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.process-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.process-step h4 {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
}

.process-step p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.image-credit {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--slate-400);
  background: var(--slate-50);
}

/* Service detail — full-width image card */
.project-card.service-feature {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card.service-feature:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.project-card.service-feature .project-card-inner {
  display: flex;
  flex-direction: column;
}

.project-card.service-feature .project-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .project-card.service-feature .project-card-image {
    aspect-ratio: 21 / 9;
    min-height: 320px;
  }
}

.project-card.service-feature:hover .project-card-image {
  transform: none;
}

.project-card.service-feature .project-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.project-card.service-feature:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card.service-feature .project-card-image .image-credit {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.65), transparent);
  color: rgba(255, 255, 255, 0.92);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 0.875rem;
  font-size: 0.6875rem;
}

.project-card.service-feature .project-card-body {
  padding: 2rem;
}

@media (min-width: 1024px) {
  .project-card.service-feature .project-card-body {
    padding: 2.5rem;
  }
}

.highlight-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 1024px) { .highlight-grid { grid-template-columns: 1fr 1fr; } }

.highlight-dark {
  background: var(--primary);
  color: var(--white);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 1024px) { .highlight-dark { padding: 2.5rem; } }

.highlight-dark h3 { font-size: 1.5rem; font-weight: 700; }
.highlight-dark .sub { font-size: 0.875rem; font-weight: 500; color: #fb923c; margin-top: 0.5rem; }
.highlight-dark p { margin-top: 1rem; color: #bfdbfe; line-height: 1.7; }

.highlight-dark .project-items li {
  color: #dbeafe;
}

.highlight-dark .project-items li::before {
  content: "✓";
  color: #fb923c;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.highlight-light {
  background: var(--slate-50);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 1024px) { .highlight-light { padding: 2.5rem; } }

.highlight-light h3 { font-size: 1.5rem; font-weight: 700; }
.highlight-light .sub { font-size: 0.875rem; font-weight: 500; color: var(--accent); margin-top: 0.5rem; }
.highlight-light p { margin-top: 1rem; color: var(--slate-600); line-height: 1.7; }

/* About */
.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-feature {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.about-feature .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.about-feature strong { display: block; font-weight: 700; }
.about-feature span { font-size: 0.875rem; color: var(--slate-500); }

.field-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.field-tag {
  border: 1px solid var(--slate-200);
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-icon.blue { background: #eff6ff; }
.contact-icon.green { background: #f0fdf4; }
.contact-icon.orange { background: #fff7ed; }
.contact-icon.gray { background: var(--slate-100); }

.contact-item strong { display: block; font-weight: 600; }
.contact-item p, .contact-item a { font-size: 0.9375rem; color: var(--slate-600); }
.contact-item a:hover { color: var(--primary); }

.address-box {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.address-box .row { display: flex; gap: 0.75rem; align-items: flex-start; }
.address-box strong { font-weight: 600; }
.address-box p { font-size: 0.875rem; color: var(--slate-600); margin-top: 0.25rem; }

.contact-form-box {
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.contact-form-box h2 { font-size: 1.5rem; font-weight: 700; }
.contact-form-box > p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--slate-500); }

.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.15);
}

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

.form-success {
  background: #f0fdf4;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: none;
}

.form-success.show { display: block; }
.form-success strong { color: #166534; display: block; }
.form-success p { color: #16a34a; font-size: 0.875rem; margin-top: 0.5rem; }

.form-error {
  display: none;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
}

.form-error.show { display: block; }

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.footer {
  background: var(--slate-900);
  color: #cbd5e1;
  border-top: 1px solid var(--slate-800);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; } }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon { background: var(--accent); }

.footer-logo strong {
  color: var(--white);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.footer-desc { font-size: 0.875rem; line-height: 1.7; color: #94a3b8; margin-top: 0.5rem; }

.footer h3 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer ul li { margin-bottom: 0.5rem; }
.footer ul a { font-size: 0.875rem; transition: color 0.2s; }
.footer ul a:hover { color: #fb923c; }

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-contact .icon { color: #fb923c; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p { font-size: 0.875rem; color: #94a3b8; }

/* Project page */
.project-intro {
  max-width: 48rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.project-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 2.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.project-card-inner {
  display: grid;
}

@media (min-width: 1024px) {
  .project-card-inner { grid-template-columns: 1fr 1fr; }
}

.project-card-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--slate-100);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .project-card-image { aspect-ratio: auto; min-height: 320px; }
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.project-card-body { padding: 2rem; }

@media (min-width: 1024px) {
  .project-card-body { padding: 2.5rem; }
}

.project-card-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
}

.project-card-body > p {
  margin-top: 0.75rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.project-items {
  margin-top: 1.5rem;
}

.project-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-700);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.product-section-title {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
}

@media (min-width: 1024px) {
  .project-card-inner.product-reverse .project-card-image { order: 2; }
}

/* Product preview grid on home */
.product-grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .product-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .product-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.product-tile {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: var(--white);
  transition: all 0.2s;
}

.product-tile:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.product-tile-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--slate-100);
}

.product-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s;
}

.product-tile:hover .product-tile-image img { transform: scale(1.05); }

.product-tile-body { padding: 1.25rem; }
.product-tile-brand { font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.product-tile-body h3 { margin-top: 0.25rem; font-weight: 700; font-size: 0.9375rem; }
.product-tile-body p { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--slate-500); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Product detail page */
.page-header .breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.page-header .breadcrumb a:hover {
  text-decoration: underline;
}

.product-specs {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e3a8a;
}

.product-official-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e3a8a;
}

.product-official-link:hover {
  text-decoration: underline;
}

.info-box .project-items {
  margin-top: 1rem;
}

.info-box .project-items li::before {
  content: "•";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Home animations */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
  }

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

  @keyframes hero-fade-up {
    from {
      opacity: 0;
      transform: translateY(1.25rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-enter {
    opacity: 0;
    animation: hero-fade-up 0.6s ease forwards;
  }

  .hero-enter-1 { animation-delay: 0.05s; }
  .hero-enter-2 { animation-delay: 0.12s; }
  .hero-enter-3 { animation-delay: 0.19s; }
  .hero-enter-4 { animation-delay: 0.26s; }
  .hero-enter-5 { animation-delay: 0.33s; }
  .hero-enter-6 { animation-delay: 0.4s; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-enter {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    height: 3.25rem;
  }

  .whatsapp-float svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }

  .whatsapp-float:hover {
    transform: none;
  }
}
