/* 
Combined CSS for Phase 4 Templates
Includes base theme and navigation overrides
*/

/* CSS Variables (palette variables are defined dynamically in css/theme.css) */
:root {
    /* Palette variables come from theme.css: --primary-color, --secondary-color, --accent-color */
    --text-color: #333;
    --background-color: #fff;
    --light-gray-color: #f8f9fa;
    --border-color: #dee2e6;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --base-font-size: 16px;
    --line-height-base: 1.6;
    --spacing-unit: 8px;
}

/* Reset and Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-sans-serif);
    font-size: var(--base-font-size);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 600;
    line-height: 1.2;
}

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

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--spacing-unit) * 2);
    padding-right: calc(var(--spacing-unit) * 2);
}

/* Header */
.site-header {
    padding: calc(var(--spacing-unit) * 2) 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

/* Footer navigation (matches build_footer_nav_html output) */
.footer-navigation { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.footer-section h6 { color: #fff; margin: 0 0 0.5rem 0; font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0.25rem 0; }
.footer-links a { color: #ccc; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #999;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.hero-content h1 {
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.5;
}

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

.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

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

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
}

/* Cards and Grids */
.services-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card,
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card h3,
.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Location Page Styles */
.location-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.location-details {
    padding: 4rem 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

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

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

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
}

.day {
    font-weight: 500;
}

.map-container {
    background: var(--light-gray-color);
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: #666;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: var(--light-gray-color);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Focus styles for accessibility */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible, 
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
} 
/* ==========================================
   Themed Sections used by the simple compiler
   (classes match server build_sections_html)
   ========================================== */

/* Hero */
.hero-modern {
    padding: 0.36rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light, #ffffff);
}
.hero-modern.hero-with-image {
    position: relative;
    aspect-ratio: 3 / 1;
    width: min(100%, 1120px);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    background-size: cover !important;
    background-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%) !important;
    background-repeat: no-repeat;
}
.hero-modern .hero-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.45));
}
.hero-modern .container { position: relative; z-index: 1; }
.hero-modern h1 { color: #fff; margin-bottom: 1rem; }
.hero-modern p { color: rgba(255,255,255,0.92); }
@media (min-width: 1400px) {
  .hero-modern.hero-with-image { width: min(100%, 1120px); }
}

/* Features */
.features { padding: 3rem 0; background: var(--bg-primary, #ffffff); }
.features h2 { color: var(--text-primary, #111827); }
.features .features-grid { margin-top: 1.25rem; }
.feature-item i { color: var(--primary-color); font-size: 1.25rem; }
.features .feature-item { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; }
.features .feature-item h3,
.features .feature-item p { grid-column: 2 / -1; }
.features .feature-item i.fa-circle { color: var(--primary-color); font-size: 18px; line-height: 1; }

/* Content + Image */
.content-image-section { padding: 3rem 0; background: var(--bg-primary, #ffffff); }
.content-image-section h2 { color: var(--text-primary, #111827); }
.content-image-section .btn-primary { margin-top: 1rem; }

/* Process Steps */
.process-steps { padding: 3rem 0; background: var(--bg-primary, #ffffff); }
.process-step { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; border-radius: 10px; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.process-step:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); background: #ffffff; }
.process-number { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }

/* Testimonials */
.testimonials { padding: 3rem 0; background: var(--bg-primary, #ffffff); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.testimonial-card { background: #fff; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; padding: 1.25rem; }
.testimonial-card img { max-width: 64px; border-radius: 50%; }

/* CTA Bar */
.cta-bar { padding: 2rem 0; background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); color: #fff; }
.cta-bar .btn-primary { background: #fff; color: var(--primary-color); }

/* Reveal-on-scroll utility */
.reveal-on-scroll { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-on-scroll.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}