/* ==========================================================================
   WordPress-only additions.

   style.css is a byte-preserved copy of the locked design and must stay that
   way, so everything WordPress needs that the static build never had lives
   here: the skip link, screen-reader utilities, form status messaging,
   pagination, and the core alignment/caption classes used inside post content.
   All of it uses the design's own tokens — no new colors.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Accessibility utilities
   -------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--accent-primary);
  color: #0A0A0B;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* A consistently visible focus ring for keyboard users across every control. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Brand logo image (used only when the owner uploads one in Hywiz)

   The selector is deliberately UNSCOPED so the same sizing applies in the
   header, the footer and on every WooCommerce template (G41 — a logo scoped to
   non-Woo layouts renders at intrinsic size on cart/checkout). The
   `.woocommerce` variants below are a specificity backstop against Woo's own
   `img` rules.
   -------------------------------------------------------------------------- */
.logo-img {
  display: block;
  height: 45px;
  width: auto;
  max-width: 200px;
}

.woocommerce .header .logo-img,
.woocommerce .footer .logo-img,
.woocommerce-page .header .logo-img,
.woocommerce-page .footer .logo-img {
  height: 45px;
  width: auto;
  max-width: 200px;
}

/* --------------------------------------------------------------------------
   Light & Dark logos

   Both files are rendered server-side; CSS picks the one that matches the
   active theme. `.light-mode` is set on <html> by the no-flash script before
   first paint, so the correct logo is painted on the very first frame and
   never swapped afterwards. These rules only ever apply when the owner has set
   TWO distinct logos — with one logo a single plain `.logo-img` is emitted.
   -------------------------------------------------------------------------- */
.logo-img--light {
  display: none;
}

.light-mode .logo-img--dark {
  display: none;
}

.light-mode .logo-img--light {
  display: block;
}

/* --------------------------------------------------------------------------
   Contact form status / validation messaging
   -------------------------------------------------------------------------- */
