/*
Theme Name: A & Z Plumbing
Theme URI: https://azplumbingandgas.co.uk/
Description: A lightweight, high-performance custom theme designed for plumbing, heating, and gas engineering service sites.
Author: Custom Developer
Author URI: 
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: azplumbingandgas
Tags: custom-colors, two-columns, grid-layout, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. GLOBAL VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Branding Colors */
  --color-primary: #0099ff;
  /* Vibrant Electric Blue */
  --color-secondary: #ff6600;
  /* Accent Flame Orange */
  --color-dark: #111111;
  /* Deep Off-Black / Footer Background */
  --color-text-dark: #333333;
  /* Readable body text */
  --color-text-light: #ffffff;
  /* Primary White Contrast */
  --color-bg-light: #f4f4f4;
  /* Soft Light Grey for Content Alternation */

  /* Typography */
  --font-primary:
    "Poppins", "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Layout Configurations */
  --container-max-width: 1200px;
  --section-padding: 80px 20px;
  --border-radius-sm: 4px;
  --border-radius-circle: 50%;

  /* Animation Speeds */
  --transition-smooth: all 0.3s ease-in-out;
}

/* ==========================================================================
   2. CORE BASE RESET & TYPOGRAPHY
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bg-black {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-text-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 20px;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-text-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-text-light);
}

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

/* ==========================================================================
   3. WORDPRESS ESSENTIAL CLASSES
   ========================================================================== */
.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 20px;
}

.aligncenter {
  display: block;
  margin: 0 auto 20px auto;
  clear: both;
}

.wp-caption {
  max-width: 100%;
  text-align: center;
  background: var(--color-bg-light);
  padding: 5px;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

.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;
}




/* ==========================================================================
            NAV BAR STYLES
   ========================================================================== */






/* 1. TOP NAV BAR COMPLIANCE LAYER 
   Keeps your top-strip bar row in standard layout flow at the absolute top */
.u-section-row-1,
header .u-section-row:first-child {
  position: relative;
  z-index: 1000;
  /* Layered securely above the main glass navbar */
  background-color: #0b132b;
  /* Theme-consistent background dark color matching */
  width: 100%;
}

/* 2. MAIN GLASS BAR CONFIGURATION
   Pushed down natively below the top bar strip instead of clipping screen coordinate 0 */
.az-modern-glass-nav {
  position: absolute;
  top: 46px;
  /* Clean vertical height clearance offset for top nav strip */
  left: 0;
  width: 100%;
  z-index: 999;
  /* Floats above hero sliding wheels, but below top_nav */

  /* Premium frosted glass template properties */
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Master inner fluid layout wrapper container properties */
.az-header-inner-flex {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
}

/* Force explicit 30% container distribution on the logo backplate wrap */
.az-logo-column {
  flex: 0 0 30%;
  max-width: 30%;
  display: flex;
  justify-content: flex-start;
}

/* Force explicit 70% space limits on the structural navigation items */
.az-menu-column {
  flex: 0 0 70%;
  max-width: 70%;
}

/* Protective background shield layer for dark black/blue logo visibility */
.az-white-shield-logo {
  display: inline-block;
  max-width: 120px;
  background: rgba(255, 255, 255, 0.88);
  padding: 6px 16px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.az-white-shield-logo:hover {
  transform: translateY(-1px);
}

/* Centers the menu items within the 70% column allocation */
.az-centered-menu-links {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  /* Centers links within its 70% box layout space */
  align-items: center;
  gap: 10px;
}

/* Target internal list menu links output natively by WordPress core loop selectors */
.az-centered-menu-links .nav-item a,
.az-centered-menu-links li a {
  color: var(--color-text-light) !important;
  /* High contrast text readable over frosted tint */
  font-family: var(--font-primary), sans-serif;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: var(--transition-smooth);
}

.az-centered-menu-links .nav-item a:hover,
.az-centered-menu-links li.current-menu-item a {
  color: var(--color-text-light) !important;
  /* Accented Flame Orange matching tokens */
}

/* Burger Trigger Item Updates */
.az-custom-burger-btn {
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  background: rgba(255, 255, 255, 0.4);
  color: var(--color-dark) !important;
  padding: 8px 12px;
}





/* ==========================================================================
   MODERN UNIFIED DARK FOOTER & SCROLL MOTION HOVER MECHANICS
   ========================================================================== */





.az-master-footer {
  background-color: #0b132b !important;
  /* Perfect global dark theme continuity */
  padding-top: 80px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  /* Preventions for unwanted mobile overflow X axis clipping */
}

.az-footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 40px 0 60px 0;
  opacity: 1;
}

/* 1. UPPER CTA BANNER COMPONENT */
.az-footer-cta-banner h2 {
  color: var(--color-text-light) !important;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.az-footer-cta-banner p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 1.1rem;
  margin: 0;
}

/* GLOWING GLASS CTA BUTTON ANIMATION */
.az-glass-expert-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  padding: 16px 36px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.az-glass-expert-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.6s ease;
}

