/* ============================================
   MINIMALISM THEME — Apple × Linear × Vercel
   ============================================ */

/* CSS Variables */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #fafafa;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #a1a1a6;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}
.header.scrolled {
  border-bottom-color: var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  height: 56px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  width: 180px;
  height: 45px;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.logo-dot { color: var(--accent); }
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}
.nav-menu > li > a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.8;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  transition: var(--transition-fast);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a,
.nav-menu > li.current-menu-ancestor > a {
  opacity: 1;
  color: var(--accent);
}
/* Sub-menu (level 2+) */
.nav-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-fast);
  z-index: 1001;
}
.nav-menu ul ul {
  top: -8px;
  left: calc(100% + 4px);
}
.nav-menu li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.8;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.nav-menu ul li a:hover {
  opacity: 1;
  color: var(--accent);
  background: var(--bg-secondary);
}

/* WordPress Admin Bar offset for fixed header */
body.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
}

/* Plugin hero offset is handled dynamically by Nexora Hero Manager plugin via wp_add_inline_style. */

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 980px;
  transition: var(--transition-fast);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,113,227,0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-secondary);
}
.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
}
.hero-title .line { display: block; }
.hero-desc {
  font-size: clamp(16px, 2vw, 21px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
  opacity: 0;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}
.hero-visual {
  margin-top: 64px;
  position: relative;
  opacity: 0;
}
.hero-visual-inner {
  width: 100%;
  max-width: 720px;
  height: 400px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 50%, #f5f5f7 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,113,227,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,113,227,0.05) 0%, transparent 50%);
}
.hero-visual-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px;
  justify-content: center;
}
.h-line {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border-light), var(--border));
  animation: pulse-line 3s ease-in-out infinite;
}
.h-line:nth-child(1) { width: 70%; animation-delay: 0s; }
.h-line:nth-child(2) { width: 90%; animation-delay: 0.3s; }
.h-line:nth-child(3) { width: 55%; animation-delay: 0.6s; }
.h-line:nth-child(4) { width: 80%; animation-delay: 0.9s; }
.h-line:nth-child(5) { width: 65%; animation-delay: 1.2s; }
@keyframes pulse-line {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 120px 0;
  position: relative;
}
.section-alt { background: var(--bg-secondary); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
}
.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.feature-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Marquee */
.marquee-section {
  padding: 80px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
  letter-spacing: -0.5px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Products / Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-visual {
  height: 220px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,113,227,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body-top {
  flex: 1;
}
.card-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}
.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.card-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 12px;
}
.card-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Pagination */
.pagination {
  margin-top: 64px;
  text-align: center;
}
.pagination ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  align-items: center;
}
.pagination li {
  margin: 0;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.pagination a:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.pagination .current {
  background: var(--text-primary);
  color: #fff;
  cursor: default;
}
.pagination .prev,
.pagination .next {
  padding: 0 16px;
  gap: 6px;
}
.pagination .dots {
  min-width: auto;
  padding: 0 4px;
  cursor: default;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  text-align: center;
  background: var(--bg-secondary);
}
.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.cta-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-brand span { color: var(--accent); }
.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
}
.footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================
   PAGE: ABOUT
   ============================================ */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--bg-primary);
}
.page-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.page-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border-light);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--border);
}
.timeline-content {
  max-width: 340px;
  padding: 0 32px;
}
.timeline-year {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.timeline-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.timeline-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.team-member {
  text-align: center;
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-secondary), var(--border-light));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  padding: 0 12px;
  line-height: 1.2;
}
.team-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 14px; color: var(--text-secondary); }

/* ============================================
   PAGE: SERVICES / PRODUCTS
   ============================================ */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}
.service-row:nth-child(even) .service-visual { order: 2; }
.service-visual {
  height: 400px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  position: relative;
  overflow: hidden;
}
.service-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(0,113,227,0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(0,113,227,0.06) 0%, transparent 60%);
}
.service-content { padding: 20px 0; }
.service-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.service-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.service-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-list { display: flex; flex-direction: column; gap: 12px; }
.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}
.service-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================
   PAGE: BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--border-light));
  position: relative;
}
.blog-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,113,227,0.05) 0%, transparent 70%);
}
.blog-meta {
  display: flex;
  gap: 16px;
  padding: 20px 24px 0;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.blog-card-body { padding: 12px 24px 24px; }
.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-post-header {
  padding: 140px 0 60px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.blog-post-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.blog-post-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.blog-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
}
.blog-post-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.blog-post-content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 48px 0 20px;
}
.blog-post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
}

