/*
Theme Name: Bufflow Mechanical Service
Theme URI: https://thefreewebsiteguys.com
Author: The Free Website Guys
Author URI: https://thefreewebsiteguys.com
Description: Professional WordPress theme for Bufflow Mechanical Service - Commercial HVAC Service. All content is fully customizable via the WordPress Customizer.
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bufflow
Tags: one-page, custom-colors, custom-logo, customizer, responsive, business
*/

/* ==========================================================================
   CSS Variables - Customizer Driven Colors
   ========================================================================== */
:root {
    /* These will be overridden by inline styles from customizer */
    --background-h: 222;
    --background-s: 47%;
    --background-l: 6%;
    --foreground-h: 210;
    --foreground-s: 40%;
    --foreground-l: 98%;
    --card-h: 222;
    --card-s: 47%;
    --card-l: 11%;
    --primary-h: 24;
    --primary-s: 100%;
    --primary-l: 50%;
    --secondary-h: 215;
    --secondary-s: 28%;
    --secondary-l: 17%;
    --accent-h: 212;
    --accent-s: 100%;
    --accent-l: 50%;
    --yellow-h: 45;
    --yellow-s: 100%;
    --yellow-l: 50%;
    --muted-h: 217;
    --muted-s: 33%;
    --muted-l: 17%;
    --muted-fg-h: 215;
    --muted-fg-s: 20%;
    --muted-fg-l: 65%;
    --border-h: 217;
    --border-s: 33%;
    --border-l: 20%;
    --radius: 0.5rem;

    --background: hsl(var(--background-h), var(--background-s), var(--background-l));
    --foreground: hsl(var(--foreground-h), var(--foreground-s), var(--foreground-l));
    --card: hsl(var(--card-h), var(--card-s), var(--card-l));
    --card-foreground: hsl(var(--foreground-h), var(--foreground-s), var(--foreground-l));
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
    --secondary-foreground: hsl(var(--foreground-h), var(--foreground-s), var(--foreground-l));
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --accent-foreground: hsl(0, 0%, 100%);
    --yellow: hsl(var(--yellow-h), var(--yellow-s), var(--yellow-l));
    --muted: hsl(var(--muted-h), var(--muted-s), var(--muted-l));
    --muted-foreground: hsl(var(--muted-fg-h), var(--muted-fg-s), var(--muted-fg-l));
    --border: hsl(var(--border-h), var(--border-s), var(--border-l));
    --input: hsl(var(--border-h), var(--border-s), var(--border-l));
    --ring: hsl(21, 90%, 48%);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==========================================================================
   Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background-color: hsla(var(--card-h), var(--card-s), var(--card-l), 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid hsla(var(--border-h), var(--border-s), var(--border-l), 0.5);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 10px 15px -3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);
}

.btn-primary:hover {
    background-color: hsla(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 5%), 1);
}

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

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

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scale-in 0.3s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(var(--background-h), var(--background-s), var(--background-l), 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    position: relative;
}

.navbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    position: relative;
}

@media (min-width: 768px) {
    .navbar-row {
        height: 5rem;
    }
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 4rem;
    width: auto;
}

.navbar-logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--foreground);
}

.navbar-links {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .navbar-links {
        display: flex;
    }
}

.navbar-links a,
.navbar-links button {
    color: var(--muted-foreground);
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease;
}

.navbar-links a:hover,
.navbar-links button:hover {
    color: var(--primary);
}

.navbar-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .navbar-actions {
        display: flex;
    }
}

.navbar-phone {
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.navbar-phone:hover {
    color: var(--accent);
}

.navbar-phone svg {
    width: 1.25rem;
    height: 1.25rem;
}

.navbar-actions .btn-primary {
    box-shadow: 0 10px 15px -3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.25);
}

.mobile-menu-toggle {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--foreground);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    animation: fade-in 0.3s ease-out;
}

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

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

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

