/* =========================================
   ÖZCAN HAVUZ - Main Stylesheet
   Modern Pool & Architectural Theme
   ========================================= */

/* ---------- CSS Variables ---------- */
:root {
    /* Primary - Deep Ocean Blue (#20547d) */
    --primary-50: #e4eef4;
    --primary-100: #caddea;
    --primary-200: #9fc0d7;
    --primary-300: #74a4c6;
    --primary-400: #4a8ab5;
    --primary-500: #2b6e9c;
    --primary-600: #20547d;
    --primary-700: #184060;
    --primary-800: #112c42;
    --primary-900: #0a1c2a;

    /* Accent - Turquoise */
    --accent-50: #e0faf5;
    --accent-100: #b3f2e1;
    --accent-200: #80e8cc;
    --accent-300: #4ddeb7;
    --accent-400: #26d6a7;
    --accent-500: #00c9a7;
    --accent-600: #00a88b;
    --accent-700: #00876f;
    --accent-800: #006654;
    --accent-900: #004538;

    /* Neutral */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-500) 0%, var(--primary-500) 100%);
    --gradient-hero: linear-gradient(160deg, #001a33 0%, #003366 30%, #004d80 60%, #006699 100%);
    --gradient-dark: linear-gradient(180deg, var(--gray-900) 0%, #0a1628 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px rgba(0,119,204,0.3);
    --shadow-glow-accent: 0 0 20px rgba(0,201,167,0.3);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-float: 200;
    --z-header: 300;
    --z-overlay: 400;
    --z-modal: 500;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: var(--primary-600);
    transition: color var(--transition-fast);
}
a:hover { color: var(--primary-700); }

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

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-600);
    color: #fff;
    border-color: transparent;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-accent);
    color: #fff;
}

.btn-secondary {
    background: var(--primary-600);
    color: #fff;
}
.btn-secondary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-600);
}
.btn-outline:hover {
    background: var(--primary-600);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary-700);
}
.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    color: var(--primary-700);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--gray-900);
    color: var(--gray-300);
    font-size: 0.82rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray-300);
    transition: color var(--transition-fast);
}
.top-bar-item:hover { color: var(--accent-400); }
.top-bar-item i { color: var(--accent-400); font-size: 0.75rem; }

/* ---------- Header / Navbar ---------- */
.main-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.main-header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,0.98);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gray-900);
}
.logo:hover { color: var(--gray-900); }

.logo-img {
    max-height: 36px;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    max-height: 44px;
    max-width: 240px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0;
    margin: 0 1rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-600);
    transition: width var(--transition-fast);
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link i { font-size: 0.65rem; transition: transform var(--transition-fast); }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
}

.has-dropdown:hover .dropdown-menu {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.has-dropdown:hover .nav-link i { transform: rotate(180deg); }

.mega-dropdown {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.25rem;
    min-width: 600px;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}
.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}
.dropdown-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-50);
    color: var(--accent-600);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.dropdown-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}
.dropdown-item small {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.3;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nav-cta span { display: inline; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero Section with Background Slider ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #001a33;
}

/* Background slides */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity, transform;
}
.hero-slide.active {
    opacity: 1;
    animation: kenBurns 7s ease-in-out forwards;
}
@keyframes kenBurns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(0,15,30,0.65) 0%,
        rgba(0,20,40,0.45) 40%,
        rgba(0,30,60,0.20) 70%,
        rgba(0,40,80,0.05) 100%
    );
}

/* Custom left-aligned container */
.hero-container {
    width: 100%;
    margin: 0;
    padding: 0 4%;
}

/* Left-aligned hero content */
.hero-content-left {
    position: relative;
    z-index: 3;
    max-width: 650px;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0,201,167,0.15);
    border: 1px solid rgba(0,201,167,0.3);
    border-radius: var(--radius-full);
    color: var(--accent-300);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat { text-align: center; }
.hero-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-400);
}
.hero-stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

/* Slider Navigation Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 4rem;
    right: 3rem;
    z-index: 4;
    display: flex;
    gap: 0.6rem;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.hero-dot:hover {
    border-color: #fff;
}
.hero-dot.active {
    background: var(--accent-400);
    border-color: var(--accent-400);
    transform: scale(1.2);
}

/* Slider Progress Bar */
.hero-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 4;
}
.hero-slider-progress-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-accent);
    transition: width 0.1s linear;
}

/* ---------- Sections ---------- */
.section {
    padding: 5rem 0;
}
.section-alt {
    background: var(--gray-50);
}
.section-dark {
    background: var(--gradient-dark);
    color: #fff;
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-600);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}
.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent-500);
    border-radius: 2px;
}
.section-dark .section-label { color: var(--accent-400); }
.section-dark .section-label::before,
.section-dark .section-label::after { background: var(--accent-400); }

