/*
Theme Name: PROTOCOACH Framer
Author: Hermes Agent
Description: Dark cinematic theme for PROTOCOACH - carbon fiber education academy. Framer-style design system: pure black, electric blue accent, motion-first.
Version: 1.0.0
License: MIT
Text Domain: protocoach
*/

:root {
  /* Colors - Framer Design System */
  --color-bg: #000000;
  --color-surface: #090909;
  --color-text: #ffffff;
  --color-text-muted: #a6a6a6;
  --color-text-dim: rgba(255, 255, 255, 0.6);
  --color-accent: #0099ff;
  --color-accent-glow: rgba(0, 153, 255, 0.15);
  --color-frosted: rgba(255, 255, 255, 0.1);
  --color-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-ring: 0 0 0 1px var(--color-accent-glow);
  --shadow-card: 0 0.5px 0 rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.25);

  /* Layout */
  --container-max: 1200px;
  --section-pad: 100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { opacity: 0.85; }

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: padding 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 20px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.partner-logo {
  height: 32px;
  width: auto;
  opacity: 0.9;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 20px; font-weight: 700; letter-spacing: -0.8px; }
.logo-sub { font-size: 10px; color: var(--color-text-muted); letter-spacing: 0.5px; text-transform: uppercase; }

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

.nav-link {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.15px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.7; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--color-frosted);
  color: var(--color-text);
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); }

/* Pulsing CTA button */
.cta-pulse {
  position: relative;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.4), 0 0 20px rgba(0, 153, 255, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 153, 255, 0), 0 0 40px rgba(0, 153, 255, 0.5);
    transform: scale(1.05);
  }
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  position: relative;
  z-index: 1001;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

.btn-primary,
.cta-pulse {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-video-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-pulse 4s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes hero-title-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(0, 153, 255, 0.3), 0 0 40px rgba(0, 153, 255, 0.1); }
  50% { text-shadow: 0 0 40px rgba(0, 153, 255, 0.8), 0 0 80px rgba(0, 153, 255, 0.4), 0 0 120px rgba(0, 153, 255, 0.2); }
}

@keyframes hero-badge-glow {
  0%, 100% { 
    border-color: rgba(0, 153, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.1), inset 0 0 10px rgba(0, 153, 255, 0.05);
  }
  50% { 
    border-color: rgba(0, 153, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 153, 255, 0.4), 0 0 50px rgba(0, 153, 255, 0.2), inset 0 0 20px rgba(0, 153, 255, 0.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.95) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-frosted);
  border: 1px solid var(--color-accent-glow);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--color-text);
  margin-bottom: 24px;
  animation: fade-in-up 0.8s ease 0.2s both;
}

.hero-title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 24px;
  animation: fade-in-up 0.8s ease 0.4s both, hero-title-glow 2.5s ease-in-out 1.4s infinite;
}

.hero-title .accent {
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(0, 153, 255, 0.3), 0 0 40px rgba(0, 153, 255, 0.1);
  animation: hero-title-glow 2.5s ease-in-out 1.4s infinite;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  animation: fade-in-up 0.8s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s ease 0.8s both;
}

.btn-primary {
  padding: 16px 32px;
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  animation: pulse-glow 2s ease-in-out infinite;
}
.btn-primary:hover { transform: scale(0.98); }

.btn-secondary {
  padding: 16px 32px;
  background: var(--color-frosted);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating messenger buttons */
.messenger-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.msg-btn:hover { transform: scale(1.1); }
.msg-btn svg { width: 28px; height: 28px; }

.msg-tg { background: #0088cc; }
.msg-wa { background: #25d366; }

/* ============ SECTIONS ============ */
section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-accent-glow);
  border: 1px solid var(--color-accent-glow);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: 60px;
  line-height: 1.5;
}

/* ============ COURSES GRID ============ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.course-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  border-color: var(--color-accent-glow);
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-4px) rotate(-1deg); }
  20% { transform: translateX(4px) rotate(1deg); }
  30% { transform: translateX(-4px) rotate(-1deg); }
  40% { transform: translateX(4px) rotate(1deg); }
  50% { transform: translateX(-3px) rotate(-0.5deg); }
  60% { transform: translateX(3px) rotate(0.5deg); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  90% { transform: translateX(-1px); }
}

@media (max-width: 768px) {
  .course-card:active {
    animation: shake 0.4s ease-in-out;
  }
}

.course-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.course-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.course-card p {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.course-card .course-link,
.course-card .cta-pulse {
  margin-top: auto;
}

.course-card .course-link {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: auto;
}

/* ============ COURSE PRICES (2026-09) ============ */
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  color: var(--color-accent, #0099ff);
  letter-spacing: -0.5px;
}
.price-badge .price-from { font-size: 14px; font-weight: 500; color: #a6a6a6; }
.price-badge .price-value { font-size: 22px; white-space: nowrap; }
.price-pulse {
  animation: price-strong-pulse 1.6s ease-in-out infinite;
  will-change: transform, text-shadow;
}
@keyframes price-strong-pulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(0,153,255,0);
  }
  50% {
    transform: scale(1.12);
    text-shadow: 0 0 24px rgba(0,153,255,0.75);
  }
}
.course-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
  margin-bottom: 14px;
}
.course-price-row .price-badge .price-value { font-size: 26px; }
.hero-price-note {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 22px;
  border: 1px solid rgba(0,153,255,0.35);
  border-radius: 980px;
  background: rgba(0,153,255,0.07);
  font-size: 15px;
  color: #d1d5db;
}
.hero-price-note .price-badge .price-value { font-size: 19px; }

