/*!
 * Theme Name: Tommy's Pressure Washing
 * Theme URI: https://tommyspressurewashing.com
 * Description: Child theme for Tommy's Pressure Washing LLC - Firefighter-owned, one-stop property services in Hampton Roads. Modern, trustworthy, mobile-first design built on Kadence. WooCommerce + professional booking ready.
 * Author: Tommy's Pressure Washing LLC
 * Author URI: https://tommyspressurewashing.com
 * 
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: tommys-pressure-washing
 */



/* ============================================
   TOMMY'S PRESSURE WASHING - CUSTOM STYLES
   Modern, Trustworthy, Mobile-First
   Brand: Navy + Clean Blue (matching logo)
   ============================================ */

:root {
  --tpw-navy: #0B2D5E;
  --tpw-blue: #0284C8;
  --tpw-sky: #0EA5E9;
  --tpw-slate: #1E2937;
  --tpw-gray: #64748B;
  --tpw-light: #F8FAFC;
  --tpw-white: #FFFFFF;
  --tpw-success: #059669;
  --tpw-accent: #F97316; /* Subtle firefighter orange accent for CTAs */
}

/* Typography & Trust */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--tpw-slate);
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  color: var(--tpw-navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }

/* Global padding to prevent content from touching page sides on all pages */
.tpw-main, main, .entry-content, .content-area, .site-main, .tpw-section, .tpw-container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* ============================================
   MODERN PROFESSIONAL HEADER
   Two clean rows:
   - Top: Logo + "Tommy’s Pressure Washing LLC" + Phone + Book button
   - Bottom: Horizontal nav bar (navy, professional)
   Mobile: Hamburger toggle
   ============================================ */

/* Hide parent theme default header/footer elements - we provide our own custom ones for the desired professional two-row header and clean footer */
.site-header,
#masthead,
.header-desktop,
.header-mobile,
.site-footer-row-container,
.site-bottom-footer-wrap,
.footer-widget-area {
  display: none !important;
}

/* Main custom header - modern and professional */
.tpw-header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(11, 45, 94, 0.08);
  position: sticky;
  top: 0;
  z-index: 999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Top row - clean and trustworthy */
.tpw-header-top {
  border-bottom: 1px solid #e5e7eb;
}

.tpw-header-top .tpw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tpw-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--tpw-navy);
}

.tpw-brand img,
.tpw-brand .custom-logo {
  max-height: 58px;
  width: auto;
  display: block;
}

.tpw-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tpw-business-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--tpw-navy);
  letter-spacing: -0.02em;
}

.tpw-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tpw-blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Header actions */
.tpw-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tpw-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--tpw-navy);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.tpw-phone:hover {
  background: #f1f5f9;
}

.tpw-btn-header {
  background: var(--tpw-navy);
  color: white;
  padding: 9px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tpw-btn-header:hover {
  background: var(--tpw-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 200, 0.3);
}

/* Bottom nav bar - clean horizontal professional bar */
.tpw-header-nav {
  background: var(--tpw-navy);
}

.tpw-header-nav .tpw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tpw-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.tpw-nav-menu > li > a {
  display: block;
  padding: 11px 18px;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  font-size: 0.89rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tpw-nav-menu > li > a:hover,
.tpw-nav-menu > li.current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,0.13);
}

/* Mobile hamburger */
.tpw-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 10;
}

.tpw-hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tpw-navy);
  position: relative;
}

.tpw-hamburger::before,
.tpw-hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--tpw-navy);
  left: 0;
}

.tpw-hamburger::before { top: -7px; }
.tpw-hamburger::after { top: 7px; }

@media (max-width: 860px) {
  .tpw-header-actions .tpw-phone .tpw-phone-number {
    display: none;
  }

  .tpw-mobile-toggle {
    display: block;
  }

  .tpw-header-nav {
    display: none;
  }

  .tpw-header-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tpw-navy);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }

  .tpw-nav-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  .tpw-nav-menu > li > a {
    padding: 12px 24px;
    border-radius: 0;
  }
}

