/* =====================================================
   FastCHEX — Global Styles
   Brand colours from archived Business Gravity theme:
     Primary Green : #3dc65d
     Dark Navy     : #10242b
     Red Accent    : #E62739
     Footer Dark   : #212121
     Link Blue     : #0085BA
   Font: Poppins (loaded via Google Fonts in App.razor)
===================================================== */

/* --- Reset / Base --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #292929;
    margin: 0;
    padding: 0;
    background-color: #f6f8f9;
    line-height: 1.6;
}

a { color: #0085BA; text-decoration: none; transition: color 0.3s; }
a:hover, a:focus, a:active { color: #E62739; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 8px;
    margin-bottom: 10px;
    color: #10242b;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p  { margin: 0 0 1rem 0; }
ul { padding-left: 1.25rem; }

/* --- Blazor validation utilities ------------------ */
h1:focus { outline: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #3dc65d; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }
.blazor-error-boundary { background: #b32121; padding: 1rem 1rem 1rem 3.7rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }
.darker-border-checkbox.form-check-input { border-color: #929292; }

/* --- Page shell ----------------------------------- */
.page { display: flex; flex-direction: column; min-height: 100vh; }

/* --- Site Header ---------------------------------- */
.site-header {
    background-color: #ffffff;
    border-bottom: 4px solid #3dc65d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.logo-section { display: flex; align-items: center; gap: 1rem; }
.logo-section a { display: flex; align-items: center; text-decoration: none; }
.logo-section img { max-height: 80px; width: auto; }
.logo-section .tagline { margin: 0; color: #5c666a; font-size: 0.95rem; font-weight: 500; }

.header-contact { text-align: right; font-size: 0.88rem; color: #5c666a; }
.header-contact p { margin: 0.25rem 0; }
.header-contact a { color: #10242b; font-weight: 500; }
.header-contact a:hover { color: #3dc65d; }

/* --- Navigation ----------------------------------- */
.site-nav { background-color: #10242b; }

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: stretch;
}

.nav-inner a,
.nav-inner .dropbtn {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 1.2rem;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s;
    white-space: nowrap;
}

.nav-inner a:hover,
.nav-inner .dropbtn:hover,
.nav-inner a.active {
    background-color: #3dc65d;
    color: #ffffff;
}

.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 210px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 100;
    border-top: 3px solid #3dc65d;
}

.dropdown-content a {
    color: #10242b;
    padding: 0.7rem 1.25rem;
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover { background-color: #3dc65d; color: #ffffff; }
.dropdown:hover .dropdown-content { display: block; }

/* --- Inner page banner ---------------------------- */
.inner-banner {
    background-color: #5c666a;
    background-size: cover;
    background-position: center center;
}

.banner-overlay {
    background-color: rgba(16, 36, 43, 0.55);
    padding: 5.5rem 1.5rem;
    text-align: center;
}

.banner-overlay .page-title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* --- Breadcrumb ----------------------------------- */
.breadcrumb-bar {
    background-color: #f2f2f2;
    border-bottom: 1px solid #e6e6e6;
    padding: 0.55rem 1.5rem;
    font-size: 0.82rem;
}

.breadcrumb-bar .bc-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb-bar a { color: #0085BA; }
.breadcrumb-bar a:hover { color: #E62739; }
.breadcrumb-bar span { color: #777; }

/* --- Main content area ---------------------------- */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    width: 100%;
}

/* --- Footer --------------------------------------- */
.site-footer {
    background-color: #212121;
    color: #b3b3b3;
    padding: 2rem 1.5rem;
    font-size: 0.875rem;
}

.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }

.footer-social {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.footer-social ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.footer-social ul li a:hover { background-color: #3dc65d; border-color: #3dc65d; }
.site-info { color: #777; font-size: 0.78rem; margin-top: 0.75rem; }

/* --- Shared post / page content ------------------- */
.page-content { width: 100%; }

.post-text {
    background-color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    line-height: 1.75;
}

.post-text p { margin-bottom: 1rem; }
.post-text ul { margin-bottom: 1rem; }
.post-text ul li { margin-bottom: 0.4rem; }
.post-text h2, .post-text h3, .post-text h4 { color: #10242b; margin-top: 1.5rem; }
.post-text strong { color: #10242b; }
.post-text .has-medium-font-size { font-size: 1.1rem; }
.post-text .has-text-align-center { text-align: center; }

/* --- Contact page --------------------------------- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-detail-box {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-top: 3px solid #3dc65d;
}

.contact-detail-box h4 { margin-top: 0; color: #3dc65d; margin-bottom: 0.75rem; }
.contact-detail-box p { margin: 0.2rem 0; font-size: 0.9rem; }
.hours-note { font-size: 0.78rem !important; color: #5c666a; margin-top: 0.5rem !important; }

.contact-form-section {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.contact-form-section h2 { margin-top: 0; color: #10242b; }
.form-intro { color: #5c666a; margin-bottom: 1.75rem; font-size: 0.95rem; }

.contact-form { display: flex; flex-direction: column; gap: 0; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group { margin-bottom: 1.25rem; display: flex; flex-direction: column; }

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #10242b;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.required { color: #E62739; margin-left: 2px; }
.optional { color: #999; font-weight: 400; font-size: 0.8rem; text-transform: none; letter-spacing: 0; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #e1e1e1;
    border-radius: 3px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #292929;
    background: #fafafa;
    outline: none;
    transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3dc65d;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(61, 198, 93, 0.15);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-group .validation-message {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: #E62739;
}

.form-actions { margin-top: 0.5rem; }

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #3dc65d;
    color: #ffffff;
    border: none;
    padding: 0.85rem 2.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.25s, transform 0.15s;
    letter-spacing: 0.02em;
}

.btn-submit:hover:not(:disabled) { background-color: #E62739; }
.btn-submit:active:not(:disabled) { transform: translateY(1px); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* =====================================================
   Blog
===================================================== */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.14); }

.blog-card__img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.4rem;
    display: block;
}

.blog-card__title {
    font-size: 1.1rem;
    margin: 0 0 0.6rem 0;
}

.blog-card__title a { color: #10242b; }
.blog-card__title a:hover { color: #3dc65d; }

.blog-card p {
    font-size: 0.9rem;
    color: #555;
    flex: 1;
}

.blog-card__link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3dc65d;
}

.blog-card__link:hover { color: #E62739; }

/* Blog post (single article) */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post__header {
    margin-bottom: 1.5rem;
}

.blog-post__hero {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 0.75rem;
}

.blog-post__back {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.blog-post__back a {
    color: #3dc65d;
    font-weight: 600;
}

.blog-post__back a:hover { color: #E62739; }

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Alert banners */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-alert p { margin: 0.2rem 0 0 0; font-size: 0.88rem; }
.form-alert strong { display: block; }

.form-alert__icon {
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.form-alert--success {
    background-color: #edfaf1;
    border: 1px solid #b2e8bf;
    color: #1a6630;
}

.form-alert--error {
    background-color: #fdf2f2;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-alert--error a { color: #721c24; font-weight: 600; }

/* --- Responsive ----------------------------------- */
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
    .logo-section { flex-direction: column; text-align: center; }
    .header-contact { text-align: center; }
    .nav-inner { flex-wrap: wrap; justify-content: center; }
    .banner-overlay { padding: 3rem 1rem; }
    .banner-overlay .page-title { font-size: 26px; }
    .post-text { padding: 1.25rem; }
    .contact-form-section { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}