/*
Theme Name: Clear Blue Aquatics
Theme URI: https://clearblueaquatics.com
Author: Clear Blue Aquatics Team
Author URI: https://clearblueaquatics.com
Description: A stunning, professional WordPress theme for Clear Blue Aquatics - Custom Pool Design and Installation company serving Greater Houston. Features modern design, easy customization, and lead generation focus.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clear-blue-aquatics
Tags: custom-pools, outdoor-living, responsive, business, luxury, modern
*/

/* ================================
   CSS VARIABLES - MODERN PALETTE
   ================================ */
:root {
    /* Primary Colors */
    --primary-blue: #0077b6;
    --primary-dark: #023e8a;
    --primary-light: #0096c7;
    --accent-aqua: #00b4d8;
    --accent-cyan: #48cae4;
    --accent-light: #90e0ef;
    
    /* Secondary Colors */
    --gold: #d4a574;
    --gold-dark: #b8956a;
    --warm-white: #faf9f6;
    
    /* Neutral Colors */
    --text-dark: #1a1a2e;
    --text-medium: #4a4a68;
    --text-light: #6b6b8a;
    --white: #ffffff;
    --off-white: #f8f9fc;
    --gray-light: #e8ecf1;
    --gray-medium: #c5cdd6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-aqua) 100%);
    --gradient-dark: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(0, 180, 216, 0.3);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    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 {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--accent-aqua);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-medium);
}

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

.section {
    padding: 100px 0;
}

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

.section-title h2 {
    color: var(--text-dark);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 25px auto 0;
    color: var(--text-light);
}

/* ================================
   BUTTONS - MODERN STYLE
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* ================================
   HEADER - MODERN GLASS EFFECT
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-base);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: var(--transition-base);
}

.header.scrolled .logo-text {
    color: var(--primary-blue);
    text-shadow: none;
}

.logo-text span {
    color: var(--accent-aqua);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-aqua);
    transition: var(--transition-base);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu .btn-nav {
    background: var(--gold);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-shadow: none;
    box-shadow: var(--shadow-md);
}

.nav-menu .btn-nav:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-menu .btn-nav::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition-base);
}

.header.scrolled .mobile-menu-toggle span {
    background: var(--primary-blue);
}

/* ================================
   HERO - CINEMATIC STYLE
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

@media (max-width: 767px){
	section.hero {
    background-image: url(https://cbaquatics.com/wp-content/uploads/2026/03/Image-for-vertical-website.jpg) !important;
}
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-weight: 500;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #4285f4;
    font-size: 1.3rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--white);
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ================================
   TRUST BADGES - GLASS CARDS
   ================================ */
.trust-badges {
    background: var(--off-white);
    padding: 60px 0;
    position: relative;
}

.trust-badges::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-medium), transparent);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-badge {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.trust-badge:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.trust-badge i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.trust-badge h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.trust-badge p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-light);
}

/* ================================
   SERVICES - HOVER CARDS
   ================================ */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover .service-image::before {
    opacity: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 35px;
}

.service-content h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-content p {
    margin-bottom: 25px;
    color: var(--text-light);
}

/* ================================
   WHY CHOOSE US - MODERN LAYOUT
   ================================ */
.why-choose {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.why-choose-content h2 {
    margin-bottom: 25px;
}

.why-choose-content > p {
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.why-choose-list {
    list-style: none;
}

.why-choose-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.why-choose-list li:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.why-choose-list i {
    font-size: 1.5rem;
    color: var(--accent-aqua);
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-choose-list h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.why-choose-list p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.why-choose-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.why-choose-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--accent-aqua);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.why-choose-image img {
    width: 100%;
    height: auto;
}

/* ================================
   TESTIMONIALS - DARK ELEGANT
   ================================ */
.testimonials {
    background: var(--text-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 119, 182, 0.1) 0%, transparent 50%);
}

.testimonials .section-title h2,
.testimonials .section-title p {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 45px;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--accent-aqua);
    position: absolute;
    top: 10px;
    left: 25px;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    padding-top: 30px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
}

.testimonial-info h5 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.testimonial-info span {
    color: var(--accent-aqua);
    font-size: 0.9rem;
}

/* ================================
   STATS COUNTER
   ================================ */
.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    color: var(--white);
}

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

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ================================
   CTA SECTION - GRADIENT
   ================================ */
.cta-section {
    background: var(--gradient-primary);
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   GALLERY PAGE - MASONRY
   ================================ */
.gallery-hero {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.gallery-hero .container {
    position: relative;
    z-index: 1;
}

.gallery-hero h1 {
    color: var(--white);
}

.gallery-section {
    padding: 80px 0;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.gallery-filter button {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
    font-size: 0.95rem;
}

.gallery-filter button:hover,
.gallery-filter button.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 61, 102, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay h4 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition-base);
}

.gallery-overlay p {
    color: var(--accent-aqua);
    margin: 0;
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: var(--transition-base) 0.1s;
}

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* ================================
   ABOUT PAGE
   ================================ */
.about-hero {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    color: var(--white);
}

.about-content {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.9;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-box {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.stat-box .number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
}

.stat-box .label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ================================
   SERVICES PAGE
   ================================ */
.services-hero {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.services-hero .container {
    position: relative;
    z-index: 1;
}

.services-hero h1 {
    color: var(--white);
}

.service-detail {
    padding: 100px 0;
}

.service-detail:nth-child(even) {
    background: var(--off-white);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-grid {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail-content {
    direction: ltr;
}

.service-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.service-detail-image img {
    width: 100%;
    height: auto;
}

.service-detail-content h2 {
    margin-bottom: 25px;
}

.service-detail-content > p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin: 30px 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-medium);
    font-size: 1.05rem;
}

.service-features i {
    color: var(--accent-aqua);
    font-size: 1.1rem;
}

/* ================================
   CONTACT PAGE
   ================================ */
.contact-hero {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    color: var(--white);
}

.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-base);
    font-family: inherit;
    background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-aqua);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-info {
    padding: 20px;
}

.contact-info h3 {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary-blue);
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h5 {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-medium);
}

.contact-map {
    margin-top: 50px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ================================
   FOOTER - MODERN
   ================================ */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 20px;
    display: block;
    font-weight: 800;
}

.footer-brand .logo-text span {
    color: var(--accent-aqua);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-base);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--accent-aqua);
    transform: translateY(-5px) rotate(5deg);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-aqua);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

.footer-column a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: var(--accent-aqua);
    padding-left: 5px;
}

.footer-column a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.areas-served {
    background: rgba(255, 255, 255, 0.03);
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.areas-served h4 {
    color: var(--white);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.3rem;
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.area-item {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.area-item:hover {
    background: var(--accent-aqua);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--accent-aqua);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
    .services-grid,
    .testimonials-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-badges-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-grid,
    .about-grid,
    .service-detail-grid,
    .contact-grid {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        color: var(--text-dark);
        font-size: 1.1rem;
        padding: 15px 0;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .nav-menu .btn-nav {
        margin-top: 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .services-grid,
    .testimonials-grid,
    .gallery-grid,
    .why-choose-grid,
    .about-grid,
    .service-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badges-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .service-detail:nth-child(even) .service-detail-grid {
        direction: ltr;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .gallery-filter {
        gap: 10px;
    }
    
    .gallery-filter button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================
   ANIMATIONS
   ================================ */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   LOADING STATES
   ================================ */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-light);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