/* ============================================
   MODERN PROFESSIONAL SITE-WIDE STYLES
   Clean, trustworthy, high-end local service feel
   ============================================ */

.tpw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero - more impactful with professional image */
.tpw-hero {
  background: linear-gradient(rgba(11, 45, 94, 0.72), rgba(11, 45, 94, 0.68)), url('/wp-content/uploads/2026/06/hero-professional.jpg') center/cover no-repeat;
  color: white;
  padding: 3.2rem 0 2.8rem;
  position: relative;
}

.tpw-hero-content {
  max-width: 720px;
  padding: 0 24px;
}

.tpw-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 0.9rem;
  color: white;
}

.tpw-hero p {
  font-size: 1.05rem;
  max-width: 560px;
  opacity: 0.95;
  margin-bottom: 1.4rem;
}

/* Professional buttons */
.tpw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tpw-blue);
  color: white;
  font-weight: 700;
  padding: 0.85rem 1.7rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(2, 132, 200, 0.25);
}

.tpw-btn:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(2, 132, 200, 0.35);
}

.tpw-btn.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.tpw-btn.secondary:hover {
  background: white;
  color: var(--tpw-navy);
}

/* Sections - structured and professional */
.tpw-section {
  padding: 3rem 0;
}

.tpw-section.alt {
  background: #f8fafc;
}

.tpw-section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.tpw-section-header h2 {
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
}

/* Service cards - modern and clean */
.tpw-service-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tpw-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px -8px rgb(0 0 0 / 0.1);
  border-color: #cbd5e1;
}

.tpw-service-card .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--tpw-blue), #0ea5e9);
  color: white;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.tpw-service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.tpw-service-card p {
  color: #64748b;
  font-size: 0.9rem;
  flex-grow: 1;
  line-height: 1.5;
}

.tpw-service-card .price {
  font-weight: 700;
  color: var(--tpw-navy);
  margin: 0.6rem 0 0.8rem;
  font-size: 1rem;
}

.tpw-service-card .btn {
  margin-top: auto;
  background: var(--tpw-navy);
  color: white;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  align-self: flex-start;
}

/* Testimonials - clean and credible */
.tpw-testimonial {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.tpw-testimonial .quote {
  font-size: 0.97rem;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 1rem;
}

.tpw-testimonial .author {
  font-weight: 700;
  color: var(--tpw-navy);
  font-size: 0.9rem;
}

.tpw-testimonial .location {
  color: #64748b;
  font-size: 0.78rem;
}

/* Gallery improvements */
.tpw-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.tpw-before-after {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px -6px rgb(0 0 0 / 0.12);
  background: #111;
}

/* CTA bars */
.tpw-cta-bar {
  background: var(--tpw-navy);
  color: white;
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-radius: 14px;
}

.tpw-cta-bar h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* General modern polish */
body {
  font-feature-settings: "kern" "liga" "tnum";
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--tpw-navy);
}

.entry-content {
  font-size: 1.01rem;
  line-height: 1.7;
}

.tpw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Make sure content has breathing room and structure */
.entry-content > * {
  margin-bottom: 1.25rem;
}

.entry-content .tpw-section {
  margin-bottom: 2.5rem;
}

/* Responsive refinements */
@media (max-width: 768px) {
  .tpw-hero {
    padding: 2.4rem 0 2rem;
  }
  .tpw-header-top .tpw-container {
    padding: 12px 16px;
  }
}

/* Remove old Kadence restructuring below this point if present */
.site-header,
#masthead {
  display: block !important; /* Ensure visible */
  box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.1);
  background: #fff;
}

/* Make the inner header stack as two rows */
.site-header .header-desktop,
.site-header .header-desktop-inner,
#masthead > div {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Top row: Logo area + actions */
.site-header .site-branding,
.site-header .header-desktop-top,
.site-header .custom-logo-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  gap: 0.75rem;
}