.mobile-menu-links a,
.mobile-menu-links button {
    color: var(--muted-foreground);
    font-weight: 500;
    background: none;
    border: none;
    padding: 0.5rem 0;
    text-align: left;
    transition: color 0.2s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links button:hover {
    color: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: hsla(var(--background-h), var(--background-s), var(--background-l), 0.85);
}

/* Decorative elements */
.hero-decoration-1 {
    position: absolute;
    top: 5rem;
    left: 2.5rem;
    width: 16rem;
    height: 16rem;
    background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
    border-radius: 50%;
    filter: blur(48px);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-decoration-2 {
    position: absolute;
    bottom: 5rem;
    right: 2.5rem;
    width: 20rem;
    height: 20rem;
    background-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.1);
    border-radius: 50%;
    filter: blur(48px);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 1s;
}

.hero-decoration-3 {
    position: absolute;
    top: 50%;
    left: 25%;
    width: 8rem;
    height: 8rem;
    background-color: hsla(var(--yellow-h), var(--yellow-s), var(--yellow-l), 0.1);
    border-radius: 50%;
    filter: blur(32px);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 2s;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fade-in-up 0.6s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-logo img {
    height: 10rem;
    width: auto;
    filter: drop-shadow(0 25px 25px rgba(0,0,0,0.5));
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-logo img {
        height: 14rem;
    }
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fade-in-up 0.6s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
    line-height: 1.2;
}

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

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

.hero-title-gradient {
    display: block;
    margin-top: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--yellow), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin-bottom: 2.5rem;
    animation: fade-in-up 0.6s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fade-in-up 0.6s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-buttons .btn svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.hero-buttons .btn:hover svg {
    transform: scale(1.1);
}

/* Trust indicators */
.hero-trust {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: var(--muted-foreground);
    animation: fade-in-up 0.6s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

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

.hero-trust-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.hero-trust-dot.primary {
    background-color: var(--primary);
}

.hero-trust-dot.accent {
    background-color: var(--accent);
}

.hero-trust-dot.yellow {
    background-color: var(--yellow);
}

.hero-trust-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hero bottom fade */
.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--background), transparent);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .about {
        padding: 8rem 0;
    }
}

.about-inner {
    max-width: 72rem;
    margin: 0 auto;
}

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

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-title .highlight {
    color: var(--primary);
}

.section-title .highlight-accent {
    color: var(--accent);
}

.section-description {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

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

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-main-text {
    font-size: 1.125rem;
    color: hsla(var(--foreground-h), var(--foreground-s), var(--foreground-l), 0.9);
    line-height: 1.75;
}

.about-approach {
    border-radius: var(--radius);
    padding: 2rem;
    border-left: 4px solid var(--primary);
    flex: 1;
}

.about-approach h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.about-approach-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-approach-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--muted-foreground);
}

.about-approach-list .dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.about-approach-list .dot.primary {
    background-color: var(--primary);
}

.about-approach-list .dot.accent {
    background-color: var(--accent);
}

.about-image-column {
    position: relative;
    min-height: 300px;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-decoration-1 {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    width: 6rem;
    height: 6rem;
    background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
    border-radius: var(--radius);
    z-index: -1;
}

.about-image-decoration-2 {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 4rem;
    height: 4rem;
    background-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2);
    border-radius: var(--radius);
    z-index: -1;
}

/* Features Grid */
.about-features {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-feature {
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.about-feature:hover {
    border-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);
}

.about-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease;
}

.about-feature:hover .about-feature-icon {
    background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
}

.about-feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.about-feature h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.about-feature p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 5rem 0;
    background-color: hsla(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.3);
    overflow: hidden;
}

@media (min-width: 768px) {
    .services {
        padding: 8rem 0;
    }
}

.services-inner {
    max-width: 72rem;
    margin: 0 auto;
}

/* Carousel */
.services-carousel {
    position: relative;
    margin-bottom: 3rem;
    padding: 0 3rem;
}

.services-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.services-carousel-wrapper {
    overflow: hidden;
}

.service-card {
    flex: 0 0 100%;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .service-card {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .service-card {
        flex: 0 0 33.333%;
    }
}

.service-card-inner {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card-inner:hover {
    border-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);
    box-shadow: 0 10px 15px -3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.05);
}

.service-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background-color 0.2s ease;
}

.service-card-icon.primary {
    background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
}

.service-card-icon.accent {
    background-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.1);
}

.service-card-inner:hover .service-card-icon.primary {
    background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
}

.service-card-inner:hover .service-card-icon.accent {
    background-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2);
}

.service-card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.service-card-icon.primary svg {
    color: var(--primary);
}

.service-card-icon.accent svg {
    color: var(--accent);
}

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

