:root {
    --primary-color: #1e40af;
    --primary-hover: #1e3a8a;
    --secondary-color: #ffffff;
    --accent-color: #3b82f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-primary: #ffffff;
    --background-secondary: #f9fafb;
    --background-accent: #eff6ff;
    --border-color: #e5e7eb;
    /* Additional color variables for previously hardcoded colors */
    --yellow-star: #fbbf24;
    --yellow-background: #fef3c7;
    --footer-background: #111827;
    --footer-text: #9ca3af;
    --footer-accent: #60a5fa;
    --footer-accent-hover: #93c5fd;
    --footer-border: #374151;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a{
    text-decoration: none;
    transition: .3s;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

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

.btn-primary:hover {
    color: var(--primary-hover);
    background-color: transparent;
}

.btn-emergency {
    background-color: red;
    color: white;
    border:2px solid red;
}

.btn-emergency:hover {
    background-color: white;
    color: red;
}

.btn-secondary{
    background-color: white;
    border:2px solid white;
}

.btn-secondary:hover{
    background-color: transparent;
    color: white;
}

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

.btn-outline:hover {
    background-color: var(--background-accent);
}

.btn-sm {
    padding: 0.33rem .75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: .75rem 1rem;
    font-size: .9rem;
}

.btn-full {
    width: 100%;
}

p.center-text{
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: white;
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a{
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 4rem;
    height: auto;
    border-radius: var(--radius-md);
}

.logo-text h1 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    /* Match nav-link styles */
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.dropdown-btn:hover {
    color: var(--primary-color);
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -15px;
    margin-top: 0.5rem;
    width: 16rem;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 50;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--background-accent);
    color: var(--primary-color);
}

.header-cta {
    display: none;
    align-items: center;
    gap: 1rem;
}

.call-info {
    text-align: right;
}

.call-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.phone-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.phone-number:hover {
    color: var(--primary-hover);
}

.mobile-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.mobile-overlay.active {
    right: 0;
}

.mobile-menu-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* Mobile menu close button */
.mobile-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.mobile-close-btn:hover {
    background-color: var(--background-secondary);
}

.mobile-close-btn i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--text-secondary);
}

.mobile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-top: 2rem;
}

.mobile-menu-content h2{
    font-size: 1.25rem;
}

.mobile-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
}

.mobile-header h2 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin: 0;
}

.mobile-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

.mobile-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    /* Match mobile-nav-link styles */
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.mobile-dropdown-btn:hover {
    color: var(--primary-color);
}

.mobile-dropdown-menu {
    padding-left: 1rem;
    display: none;
}

.mobile-dropdown-menu.active {
    display: block;
    background-color: var(--background-secondary);
}

.mobile-dropdown-item {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.mobile-dropdown-item:hover {
    color: var(--primary-color);
}

.logo-text h1{
    font-size: .9rem;
}

/* Hero Section */
.hero {
    padding-top: 5rem;
    background: linear-gradient(to top, var(--background-accent) 0%, var(--background-secondary) 100%);
    background: var(--background-accent);
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0 6rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-color);
}