.section-header h2 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
}
.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* ---------- Service Cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-200);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card-img {
    height: 160px;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    background-color: var(--accent-50);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
    transition: all var(--transition-base);
}
.service-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,26,51,0.2) 0%, rgba(0,26,51,0.6) 100%);
    z-index: 0;
}
.service-card-img i {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base), color var(--transition-base);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.service-card:hover .service-card-img i {
    transform: scale(1.2);
    color: #fff;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.service-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-600);
    transition: gap var(--transition-fast);
}
.service-card-link:hover { gap: 0.6rem; color: var(--accent-700); }

/* ---------- Pool Types Grid ---------- */
.pool-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.pool-type-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}
.pool-type-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.pool-type-img {
    height: 200px;
    background-color: var(--gradient-primary);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.7);
    overflow: hidden;
}
.pool-type-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,26,51,0.2) 0%, rgba(0,26,51,0.7) 100%);
    z-index: 0;
}
.pool-type-img i {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base), color var(--transition-base);
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.pool-type-card:hover .pool-type-img i { 
    transform: scale(1.2); 
    color: #fff;
}

.pool-type-content {
    padding: 1.5rem;
}
.pool-type-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.pool-type-content p {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

/* ---------- Feature / Why Us Section ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}
.feature-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
    border-color: rgba(0,201,167,0.3);
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.85rem;
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--gray-400); }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary-600); }
.breadcrumb .active { color: var(--gray-800); font-weight: 500; }

/* ---------- Page Hero (Internal Pages) ---------- */
.page-hero {
    position: relative;
    background: var(--gradient-hero);
    padding: 4rem 0 3rem;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(0,201,167,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero-content {
    position: relative;
    z-index: 2;
}
.page-hero .breadcrumb { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: var(--accent-400); }
.page-hero .breadcrumb .active { color: #fff; }
.page-hero .breadcrumb li:not(:last-child)::after { color: rgba(255,255,255,0.3); }

.page-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ---------- Content Page ---------- */
.content-section {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

.content-main h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--gray-900);
}
.content-main h2:first-child { margin-top: 0; }

.content-main h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
}

.content-main p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.content-main ul {
    margin-bottom: 1rem;
    padding-left: 0;
}
.content-main ul li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}
.content-main ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    background: var(--accent-500);
    border-radius: 50%;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-500);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--primary-50);
    color: var(--primary-600);
    padding-left: 1rem;
}
.sidebar-nav a i { font-size: 0.7rem; }

.sidebar-cta {
    background: var(--gradient-hero);
    border: none;
    color: #fff;
    text-align: center;
}
.sidebar-cta h3 { color: #fff; border-color: var(--accent-500); }
.sidebar-cta p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 1rem; }
.sidebar-cta .phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-400);
    margin-bottom: 1rem;
}
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}
.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.contact-info-card p, .contact-info-card a {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}
.contact-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--gray-800);
    background: #fff;
    transition: all var(--transition-fast);
    outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(0,201,167,0.1);
}
.contact-form textarea { min-height: 130px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---------- Google Map ---------- */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 3rem;
    border: 1px solid var(--gray-200);
}
.map-container iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--gradient-accent);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.cta-text h2 { color: #fff; font-size: 2rem; margin-bottom: 0.5rem; }
.cta-text p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 500px; }
.cta-actions { display: flex; gap: 1rem; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}
.footer-logo .logo-name { color: #fff; font-size: 1.2rem; }
.footer-logo .logo-sub { color: var(--accent-400); }

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-contact a, .footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}
.footer-contact a:hover { color: var(--accent-400); }
.footer-contact i { color: var(--accent-500); width: 16px; }

.footer-title {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-600);
}

.footer-links li { margin-bottom: 0.3rem; }
.footer-links a {
    color: var(--gray-400);
    font-size: 0.85rem;
    display: inline-block;
    padding: 0.15rem 0;
    transition: all var(--transition-fast);
}
.footer-links a:hover {
    color: var(--accent-400);
    padding-left: 0.3rem;
}

.footer-links-locations a strong { color: var(--accent-400); }

.footer-bottom {
    margin-top: 3rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--gray-500); }
.footer-bottom-links a:hover { color: var(--accent-400); }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    z-index: var(--z-float);
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 44px;
    height: 44px;
    background: var(--primary-600);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-float);
    box-shadow: var(--shadow-md);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-700);
    transform: translateY(-3px);
}

