/* assets/style.css */
:root {
    /* These will be overridden by inline styles in the header */
    --primary: #3498db;
    --primary-bg: rgba(52, 152, 219, 0.05);
}

html { overflow-y: scroll; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
	width: 100%;
    margin: 10vh auto 0 auto;
    padding: 2rem;
    text-align: center;
	border-radius: 12px;
	background: var(--primary-bg);
	border: 1px solid var(--primary-border);
	border-top: 4px solid var(--primary-accent);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Typography */
h1 { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
p.description { font-size: 1.2rem; color: #666; margin-bottom: 2rem; }

/* Components */
/* Update your existing .btn block or add this */
.btn, 
button.btn, 
input[type="submit"].btn {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit; /* Ensures it matches the site font */
    transition: filter 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    line-height: 1;
    -webkit-appearance: none; /* Removes default mobile browser styling */
}

.btn:hover {
    filter: brightness(90%);
}

.btn:active {
    transform: translateY(1px); /* Gives a nice "click" feel */
}

/* Ensure full-width buttons (like on the login/contact forms) still work */
.btn-block {
    width: 100%;
    display: block;
}

/* Form Styles */
.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

/* Footer */
.main-footer {
    margin-top: auto;
    padding: 3rem 1rem;
    background-color: var(--primary-bg);
    text-align: center;
    font-size: 0.9rem;
}

.success-message h2 {
    color: #155724;
    margin-top: 0;
}

.contact-form {
    text-align: left;
}

.cf-turnstile {
    margin: 1.5rem 0;
}

/* Ensure form-control looks consistent on mobile */
.form-control {
    font-size: 1rem;
    font-family: inherit;
}

/* assets/style.css additions */

.main-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area .site-logo {
    max-height: 50px;
    display: block;
}

.logo-area .text-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

.admin-link {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Mobile responsive tweak */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
}

/* assets/style.css updates */

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dynamic-logo {
    height: 45px; /* Control the overall height of the logo area */
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .dynamic-logo {
        height: 35px; /* Slightly smaller on mobile */
    }
}

.logo-area {
    display: flex;
    align-items: center;
    max-width: 300px; /* Limits the horizontal space the logo can take */
}

.dynamic-logo {
    height: 38px;      /* This is the master control for size */
    width: auto;        /* Let it grow horizontally based on name length */
    max-width: 100%;
    display: block;
}

.site-logo {
    height: 38px;      /* Keep image logos same size as SVG logos */
    width: auto;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .dynamic-logo, .site-logo {
        height: 30px; 
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between the square icon and the text */
    text-decoration: none;
}

.brand-mark {
    height: 38px;
    width: 38px;
    flex-shrink: 0; /* Prevents the icon from squishing */
    display: block;
}

.brand-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    white-space: nowrap; /* Prevents name from wrapping to a second line */
    line-height: 1;
}

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

@media (max-width: 600px) {
    .brand-mark { height: 32px; width: 32px; }
    .brand-text { font-size: 1.2rem; }
}