/* ============ HERO PRICE BUTTON (strong vibrate) ============ */
.hero-price-button {
  display: inline-block;
  margin-top: 18px;
}
.hero-price-button .price-value-strong {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 980px;
  background: linear-gradient(135deg, #0099ff, #0066cc);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  border: 2px solid rgba(0,153,255,0.6);
  box-shadow:
    0 0 30px rgba(0,153,255,0.5),
    0 4px 20px rgba(0,0,0,0.3);
  animation: price-vibrate-strong 0.4s ease-in-out infinite;
  will-change: transform, box-shadow;
  white-space: nowrap;
}
@keyframes price-vibrate-strong {
  0% {
    transform: translate(0, 0) scale(1);
    box-shadow: 0 0 20px rgba(0,153,255,0.4), 0 4px 20px rgba(0,0,0,0.3);
  }
  20% {
    transform: translate(-2px, 1px) scale(1.03);
    box-shadow: 0 0 35px rgba(0,153,255,0.7), 0 4px 20px rgba(0,0,0,0.3);
  }
  40% {
    transform: translate(2px, -1px) scale(1.05);
    box-shadow: 0 0 45px rgba(0,153,255,0.85), 0 4px 20px rgba(0,0,0,0.3);
  }
  60% {
    transform: translate(-1px, 2px) scale(1.03);
    box-shadow: 0 0 35px rgba(0,153,255,0.7), 0 4px 20px rgba(0,0,0,0.3);
  }
  80% {
    transform: translate(1px, -2px) scale(1.04);
    box-shadow: 0 0 40px rgba(0,153,255,0.8), 0 4px 20px rgba(0,0,0,0.3);
  }
  100% {
    transform: translate(0, 0) scale(1);
    box-shadow: 0 0 20px rgba(0,153,255,0.4), 0 4px 20px rgba(0,0,0,0.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-price-button .price-value-strong {
    animation: price-vibrate-strong 1.2s ease-in-out infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .price-pulse { animation-duration: 2.4s !important; }
}

/* ============ MOBILE: force 2-column grids to 1-column ============ */
@media (max-width: 768px) {
  .course-price-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .course-price-row .price-badge {
    text-align: center;
    white-space: nowrap;
  }
  .course-price-row .price-badge .price-from {
    display: block;
    margin-bottom: 4px;
  }
  .course-price-row .price-value {
    display: block;
    font-size: 28px;
  }
  .course-price-row .cta-pulse {
    width: 100%;
    text-align: center;
  }
  .hero-price-button .price-value-strong {
    font-size: 18px;
    padding: 12px 24px;
  }
}

.course-card .course-link {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 500;
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--color-border);
}

.feature-card .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ============ PROCESS ============ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.process-step {
  position: relative;
}

.process-step .step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.process-step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.process-step p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ============ STUDIO GALLERY ============ */
.studio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent);
  color: white;
}

.gallery-item .gallery-overlay h4 {
  font-size: 13px;
  font-weight: 600;
}

/* ============ BLOG ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s, transform 0.3s;
}
.blog-card:hover {
  border-color: var(--color-accent-glow);
  transform: translateY(-4px);
}

.blog-card .blog-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

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

.blog-card .blog-category {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.blog-card .blog-excerpt {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ============ CONTACT / FORM ============ */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-size: 16px;
}

.contact-list a:hover { color: var(--color-accent); }

.contact-list svg { width: 20px; height: 20px; flex-shrink: 0; }

