/* ================================================================
   Pool Israel — Modern Design Enhancement Layer
   Loads AFTER template.css + main.css to upgrade the visual design
   ================================================================ */

/* Enhanced Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5,h6 { letter-spacing: -0.02em; }

/* Glass Header */
.header {
    background: linear-gradient(135deg, rgba(44,90,160,.97) 0%, rgba(30,58,138,.97) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

.nav-menu a { position: relative; padding: 0.5rem 0; }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-menu a:hover::after { width: 100%; }

/* Hero Enhancements */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4rem; }
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q15 20 30 30 Q45 40 60 30' fill='none' stroke='rgba(255,255,255,.05)' stroke-width='1.5'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--gray-50, #f9fafb), transparent);
    pointer-events: none;
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-weight: 700; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hero p { font-weight: 300; opacity: 0.9; }

/* Trust Indicators */
.hero-trust { margin-top: 2.5rem; }
.trust-item {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.trust-item:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

/* Section Titles */
.section-title { position: relative; padding-bottom: 1rem; }
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2c5aa0, #f59e0b);
    border-radius: 2px;
}

/* Enhanced Cards */
.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: all 0.35s cubic-bezier(.25,.8,.25,1);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(44,90,160,.12);
    border-color: rgba(44,90,160,.15);
}
.card-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.card:hover .card-icon {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: white;
    transform: scale(1.05);
}

/* Stats */
.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2c5aa0, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(44,90,160,.1); }
.stat-card:hover::before { opacity: 1; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 0.9rem; color: #4b5563; font-weight: 500; }

/* Buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    border-radius: 10px;
    font-weight: 600;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; right: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: right 0.5s ease;
}
.btn:hover::before { right: 100%; }
.btn-primary { box-shadow: 0 4px 16px rgba(245,158,11,.25); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(245,158,11,.35); transform: translateY(-3px); }
.btn-outline { border-width: 2px; border-radius: 10px; }
.btn-outline:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44,90,160,.15); }

/* Guide Cards */
.guide-card .guide-image {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.guide-card:hover .guide-image {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: white;
}
.guide-meta { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.guide-meta .difficulty,
.guide-meta .reading-time {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}
.guide-meta .difficulty { background: #fef3c7; color: #92400e; }
.guide-meta .reading-time { background: #e0f2fe; color: #2c5aa0; }

/* Contractor Cards */
.contractor-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: all 0.35s cubic-bezier(.25,.8,.25,1);
}
.contractor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(44,90,160,.12);
    border-color: rgba(44,90,160,.2);
}
.contractor-card.featured {
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 20px rgba(245,158,11,.12);
}
.contractor-card.featured:hover { box-shadow: 0 16px 40px rgba(245,158,11,.18); }
.specialty-tag { border-radius: 20px; font-size: 0.8rem; padding: 4px 14px; transition: all 0.2s ease; }
.specialty-tag:hover { background: #2c5aa0; color: white; }
.contractor-actions .btn-contact:hover { box-shadow: 0 4px 16px rgba(44,90,160,.3); }
.contractor-actions .btn-quote:hover { box-shadow: 0 4px 16px rgba(245,158,11,.3); }

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2c5aa0, #f59e0b, #2c5aa0);
}
.footer-section h3, .footer-section h4, .footer-section h5 {
    color: #60a5fa;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 2px;
    background: #f59e0b;
    border-radius: 1px;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }

/* Search & Filters */
.search-filters { border: 1px solid #e5e7eb; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.search-input, .filter-select { border-radius: 10px; transition: all 0.3s ease; }
.search-input:focus, .filter-select:focus { border-color: #2c5aa0; box-shadow: 0 0 0 4px rgba(44,90,160,.08); }

/* Breadcrumbs */
.breadcrumbs { background: white; border-bottom: 1px solid #e5e7eb; }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.section { animation: fadeUp 0.6s ease both; }

/* Selection & Scrollbar */
::selection { background: rgba(44,90,160,.15); color: #1e3a8a; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f3f4f6; }
::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2c5aa0; }

/* Smooth Scroll */
html { scroll-behavior: smooth; }

/* Focus Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 3.5rem 0 3rem; }
    .hero::after { height: 40px; }
    .stat-number { font-size: 2rem; }
    .card-icon { width: 52px; height: 52px; border-radius: 12px; }
}
