/*
Theme Name: Pipe & Valve Supply Co
Theme URI: https://pipevalvesupply.com
Author: Pipe & Valve Supply Co
Author URI: https://pipevalvesupply.com
Description: Custom theme for Pipe & Valve Supply Co - a wholesale supplier of water and sewer commodities.
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: pipe-valve-supply
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
WooCommerce tested up to: 8.0
*/

/* ===================================
   CSS Variables & Theme Colors
   =================================== */
:root {
    --primary-blue: #0088cc;
    --primary-blue-dark: #006699;
    --primary-blue-light: #00aaee;
    --secondary-blue: #00a3e0;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --text-light: #888888;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --border-gray: #e5e5e5;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
}

/* ===================================
   Reset & Base Styles
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

/* ===================================
   Header Styles
   =================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2200;
    background: transparent;
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .site-logo,
.site-header.scrolled .site-logo a {
    color: #0088cc;
}

.site-header.scrolled .nav-menu li a {
    color: var(--text-dark);
}

.site-header.scrolled .nav-menu li a.nav-button {
    background: #0088cc;
    color: var(--white);
}

.site-header.scrolled .header-social a {
    color: #0088cc;
}

.site-header.scrolled .mobile-menu-toggle span {
    background: #0088cc;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    max-width: 100%;
}

.site-logo {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    color: #0088cc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-logo a {
    color: #0088cc;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu li a {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    opacity: 0.85;
}

.nav-menu li a.nav-button {
    background: transparent!important;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 0px;
    font-weight: 700;
    border: solid 1px;
}

.nav-menu li a.nav-button:hover {
    background: rgba(255, 255, 255, 0.95);
    opacity: 1;
}

/* Social Icons in Header */
.header-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-social a {
    color: var(--white);
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.header-social a:hover {
    opacity: 0.75;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0088cc;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* ===================================
   Hero Section - Side by Side Layout
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--white);
    overflow: hidden;
    z-index: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
}

/* Hero Left - White Content Side */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 50px 60px 50px;
    background: var(--white);
    position: relative;
}

.hero-content {
    max-width: 480px;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 38px;
    font-weight: 800;
    color: #0088cc;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-title span {
    display: block;
}

.hero-description {
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 380px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0088cc;
    color: var(--white);
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    border: 2px solid #0088cc;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: #006699;
    border-color: #006699;
}

.hero-cta svg {
    width: 14px;
    height: 14px;
}

.hero-contact-info {
    position: absolute;
    bottom: 25px;
    left: 50px;
    color: var(--text-dark);
    font-size: 11px;
    font-family: var(--font-secondary);
}

.hero-contact-info p {
    margin: 0;
}

.hero-contact-info strong {
    font-weight: 600;
}

.hero-contact-info a {
    color: #0088cc;
}

/* Hero Right - Blue Background Side */
.hero-right {
    position: relative;
    background: #0088cc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-company-name {
    text-align: right;
    padding-right: 60px;
}

.hero-company-name h2 {
    font-family: var(--font-primary);
    font-size: 80px;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -1px;
}

.hero-company-name h2 span {
    display: block;
}

/* Hero Center Image - Positioned between left and right sections */
.hero-center-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.hero-center-image img {
    max-width: 600px;
    width: 50vw;
    height: auto;
    object-fit: contain;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 0;
    background: var(--white);
    margin-top: 80px;
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) minmax(400px, 1fr);
    gap: 0;
    align-items: stretch;
    margin-bottom: 0;
}

.about-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.about-image {
    position: relative;
    min-height: 600px;
}

.about-content {
    padding: 120px 80px 80px 80px;
}

.section-label {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
}

