/* Waterways Irrigation - Main Stylesheet */
/* Base styles and CSS variables */

:root {
    --primary-blue: #1e5f8c;
    --secondary-blue: #2986cc;
    --light-blue: #e8f4f8;
    --accent-green: #4a9b5e;
    --dark-green: #2d5f3a;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow-light: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Logo Styles */
.header-logo {
    height: 227px;
    width: 227px;
    transition: var(--transition);
    object-fit: contain;
}

.header-logo:hover {
    transform: scale(1.02);
}

.footer-logo {
    height: 227px;
    width: 227px;
    margin-bottom: 15px;
    transition: var(--transition);
    object-fit: contain;
    border-radius: 50%;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
    color: var(--white) !important;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-company-info {
    text-align: center;
    flex: 1;
    margin: 0 2rem;
}

.header-company-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    color: var(--white);
    font-weight: 600;
}

.header-company-info p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--white);
    opacity: 0.9;
    font-weight: 400;
}

/* Mobile styles moved to mobile.css for better organization */

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-top: -5px;
    margin-bottom: 0;
}

.header-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Header Company Name (Center) */
.header-company-name {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.header-company-name h1 {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    text-align: center;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.phone-link {
    background: var(--accent-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.phone-link:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    text-decoration: none !important;
}

.phone-link:focus,
.phone-link:visited,
.phone-link:active {
    text-decoration: none !important;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.98);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 999;
    margin-top: 0;
    width: 100%;
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    display: flex;
    align-items: center;
}

nav ul {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 20px;
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

nav li {
    position: relative;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none !important;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: var(--border-radius);
    white-space: nowrap;
    min-width: 80px;
}

nav a:hover {
    color: var(--primary-blue);
    background: var(--light-blue);
    text-decoration: none !important;
}

nav a:focus,
nav a:visited,
nav a:active {
    text-decoration: none !important;
}

nav a.active {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Ensure navigation height consistency across all pages */
body.blog nav,
body.blog-page nav,
nav[role="navigation"] {
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    min-width: 250px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 5px;
    border: 1px solid rgba(30,95,140,0.1);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 12px 20px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: block;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-left: 3px solid var(--primary-blue);
    text-decoration: none;
    transform: translateX(2px);
}

/* Hero Section - Fallback Image for when video fails to load */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(30,95,140,0.2) 0%, rgba(41,134,204,0.2) 100%), 
                url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video playing state - hide fallback background */
.hero.video-playing {
    background: linear-gradient(135deg, rgba(30,95,140,0.2) 0%, rgba(41,134,204,0.2) 100%);
}

/* Video Background Support */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    min-width: 100%;
    min-height: 100%;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,95,140,0.2) 0%, rgba(41,134,204,0.2) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.badge {
    text-align: center;
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.badge-text {
    font-size: 1rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Button Styles */
.btn {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-blue);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent-green);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.8;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    flex: 1;
    min-width: 250px;
}

.social-media {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-media a:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(41,134,204,0.4);
}

.social-media svg {
    width: 20px;
    height: 20px;
}

/* Winterization Promo Modal */
.promo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.promo-modal-overlay.active { display: flex; }

.promo-modal {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 720px;
    overflow: hidden;
    position: relative;
}

.promo-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.promo-header-text { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.promo-badge {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.promo-modal-header img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.promo-modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.promo-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.promo-modal-close:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }

.promo-modal-body {
    padding: 24px;
    background: linear-gradient(135deg, rgba(30,95,140,0.15) 0%, rgba(41,134,204,0.15) 100%);
}

.promo-price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.promo-price .amount {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}

.promo-price .label {
    font-size: 0.95rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-benefits { 
    margin: 18px 0 10px; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 12px; 
}

.promo-benefits li { 
    list-style: none; 
    background: rgba(255,255,255,0.1); 
    padding: 10px 12px; 
    border-radius: 10px; 
}

.promo-actions { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
    margin-top: 18px; 
}

.promo-actions .btn-call { 
    background: linear-gradient(135deg, var(--accent-green), var(--dark-green)); 
    color: var(--white); 
}

.promo-actions .btn-outline { 
    background: transparent; 
    color: var(--white); 
    border: 2px solid rgba(255,255,255,0.6); 
}

.promo-actions .btn-call:hover { transform: translateY(-2px); }
.promo-actions .btn-outline:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 768px) {
    .promo-modal { max-width: 92vw; }
    .promo-modal-title { font-size: 1.3rem; }
    .promo-price { width: 100%; justify-content: center; }
    .promo-price .amount { font-size: 2.2rem; }
    .promo-actions { flex-direction: column; }
    .promo-actions .btn { width: 100%; justify-content: center; padding: 14px 18px; }
    .promo-header-text { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Temporary preview button */
.promo-preview-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2100;
    background: linear-gradient(135deg, var(--accent-green), var(--dark-green));
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.promo-preview-btn:hover { transform: translateY(-2px); }

/* Desktop-specific responsive adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-logo {
        height: 200px;
        width: 200px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Navigation responsive for tablet */
    nav {
        width: 100%;
        left: 0;
        transform: none;
    }
}

/* Navigation responsive for smaller screens */
@media (max-width: 1024px) {
    nav {
        width: 100%;
        left: 0;
        right: 0;
        transform: none;
        height: 74px;
    }
}

/* Blog Title Links - Maintain Original Styling */
.blog-title-link {
    color: inherit;
    text-decoration: none;
    transition: none;
}

.blog-title-link:hover {
    color: inherit;
    text-decoration: none;
}