.lead-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.form-submit:hover { transform: scale(0.98); }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 0 40px;
  background: var(--color-bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--color-text-muted);
  font-size: 14px;
}
.footer-col ul li a:hover { color: var(--color-text); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ============ CARBON WEAVE ANIMATION ============ */
.carbon-weave-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,153,255,0.3) 10px, rgba(0,153,255,0.3) 11px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.2) 10px, rgba(255,255,255,0.2) 11px);
  animation: weave-move 20s linear infinite;
}

@keyframes weave-move {
  from { background-position: 0 0; }
  to { background-position: 100px 100px; }
}

/* ============ RESPONSIVE ============ */

/* Article content typography */
article h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: #fff;
}
article h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #fff;
}
article h2:first-child, article h3:first-child { margin-top: 0; }
article p { margin-bottom: 16px; }
article ul, article ol { margin-bottom: 16px; padding-left: 24px; }
article li { margin-bottom: 8px; }
article a { color: #0099ff; text-decoration: none; }
article a:hover { text-decoration: underline; }
article img { border-radius: 12px; margin: 20px 0; }
article table { width: 100%; border-collapse: collapse; margin: 20px 0; }
article th, article td { border: 1px solid rgba(255,255,255,0.1); padding: 10px 14px; text-align: left; }
article th { background: rgba(0,153,255,0.08); font-weight: 600; }
article blockquote { border-left: 3px solid #0099ff; padding-left: 20px; margin: 20px 0; color: #c0c0c0; font-style: italic; }

@media (max-width: 1740px) {
  .header-actions .icon-btn { display: none; }
  .header-inner { gap: 16px; }
  .main-nav { gap: 22px; }
}

@media (max-width: 1280px) {
  .header-inner { padding: 14px 16px; }
  .main-nav { gap: 18px; }
  .nav-link { font-size: 14px; }
  .cta-pulse { padding: 10px 20px; font-size: 14px; }
}

@media (max-width: 968px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-actions .header-phone { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .cta-pulse { padding: 8px 14px; font-size: 13px; }
  .partner-logo { height: 14px; opacity: 0.7; }
  .logo-sub { display: none; }
  .brand-group { gap: 6px; }
  .logo-name { font-size: 18px; }
  .header-inner { flex-wrap: nowrap; }
  .contact-section { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero-title { letter-spacing: -1.5px; }
  .section-title { letter-spacing: -1.5px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  section { padding: 60px 0; }
  .hero { min-height: 90vh; }
}

@media (max-width: 480px) {
  .header-actions .cta-pulse { display: none; }
  .header-actions { gap: 0; }
}

/* Mobile menu open state */
.main-nav.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 20px;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
  z-index: 1001;
}

.main-nav.open .nav-link {
  padding: 12px 0;
  font-size: 17px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Burger animation when open */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* WordPress core */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px; width: 1px;
}

/* ============ LEAD MODAL ANIMATIONS ============ */

/* Pulsing glow on modal while user is filling form */
#leadModalInner.modal-pulse-active {
  animation: modal-pulse-glow 2s ease-in-out infinite;
  border-color: rgba(0, 153, 255, 0.4) !important;
}

@keyframes modal-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.2), 0 0 30px rgba(0, 153, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 153, 255, 0), 0 0 50px rgba(0, 153, 255, 0.35);
  }
}

/* Shake animation on modal when consent checkbox is clicked */
#leadModalInner.modal-shake {
  animation: modal-shake 0.5s ease-in-out;
}

@keyframes modal-shake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-6px) rotate(-1deg); }
  20% { transform: translateX(6px) rotate(1deg); }
  30% { transform: translateX(-5px) rotate(-0.5deg); }
  40% { transform: translateX(5px) rotate(0.5deg); }
  50% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  90% { transform: translateX(-1px); }
}

/* ============ CONSENT CHECKBOX STYLING ============ */

/* Custom checkbox - checked state */
.consent-checkbox-label input:checked ~ .consent-checkmark {
  background: #0099ff !important;
  border-color: #0099ff !important;
}

.consent-checkbox-label input:checked ~ .consent-checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Hover state */
.consent-checkbox-label:hover .consent-checkmark {
  border-color: rgba(0, 153, 255, 0.5) !important;
}

/* Focus state */
.consent-checkbox-label input:focus-visible ~ .consent-checkmark {
  outline: 2px solid #0099ff;
  outline-offset: 2px;
}

/* ============ PRIVACY POLICY MODAL ============ */

.privacy-modal-overlay {
  animation: privacy-fade-in 0.3s ease-out;
}

@keyframes privacy-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

#privacyModalInner {
  animation: privacy-slide-up 0.3s ease-out;
}

@keyframes privacy-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Privacy modal scrollbar */
#privacyModalInner::-webkit-scrollbar {
  width: 6px;
}

