/* Garden Office Template - Main CSS */
/* Conservative design with pastel high-contrast colors */

:root {
    /* Primary Color Palette - 5 colors as required */
    --primary-color: #3a6ea5;        /* Calming blue */
    --secondary-color: #6b98c2;      /* Soft blue */
    --accent-color: #d88e4f;         /* Warm orange */
    --tertiary-color: #4c6a8a;       /* Medium blue-grey */
    --highlight-color: #f2f6fa;      /* Light blue-grey */
    
    /* Light and dark shades */
    --primary-light: #5384b8;
    --primary-dark: #2a517d;
    --secondary-light: #8baed1;
    --secondary-dark: #4c81b3;
    --accent-light: #e2a673;
    --accent-dark: #c27335;
    
    /* Neutral colors */
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    
    /* Conservative typography */
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --line-height-base: 1.6;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 1.5rem;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Conservative typography - avoiding large sizes */
h1, .h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h2, .h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--tertiary-color);
    margin-bottom: 0.75rem;
}

h5, .h5 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Conservative navbar brand size */
.navbar-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Lead paragraph styling */
.lead {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Button customizations using Bootstrap variables */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Card enhancements */
.card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(44, 85, 48, 0.15);
}

/* Hero section styling */
#hero-main {
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(127, 176, 105, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-buttons .btn {
    margin-bottom: 0.5rem;
}

/* Services section styling */
.price-tag {
    background-color: var(--highlight-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* Gallery styling */
.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Testimonials styling */
.stars i {
    font-size: 1rem;
    margin-right: 0.125rem;
}

/* Team section styling */
.team-member img {
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

/* Feature items styling */
.feature-item {
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.feature-item:hover {
    background-color: var(--bg-light);
}

.feature-icon {
    flex-shrink: 0;
}

/* Quality items styling */
.quality-item {
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.quality-icon {
    flex-shrink: 0;
}

/* Timeline styling */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-number {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.timeline-item:nth-child(even) .timeline-number {
    left: -60px;
}

.timeline-year {
    position: absolute;
    width: auto;
    min-width: 70px;
    padding: 5px 10px;
    right: -90px;
    background-color: var(--accent-color);
    border-radius: 5px;
    top: 15px;
    z-index: 2;
    text-align: center;
    color: white;
    font-weight: bold;
}

.timeline-item:nth-child(even) .timeline-year {
    left: -90px;
    right: auto;
}

/* History timeline specific styles */
.history-timeline .timeline-item-content {
    border-left: 4px solid var(--accent-color);
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-number, 
    .timeline-item:nth-child(even) .timeline-number {
        left: 10px;
        right: auto;
    }
    
    .timeline-year, 
    .timeline-item:nth-child(even) .timeline-year {
        left: 10px;
        right: auto;
    }
}

/* Step numbers for process */
.step-number {
    font-weight: 700;
    width: 60px;
    height: 60px;
}

/* Contact form enhancements */
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Footer styling with high contrast */
footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

footer h5,
footer h6 {
    color: var(--bg-white);
}

footer a {
    color: #cbd5e0;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--bg-white);
}

/* Map container */
.map-container {
    background-color: var(--secondary-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Breadcrumb styling */
.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item img {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.breadcrumb-item:hover img {
    opacity: 1;
}

/* Utility classes */
.bg-primary-custom {
    background-color: var(--primary-color);
}

.bg-secondary-custom {
    background-color: var(--secondary-color);
}

.bg-accent-custom {
    background-color: var(--accent-color);
}

.text-primary-custom {
    color: var(--primary-color);
}

.text-secondary-custom {
    color: var(--secondary-color);
}

/* Section spacing */
section {
    padding: var(--section-padding);
}

/* Custom spacing utilities */
.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.my-6 {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    h1, .h1 {
        font-size: 1.875rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-decoration {
        display: none;
    }
    
    .feature-item,
    .quality-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon,
    .quality-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

/* Accessibility improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    #hero-main .hero-decoration {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, .h1 {
        font-size: 18pt;
    }
    
    h2, .h2 {
        font-size: 16pt;
    }
}

/* Performance optimizations */
.img-fluid {
    height: auto;
    max-width: 100%;
}

/* Smooth transitions for interactive elements */
a,
.btn,
.card,
.form-control,
.form-select {
    transition: all 0.2s ease-in-out;
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast text readability */
.text-white {
    color: #ffffff;
}

.text-dark {
    color: var(--text-dark);
}

.text-muted {
    color: var(--text-muted);
}

/* Custom spacing for better content flow */
.mb-6 {
    margin-bottom: 3.5rem;
}

.mt-6 {
    margin-top: 3.5rem;
} 