/* ============================================
   PAGE: CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.contact-info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.contact-item-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-item-text {
  font-size: 14px;
  color: var(--text-secondary);
}
.contact-form {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================================
   PAGE: 404
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.error-code {
  font-size: clamp(100px, 15vw, 200px);
  font-weight: 700;
  letter-spacing: -8px;
  line-height: 1;
  color: var(--border);
  margin-bottom: 16px;
}
.error-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.error-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ============================================
   SEARCH
   ============================================ */
.search-box {
  max-width: 600px;
  margin: 0 auto 48px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: 1px solid var(--border);
  border-radius: 980px;
  font-size: 16px;
  background: var(--bg-primary);
  transition: var(--transition-fast);
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}
.search-box-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 18px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid,
  .cards-grid,
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 40px; }
  .service-row:nth-child(even) .service-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .features-grid,
  .cards-grid,
  .blog-grid,
  .stats-grid,
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 56px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot { left: 20px; transform: translateX(-50%); }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-visual-inner { height: 280px; }
  .section { padding: 80px 0; }
}

/* ============================================
   PAGE EDITABLE CONTENT (from WordPress editor)
   ============================================ */
.page-editable-content p {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 24px;
}
.page-editable-content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 32px 0 16px;
  color: var(--text-primary);
}
.page-editable-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-primary);
}
.page-editable-content ul,
.page-editable-content ol {
  margin-left: 24px;
  margin-bottom: 24px;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.8;
}
.page-editable-content ul { list-style: disc; }
.page-editable-content ol { list-style: decimal; }
.page-editable-content a {
  color: var(--accent);
  text-decoration: underline;
}
.page-editable-content a:hover {
  color: var(--accent-hover);
}
.page-editable-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
}
.page-editable-content img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1), filter 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   WHATSAPP — Click to Chat Visual Adapter
   Apple × Linear × Vercel 風格適配
   兼容：PC / iPhone / Android / iOS Safari
   ============================================ */

/* ---------- 1. 浮動按鈕 ---------- */
.ht_ctc_style.ht_ctc_chat_style {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: var(--shadow-md) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  bottom: 32px !important;
  right: 32px !important;
  z-index: 9999 !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  -webkit-touch-callout: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ht_ctc_style.ht_ctc_chat_style:hover {
  transform: scale(1.08) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1) !important;
}

.ht_ctc_style.ht_ctc_chat_style:active {
  transform: scale(0.96) !important;
}

/* 隱藏插件默認綠色圖標，保留點擊 */
.ht_ctc_style.ht_ctc_chat_style .own-img {
  opacity: 0 !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  cursor: pointer !important;
}

