:root {
    --brand-yellow: #ffeb9a;
    --brand-yellow-dark: #f0d564;
    --brand-dark: #3a3225;
    --brand-text: #4a4433;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--brand-text);
    background-color: #fffdf5;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--brand-yellow);
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--brand-dark);
}

.brand img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Nav */
.site-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    border-bottom-color: var(--brand-dark);
}

/* Main content */
.site-main {
    flex: 1;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--brand-yellow) 0%, #fff8dd 100%);
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    color: var(--brand-dark);
}

/* FocusOnNavigate moves keyboard focus to the page's h1 for accessibility;
   suppress the visible focus ring so it doesn't look like a stray selection box. */
h1:focus,
h1:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.hero p.subtitle {
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto 2rem auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--brand-dark);
    color: var(--brand-yellow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-dark);
    border: 2px solid var(--brand-dark);
}

.btn-outline:hover {
    background-color: var(--brand-dark);
    color: var(--brand-yellow);
}

/* Sections */
.section {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--brand-dark);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    border: 1px solid var(--brand-yellow-dark);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow-wrap: break-word;
    word-break: break-word;
}

.card a {
    overflow-wrap: break-word;
    word-break: break-word;
}

.card h3 {
    color: var(--brand-dark);
    margin-top: 0;
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--brand-dark);
    color: var(--brand-yellow);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.site-footer a {
    color: var(--brand-yellow);
}

/* Contact form */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--brand-yellow-dark);
    font-family: inherit;
    font-size: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.social-links a,
.social-links a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.social-links a:hover,
.social-links a:visited:hover {
    background-color: var(--brand-yellow-dark);
    transform: translateY(-2px);
}
@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }
}
