/* ============================================
   Alpha Riverside Plumbing Solutions
   Color Scheme: Ocean Blue (B)
   Fonts: Outfit + Inter
   Animation: Slide In + Border Highlight
   Layout: Horizontal scroll services, list locations, tabbed FAQ
   ============================================ */

/* CSS Variables - Ocean Blue */
:root {
    --primary: #0369A1;
    --primary-dark: #075985;
    --primary-light: #0EA5E9;
    --accent: #38BDF8;
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #e2e8f0;
    --gray: #64748b;
    --dark-gray: #334155;
    --black: #0f172a;
    --shadow: rgba(3, 105, 161, 0.15);
    --shadow-dark: rgba(3, 105, 161, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
}

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

ul {
    list-style: none;
}

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

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

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ============================================
   Header Styles
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

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

.top-bar-content span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-header {
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

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

.logo img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

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

.call-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

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

.mobile-nav a {
    padding: 10px;
    font-weight: 500;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--light-gray);
}

.mobile-call-btn {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
}

/* ============================================
   Hero Section - Card-Based Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.85) 0%, rgba(7, 89, 133, 0.9) 100%);
}

.hero-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    max-width: 700px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.hero-content h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-cta {
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--off-white);
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--off-white);
}

.about-content {
    margin-top: 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.about-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

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

.about-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ============================================
   Services Section - Horizontal Scroll
   ============================================ */
.services {
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}

.services-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light-gray);
}

.services-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.services-scroll-container::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.services-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.services-scroll {
    display: flex;
    gap: 25px;
    padding-bottom: 20px;
    min-width: max-content;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    width: 320px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.6rem;
    color: var(--white);
}

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

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-choose {
    padding: 100px 0;
    background: var(--off-white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.reason-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.reason-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.reason-number {
    position: absolute;
    top: -15px;
    left: 25px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
}

.reason-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
    margin-top: 10px;
}

.reason-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Locations Section - List Style
   ============================================ */
.locations {
    padding: 100px 0;
    background: var(--white);
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.location-row {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: center;
    background: var(--off-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.location-row:hover {
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.location-row-alt {
    background: var(--white);
}

.location-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-row:hover .location-image img {
    transform: scale(1.05);
}

.location-content {
    padding: 30px;
}

.location-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.location-content p {
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================
   Common Problems Section
   ============================================ */
.problems {
    padding: 100px 0;
    background: var(--off-white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.problem-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.problem-icon i {
    font-size: 1.6rem;
    color: var(--white);
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.problem-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

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

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--off-white);
    transform: translateY(-2px);
}

/* ============================================
   FAQ Section - Tabbed
   ============================================ */
.faq {
    padding: 100px 0;
    background: var(--white);
}

.faq-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.faq-tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-tab-btn {
    padding: 12px 25px;
    background: var(--off-white);
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.faq-tab-btn:hover {
    color: var(--primary);
    border-color: var(--primary-light);
}

.faq-tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.faq-panel {
    display: none;
}

.faq-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: var(--off-white);
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.faq-question:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px 25px;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.8;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.4rem;
    color: var(--white);
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.contact-details p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary);
    font-weight: 600;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-map iframe {
    display: block;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 70px 0 30px;
}

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

.footer-brand img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

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

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray);
    transition: all 0.3s ease;
}

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

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

.footer-bottom p {
    color: var(--gray);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.8rem;
    line-height: 1.6;
}

/* ============================================
   Mobile Call Button
   ============================================ */
.mobile-call-btn-sticky {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 30px var(--shadow-dark);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   Animation Styles
   ============================================ */
.slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in:nth-child(2) { transition-delay: 0.1s; }
.slide-in:nth-child(3) { transition-delay: 0.2s; }
.slide-in:nth-child(4) { transition-delay: 0.3s; }
.slide-in:nth-child(5) { transition-delay: 0.4s; }
.slide-in:nth-child(6) { transition-delay: 0.5s; }
.slide-in:nth-child(7) { transition-delay: 0.6s; }
.slide-in:nth-child(8) { transition-delay: 0.7s; }
.slide-in:nth-child(9) { transition-delay: 0.8s; }
.slide-in:nth-child(10) { transition-delay: 0.9s; }

/* Border Highlight Effect */
.about-card, .service-card, .reason-card, .problem-card, .contact-item {
    position: relative;
}

.about-card::before, .service-card::before, .reason-card::before, .problem-card::before, .contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 2px solid var(--primary-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover::before, .service-card:hover::before, .reason-card:hover::before, .problem-card:hover::before, .contact-item:hover::before {
    opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu, .desktop-call {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-card {
        padding: 30px;
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat-badge {
        padding: 12px 18px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .location-row {
        grid-template-columns: 1fr;
    }

    .location-image {
        height: 200px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mobile-call-btn-sticky {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .services-scroll {
        padding-bottom: 10px;
    }

    .faq-tab-buttons {
        gap: 8px;
    }

    .faq-tab-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .about-grid, .problems-grid {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .stat-badge {
        flex: 1;
        min-width: 100px;
    }
}