/* 藍色 WhatsApp 圖標（Base64 SVG） */
.ht_ctc_style.ht_ctc_chat_style::after {
  content: '';
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230071e3' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* ---------- 2. 彈窗 / Greetings ---------- */
.ht_ctc_chat_greetings_box,
.ht_ctc_chat_greetings_box_layout {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border-light) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  position: relative !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* 桌面端彈窗不貼邊 */
.ht_ctc_chat_greetings_box {
  right: 24px !important;
  bottom: 24px !important;
}

/* 頭部：白色背景 + 底部細線，強制 block 布局 */
html body .ht_ctc_chat_greetings_box .ctc_g_heading,
html body .ht_ctc_chat_greetings_box_layout .ctc_g_heading {
  background: var(--bg-primary) !important;
  border-bottom: 1px solid var(--border-light) !important;
  color: var(--text-primary) !important;
  display: block !important;
  padding: 16px 48px 16px 20px !important;
  min-height: 52px !important;
}

html body .ht_ctc_chat_greetings_box .ctc_g_heading * {
  color: var(--text-primary) !important;
}

/* 關閉按鈕 — 固定於彈窗右上角 */
html body .ht_ctc_chat_greetings_box .ctc_greetings_close_btn,
html body .ht_ctc_chat_greetings_box_layout .ctc_greetings_close_btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 100 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

html body .ht_ctc_chat_greetings_box .ctc_greetings_close_btn svg,
html body .ht_ctc_chat_greetings_box .ctc_greetings_close_btn img {
  width: 18px !important;
  height: 18px !important;
  fill: var(--text-secondary) !important;
  color: var(--text-secondary) !important;
  opacity: 0.7 !important;
  transition: var(--transition-fast) !important;
  display: block !important;
}

html body .ht_ctc_chat_greetings_box .ctc_greetings_close_btn:hover svg,
html body .ht_ctc_chat_greetings_box .ctc_greetings_close_btn:hover img {
  opacity: 1 !important;
  fill: var(--text-primary) !important;
}

/* 內容區：強制白色背景 */
html body .ht_ctc_chat_greetings_box .ctc_g_content,
html body .ht_ctc_chat_greetings_box_layout .ctc_g_content {
  background: var(--bg-primary) !important;
}

/* 聊天气泡 — 商家消息（綠色→淺藍） */
html body .ht_ctc_chat_greetings_box .ctc_g_content [style*="background-color: #dcf8c6"],
html body .ht_ctc_chat_greetings_box .ctc_g_content [style*="background:#dcf8c6"],
html body .ht_ctc_chat_greetings_box .ctc_g_content [style*="background-color:#dcf8c6"],
html body .ht_ctc_chat_greetings_box .ctc_g_content .ctc_g_bubble,
html body .ht_ctc_chat_greetings_box .ctc_g_content .ctc-g-bubble {
  background: #eef6ff !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) var(--radius-md) 2px var(--radius-md) !important;
  box-shadow: none !important;
  border: 1px solid rgba(0,113,227,0.08) !important;
}

/* 用戶消息（灰色氣泡） */
html body .ht_ctc_chat_greetings_box .ctc_g_content [style*="background-color: #fff"],
html body .ht_ctc_chat_greetings_box .ctc_g_content [style*="background:#fff"],
html body .ht_ctc_chat_greetings_box .ctc_g_content .ctc_g_bubble_user {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 2px !important;
  box-shadow: none !important;
  border: 1px solid var(--border-light) !important;
}

/* 發送按鈕：強制品牌藍 */
html body .ht_ctc_chat_greetings_box .ctc_g_sentbutton,
html body .ht_ctc_chat_greetings_box .ctc_g_sentbutton *,
html body .ht_ctc_chat_greetings_box .ht_ctc_chat_greetings_box_link,
html body .ht_ctc_chat_greetings_box .ht_ctc_chat_greetings_box_link *,
html body .ht_ctc_chat_greetings_box .ctc_g_sentbutton a,
html body .ht_ctc_chat_greetings_box .ctc_g_sentbutton button,
html body .ht_ctc_chat_greetings_box .ctc_g_sentbutton div {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: none !important;
  background-image: none !important;
  transition: var(--transition-fast) !important;
}

html body .ht_ctc_chat_greetings_box .ctc_g_sentbutton a:hover,
html body .ht_ctc_chat_greetings_box .ctc_g_sentbutton button:hover,
html body .ht_ctc_chat_greetings_box .ht_ctc_chat_greetings_box_link:hover {
  background: var(--accent-hover) !important;
  background-image: none !important;
  box-shadow: 0 4px 16px rgba(0,113,227,0.25) !important;
}

/* 底部：簡約灰字 */
html body .ht_ctc_chat_greetings_box .ctc_g_bottom,
html body .ht_ctc_chat_greetings_box .ctc_g_bottom * {
  background: var(--bg-primary) !important;
  color: var(--text-tertiary) !important;
  font-size: 11px !important;
}

html body .ht_ctc_chat_greetings_box .ctc_g_bottom a {
  color: var(--text-tertiary) !important;
  text-decoration: none !important;
  transition: var(--transition-fast) !important;
}

html body .ht_ctc_chat_greetings_box .ctc_g_bottom a:hover {
  color: var(--text-primary) !important;
}

/* 表單輸入框 */
html body .ht_ctc_chat_greetings_box .ctc_g_form input,
html body .ht_ctc_chat_greetings_box .ctc_g_form textarea {
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 14px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  outline: none !important;
  transition: var(--transition-fast) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

html body .ht_ctc_chat_greetings_box .ctc_g_form input:focus,
html body .ht_ctc_chat_greetings_box .ctc_g_form textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(0,113,227,0.1) !important;
}

html body .ht_ctc_chat_greetings_box .ctc_g_form label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  margin-bottom: 6px !important;
}