#privacyModalInner::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

#privacyModalInner::-webkit-scrollbar-thumb {
  background: rgba(0,153,255,0.3);
  border-radius: 3px;
}

#privacyModalInner::-webkit-scrollbar-thumb:hover {
  background: rgba(0,153,255,0.5);
}

/* ============ LEAD MODAL OVERLAY FADE ============ */

.lead-modal-overlay {
  animation: lead-fade-in 0.25s ease-out;
}

@keyframes lead-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Form input focus glow */
#leadForm input:focus,
#leadForm textarea:focus {
  border-color: rgba(0, 153, 255, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
}

/* Submit button hover */
#leadSubmitBtn:hover {
  background: #33adff !important;
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.4);
}

/* Mobile adjustments for modals */
@media (max-width: 640px) {
  #leadModalInner {
    padding: 28px 20px !important;
  }
  #privacyModalInner {
    padding: 28px 20px !important;
    margin: 20px 10px !important;
  }
}

/* ===== Hero urgent banner: pulsing border + blinking dot ===== */
@keyframes hero-urgent-glow {
  0%, 100% { border-color: rgba(0,153,255,0.25); box-shadow: 0 0 8px rgba(0,153,255,0.15); }
  50% { border-color: rgba(0,153,255,0.9); box-shadow: 0 0 26px rgba(0,153,255,0.55), 0 0 60px rgba(0,153,255,0.25); }
}
@keyframes hero-urgent-blink {
  0%, 60% { opacity: 1; box-shadow: 0 0 10px rgba(0,153,255,1); }
  61%, 100% { opacity: 0.2; box-shadow: none; }
}

/* ===== Hero urgent banner (top-right on desktop, inline on mobile) ===== */
.hero-urgent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid rgba(0,153,255,0.45);
  border-radius: 999px;
  background: rgba(0,153,255,0.08);
  cursor: pointer;
  margin-top: 24px;
  margin-bottom: 28px;
  animation: hero-urgent-glow 1.6s ease-in-out infinite;
}
.hero-urgent-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #0099ff;
  display: inline-block;
  animation: hero-urgent-blink 1.1s steps(1,end) infinite;
}
.hero-urgent-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .hero-urgent-text { font-size: 15px; }
}

/* ==== Modal on short screens: fits 390x440 and works with open keyboard ==== */
.lead-modal-overlay { align-items: center; }
#leadModalInner {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  #leadModalInner {
    max-height: calc(100dvh - 24px);
    max-width: calc(100vw - 24px);
    margin: 12px;
    padding: 24px 18px;
  }
  #leadModalInner h3 { font-size: 20px; }
}

/* ==== Inline CTA blocks in articles (2026-10-07) ==== */
.cta-inline {
  background: #f4f6f8;
  border: 1px solid #dfe5ea;
  border-left: 4px solid #10b981;
  border-radius: 16px;
  padding: 22px 24px;
  margin: 28px 0;
}
.cta-inline p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
}
.cta-inline .cta-inline-btn {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.cta-inline .cta-inline-btn:hover { background: #0ea271; }
@media (max-width: 640px) {
  .cta-inline { padding: 18px 16px; border-radius: 14px; }
  .cta-inline .cta-inline-btn { width: 100%; text-align: center; box-sizing: border-box; }
}

/* ==== Tables in articles: scroll inside, don't break mobile ==== */
article table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
article table tbody, article table tr { display: table; width: max-content; }

/* ==== Hero price caption (T14): plain caption next to the price pill ==== */
.hero-price-button { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.hero-price-caption { display: block; }
@media (max-width: 640px) {
  .hero-price-button { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Lead form usability: native checkbox, a large label, no motion during input. */
.pc-consent-row{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:6px 0;}
.pc-consent-row input[type="checkbox"]{position:static!important;opacity:1!important;width:22px!important;height:22px!important;min-width:22px;flex:0 0 22px;margin:3px 0 0;accent-color:#0099ff;cursor:pointer;}
.pc-consent-row label{display:block;color:#c0c0c0;font-size:13px;line-height:1.5;cursor:pointer;min-height:44px;}
.pc-consent-row a{color:#66c2ff;text-decoration:underline;}
.pc-consent-row input:focus-visible,.pc-lead-details summary:focus-visible{outline:2px solid #66c2ff;outline-offset:4px;}
.pc-lead-details summary{color:#b8cce0;font-size:14px;cursor:pointer;padding:10px 0;}
.pc-lead-details[open] summary{padding-bottom:12px;}
@media(max-width:700px){.pc-about-grid{grid-template-columns:1fr!important;gap:24px!important;margin-top:28px!important;}}
