/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
    /* Modern Property Services Theme */
    --background: 120 20% 98%;
    --foreground: 210 25% 15%;

    --card: 0 0% 100%;
    --card-foreground: 210 25% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 210 25% 15%;

    /* Primary: Forest Green from logo */
    --primary: 142 55% 35%;
    --primary-foreground: 0 0% 100%;
    --primary-light: 142 45% 92%;

    /* Secondary: Blue from house in logo */
    --secondary: 210 70% 35%;
    --secondary-foreground: 0 0% 100%;

    --muted: 120 10% 94%;
    --muted-foreground: 210 15% 45%;

    /* Accent: Lime green highlight */
    --accent: 90 55% 50%;
    --accent-foreground: 210 25% 15%;

    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 100%;

    --border: 120 15% 88%;
    --input: 120 15% 88%;
    --ring: 142 55% 35%;

    --radius: 0.75rem;

    /* Modern gradients */
    --gradient-hero: linear-gradient(135deg, hsl(142 55% 35%) 0%, hsl(90 55% 50%) 100%);
    --gradient-blue: linear-gradient(135deg, hsl(210 70% 35%) 0%, hsl(200 70% 50%) 100%);
    --gradient-overlay: linear-gradient(180deg, hsla(210 25% 15% / 0.8) 0%, hsla(210 25% 15% / 0.4) 100%);
    --gradient-glass: linear-gradient(135deg, hsla(0 0% 100% / 0.1) 0%, hsla(0 0% 100% / 0.05) 100%);
    --gradient-dark: linear-gradient(180deg, hsl(210 25% 10%) 0%, hsl(210 25% 15%) 100%);

    /* Shadows */
    --shadow-card: 0 4px 20px hsla(210 25% 15% / 0.08);
    --shadow-elevated: 0 20px 60px hsla(210 25% 15% / 0.15);
    --shadow-glow: 0 0 40px hsla(142 55% 35% / 0.3);
    --shadow-glass: 0 8px 32px hsla(210 25% 15% / 0.1);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Styles */
* {
    border-color: hsl(var(--border));
}

