/* ==============================================================================
Theme Name: Phlox Pro Child
Theme URI: http://phlox.pro/go/
Author: averta
Author URI: http://www.phlox.pro
Description: Phlox Pro Child Theme
Template: phlox-pro
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column,two-columns, three-columns, left-sidebar, right-sidebar
Text Domain: phlox-pro-child
================================================================================= */
/* === DESIGN PASS 2026-05-03 ===
   Subtle CSS-only polish for planext.co (phlox-pro-child).
   Single-block override — to roll back, delete from this marker
   to the matching closing marker at the bottom of style.css.
   No JS, no new fonts, no images, no DB changes.
   Brand tokens: navy #243B64, accent #F7616A, teal #1BB0CE.
   ============================================================ */

:root {
  --pn-navy: #243B64;
  --pn-navy-2: #1c3052;
  --pn-accent: #F7616A;
  --pn-accent-soft: #e0535c;
  --pn-teal: #1BB0CE;
  --pn-ink: #1f2a44;
  --pn-muted: #5b6478;
  --pn-line: rgba(36, 59, 100, 0.08);
  --pn-shadow-1: 0 1px 2px rgba(36, 59, 100, 0.04), 0 4px 12px rgba(36, 59, 100, 0.06);
  --pn-shadow-2: 0 2px 6px rgba(36, 59, 100, 0.06), 0 12px 28px rgba(36, 59, 100, 0.10);
  --pn-radius: 10px;
  --pn-ease: cubic-bezier(.2,.7,.2,1);
}

/* 1. Hero & section heading scale — clamp() so empty pages don't shout 64px on mobile */
.aux-modern-heading-primary,
.gkit-heading-title,
h1.elementor-heading-title,
h2.elementor-heading-title {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.005em !important;
}

/* Slightly tighter cap for body H2/H3 so multi-H1 service pages read calmer */
h3.elementor-heading-title,
.col-title,
.gkit-pricing-title {
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem) !important;
  line-height: 1.3 !important;
}

/* Eyebrow/kicker labels — keep small caps tidy */
.gkit-heading-subtitle,
.col-subtitle,
.timeline-content-subtitle {
  font-size: 0.78rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  color: var(--pn-accent) !important;
  font-weight: 600 !important;
}

/* 2. Improve hero subtitle contrast (was rgba(255,255,255,0.6) → fails AA) */
.aux-overlay-content p,
.elementor-section .elementor-widget-text-editor [style*="rgba(255, 255, 255, 0.6"],
.elementor-section.aux-dark p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* 3. Logo wordmark — cap so "DIGITAL MARKETING" doesn't dominate header */
.elementor-widget-aux_logo img,
.aux-site-logo img {
  max-height: 44px !important;
  width: auto !important;
  transition: opacity .2s var(--pn-ease);
}
.elementor-widget-aux_logo a:hover img { opacity: .85; }

/* 4. Menu items — mobile tap-target floor (44x44 minimum), tighter desktop spacing */
.aux-menu-item > a,
.aux-modern-menu .menu-item > a {
  padding: 14px 16px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  letter-spacing: 0.01em;
  transition: color .2s var(--pn-ease);
}
.aux-menu-item > a:focus-visible,
.aux-modern-menu .menu-item > a:focus-visible {
  outline: 2px solid var(--pn-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 5. Buttons — softer accent, real states, focus ring */
.gkit-btn,
.elementor-button,
.aux-button-icon,
a.btn,
button:not(.aux-search-button):not(.aux-mobile-toggle) {
  border-radius: var(--pn-radius) !important;
  transition: transform .18s var(--pn-ease),
              box-shadow .18s var(--pn-ease),
              background-color .18s var(--pn-ease) !important;
  will-change: transform;
}
.gkit-btn:hover,
.elementor-button:hover,
a.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--pn-shadow-2);
  filter: brightness(1.02);
}
.gkit-btn:active,
.elementor-button:active,
a.btn:active { transform: translateY(0); }

.gkit-btn:focus-visible,
.elementor-button:focus-visible,
a.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pn-accent) !important;
  outline-offset: 3px !important;
}