/* Business name next to logo */
.site-branding .tpw-business-name-inline {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tpw-navy);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Right side of top row: phone + book button */
.site-header .header-desktop-top .header-actions,
.site-header .header-desktop .header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Style the primary navigation as the clean bar below */
.site-header .main-navigation,
.site-header .nav-menu,
.site-header nav {
  background: var(--tpw-navy);
  width: 100%;
  order: 2; /* Push nav to bottom */
}

.site-header .main-navigation ul,
.site-header .nav-menu,
.site-header nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-start;
  align-items: center;
}

.site-header .main-navigation li,
.site-header nav li {
  margin: 0;
}

.site-header .main-navigation a,
.site-header nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 5px;
  white-space: nowrap;
}

.site-header .main-navigation a:hover,
.site-header .main-navigation .current-menu-item a,
.site-header nav a:hover,
.site-header nav .current-menu-item a {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* Phone CTA in header (if Kadence shows it or we style links) */
.site-header .tpw-phone-cta {
  color: var(--tpw-navy);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Mobile adjustments for header */
@media (max-width: 640px) {
  .site-header .site-branding {
    padding: 0.4rem 0.75rem;
  }
  .site-branding .tpw-business-name-inline {
    font-size: 0.95rem;
  }
  .site-header .main-navigation a,
  .site-header nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* === Fix for scattered content: Consistent containers & spacing === */
.entry-content,
.entry-content .wp-block-group,
.tpw-section {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.entry-content > .tpw-hero {
  max-width: 100% !important; /* Hero should be full-bleed */
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Make sure sections have breathing room and clear visual breaks */
.tpw-section,
.entry-content section,
.entry-content > div:not(.tpw-hero) {
  margin-bottom: 2rem;
}

.tpw-section.alt {
  background: var(--tpw-light);
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem);
}

/* Better typography hierarchy and spacing inside content */
.entry-content h2,
.entry-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Improve grid consistency */
.tpw-service-card,
.tpw-testimonial,
.tpw-gallery > * {
  box-sizing: border-box;
}

/* Restore proper flow after header */
body {
  padding-top: 0;
}

/* Hide Kadence's default header completely (we use our custom one) */
.site-header,
.kadence-header,
.kadence-header-row,
.header-desktop,
.header-mobile,
#masthead,
.kadence-header-desktop,
.kadence-header-mobile {
  display: none !important;
}

/* Give the page a little breathing room after our custom header */
.tpw-custom-header-active #primary,
.tpw-custom-header-active .entry-content,
.tpw-custom-header-active .site-main {
  /* Content (including home hero) starts right after our nav bar */
}

/* ============================================
   HERO - Reduced top padding (tighter & more professional)
   ============================================ */

.tpw-hero {
  background: linear-gradient(135deg, var(--tpw-navy) 0%, #1a3a6e 100%);
  color: var(--tpw-white);
  padding: 2.25rem 1rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Desktop: Make Home hero even tighter and more professional */
@media (min-width: 768px) {
  .home .tpw-hero,
  body.home .tpw-hero {
    padding-top: 1.1rem;
    padding-bottom: 2.1rem;
  }

  .tpw-hero-content {
    padding-top: 0.25rem;
  }
}

/* Remove any extra top spacing that Kadence or block content may add right after our header */
.home .tpw-hero,
body.home .entry-content > *:first-child,
.entry-content .tpw-hero:first-child {
  margin-top: 0 !important;
}

/* Ensure no leftover Kadence header padding/margin affects our custom header */
body {
  padding-top: 0 !important;
}

.tpw-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Ccircle cx=%2250%22 cy=%2250%22 r=%223%22 fill=%22%23ffffff%22 fill-opacity=%220.06%22/%3E%3C/svg%3E') repeat;
  pointer-events: none;
}

.tpw-hero-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tpw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tpw-badge-firefighter {
  background: #DC2626;
  color: white;
}

.tpw-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tpw-white);
  color: var(--tpw-navy);
  font-weight: 700;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tpw-phone-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.tpw-phone-cta svg {
  width: 20px;
  height: 20px;
}

/* Trust Bar */
.tpw-trust-bar {
  background: var(--tpw-light);
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.tpw-trust-bar .trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tpw-slate);
}

.tpw-trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tpw-trust-bar .trust-item::before {
  content: "✓";
  color: var(--tpw-success);
  font-weight: 900;
}

/* Service Cards - One Stop Shop */
.tpw-service-card {
  background: var(--tpw-white);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tpw-service-card:hover {
  border-color: var(--tpw-blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.tpw-service-card .icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--tpw-blue), var(--tpw-sky));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tpw-service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.tpw-service-card p {
  color: var(--tpw-gray);
  flex-grow: 1;
  font-size: 0.95rem;
}

.tpw-service-card .price {
  font-weight: 700;
  color: var(--tpw-navy);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.tpw-service-card .btn {
  margin-top: 1rem;
  display: inline-block;
  background: var(--tpw-navy);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.tpw-service-card .btn:hover {
  background: var(--tpw-blue);
}

/* Section Styling */
.tpw-section {
  padding: 4rem 1rem;
}

.tpw-section.alt {
  background: var(--tpw-light);
}

.tpw-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.tpw-section-header h2 {
  margin-bottom: 0.75rem;
}

.tpw-section-header p {
  color: var(--tpw-gray);
  font-size: 1.1rem;
}

/* Testimonials */
.tpw-testimonial {
  background: var(--tpw-white);
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  position: relative;
}

.tpw-testimonial::before {
  content: '"';
  font-size: 5rem;
  line-height: 1;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  opacity: 0.08;
  font-family: Georgia, serif;
  color: var(--tpw-navy);
}

.tpw-testimonial .quote {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--tpw-slate);
}

.tpw-testimonial .author {
  font-weight: 700;
  color: var(--tpw-navy);
}

.tpw-testimonial .location {
  color: var(--tpw-gray);
  font-size: 0.875rem;
}

/* Before/After Gallery */
.tpw-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tpw-before-after {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  background: #111;
}

.tpw-before-after img {
  width: 100%;
  display: block;
  height: auto;
}

.tpw-before-after .label {
  position: absolute;
  top: 12px;
  padding: 0.25rem 0.75rem;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.tpw-before-after .label.before { left: 12px; }
.tpw-before-after .label.after { right: 12px; background: var(--tpw-success); }

/* Simple before/after comparison slider */
.tpw-compare {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  max-width: 520px;
  margin: 0 auto;
}

.tpw-compare .after {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  overflow: hidden;
  border-right: 3px solid var(--tpw-blue);
}

.tpw-compare .after img {
  height: 100%;
  object-fit: cover;
  max-width: none;
  width: auto;
}

.tpw-compare .slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: var(--tpw-white);
  border: 3px solid var(--tpw-blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.tpw-compare .slider-handle::after {
  content: '⟷';
  color: var(--tpw-blue);
  font-size: 1.1rem;
  font-weight: 900;
}

/* Map / Service Areas */
.tpw-map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: var(--tpw-white);
}

.tpw-areas-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tpw-areas-list li {
  background: var(--tpw-light);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CTAs */
.tpw-cta-bar {
  background: var(--tpw-navy);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.tpw-cta-bar h3 {
  color: white;
  margin-bottom: 0.75rem;
}

.tpw-cta-bar .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tpw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--tpw-blue);
  color: white;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.tpw-btn:hover {
  background: #0369A1;
  transform: translateY(-1px);
}

.tpw-btn.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.tpw-btn.secondary:hover {
  background: white;
  color: var(--tpw-navy);
}

.tpw-btn.accent {
  background: var(--tpw-accent);
}

.tpw-btn.accent:hover {
  background: #EA580C;
}

/* Floating Call Button (mobile-first) */
.tpw-float-call {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  background: var(--tpw-success);
  color: white;
  padding: 0.85rem 1.1rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.tpw-float-call:hover {
  background: #047857;
}

@media (min-width: 768px) {
  .tpw-float-call .label { display: inline; }
}

/* WooCommerce tweaks for clean booking */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
}

.woocommerce a.button,
.woocommerce button.button {
  border-radius: 9999px;
  font-weight: 600;
}

/* Booking Page Styles */
.tpw-booking-form {
  background: var(--tpw-white);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.tpw-booking-form .form-row {
  margin-bottom: 1.25rem;
}

.tpw-booking-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--tpw-navy);
}

.tpw-booking-form input,
.tpw-booking-form select,
.tpw-booking-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
}

.tpw-booking-form input:focus,
.tpw-booking-form select:focus,
.tpw-booking-form textarea:focus {
  outline: none;
  border-color: var(--tpw-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 200, 0.1);
}

.tpw-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin: 1rem 0;
}

.tpw-calendar .day {
  padding: 0.65rem 0.35rem;
  text-align: center;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.1s;
}

.tpw-calendar .day.header {
  font-weight: 700;
  background: var(--tpw-light);
  cursor: default;
  border: none;
}

.tpw-calendar .day.available:hover {
  background: #dbeafe;
  border-color: var(--tpw-blue);
}

.tpw-calendar .day.selected {
  background: var(--tpw-blue);
  color: white;
  border-color: var(--tpw-blue);
  font-weight: 700;
}

.tpw-calendar .day.booked {
  background: #fee2e2;
  color: #991b1b;
  cursor: not-allowed;
  text-decoration: line-through;
}

.tpw-calendar .day.past {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Footer polish - clean professional override */
.tpw-footer, .site-footer {
  background: #0B2D5E !important;
  color: #cbd5e1 !important;
  font-size: 0.9rem;
}

.tpw-footer a, .site-footer a {
  color: #e0f0ff;
  text-decoration: none;
}

.tpw-footer a:hover, .site-footer a:hover {
  text-decoration: underline;
}

/* Hide any remaining Kadence footer widgets, rows, or credits that might leak */
.site-footer-row-container,
.site-bottom-footer-wrap,
.footer-widget-area,
.site-footer .footer-html p a[href*="kadencewp.com"] {
  display: none !important;
}

/* Mobile-first refinements */
@media (max-width: 640px) {
  .tpw-section {
    padding: 2.5rem 1rem;
  }
  .tpw-booking-form {
    padding: 1.25rem;
  }
}

/* Professional Blog Styling - Archive, Single, Hub */
.blog .tpw-main, .archive .tpw-main, .single-post .tpw-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.archive article, .single-post article {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
}

.archive article:hover, .single-post article:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.archive article h2 a, .single-post h1 {
  color: #0B2D5E;
  text-decoration: none;
}

.archive article h2 a:hover {
  color: #0284C8;
}

.single-post .entry-content {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #334155;
}

.single-post .entry-content h3 {
  color: #0B2D5E;
  margin-top: 1.8rem;
}

.single-post .entry-content img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1rem 0;
}

.blog-page .tpw-hero {
  margin-bottom: 2rem;
}

.entry-content a {
  color: #0284C8;
  text-decoration: underline;
}

.entry-content a:hover {
  color: #0B2D5E;
}

/* Blog listing cards */
.archive article .entry-summary, .home article .entry-summary {
  color: #475569;
}

/* Accessibility & focus */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--tpw-blue);
  outline-offset: 2px;
}

/* Print friendly for quotes etc */
@media print {
  .tpw-float-call, .tpw-cta-bar { display: none !important; }
  /* Do not hide real .site-header in print — structure is important */
}