html {
    overflow-x: hidden;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Utility Classes */
/* Bootstrap-style Container */
.container-custom {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Bootstrap breakpoints */
@media (min-width: 576px) {
    .container-custom {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container-custom {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container-custom {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container-custom {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container-custom {
        max-width: 1320px;
    }
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

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

.card-elevated {
    background-color: hsl(var(--card));
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

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

/* Glassmorphism effect */
.glass {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background-color: hsla(var(--card) / 0.95);
    border: 1px solid hsla(var(--border) / 0.5);
}

.glass-dark {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsla(var(--border) / 0.2);
    background: hsla(210 25% 15% / 0.85);
}

/* Modern service card */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background-color: hsl(var(--card));
    box-shadow: var(--shadow-card);
    transition: all 0.5s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-0.5rem);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: var(--gradient-glass);
}

.service-card:hover::before {
    opacity: 1;
}

/* Stats counter styling */
.stat-card {
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--gradient-hero);
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes blurIn {
    from {
        opacity: 0;
        filter: blur(10px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes scrollDot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(12px);
    }
}

@keyframes scrollIndicator {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

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

.animate-blur-in {
    animation: blurIn 0.8s ease-out forwards;
}

.animate-stagger {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-fill-mode: both;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

/* Float animations */
.float-slow {
    animation: float 6s ease-in-out infinite;
}

.float-slower {
    animation: float 8s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
    animation: scrollIndicator 2s ease-in-out infinite;
}

.scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

/* Hero background animation */
.hero-bg {
    animation: scaleIn 1.5s ease-out;
}

/* Underline animation */
.underline-animate {
    animation: scaleInX 0.8s ease-out 1s forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes scaleInX {
    to {
        transform: scaleX(1);
    }
}

/* Delay classes */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* Stat item animation */
.stat-item {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

.stat-item:nth-child(1) {
    animation-delay: 1s;
}

.stat-item:nth-child(2) {
    animation-delay: 1.1s;
}

.stat-item:nth-child(3) {
    animation-delay: 1.2s;
}

.stat-item:nth-child(4) {
    animation-delay: 1.3s;
}

/* Color utilities */
.bg-background {
    background-color: hsl(var(--background));
}

.bg-foreground {
    background-color: hsl(var(--foreground));
}

.bg-card {
    background-color: hsl(var(--card));
}

.bg-primary {
    background-color: hsl(var(--primary));
}

.bg-primary-light {
    background-color: hsl(var(--primary-light));
}

.bg-secondary {
    background-color: hsl(var(--secondary));
}

.bg-muted {
    background-color: hsl(var(--muted));
}

.bg-accent {
    background-color: hsl(var(--accent));
}

.text-foreground {
    color: hsl(var(--foreground));
}

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

.text-primary-foreground {
    color: hsl(var(--primary-foreground));
}

.text-secondary {
    color: hsl(var(--secondary));
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

.text-accent {
    color: hsl(var(--accent));
}

.border-border {
    border-color: hsl(var(--border));
}

.border-primary {
    border-color: hsl(var(--primary));
}

/* Shadow utilities */
.shadow-card {
    box-shadow: var(--shadow-card);
}

.shadow-elevated {
    box-shadow: var(--shadow-elevated);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.shadow-glass {
    box-shadow: var(--shadow-glass);
}

/* Gradient backgrounds */
.bg-gradient-hero {
    background-image: var(--gradient-hero);
}

.bg-gradient-blue {
    background-image: var(--gradient-blue);
}

.bg-gradient-dark {
    background-image: var(--gradient-dark);
}

/* Font utilities */
.font-heading {
    font-family: 'Montserrat', sans-serif;
}

.font-body {
    font-family: 'Open Sans', sans-serif;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
    max-height: 500px;
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(var(--primary) / 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

/* Button styles */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

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

.btn-outline:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

/* Checkbox and Radio styles */
input[type="checkbox"],
input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid hsl(var(--border));
    border-radius: 0.25rem;
    cursor: pointer;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

/* Loading spinner */
.spinner {
    border: 3px solid hsla(var(--primary) / 0.1);
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-elevated);
    animation: slideInRight 0.3s ease-out;
    z-index: 1000;
}

.toast.success {
    border-left: 4px solid hsl(var(--primary));
}

.toast.error {
    border-left: 4px solid hsl(var(--destructive));
}


/* Extracted from about.html */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Extracted from index.html */
.testimonials-slider {
    margin: 0 -15px;

    /* Increased space for quote icons that extend above cards */
}

.slick-list.draggable {
    padding-top: 30px;
}

.testimonial-item {
    padding: 0 15px;
}

/* Slick Arrow Styling */
.slider-arrows .slick-prev,
.slider-arrows .slick-next,
.testimonials-slider .slick-prev,
.testimonials-slider .slick-next {
    width: 50px;
    height: 50px;
    background: hsl(142, 55%, 35%);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.slider-arrows .slick-prev:hover,
.slider-arrows .slick-prev:focus,
.slider-arrows .slick-next:hover,
.slider-arrows .slick-next:focus,
.testimonials-slider .slick-prev:hover,
.testimonials-slider .slick-prev:focus,
.testimonials-slider .slick-next:hover,
.testimonials-slider .slick-next:focus {
    background: #298a4d;
}

.slider-arrows .slick-prev,
.slider-arrows .slick-next {
    position: static !important;
    transform: none !important;
    margin: 0;
}

/* Remove default Slick ::before content */
.slider-arrows .slick-prev:before,
.slider-arrows .slick-next:before,
.testimonials-slider .slick-prev:before,
.testimonials-slider .slick-next:before {
    content: none;
    display: none;
}

.slider-arrows .slick-prev svg,
.slider-arrows .slick-next svg,
.testimonials-slider .slick-prev svg,
.testimonials-slider .slick-next svg {
    display: block;
}

/* Override quote icon positioning for overflow */
.testimonials-slider .testimonial-item>div {
    overflow: visible !important;
}

/* Remove card shadow */
.testimonials-slider .bg-white {
    box-shadow: none !important;
}