.feature span {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.badge-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.badge-text {
    font-size: 0.875rem;
    margin: 0;
    color: white;
}

/* Services Section */
.services {
    padding: 4rem 0 6rem;
    background-color: var(--background-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--background-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin: 0;
}

.emergency-cta {
    background-color: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.emergency-content {
    position: relative;
    z-index: 10;
    max-width: 32rem;
    margin: 0 auto;
}

.emergency-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.emergency-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.emergency-content .btn-secondary{
    color: var(--primary-color);
}

.emergency-content .btn-secondary:hover{
    color: white;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0 6rem;
    background-color: white;
}

.testimonials-carousel {
    position: relative;
}

.testimonials-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star-filled {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--yellow-star);
    fill: currentColor;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.carousel-btn {
    background-color: white;
    border: 1px solid var(--border-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background-color: var(--background-secondary);
}

.carousel-btn i {
    width: 1rem;
    height: 1rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}

.rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--yellow-background);
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    margin-top: 3rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Contact Section */
.contact {
    padding: 4rem 0 6rem;
    background-color: var(--background-secondary);
}

.contact-content {
    display: grid;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.info-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.area-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.area-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.area-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    gap:.25rem;
    color: var(--text-secondary);
}

.emergency-text {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}

.contact-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    width: 2rem;
    height: 2rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-phone {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.contact-phone:hover {
    color: var(--primary-hover);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.license-info {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.license-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/*SUBPAGE HERO STYLES*/

/* Hero Background Images with Dark Blue Gradient Overlay */

/* About Us - Reno cityscape */
#hero-about {
    background-image: 
        linear-gradient(rgba(25, 55, 109, 0.7), rgba(25, 55, 109, 0.5)),
        url('images/hero1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contact Us - Reno arch at night */
#hero-contact {
    background-image: 
        linear-gradient(rgba(25, 55, 109, 0.6), rgba(25, 55, 109, 0.4)),
        url('images/hero2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Customer Reviews - Nevada mountains landscape */
#hero-reviews {
    background-image: 
        linear-gradient(rgba(25, 55, 109, 0.7), rgba(25, 55, 109, 0.5)),
        url('images/hero3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Commercial Plumbing - Truck in commercial setting */
#hero-commercial {
    background-image: 
        linear-gradient(rgba(25, 55, 109, 0.7), rgba(25, 55, 109, 0.5)),
        url('images/hero6.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Drain Cleaning - Truck at residential home */
#hero-drain-cleaning {
    background-image: 
        linear-gradient(rgba(25, 55, 109, 0.7), rgba(25, 55, 109, 0.5)),
        url('images/truck-hero3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Emergency Services - Truck on road (ready for action) */
#hero-emergency {
    background-image: 
        linear-gradient(rgba(25, 55, 109, 0.7), rgba(25, 55, 109, 0.5)),
        url('images/hero4.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}

/* Leak Detection & Repair - Truck at upscale residential */
#hero-leak-detection {
    background-image: 
        linear-gradient(rgba(25, 55, 109, 0.7), rgba(25, 55, 109, 0.5)),
        url('images/hero5.jpg');
    background-size: cover;
    background-position: 50% 30%;
    background-repeat: no-repeat;
}

/* Residential Plumbing - Truck at residential home */
#hero-residential {
    background-image: 
        linear-gradient(rgba(25, 55, 109, 0.7), rgba(25, 55, 109, 0.5)),
        url('images/truck-hero2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Tankless Water Heaters - Truck in residential area */
#hero-tankless {
    background-image: 
        linear-gradient(rgba(25, 55, 109, 0.7), rgba(25, 55, 109, 0.5)),
        url('images/truck-hero1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Enhanced text readability for all hero sections */
.subpage-hero h1,
.subpage-hero p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subpage-hero {
        background-attachment: scroll; /* Better mobile performance */
    }
}

/* Optional: Add a subtle animation on page load */
.subpage-hero {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Footer */
.footer {
    background-color: var(--footer-background);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    gap: 2.75rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 4rem;
    height: 3rem;
    border-radius: 50%;
}

.footer-logo h3 {
    font-size: 1.25rem;
    color: white;
    margin: 0;
}

.footer-logo p {
    font-size: 0.875rem;
    color: var(--footer-text);
    margin: 0;
}

.footer-section p {
    color: var(--footer-text);
    margin-bottom: 1rem;
}

.footer-license p {
    font-size: 0.875rem;
    color: var(--footer-text);
    margin: 0;
}

.footer-section ul li a{
    color: var(--footer-text);
}

.footer-section ul li a:hover{
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-item svg{
    width: 16px;
    height: 16px;
}

.contact-item i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--footer-accent);
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--footer-accent);
}

.contact-item p {
    font-size: 0.875rem;
    color: var(--footer-text);
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    color: var(--footer-text);
    margin-bottom: 0.5rem;
}

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-hours .hour-row {
    display: flex;
    justify-content: space-between;
    color: var(--footer-text);
    font-size: .9rem;
}

.emergency-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.emergency-hours i {
    width: 1rem;
    height: 1rem;
    color: var(--footer-accent);
}

.emergency-hours span {
    color: var(--footer-accent);
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: var(--footer-text);
    margin: 0;
}

.bdg-link {
    color: var(--footer-accent);
    text-decoration: none;
}

.bdg-link:hover {
    color: var(--footer-accent-hover);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--footer-text);
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-features {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .logo-text {
        display: block;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    
    .nav-desktop {
        display: flex;
    }
    
    .header-cta {
        display: flex;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        padding: 6rem 0;
    }
    
    .hero-title {
        font-size: 3.75rem;
        text-align: left;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Hidden class for mobile dropdown */
.hidden {
    display: none !important;
}

/* Subpage Hero Section */
.subpage-hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    text-align: center;
    margin-top:80px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    min-height: 32rem;
}

.subpage-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subpage-hero p {
    font-size: 1.25rem;
    color: var(--background-secondary);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Subpage Content */
.subpage-content {
    padding: 4rem 0;
    background-color: var(--background-primary);
}

.subpage-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.subpage-content h2:first-child {
    margin-top: 0;
}

.subpage-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.subpage-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.subpage-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.subpage-content ul,
.subpage-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.subpage-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.subpage-content p a, .subpage-content li a {
    color: inherit;
    transition: 0.2s ease;
    border-bottom: 1px solid var(--primary-color);
}

.subpage-content p a:hover, .subpage-content li a:hover {
    color: var(--primary-hover);
}

.subpage-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.subpage-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Responsive Design for Subpages */
@media (max-width: 768px) {

    .subpage-hero{
        height: fit-content;
    }

    .subpage-hero h1 {
        font-size: 2.5rem;
    }
    
    .subpage-hero p {
        font-size: 1.375rem;
    }
}

@media (min-width: 1024px) {

    .subpage-hero{
        margin-top:80px;
    }

    .subpage-hero h1 {
        font-size: 3.5rem;
    }
    
    .subpage-content h2 {
        font-size: 2.25rem;
    }
    
    .subpage-content h3 {
        font-size: 1.75rem;
    }
}

/* Call-to-Action Section */
.cta-section {
    background-color: var(--background-accent);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    text-align: center;
    border: 1px solid var(--border-color);
}

.cta-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
}

.cta-description {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-section .btn {
    margin-top: 0.5rem;
    transition: all .3s;
    /*color: white;*/
}

/* Variations for different contexts */
.cta-section.cta-emergency {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.cta-section.cta-emergency .cta-title {
    color: #dc2626;
}

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

.cta-section.cta-dark .cta-title {
    color: white;
}

.cta-section.cta-dark .cta-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .cta-section {
        padding: 2.5rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .cta-section {
        padding: 3rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* Reviews Page Styles */
.reviews-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-intro h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reviews-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-stars {
    display: flex;
    gap: 0.25rem;
}

.review-stars .star-filled {
    width: 20px;
    height: 20px;
    color: #fbbf24;
    fill: #fbbf24;
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.review-text {
    font-size: 1.125rem;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* Responsive Design */
@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .review-card {
        padding: 2.5rem;
    }
    
    .review-text {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .reviews-intro {
        margin-bottom: 4rem;
    }
}

@media (min-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation for stars */
@keyframes starGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.review-card:hover .star-filled {
    animation: starGlow 1.5s ease-in-out infinite;
}

/* Contact Page Styles */
.contact-info-section {
    margin-bottom: 4rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-info-icon i {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-info-card p {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.contact-info-card p a {
    color: var(--text-secondary);
    font-weight: 600;
}

.contact-info-card p a:hover {
    color: var(--primary-color);
}

.contact-info-note {
    font-size: 0.875rem !important;
    color: var(--text-secondary) !important;
    font-style: italic;
}

/* Contact Form Section */
.contact-form-section {
    background: var(--background-accent);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form-section > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.form-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.form-submit i {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-form-section {
        padding: 4rem;
    }
    
    .form-submit {
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .contact-info-section {
        margin-bottom: 5rem;
    }
}

/* Form validation styles */
/*.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus) {
    border-color: #ef4444;
}*/

/*.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group select:valid:not(:focus) {
    border-color: #10b981;
}*/

/* Thank You Page Styles */
.thank-you-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.thank-you-icon i {
    width: 40px;
    height: 40px;
    color: white;
}

.thank-you-section h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.thank-you-section h2 {
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

.thank-you-section > p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.thank-you-next-steps {
    background: var(--background-accent);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    text-align: left;
}

.thank-you-next-steps h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top:0;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
}

.thank-you-emergency {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}

.thank-you-emergency h3 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.thank-you-emergency p {
    color: #7f1d1d;
    margin-bottom: 1.5rem;
}

.btn-emergency {
    background: #dc2626;
    color: white;
}

.btn-emergency:hover {
    background: transparent;
    color: dc2626;
}

.thank-you-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.thank-you-actions .btn {
    min-width: 200px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .thank-you-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .thank-you-section h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .thank-you-section {
        padding: 4rem 0;
    }
}

/* Form Error Styles */
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 767px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}