.service-card p {
    color: var(--muted-foreground);
    line-height: 1.75;
    margin: 0;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-nav svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Brands Card */
.services-brands {
    text-align: center;
    border-radius: var(--radius);
    padding: 2rem;
}

.services-brands h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.services-brands p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .gallery {
        padding: 8rem 0;
    }
}

.gallery-inner {
    max-width: 72rem;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.gallery-item:hover {
    border-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(var(--background-h), var(--background-s), var(--background-l), 0.9), hsla(var(--background-h), var(--background-s), var(--background-l), 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

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

.gallery-item-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-item-title {
    color: var(--foreground);
    font-weight: 600;
}

.gallery-cta {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.gallery-cta a {
    color: var(--primary);
    transition: text-decoration 0.2s ease;
}

.gallery-cta a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    padding: 5rem 0;
    background-color: hsla(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.3);
}

@media (min-width: 768px) {
    .testimonials {
        padding: 8rem 0;
    }
}

.testimonials-inner {
    max-width: 72rem;
    margin: 0 auto;
}

.testimonials-rating {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
}

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

.testimonials-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--primary);
    color: var(--primary);
}

.testimonials-rating-value {
    color: var(--foreground);
    font-weight: 600;
}

.testimonials-rating-label {
    color: var(--muted-foreground);
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

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

.testimonial-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
}

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

.testimonial-stars svg {
    width: 1rem;
    height: 1rem;
    fill: var(--primary);
    color: var(--primary);
}

.testimonial-text {
    color: hsla(var(--foreground-h), var(--foreground-s), var(--foreground-l), 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

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

.testimonial-author-name {
    font-weight: 600;
    color: var(--foreground);
}

.testimonial-author-company {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
    color: var(--muted-foreground);
}

/* ==========================================================================
   Contact Section (réplica exacta del React)
   ========================================================================== */
.contact {
    padding: 5rem 0;
    position: relative;
}

@media (min-width: 768px) {
    .contact {
        padding: 8rem 0;
    }
}

.contact-inner {
    max-width: 72rem;
    margin: 0 auto;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
    .contact-info-row {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
}

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

.contact-info-item:hover .contact-info-icon {
    background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
}

.contact-info-item.accent:hover .contact-info-icon {
    background-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2);
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.contact-info-icon.primary {
    background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
}

.contact-info-icon.accent {
    background-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.1);
}

.contact-info-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-info-icon.primary svg {
    color: var(--primary);
}

.contact-info-icon.accent svg {
    color: var(--accent);
}

.contact-info-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0px;
}

.contact-info-value {
    font-weight: 500;
    color: var(--foreground);
    transition: color 0.2s ease;
    margin: 0px;
}

a.contact-info-item:hover .contact-info-value {
    color: var(--primary);
}

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

/* CTA Cards - lado a lado como React */
.contact-cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.contact-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    height: 100%;
}

.contact-card.highlight {
    background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.05);
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.contact-card p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}
.contact-card .btn svg{
    height: 20px;
}

/* ==========================================================================
   Contact Form Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    position: relative;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scale-in 0.3s ease-out;
}

.modal-header {
    padding: 1.5rem 2.5rem 0 1.5rem;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--muted-foreground);
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: color 0.2s ease;
    cursor: pointer;
    z-index: 1;
}

.modal-close:hover {
    color: var(--foreground);
}

.modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
    position: relative;
}

/* Form Styles - réplica del React (labels arriba, space-y-4) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-form button svg{
    height: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-control {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.625rem 0.75rem;
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control::placeholder {
    color: var(--muted-foreground);
}

textarea.form-control {
    resize: none;
    min-height: 100px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-inner {
    max-width: 72rem;
    margin: 0 auto;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 4rem;
    width: auto;
}

.footer-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-links button {
    color: var(--muted-foreground);
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--primary);
}

.footer-links svg {
    width: 1rem;
    height: 1rem;
}

.footer-links .icon-primary {
    color: var(--primary);
}

.footer-links .icon-accent {
    color: var(--accent);
}

.footer-links .icon-yellow {
    color: var(--yellow);
}

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

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-credit {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-credit a {
    color: var(--primary);
    transition: text-decoration 0.2s ease;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 200;
}

.toast {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    display: none;
    animation: fade-in 0.3s ease-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.toast.show {
    display: block;
}

.toast-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

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