.about-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-text-small {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Experience Badge - OVER 30 Layout */
.experience-badge {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 25px;
}

.experience-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.experience-number .over-text {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 4px;
    margin-bottom: 0;
}

.experience-number .number {
    font-family: var(--font-primary);
    font-size: 80px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 0.9;
}

.experience-number .label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.experience-text {
    flex: 1;
    border-left: 1px solid var(--border-gray);
    padding-left: 25px;
}

.experience-text p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.experience-text ul {
    font-size: 12px;
    color: var(--text-gray);
}

.experience-text ul li {
    padding-left: 15px;
    position: relative;
    margin-bottom: 6px;
    line-height: 1.5;
    color: var(--primary-blue);
}

.experience-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

.about-location-bar {
    margin-top: 0;
    background: #0077c8;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 80px;
    flex-wrap: wrap;
}

.location-label {
    font-family: var(--font-primary);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.location-address,
.location-contact p {
    font-size: 13px;
    margin: 0;
    color: white;
    line-height: 1.6;
}

.location-contact a {
    color: white;
    font-weight: 600;
}

/* ===================================
   Products Section
   =================================== */
.products-section {
    padding: 80px 0;
    background: var(--white);
}

.products-header {
    text-align: center;
    margin-bottom: 50px;
}

.products-header .section-label {
    color: var(--text-light);
}

.products-header .section-title {
    margin-bottom: 15px;
}

.products-header p {
    font-size: 14px;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* Product Category */
.product-category {
    margin-bottom: 50px;
}

.category-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.category-description {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Product Card */
.product-card {
    position: relative;
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-label {
    display: block;
    background: var(--primary-blue);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 12px;
    text-align: left;
    transition: background 0.3s ease;
}

.product-card:hover .product-label {
    background: var(--primary-blue-dark);
}

/* ===================================
   Why Work With Us Section
   =================================== */
.why-us-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.why-us-header {
    text-align: center;
    margin-bottom: 40px;
}

.why-us-header .section-label {
    color: var(--text-light);
    margin-bottom: 5px;
}

.why-us-header .section-title {
    margin-bottom: 10px;
}

.why-us-header p {
    font-size: 13px;
    color: var(--text-gray);
}

/* Two Column Grid Layout */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.why-us-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.why-us-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.why-us-item:hover {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.why-us-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.why-us-content h4 {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-title-large {
    font-family: var(--font-primary);
    font-size: 80px;
    font-weight: 900;
    color: var(--primary-blue);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 50px;
    letter-spacing: -2px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    padding-right: 20px;
}

.contact-company {
    margin-bottom: 25px;
}

.contact-company h3 {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-company p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.7;
}

.contact-person {
    margin-bottom: 25px;
}

.contact-person h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-person p {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 3px;
}

.contact-person a {
    color: var(--primary-blue);
}

.contact-person a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-secondary);
    font-size: 13px;
    color: var(--text-dark);
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--primary-blue-dark);
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border-gray);
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.footer-column p,
.footer-column a {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.7;
}

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
    text-align: center;
}

.footer-bottom p {
    font-size: 11px;
    color: var(--text-light);
}

/* ===================================
   Responsive Styles
   =================================== */

   @media (max-width: 1500px) {

    .about-image {
        position: relative;
        min-height: 500px;
    }

    .hero-company-name h2, .contact-title-large{
        font-size: 65px;
    }

    
}

@media (max-width: 1200px) {

  
    .hero-company-name h2 {
        font-size: 60px;
    }
    
    .contact-title-large {
        font-size: 70px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
    }
    
    .hero-left {
        padding: 120px 40px 80px;
        min-height: 100vh;
    }
    
    .hero-right {
        display: flex;
        position: relative;
        min-height: 260px;
        margin-top: 30px;
        padding: 20px;
        background: #005fa3;
    }

    .hero-company-name {
        position: static;
        text-align: center;
        padding-right: 0;
    }
    
    .hero-center-image {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-contact-info {
        color: var(--text-dark);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 80px 40px 60px;
    }
    .about-content {
        padding: 60px 20px 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-title-large {
        font-size: 50px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .about-section{
        margin-top: 0px;
    }

    .about-image {
        position: relative;
        min-height: 400px;
    }

    .hero-section{
        min-height: 600px; 
    }

    .hero-inner{
        min-height: 600px; 
    }

    .hero-left {
        padding: 100px 20px 60px;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .contact-title-large {
        font-size: 36px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .experience-text {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-gray);
        padding-top: 20px;
    }
    
    .experience-number {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-left {
        padding: 100px 20px 50px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-title-large {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-contact-info {
        left: 20px;
        bottom: 20px;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-blue);
    z-index: 2300;
    padding: 80px 20px 40px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav ul li a {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--white);
    cursor: pointer;
}