/* ---------- 3. 彈窗打開時隱藏浮動按鈕 ---------- */
body:has(.ht_ctc_chat_greetings_box[style*="display: block"]) .ht_ctc_style.ht_ctc_chat_style,
body:has(.ht_ctc_chat_greetings_box:not([style*="display: none"])) .ht_ctc_style.ht_ctc_chat_style {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Fallback：無 :has 支持的瀏覽器（舊版 iOS Safari） */
.ht_ctc_chat_greetings_box[style*="display: block"] ~ .ht_ctc_style.ht_ctc_chat_style,
.ht_ctc_chat_greetings_box:not([style*="display: none"]) ~ .ht_ctc_style.ht_ctc_chat_style {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- 4. 跨平台移動端適配 ---------- */

/* 平板與大螢幕手機 */
@media (max-width: 768px) {
  .ht_ctc_style.ht_ctc_chat_style {
    width: 52px !important;
    height: 52px !important;
    bottom: 24px !important;
    right: 24px !important;
  }
  .ht_ctc_style.ht_ctc_chat_style::after {
    width: 26px;
    height: 26px;
  }
  .ht_ctc_chat_greetings_box {
    max-width: calc(100vw - 48px) !important;
    right: 24px !important;
    bottom: 90px !important;
    border-radius: var(--radius-lg) !important;
  }
}

/* 小螢幕手機 */
@media (max-width: 480px) {
  .ht_ctc_style.ht_ctc_chat_style {
    width: 48px !important;
    height: 48px !important;
    bottom: 20px !important;
    right: 20px !important;
  }
  .ht_ctc_style.ht_ctc_chat_style::after {
    width: 24px;
    height: 24px;
  }
  .ht_ctc_chat_greetings_box {
    max-width: calc(100vw - 32px) !important;
    right: 16px !important;
    left: 16px !important;
    bottom: 80px !important;
  }
}

/* iPhone 劉海屏 / 安全區適配 */
@supports (padding: max(0px)) {
  .ht_ctc_style.ht_ctc_chat_style {
    bottom: max(32px, env(safe-area-inset-bottom) + 16px) !important;
    right: max(32px, env(safe-area-inset-right) + 16px) !important;
  }
  @media (max-width: 768px) {
    .ht_ctc_style.ht_ctc_chat_style {
      bottom: max(24px, env(safe-area-inset-bottom) + 12px) !important;
      right: max(24px, env(safe-area-inset-bottom) + 12px) !important;
    }
  }
  @media (max-width: 480px) {
    .ht_ctc_style.ht_ctc_chat_style {
      bottom: max(20px, env(safe-area-inset-bottom) + 8px) !important;
      right: max(20px, env(safe-area-inset-right) + 8px) !important;
    }
    .ht_ctc_chat_greetings_box {
      bottom: max(80px, env(safe-area-inset-bottom) + 60px) !important;
    }
  }
}

/* iOS Safari 專用修復 */
@supports (-webkit-touch-callout: none) {
  .ht_ctc_style.ht_ctc_chat_style {
    /* 防止 iOS 彈性滾動影響 fixed 定位 */
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
  }
  .ht_ctc_chat_greetings_box {
    /* iOS 彈窗避免被底部工具欄遮擋 */
    max-height: calc(100vh - 140px) !important;
    max-height: calc(100dvh - 140px) !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* 深色模式跟隨系統（如插件支持） */
@media (prefers-color-scheme: dark) {
  .ht_ctc_style.ht_ctc_chat_style {
    background: rgba(29, 29, 31, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
  }
  .ht_ctc_style.ht_ctc_chat_style:hover {
    background: rgba(29, 29, 31, 0.98) !important;
  }
}