.form-status {
  margin-top: 1rem;
  min-height: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.form-status:empty {
  margin-top: 0;
  min-height: 0;
}

.form-status.is-error {
  color: #ff6b6b;
}

.light-mode .form-status.is-error {
  color: #c62828;
}

/* The spam honeypot: never shown, never announced, never tab-reachable. */
.vibemotion-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

button[disabled],
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Blog pagination
   -------------------------------------------------------------------------- */
.blogs-pagination {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

.blogs-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.blogs-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.blogs-pagination .page-numbers:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.blogs-pagination .page-numbers.current {
  background: #0A314A;
  border-color: #1C6F81;
  color: #ffffff;
}

.blogs-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

/* --------------------------------------------------------------------------
   Core WordPress content classes (post bodies, legal pages)
   -------------------------------------------------------------------------- */
.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide,
.alignfull {
  max-width: 100%;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.wp-element-caption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.blog-post-content img,
.blog-post-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.blog-post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.blog-post-content th,
.blog-post-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

/* Wide content inside an article must scroll itself, never the page. */
.blog-post-content > table,
.blog-post-content > pre {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Reduced motion — honour the visitor's preference site-wide
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   WOOCOMMERCE CHECKOUT HERO RESPONSIVE RHYTHM
   ========================================================================== */
.woo-checkout-hero {
  --woo-checkout-hero-pb: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 768px) {
  .woo-checkout-hero,
  body.woocommerce-checkout .hero,
  body.woocommerce-checkout .page-hero,
  body.woocommerce-checkout .vibemotion-woo-hero {
    --woo-checkout-hero-pb: 0.1rem !important;
    padding-bottom: 0.1rem !important;
  }
}

/* ==========================================================================
   STUDIO CHANNELS CARDS - BRAND PALETTE STYLING
   ========================================================================== */
.contact-info-item {
  background-color: var(--bg-tertiary, #0A314A);
  border: 1px solid rgba(175, 208, 200, 0.2);
  box-shadow: 0 4px 20px -2px rgba(4, 19, 28, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-info-item .contact-info-icon {
  background-color: rgba(19, 107, 81, 0.18);
  border: 1px solid rgba(175, 208, 200, 0.35);
  color: var(--brand-accent, #AFD0C8);
}

.light-mode .contact-info-item,
[data-theme="light"] .contact-info-item {
  background-color: var(--bg-secondary, #f4f1e6);
  border-color: rgba(10, 49, 74, 0.12);
  box-shadow: 0 4px 16px -2px rgba(10, 49, 74, 0.05), 0 1px 3px rgba(10, 49, 74, 0.03);
}

.light-mode .contact-info-item .contact-info-icon,
[data-theme="light"] .contact-info-item .contact-info-icon {
  background-color: var(--bg-tertiary, #eae7d8);
  border: 1px solid rgba(19, 107, 81, 0.2);
  color: var(--accent-primary, #136B51);
}

/* ==========================================================================
   GLOBAL RULES FOUNDATIONS ENFORCEMENT
   ========================================================================== */

/* Global Rule 36: Dual-Logo Display Rules */
.logo-img--dark,
.logo-img-dark {
  display: block !important;
}
.logo-img--light,
.logo-img-light {
  display: none !important;
}

.light-mode .logo-img--dark,
.light-mode .logo-img-dark,
[data-theme="light"] .logo-img--dark,
[data-theme="light"] .logo-img-dark {
  display: none !important;
}
.light-mode .logo-img--light,
.light-mode .logo-img-light,
[data-theme="light"] .logo-img--light,
[data-theme="light"] .logo-img-light {
  display: block !important;
}

/* Global Rule 31: Header Dropdown Opacity */
.nav-dropdown,
.mega-menu,
.mobile-nav-panel,
.dropdown-menu,
.sub-menu {
  opacity: 1 !important;
  background-color: var(--bg-tertiary, #0A314A) !important;
}

.light-mode .nav-dropdown,
.light-mode .mega-menu,
.light-mode .mobile-nav-panel,
.light-mode .dropdown-menu,
.light-mode .sub-menu,
[data-theme="light"] .nav-dropdown,
[data-theme="light"] .mega-menu,
[data-theme="light"] .mobile-nav-panel,
[data-theme="light"] .dropdown-menu,
[data-theme="light"] .sub-menu {
  opacity: 1 !important;
  background-color: var(--bg-secondary, #f4f1e6) !important;
}

/* Global Rule 43: Mobile Contact Form Ordering & Full Width */
@media (max-width: 768px) {
  .contact-section-wrapper .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 2.5rem !important;
  }
  .contact-section-wrapper .contact-form-wrap,
  .contact-section-wrapper .grid-2 > :has(.contact-form) {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .contact-section-wrapper .contact-info-list {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .contact-section-wrapper .contact-form {
    width: 100% !important;
    max-width: 100% !important;
    padding: clamp(1.25rem, 4vw, 1.75rem) !important;
    box-sizing: border-box !important;
  }
  .contact-section-wrapper .contact-cards-stack {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .contact-section-wrapper .contact-info-item {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    box-sizing: border-box !important;
  }
  .contact-section-wrapper .contact-info-item > div:last-child {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .contact-section-wrapper .form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
  }
  .contact-section-wrapper .form-group,
  .contact-section-wrapper .form-input,
  .contact-section-wrapper textarea.form-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Global Rule 26: SVG Icon Wrappers No Border */
.ic-wrap,
.contact-info-icon,
.cta-icon-wrapper,
.social-icon-btn,
.btn-icon-wrapper,
.stat-icon-wrapper {
  border: 0 !important;
  outline: none !important;
}

/* Section 7.1b & Global Rule 27/28: Address/Location text is non-interactive with no hover */
.contact-info-item:not(a),
.footer-contact-item:not(a) {
  cursor: default !important;
  text-decoration: none !important;
}

.footer-contact-item:not(a):hover,
.footer-contact-item:not(a):hover * {
  color: inherit !important;
  transform: none !important;
  text-decoration: none !important;
  cursor: default !important;
}

/* Section 7.1c: Mobile responsiveness for footer brand description */
@media (max-width: 768px) {
  .footer-brand-desc {
    max-width: 100% !important;
  }
}

/* Section 9: Stats Bar Font Awesome Icons */
.stat-icon-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 0.6rem !important;
  color: var(--primary) !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  overflow: visible !important;
}

.stat-icon-wrapper svg,
.stat-icon-svg {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
  fill: currentColor !important;
  border: 0 !important;
  outline: none !important;
  overflow: visible !important;
  shape-rendering: geometricPrecision !important;
}

[data-theme="light"] .stat-icon-wrapper {
  color: var(--primary) !important;
}

/* Site-wide Badge & Section Label Text Color: #AFD0C8 across both Dark and Light themes */
.badge,
.light-mode .badge,
[data-theme="light"] .badge,
.pricing-card .badge,
.light-mode .pricing-card .badge,
.section-label,
.light-mode .section-label,
[data-theme="light"] .section-label,
.eyebrow-badge,
.light-mode .eyebrow-badge,
[data-theme="light"] .eyebrow-badge,
.pulse-pill,
.light-mode .pulse-pill,
[data-theme="light"] .pulse-pill,
.pipeline-badge,
.light-mode .pipeline-badge,
[data-theme="light"] .pipeline-badge,
.vm-order-eyebrow,
.light-mode .vm-order-eyebrow,
[data-theme="light"] .vm-order-eyebrow {
  color: #AFD0C8 !important;
}

@media (max-width: 768px) {
  .logo-img {
  height: 42px;
}
.woocommerce .header .logo-img,
.woocommerce .footer .logo-img,
.woocommerce-page .header .logo-img,
.woocommerce-page .footer .logo-img {
  height: 42px;
}
}