/* ThinkTech — Design System */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #7c3aed;
  --color-accent-light: #a78bfa;
  --color-teal: #0d9488;
  --color-success: #10b981;
  --color-dark: #0f172a;
  --color-dark-soft: #1e293b;
  --color-gray-900: #111827;
  --color-gray-700: #374151;
  --color-gray-500: #6b7280;
  --color-gray-300: #d1d5db;
  --color-gray-100: #f3f4f6;
  --color-white: #ffffff;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #312e81 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-gray-700);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-dark);
  text-decoration: none;
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 900;
}

.logo:hover { color: var(--color-dark); }

.main-nav { display: flex; align-items: center; gap: 2rem; }

.main-nav a {
  color: var(--color-gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active { color: var(--color-primary); }

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switcher a {
  color: var(--color-gray-500);
  text-decoration: none;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lang-switcher a:hover { color: var(--color-primary); }

.lang-switcher a.active {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
}

.lang-switcher span { color: var(--color-gray-300); }

html[lang="zh-Hant"] body {
  font-family: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
}

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  color: var(--color-gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  background: none;
  border: none;
  font-family: var(--font);
}

.nav-dropdown-toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(8px);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  color: var(--color-gray-700);
  font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
  background: var(--color-gray-100);
  color: var(--color-primary);
}

.nav-dropdown-menu a.active::after { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover { color: white; box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45); }

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: white; }

.btn-dark {
  background: var(--color-dark);
  color: white;
}

.btn-dark:hover { background: var(--color-dark-soft); color: white; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-dark);
}

.mobile-toggle svg { width: 24px; height: 24px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(49, 46, 129, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-text h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-text h1 span {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.stat-item p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

.page-hero.has-image { padding-bottom: 0; }

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.page-hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255, 255, 255, 0.9); }

.page-hero-image {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  max-height: 420px;
}

.page-hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}

/* ── Sections ── */
section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-gray-500);
}

.bg-light { background: var(--color-gray-100); }
.bg-dark { background: var(--color-dark); color: rgba(255, 255, 255, 0.8); }
.bg-dark .section-header h2 { color: white; }
.bg-dark .section-header p { color: rgba(255, 255, 255, 0.65); }
.bg-dark .section-label { color: var(--color-accent-light); }

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.service-card-image {
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .service-card-image img { transform: scale(1.05); }

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card-icon.blue { background: rgba(37, 99, 235, 0.1); }
.service-card-icon.purple { background: rgba(124, 58, 237, 0.1); }
.service-card-icon.teal { background: rgba(13, 148, 136, 0.1); }
.service-card-icon.green { background: rgba(16, 185, 129, 0.1); }

.service-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.service-card-body p {
  font-size: 0.925rem;
  color: var(--color-gray-500);
  flex: 1;
  margin-bottom: 1rem;
}

.service-card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-item {
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.feature-item:hover { box-shadow: var(--shadow-md); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.925rem;
  color: var(--color-gray-500);
}

/* ── Split Content ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.split-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.split-content p {
  color: var(--color-gray-500);
  margin-bottom: 1.25rem;
}

.check-list {
  list-style: none;
  margin: 1.5rem 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--color-gray-700);
}

.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  color: white;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: white;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.cta-banner .btn-primary:hover { color: var(--color-accent); }

/* ── About Team ── */
.team-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.team-image img { width: 100%; max-height: 480px; object-fit: cover; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.value-card .feature-icon { margin: 0 auto 1rem; }

.value-card h3 {
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.value-card p { font-size: 0.9rem; color: var(--color-gray-500); }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--color-dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
  color: white;
  font-weight: 500;
}

.contact-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-teal);
  border-radius: 8px;
  font-weight: 500;
  margin-top: 1rem;
}

.form-success.show { display: block; }

/* ── Service Detail ── */
.detail-content { max-width: 800px; }
.detail-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--color-dark); margin: 2rem 0 1rem; }
.detail-content p { margin-bottom: 1rem; color: var(--color-gray-500); }

.detail-sidebar {
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.detail-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.detail-sidebar ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.detail-sidebar ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.925rem;
  color: var(--color-gray-700);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* ── Footer ── */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.925rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

.footer-brand .logo { color: white; margin-bottom: 0.5rem; }

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.925rem;
}

.footer-col ul a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* ── Overview Hub Visual ── */
.hub-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.hub-visual img { width: 100%; max-height: 400px; object-fit: cover; }

/* ── Responsive ── */
@media (max-width: 968px) {
  .hero-content,
  .split-section,
  .contact-grid,
  .detail-layout,
  .footer-grid { grid-template-columns: 1fr; }

  .split-section.reverse { direction: ltr; }

  .hero-content { text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav > a,
  .nav-dropdown { padding: 0.75rem 0; border-bottom: 1px solid var(--color-gray-100); }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0.5rem 0 0 1rem;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  .header-inner .btn-primary { display: none; }

  .lang-switcher { margin-left: auto; margin-right: 0.5rem; }

  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Site Search ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-gray-100);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.25rem 0.35rem 0.25rem 0.85rem;
  min-width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: white;
}

.site-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--color-dark);
  min-width: 0;
  outline: none;
}

.site-search input::placeholder { color: var(--color-gray-500); }

.site-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--gradient-accent);
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.site-search button:hover { transform: scale(1.05); }
.site-search button svg { width: 16px; height: 16px; }

.search-section { padding-top: 2rem; }

.search-results {
  min-height: 320px;
}

.search-setup-notice {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.search-setup-notice h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.search-setup-notice p,
.search-setup-notice li {
  color: var(--color-gray-500);
  line-height: 1.7;
}

.search-setup-notice ol {
  margin: 1rem 0 0 1.25rem;
}

.search-setup-notice code {
  background: var(--color-gray-100);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Google CSE overrides */
.gsc-control-cse {
  font-family: var(--font) !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.gsc-input-box {
  border-radius: 10px !important;
}

.gsc-above-wrapper-area { margin-bottom: 1rem !important; }

@media (max-width: 968px) {
  .site-search {
    order: 10;
    width: 100%;
    min-width: 0;
    margin-top: 0.5rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .main-nav.open + .site-search,
  .header-inner:has(.main-nav.open) .site-search {
    display: none;
  }
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  color: white;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