.az-glass-expert-btn:hover {
  background: var(--color-secondary) !important;
  /* Transitions instantly to Flame Orange */
  border-color: var(--color-secondary) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(243, 114, 44, 0.3);
}

.az-glass-expert-btn:hover::before {
  left: 100%;
}

/* 2. LOWER MAIN GRID AREA */
.az-footer-widget-title {
  color: var(--color-text-light) !important;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Brand Identity Shield */
.az-footer-logo-shield {
  max-width: 130px;
  background: rgba(255, 255, 255, 0.92);
  /* Protective white backplate keeping black/blue elements sharp */
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.az-brand-blurb {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 25px;
}

.az-footer-geo-location p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.az-orange-glow {
  color: var(--color-secondary);
}

.az-blue-glow {
  color: var(--color-primary);
}

/* LINK SLIDING ACCENT UNDERLINES */
.az-map-sliding-link {
  color: var(--color-secondary) !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  display: inline-block;
  position: relative;
}

.az-map-sliding-link::after,
.az-footer-sliding-menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.az-map-sliding-link:hover::after,
.az-footer-sliding-menu li a:hover::after {
  width: 100%;
}

/* Contact Nodes Stack Layout */
.az-contact-nodes-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.az-phone-row-node,
.az-email-row-node {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.az-phone-row-node i,
.az-email-row-node i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.az-phone-row-node:hover,
.az-email-row-node:hover {
  color: var(--color-secondary) !important;
}

.az-phone-row-node:hover i,
.az-email-row-node:hover i {
  transform: scale(1.15);
}

/* Quick Menu list line handlers */
.az-footer-sliding-menu li {
  margin-bottom: 12px;
}

.az-footer-sliding-menu li a {
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

.az-footer-sliding-menu li a:hover,
.az-footer-sliding-menu li.current-menu-item a {
  color: var(--color-text-light) !important;
  padding-left: 4px;
}

/* 3. BASELINE CREDITS BAR */
.az-footer-bottom-bar {
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 25px 0;
  margin-top: 60px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

.az-footer-socials {
  display: flex;
  gap: 12px;
}

.az-footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.az-footer-socials a:hover {
  background-color: var(--color-secondary);
  /* Social nodes switch to orange on focus */
  border-color: var(--color-secondary);
  color: white !important;
  transform: translateY(-3px);
}

/* ==========================================================================
   MULTI-DIMENSIONAL SCROLL ENGINE SPATIAL MATRICES
   ========================================================================== */
.az-scroll-trigger {
  opacity: 0;
  will-change: transform, opacity;
  /* Forced native GPU acceleration rendering */
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Vector 1: Upper CTA panel drops downward from above */
.az-animate-down {
  transform: translateY(-40px);
}

/* Vector 2: Brand column slides outward from the left window border */
.az-animate-left {
  transform: translateX(-50px);
}

/* Vector 3: Contact column lifts directly upward from bottom */
.az-animate-up {
  transform: translateY(45px);
}

/* Vector 4: Menu column slides outward from the right window border */
.az-animate-right {
  transform: translateX(50px);
}

/* RUNTIME RESET TRANSFORM ENGINES */
.az-scroll-trigger.az-motion-active {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
  /* Safely resets staging coordinates back to 0 */
}

/* Stagger delays across wide desktop displays so the panels roll out sequentially */
@media (min-width: 992px) {
  .az-footer-main-grid .az-animate-left.az-motion-active {
    transition-delay: 0.1s !important;
  }

  .az-footer-main-grid .az-animate-up.az-motion-active {
    transition-delay: 0.25s !important;
  }

  .az-footer-main-grid .az-animate-right.az-motion-active {
    transition-delay: 0.4s !important;
  }
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 991px) {
  .az-master-footer {
    padding-top: 60px;
    text-align: center;
  }

  .az-footer-cta-banner h2 {
    font-size: 1.95rem;
  }

  .az-footer-logo-shield {
    margin: 0 auto 20px auto;
  }

  .az-glass-expert-btn {
    width: 100%;
    justify-content: center;
  }

  .az-contact-nodes-stack {
    align-items: center;
  }

  .az-footer-sliding-menu {
    display: inline-block;
    text-align: center;
  }

  /* Soften transform coordinates slightly on portrait mobile devices to protect scaling */
  .az-animate-left {
    transform: translateX(-25px);
  }

  .az-animate-right {
    transform: translateX(25px);
  }
}







/* ==========================================================================
   4. LAYOUT BUILDERS & WRAPPERS
   ========================================================================== */
.site-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.site-section {
  padding: var(--section-padding);
  position: relative;
}

/* ==========================================================================
   5. SPECIFIC STRUCTURAL SECTIONS (FROM WIREFRAMES)
   ========================================================================== */
.u-social-icons .u-social-url {
  padding: 2px 4px !important;
  display: inline-block;
  height: 24px !important;
}

/* Hero Banner Split Style */
.hero-banner {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 100px 0 140px 0;
  position: relative;
  clip-path: polygon(0 0,
      100% 0,
      100% 88%,
      0% 100%);
  /* Simulates asymmetric clean angle break */
}

.hero-banner .site-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  color: var(--color-text-light);
  font-size: 3.5rem;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.95;
}

/* Highlight Branding word spans inside paragraphs */
.brand-highlight-blue {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.brand-highlight-orange {
  color: var(--color-secondary);
  font-weight: var(--font-weight-bold);
}

/* Grid Features Component (4 Column Base) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: -40px;
  /* Pulls slightly over hero angle boundary safely if desired */
  z-index: 10;
  position: relative;
}

.feature-card {
  background: var(--color-text-light);
  padding: 25px;
  text-align: left;
  transition: var(--transition-smooth);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

/* Dynamic Accent Frameworks for feature icons based on markup colors */
.icon-cyan {
  background-color: #00ccd6;
}

.icon-yellow {
  background-color: #d6e210;
}

.icon-black {
  background-color: #000000;
}

.icon-red {
  background-color: #eb5757;
}

.feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.7;
}

/* "Learn More" Read Direction Links */
.action-link {
  display: inline-flex;
  align-items: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  margin-top: 10px;
}

.action-link::after {
  content: " →";
  margin-left: 6px;
  transition: var(--transition-smooth);
}

.action-link:hover {
  color: var(--color-primary);
}

.action-link:hover::after {
  transform: translateX(4px);
}

/* Logo Showcase Ticker bar */
.branding-strip {
  background: #fdfdfd;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  padding: 30px 0;
  text-align: center;
}

.logo-flex-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Footer & Legal Strip Elements */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-text-light);
  padding: 40px 0;
  font-size: 0.85rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid #222222;
  padding-top: 20px;
}

.footer-links a {
  color: #999999;
  margin-right: 15px;
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (MOBILE FIRST DEGRADATION)
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero-banner .site-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    flex-direction: column;
    text-align: center;
  }
}