@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Vollkorn:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Font Stacks */
    --font-header: 'Oswald', sans-serif;
    --font-body: 'Vollkorn', serif;

    /* Shadcn Zinc Palette */
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    
    /* Global Border Radius (20px) */
    --radius: 1.25rem; 
    --capsule: 9999px;

    /* Nav & Link Specifics */
    --nav-h: 80px; 
    --brand-orange: #D64000;
    --brand-orange-light: #fff5f0; 
}

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

body {
    font-family: var(--font-body);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1.1rem; 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-h);
}

/* --- Heading Hierarchy --- */
h1 { 
    font-family: var(--font-header);
    font-size: 2.4rem; 
    font-weight: 700; 
    color: hsl(var(--foreground));
    line-height: 1.1;
    /* letter-spacing: 0.12em; */
    text-transform: uppercase;
    margin-bottom: 1.5rem; /* Added spacing here */
}

h2, h3, h4 { 
    font-family: var(--font-body);
    color: hsl(var(--foreground));
    line-height: 1.3;
    text-transform: none;
    font-weight: 700;
}

h2 { font-size: 1.8rem; margin-bottom: -0.5rem; }
h3 { font-size: 1.4rem; margin-bottom: -0.5rem; }

a {
    text-decoration: none;
    color: var(--brand-orange);
    transition: all 0.2s ease-in-out;
}

a:hover {
    opacity: 0.8;
}

/* --- Layout & Grid --- */
.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 3rem 1.5rem; 
}

/* --- Navigation --- */
nav {
    position: fixed; 
    top: 0; left: 0; right: 0; 
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: 1px solid hsl(var(--border));
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    padding: 0 1.5rem;
}

.nav-left, .nav-right { flex: 1; display: flex; align-items: center; }
.nav-center { flex: 0 0 auto; display: flex; justify-content: center; }
.nav-right { justify-content: flex-end; }

.brand-link {
    display: flex; align-items: center;
    padding: 0.6rem 1.5rem; border-radius: var(--capsule);
    transition: background-color 0.2s ease-in-out;
}
.brand-link:hover { background-color: var(--brand-orange-light); }

.nav-links { display: flex; align-items: center; gap: 0; }

nav a {
    font-family: var(--font-body);
    color: hsl(var(--foreground)) !important;
    font-size: 1.1rem; 
    font-weight: 500; 
    padding: 0.55rem 1rem 0.45rem 1rem; 
    border-radius: var(--capsule);
}

nav a:hover { 
    background-color: var(--brand-orange-light); 
    color: var(--brand-orange) !important; 
}

.nav-logo { 
    height: 50px; 
    width: auto; 
    display: block; 
    transition: filter 0.2s ease-in-out; 
}

.brand-link:hover .nav-logo {
    filter: invert(34%) sepia(97%) saturate(5833%) hue-rotate(11deg) brightness(101%) contrast(106%);
}

/* --- UI Components --- */
.card {
    border: 1px solid hsl(var(--border)); 
    border-radius: var(--radius); 
    background: hsl(var(--card)); 
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.btn {
    font-family: var(--font-body); 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    border-radius: var(--capsule); 
    
    font-size: 1.1rem; 
    height: 2.5rem; 
    font-weight: 600;
    padding: 0 1.25rem; 
    padding-top: 2px; 
    
    transition: 0.2s; 
    cursor: pointer; 
    border: none;
    -webkit-appearance: none;
}

.btn-primary { 
    background: hsl(var(--primary)); 
    color: hsl(var(--primary-foreground)); 
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary { 
    background: hsl(var(--secondary)); 
    color: hsl(var(--secondary-foreground)); 
    border: 1px solid hsl(var(--border));
}

/* --- Form Styles --- */
.form-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.field {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field label {
    font-size: 0.9rem;
    font-weight: 700;
}

.field input, .field textarea, .field select {
    font-family: var(--font-body);
    font-size: 1.1rem; 
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--input));
    background: hsl(var(--background));
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

/* --- Sidebar Layout --- */
.more-layout {
    display: flex;
    gap: 5rem; 
    align-items: flex-start;
}

.sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-group h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.sidebar-group a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem; 
    font-weight: 500; 
    color: hsl(var(--foreground));
}

.sidebar-group a:hover {
    color: var(--brand-orange);
}

.main-content {
    flex: 1;
}

/* HIDDEN ON DESKTOP */
.sidebar-toggle {
    display: none !important; 
}

/* --- Footer --- */
footer { 
    border-top: 1px solid hsl(var(--border)); 
    padding: 3rem 0; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.location-link {
    font-size: 1.1rem; 
    font-weight: 600; 
    color: var(--brand-orange);
}

.footer-text { 
    font-size: 0.85rem; 
    color: hsl(var(--muted-foreground)); 
    font-weight: 400;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .nav-right { display: none; }
    nav { justify-content: space-between; padding: 0 1rem; }
    .container { padding: 2rem 1.25rem; }

    .more-layout {
        flex-direction: column;
        gap: 0;
    }

    /* VISIBLE ON MOBILE */
    .sidebar-toggle {
        display: inline-flex !important;
        -webkit-appearance: none;
        appearance: none;
        align-items: center;
        justify-content: center;
        background: hsl(var(--secondary));
        border: 1px solid hsl(var(--border));
        padding: 0.5rem 1.5rem;
        border-radius: var(--capsule);
        font-family: var(--font-body);
        font-weight: 500; 
        font-size: 1.1rem !important; 
        color: #000000 !important; 
        cursor: pointer;
        margin-bottom: 1.5rem;
    }

    .sidebar {
        display: none;
        flex: none;
        width: 100%;
        background: hsl(var(--muted) / 0.5);
        padding: 1.5rem;
        border-radius: var(--radius);
        margin-bottom: 2rem;
        position: static;
    }

    .sidebar.active {
        display: flex;
    }
}