/* ==========================================================================
   Enable Technology - Wagtail Site Styles
   Color scheme based on the DigitalGrove WordPress theme
   ========================================================================== */

:root {
    --color-primary: #003AA5;
    --color-secondary: #000815;
    --color-tertiary: #569290;
    --color-bg-light: #F1F5FF;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-base: #F4F4F4;
    --color-dark-text: #121212;
    --color-btn-hover: #3c76a5;
    --color-btn-text: #f2f2f2;
    --color-border: #d1d1d1;
    --font-primary: 'DM Sans', sans-serif;
    --container-max: 1200px;
    --header-height: 80px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark-text);
    background: var(--color-white);
}

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

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

a:hover {
    color: var(--color-btn-hover);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

#site-header {
    background: var(--color-secondary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 2rem;
}

.site-branding a {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 45px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    margin: 5px 0;
    transition: all 0.3s;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.site-nav a {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.site-nav a:hover {
    color: var(--color-tertiary);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-tertiary);
    transition: width 0.3s;
}

.site-nav a:hover::after {
    width: 100%;
}

.header-cta .btn-outline {
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.header-cta .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-secondary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

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

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

/* ==========================================================================
   Hero Banner
   ========================================================================== */

.hero-banner {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 5rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-subtitle p {
    margin: 0;
}

.hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-box {
    background: #19212c;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 120px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.hero-image img {
    border-radius: 100px 0 100px 0;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section-label {
    text-align: center;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 3.5rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    border: 1px solid var(--color-border);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    padding: 5rem 0;
    background: var(--color-bg-light);
}

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

.about-image img {
    border-radius: 2px;
    width: 100%;
    object-fit: cover;
    min-height: 400px;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #444;
}

.about-feature {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--color-btn-hover);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.about-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.about-feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-section {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-base);
    padding: 2rem;
    border-radius: 8px;
}

.testimonial-card blockquote {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #444;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-primary);
}

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

.testimonial-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: #777;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.cta-section .btn-primary:hover {
    background: var(--color-base);
    color: var(--color-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

#site-footer {
    background: var(--color-secondary);
    color: var(--color-white);
}

#site-footer .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
}

.footer-col h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    background: var(--color-primary);
    text-align: center;
}

.footer-bottom .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

/* ==========================================================================
   Content Pages
   ========================================================================== */

.page-header {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-content {
    padding: 4rem 0;
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Search
   ========================================================================== */

.search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-results {
    list-style: none;
}

.search-results li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.search-results h3 {
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-secondary);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s;
        z-index: 1000;
    }

    .site-nav.active {
        right: 0;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .site-nav a {
        font-size: 1.1rem;
    }

    .header-cta {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

    .hero-banner {
        min-height: auto;
        padding: 3rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
    }

    .stat-box {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
    }
}