/* ---------- About Page ---------- */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}
.about-stat {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.about-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-600);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-stat-label {
    font-size: 0.88rem;
    color: var(--gray-600);
    font-weight: 500;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.about-value {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    text-align: center;
}
.about-value i {
    font-size: 2rem;
    color: var(--accent-500);
    margin-bottom: 1rem;
}
.about-value h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.about-value p { font-size: 0.88rem; color: var(--gray-500); }

/* ---------- Location (SEO) Pages ---------- */
.location-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
.location-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}
.location-feature i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-50);
    color: var(--accent-600);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.location-feature h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.location-feature p { font-size: 0.85rem; color: var(--gray-500); }

.location-districts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin: 2rem 0;
}
.location-districts a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: districtCardIn 0.5s ease forwards;
}
.location-districts a::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.72rem;
    color: var(--accent-500);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}
.location-districts a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,201,167,0.06), transparent);
    transition: left 0.6s ease;
}
.location-districts a:hover {
    background: var(--accent-50);
    border-color: var(--accent-400);
    color: var(--accent-700);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,201,167,0.15);
}
.location-districts a:hover::before {
    opacity: 1;
    transform: scale(1);
}
.location-districts a:hover::after {
    left: 100%;
}

/* Staggered entry animation for district cards */
@keyframes districtCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.location-districts a:nth-child(1) { animation-delay: 0.05s; }
.location-districts a:nth-child(2) { animation-delay: 0.1s; }
.location-districts a:nth-child(3) { animation-delay: 0.15s; }
.location-districts a:nth-child(4) { animation-delay: 0.2s; }
.location-districts a:nth-child(5) { animation-delay: 0.25s; }
.location-districts a:nth-child(6) { animation-delay: 0.3s; }
.location-districts a:nth-child(7) { animation-delay: 0.35s; }
.location-districts a:nth-child(8) { animation-delay: 0.4s; }
.location-districts a:nth-child(9) { animation-delay: 0.45s; }
.location-districts a:nth-child(10) { animation-delay: 0.5s; }
.location-districts a:nth-child(11) { animation-delay: 0.55s; }
.location-districts a:nth-child(12) { animation-delay: 0.6s; }
.location-districts a:nth-child(13) { animation-delay: 0.65s; }

/* Location section decoration */
.location-section-wrap {
    position: relative;
    overflow: hidden;
}
.location-section-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -60px;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(0,201,167,0.08);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: locationPulse 4s ease-in-out infinite;
}
.location-section-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(0,201,167,0.12);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: locationPulse 4s ease-in-out infinite 1s;
}
@keyframes locationPulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateY(-50%) scale(1.15); opacity: 1; }
}

/* ---------- 404 Page ---------- */
.error-page {
    text-align: center;
    padding: 6rem 0;
}
.error-page h1 {
    font-size: 8rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}
.error-page h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.error-page p { color: var(--gray-500); margin-bottom: 2rem; }

/* ---------- Service Page Individual (Process Steps) ---------- */
.process-steps {
    display: grid;
    gap: 1.5rem;
    counter-reset: step;
    margin: 2rem 0;
}
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    counter-increment: step;
    transition: all var(--transition-base);
}
.process-step:hover {
    border-color: var(--accent-300);
    box-shadow: var(--shadow-md);
}
.process-step-num {
    width: 48px;
    height: 48px;
    background: var(--accent-50);
    color: var(--accent-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.process-step h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.88rem; color: var(--gray-500); }

/* ---------- All Services / All Pool Types Listing ---------- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.listing-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}
.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-200);
}
.listing-card .listing-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: var(--accent-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-600);
    transition: all var(--transition-base);
}
.listing-card:hover .listing-icon {
    background: var(--gradient-accent);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}
.listing-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.listing-card p { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 1.25rem; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(20deg); }
}

@keyframes waterFlow {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Honeypot */
.hp-field { display: none !important; }

/* ---------- FAQ Section (Service Pages) ---------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
}
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    transition: all var(--transition-fast);
}
.faq-question:hover { background: var(--primary-50); color: var(--primary-700); }
.faq-question i { transition: transform var(--transition-fast); font-size: 0.75rem; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}
.faq-answer-inner {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 500px; }

/* ---------- Pool Gallery ---------- */
.pool-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2.5rem;
}

.pool-gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}
.pool-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

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

.pool-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 26, 51, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}
.pool-gallery-overlay i {
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-base);
}
.pool-gallery-item:hover .pool-gallery-overlay {
    background: rgba(0, 26, 51, 0.35);
}
.pool-gallery-item:hover .pool-gallery-overlay i {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Lightbox Modal ---------- */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}
.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform var(--transition-base);
}
.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}
.lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 768px) {
    .pool-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-prev { left: 0.75rem; }
    .lightbox-next { right: 0.75rem; }
    .lightbox-close { top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .pool-gallery {
        grid-template-columns: 1fr;
    }
}
