/* style.css - improved */

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

:root {
    --bg: #f3f7fb;            /* soft sky-ish */
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;

    --green-900: #064e3b;     /* deep green */
    --green-700: #0f766e;     /* teal-green accent */
    --green-600: #16a34a;     /* button */
    --green-650: #15803d;     /* button hover */
    --green-100: #dcfce7;     /* subtle highlights */

    --border: rgba(31, 41, 55, 0.12);
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-soft: 0 6px 16px rgba(0,0,0,0.06);

    --radius: 12px;
    --radius-sm: 10px;
    --radius-xs: 8px;

    --focus: rgba(22, 163, 74, 0.28);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.5;
    background: radial-gradient(1200px 600px at 20% 0%, #e9f5ff 0%, var(--bg) 55%);
    color: var(--text);
}

/* Optional: nicer default selection */
::selection {
    background: var(--green-100);
}

/* ---------- Layout ---------- */
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 22px 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--green-900);
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

p, label {
    font-size: 1rem;
    margin: 0 0 10px;
    color: var(--text);
}

small,
.muted {
    color: var(--muted);
}

/* ---------- Cards / Panels (used by forms & any white boxes) ---------- */
form,
.card,
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 20px;
}

/* ---------- Inputs ---------- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

select {
    cursor: pointer;
}

input[type="file"] {
    padding: 10px;
}

/* Focus styles (important for accessibility + nicer UI) */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(22, 163, 74, 0.6);
    box-shadow: 0 0 0 4px var(--focus);
}

/* ---------- Buttons ---------- */
input[type="submit"],
button,
.btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 10px 16px;
    font-size: 1rem;
    background: linear-gradient(180deg, var(--green-600), var(--green-650));
    color: #fff;
    box-shadow: 0 10px 18px rgba(22, 163, 74, 0.18);
    transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

input[type="submit"]:hover,
button:hover,
.btn:hover {
    filter: brightness(1.02);
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.22);
}

input[type="submit"]:active,
button:active,
.btn:active {
    transform: translateY(1px);
}

/* Disabled styles */
input[type="submit"]:disabled,
button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, var(--green-900), #043b2d);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.navbar a {
    display: inline-block;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 14px 16px;
    font-size: 0.98rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.navbar a:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
}

/* If you later add "active" class to current page link */
.navbar a.active {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

/* ---------- Images ---------- */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.06);
}

/* Profile picture (keeps your original intent, just cleaner) */
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

th {
    background: linear-gradient(180deg, var(--green-900), #043b2d);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

tr:hover td {
    background: rgba(22, 163, 74, 0.04);
}

/* ---------- Utility / Feedback boxes ---------- */
.error-box {
    background: #fff5f5;
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #7f1d1d;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    box-shadow: var(--shadow-soft);
}

.success-box {
    background: #f0fdf4;
    border: 1px solid rgba(22, 163, 74, 0.25);
    color: #14532d;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    box-shadow: var(--shadow-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .container {
        width: 92%;
        padding: 18px 0;
    }

    .navbar a {
        display: block;
        padding: 12px 14px;
    }

    form {
        padding: 16px;
    }
}

/* ---------- Sticky footer layout ---------- */
/* Add class="site-shell" to body OR apply these to body directly.
   Easiest: apply to body so you don't change HTML everywhere. */
html, body {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-footer {
    margin-top: auto; /* makes footer stick to bottom on short pages */
}

/* ---------- Premium Footer ---------- */
.site-footer {
    background: linear-gradient(180deg, #043b2d, #022a20);
    color: rgba(255,255,255,0.92);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-top {
    padding: 46px 0 26px;
}

.footer-container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.footer-top .footer-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.site-footer p,
.site-footer li {
    margin: 0 0 10px;
    color: rgba(255,255,255,0.84);
    font-size: 0.95rem;
}

.site-footer strong {
    color: rgba(255,255,255,0.94);
}

.site-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
}
.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-muted {
    color: rgba(255,255,255,0.72);
}
.tiny {
    font-size: 0.82rem;
    margin-top: 10px;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.social-btn:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
    text-decoration: none;
}
.social-btn svg {
    width: 18px;
    height: 18px;
    fill: rgba(255,255,255,0.92);
}

/* Newsletter form */
.newsletter {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.newsletter input[type="email"] {
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 10px 14px;
}
.newsletter input[type="email"]::placeholder {
    color: rgba(255,255,255,0.65);
}
.newsletter input[type="email"]:focus {
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
}

.newsletter button {
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.20);
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
    color: #fff;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.08s ease;
}
.newsletter button:hover {
    filter: brightness(1.05);
}
.newsletter button:active {
    transform: translateY(1px);
}

/* Slim copyright bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 14px 0;
    background: rgba(0,0,0,0.14);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
}

/* A11y: screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 950px) {
    .footer-top .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .footer-top .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .newsletter {
        flex-direction: column;
    }
}

/* ---------- Legal / Small Print pages ---------- */
.legal-wrap {
    padding: 22px 0 36px;
}

.legal-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.legal-actions {
    display: flex;
    gap: 10px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, var(--green-600), var(--green-650));
    box-shadow: 0 10px 18px rgba(22, 163, 74, 0.18);
}

.btn-link:hover {
    filter: brightness(1.02);
}

.legal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.legal-card-head {
    margin-bottom: 12px;
}

.legal-section {
    margin-top: 14px;
}

.legal-section h3 {
    margin: 0 0 8px;
}

.legal-divider {
    border: none;
    border-top: 1px solid rgba(31, 41, 55, 0.10);
    margin: 18px 0;
}

/* PDF embed */
.pdf-frame {
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 12px;
    overflow: hidden;
    height: 76vh;
    min-height: 520px;
    background: #fff;
}
.pdf-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 800px) {
    .legal-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .pdf-frame {
        height: 70vh;
        min-height: 440px;
    }
}

/* Legal list styling */
.legal-list {
    padding-left: 18px;
    margin: 10px 0 0;
}
.legal-list li {
    margin-bottom: 10px;
}
	
/* Navbar upgrade */
.navbar {
    background-color: #004d00;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-left, .nav-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.navbar a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
}

.navbar a:hover {
    background: rgba(255,255,255,0.10);
}

.navbar a.active {
    background: rgba(255,255,255,0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}