/* BASE STYLES */
:root {
    --bg-main: #E9ECE8;
    --bg-surface: #FFFFFF;
    --text-dark: #20262A;
    --text-charcoal: #11171A;
    --brand-blue: #315D73;
    --steel-blue: #587887;
    --accent-yellow: #D8A72E;
    --soft-yellow: #E8D58F;
    --text-muted: #5A6669; 
    --border-color: #CCD3D2;
    --bg-panel: #F4F5F2;

    /* High-contrast text & border additions */
    --text-light: #F4F7F5;
    --text-muted-light: #A8B7B9;
    --border-dark: #8A999B;
    
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-charcoal);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--steel-blue);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--bg-surface);
}

.section-panel {
    background-color: var(--bg-panel);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

/* TYPOGRAPHY */
.title-xl { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
.title-lg { font-size: clamp(2rem, 4vw, 3rem); }
.title-md { font-size: clamp(1.5rem, 3vw, 2rem); }
.subtitle { font-size: 1.25rem; color: var(--text-muted); font-weight: 400; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: var(--bg-surface);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--text-charcoal);
    color: var(--bg-surface);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-charcoal);
    border-color: var(--steel-blue);
}

.btn-secondary:hover, .btn-secondary:focus {
    border-color: var(--text-charcoal);
    background-color: var(--bg-surface);
}

.btn-accent {
    background-color: var(--accent-yellow);
    color: var(--text-charcoal);
}

.btn-accent:hover {
    background-color: var(--soft-yellow);
}

.btn-hero-outline {
    background-color: transparent;
    color: var(--bg-surface);
    border-color: var(--bg-surface);
}

.btn-hero-outline:hover, .btn-hero-outline:focus {
    background-color: var(--bg-surface);
    color: var(--text-charcoal);
    border-color: var(--bg-surface);
}

/* HEADER & NAVIGATION */
.header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-charcoal);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-blue);
    border-bottom: 2px solid var(--accent-yellow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-charcoal);
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    position: relative;
    background-color: var(--text-charcoal);
    color: var(--text-light);
    padding: 8rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: var(--text-light);
}

.hero p {
    color: var(--text-muted-light);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

/* SERVICE FINDER */
.service-finder {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(17, 23, 26, 0.05);
}

.service-finder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.finder-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-dark);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.finder-btn:hover {
    background-color: var(--brand-blue);
    color: var(--bg-surface);
    border-color: var(--brand-blue);
}

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

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

.service-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(49, 93, 115, 0.1);
}

.card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    color: var(--brand-blue);
}

.card-list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card-list li::before {
    content: "•";
    color: var(--accent-yellow);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.card-action {
    margin-top: auto;
}

.article-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(49, 93, 115, 0.1);
}

/* WORKSHOP SIGNALS / CHECKLISTS */
.checklist-container {
    background-color: var(--bg-panel);
    border-left: 4px solid var(--accent-yellow);
    padding: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

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

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

.check-icon {
    width: 24px;
    height: 24px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-blue);
    font-size: 0.8rem;
}

/* FAQ ACCORDION */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    background-color: var(--bg-surface);
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-charcoal);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-btn::after {
    content: "+";
    color: var(--brand-blue);
    font-size: 1.5rem;
}

.faq-btn[aria-expanded="true"]::after {
    content: "−";
}

.faq-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-btn[aria-expanded="true"] + .faq-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    max-height: 500px;
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-charcoal);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: var(--bg-surface);
    color: var(--text-dark);
    transition: var(--transition);
}

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

.form-control:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(49, 93, 115, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-success {
    display: none;
    padding: 1.5rem;
    background-color: #E8F4F0;
    border-left: 4px solid #2B8A6B;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

/* ARTICLE / CONTENT PAGES */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.article-body h2 {
    margin-top: 2.5rem;
    color: var(--brand-blue);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    margin-top: 1.5rem;
}

.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.sidebar-widget {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

/* FOOTER */
.footer, footer {
    background-color: #11171A;
    color: #FFFFFF;
    padding: 4rem 0 2rem;
}

.footer h2,
.footer h3,
.footer h4,
.footer p,
.footer span,
.footer a,
.footer small,
.footer .copyright,
.footer .disclaimer,
footer h2,
footer h3,
footer h4,
footer p,
footer span,
footer a,
footer small,
footer .copyright,
footer .disclaimer {
    color: #FFFFFF !important;
}

.footer a:hover,
.footer a:focus,
footer a:hover,
footer a:focus {
    color: #D8A72E !important;
}

.footer-bottom,
.footer-bottom p,
.footer-bottom span,
.footer-bottom small {
    color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
}

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

.footer h4 {
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-charcoal);
    color: var(--text-light);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: none;
}

.cookie-banner.show {
    transform: translateY(0);
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

.cookie-text a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-dark);
    background: transparent;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie.primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.btn-cookie:hover {
    background-color: var(--text-light);
    color: var(--text-charcoal);
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
    .container { max-width: 100%; }
}

@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 0.5rem 0;
    }

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

    .header-actions .btn {
        display: none;
    }

    .hero {
        padding: 5rem 0;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .service-finder-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .service-finder-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}