:root {
    --primary-color: #333333;
    --secondary-color: #f9f9f9;
    --text-color: #333333;
    --background-color: #ffffff;
    --accent-color: #d1d1d1;
    --cta-color: #4CAF50;
    --cta-hover-color: #45a049;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

h1 {
    margin: 0;
    font-size: clamp(1.5em, 5vw, 2.5em);
    font-weight: 700;
}

header p {
    margin: 0.5rem 0;
    font-size: clamp(0.9em, 2vw, 1.1em);
    opacity: 0.9;
}

main {
    flex: 1;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

section {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: var(--shadow);
}

h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9em;
}

footer a {
    color: var(--accent-color);
}

footer a:hover, footer a:focus {
    color: var(--secondary-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--cta-color);
    color: var(--background-color);
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: var(--cta-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.flex-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.button-column {
    flex: 0 0 auto;
}

.text-column {
    flex: 1;
}

.image-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    header, footer, .cta-button {
        display: none;
    }

    main {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    h1, h2 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }

    a[href^="#"]:after {
        display: none;
    }

    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    main {
        padding: 0.5rem;
    }

    .flex-container {
        flex-direction: column;
    }
    
    .button-column {
        order: 2;
        width: 100%;
    }
    
    .text-column {
        order: 1;
    }

    .cta-button {
        display: block;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #66b3ff;
        --secondary-color: #2c2c2c;
        --text-color: #f4f4f4;
        --background-color: #1a1a1a;
        --accent-color: #ffd700;
        --cta-color: #4CAF50;
        --cta-hover-color: #45a049;
    }
}

main p, address p {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}