/* Soften the loud accent on hover/active */
.gkit-btn[style*="rgb(247, 97"],
.elementor-button[style*="rgb(247, 97"],
.gkit-btn.gkit-btn-primary,
.elementor-button-primary {
  background-color: var(--pn-accent) !important;
}
.gkit-btn[style*="rgb(247, 97"]:hover,
.elementor-button[style*="rgb(247, 97"]:hover,
.elementor-button-primary:hover {
  background-color: var(--pn-accent-soft) !important;
}

/* Mobile tap target floor for any link/button */
@media (max-width: 767px) {
  a.gkit-btn, a.elementor-button, button.elementor-button,
  .gkit-btn { min-height: 44px; padding: 12px 22px; }
  .aux-menu-item > a { padding: 16px; }
}

/* 6. Trim oversized vertical padding on empty Elementor sections so voids feel intentional */
@media (min-width: 768px) {
  .elementor-section.elementor-section-boxed > .elementor-container { padding-block: 2rem; }
  .elementor-element[data-element_type="section"]:empty,
  .elementor-element[data-element_type="container"] > .elementor-container:empty {
    min-height: 0 !important;
    padding: 0 !important;
  }
}
/* Tame the "wave" footer-leading sections that read as empty void */
.elementor-section.aux-dark + .elementor-section.aux-dark { margin-top: -1px; }

/* 7. Cards (portfolio, services, info-box, pricing) — subtle lift + crisper edges */
.gkit-info-box,
.gkit-pricing-table,
.gkit-portfolio-item,
.aux-portfolio-item,
.gkit-team-modal,
.elementor-widget-aux_button + .elementor-widget,
.elementor-widget-icon-box,
.elementor-widget-image-box {
  border-radius: var(--pn-radius);
  transition: transform .25s var(--pn-ease), box-shadow .25s var(--pn-ease);
  box-shadow: var(--pn-shadow-1);
}
.gkit-info-box:hover,
.gkit-pricing-table:hover,
.gkit-portfolio-item:hover,
.aux-portfolio-item:hover,
.elementor-widget-icon-box:hover,
.elementor-widget-image-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--pn-shadow-2);
}

/* 8. Pricing cards — clearer most-popular emphasis without changing markup */
.gkit-pricing-table[class*="featured"],
.gkit-pricing-table[class*="highlight"] {
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(247, 97, 106, 0.18), 0 18px 40px rgba(36, 59, 100, 0.14);
}

/* 9. Form inputs — consistent radius, visible focus */
input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="number"], textarea, select {
  border-radius: 8px !important;
  border: 1px solid var(--pn-line) !important;
  transition: border-color .15s var(--pn-ease), box-shadow .15s var(--pn-ease);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="url"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
  border-color: var(--pn-accent) !important;
  box-shadow: 0 0 0 3px rgba(247, 97, 106, 0.18) !important;
  outline: none !important;
}

/* 10. Image rendering on hero illustrations + lazy hint */
.elementor-widget-image img,
.elementor-widget-aux_image img {
  image-rendering: -webkit-optimize-contrast;
}
/* content-visibility on images skipped — risks layout jump on lazy-loaded
   illustrations; loading="lazy" should be set in markup instead. */

/* 11. Honest scrolling polish — no invisible scrollbars, smooth jumps */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 12. Body type — slightly improved measure & rhythm in long-text blocks */
.elementor-widget-text-editor p,
.entry-content p {
  line-height: 1.65;
  max-width: 70ch;
}
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* 13. Footer wave gap — close the visual seam where two dark sections meet */
section.aux-dark { background-clip: padding-box; }

/* 14. Repeating placeholder testimonials ("David Janson Designer" x3) cannot
   be hidden by valid CSS without an attribute hook — flag for content team. */

/* 15. Skip-to-content link for keyboard users (purely visual; <a> may not exist
   in markup, this just styles it if a11y plugin injects one) */
.skip-link, a.screen-reader-text:focus {
  position: absolute; top: 8px; left: 8px; z-index: 9999;
  padding: 10px 16px; background: var(--pn-navy); color: #fff;
  border-radius: 6px; text-decoration: none; font-weight: 600;
}

/* === END DESIGN PASS 2026-05-03 === */
