/* ----------------------------------------------------
   GLOBAL RESET & VARIABLES
---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------------------------
   BASE TYPOGRAPHY & BODY
---------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3 {
    color: var(--text-color);
    font-weight: 600;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
ul { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.5rem; }

/* ----------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------- */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: block;
    max-width: 200px;
    margin: 1rem auto;
    height: auto;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.5rem;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: 0.3s ease;
}

nav a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ----------------------------------------------------
   LAYOUT
---------------------------------------------------- */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .two-column {
        grid-template-columns: 1fr 1fr;
    }
}

/* ----------------------------------------------------
   CARDS
---------------------------------------------------- */
.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card p {
    font-size: 1.2rem;
}

.cookie-notice { font-size: 1.2rem; }
.cookie-quote { font-size: 1.3rem; }

/* ----------------------------------------------------
   RESPONSIVE IMAGE FIX (your main issue)
---------------------------------------------------- */
.framed-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    border: 4px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
}

/* ----------------------------------------------------
   BUTTONS
---------------------------------------------------- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* ----------------------------------------------------
   FORMS
---------------------------------------------------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
    background-color: var(--light-bg);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0;
    color: #6b7280;
}

/* ----------------------------------------------------
   MOBILE OPTIMIZATION
---------------------------------------------------- */
@media (max-width: 767px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
    .logo { max-width: 150px; }
    nav a { padding: 0.5rem 0.75rem; font-size: 0.875rem; }
}

/* ----------------------------------------------------
   REDUCED MOTION
---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
