/*
 * Shared stylesheet for the four Fogarty Law Firm satellite sites.
 * Edit only this file — each <site>/static/site.css is a symlink to it.
 * scripts/build-dist.py dereferences the symlinks for deployment.
 */

:root {
    --color-primary: #9c3a3a;
    --color-primary-hover: #712a2a;
    --color-text: #333;
    --color-link: #9c3a3a;
    --color-link-hover: #712a2a;
    --color-border: #ddd;
    --color-hero-bg: #9c3a3a;
    --color-footer-bg: #9c3a3a;
    --container-max: 1170px;
    --radius: 4px;
    --radius-lg: 6px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-stack);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background: #fff;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); text-decoration: underline; }
a:focus-visible, .button:focus-visible {
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
}

h1, h2, h3 {
    font-weight: 500;
    line-height: 1.2;
    margin: 1.75rem 0 0.75rem;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 2rem; }
img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.hero {
    background: var(--color-hero-bg);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
}
.hero-title {
    margin: 0;
    font-size: 4rem;
    font-weight: 200;
    line-height: 1.1;
}
@media (max-width: 767px) {
    .hero { padding: 2rem 0; }
    .hero-title { font-size: 2.5rem; }
}

.layout {
    display: flex;
    gap: 2rem;
}
.content { flex: 3; min-width: 0; }
.sidebar { flex: 1; min-width: 0; }
@media (max-width: 991px) {
    .layout { display: block; }
    .sidebar { display: none; }
}

.cta {
    position: sticky;
    top: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
}
.cta > :last-child { margin-bottom: 0; }

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    padding: 10px 16px;
    font-size: 1.125rem;
    line-height: 1.333;
    font-weight: 400;
    text-align: center;
    color: #fff;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
}
.button:hover, .button:focus {
    color: #fff;
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    text-decoration: none;
}

.content-image {
    float: right;
    margin: 0 0 1rem 1.5rem;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
@media (max-width: 575px) {
    .content-image {
        float: none;
        display: block;
        margin: 0 auto 1rem;
    }
}

.site-footer {
    background: var(--color-footer-bg);
    color: #fff;
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer a:focus-visible { outline-color: #fff; }
.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 767px) {
    .footer-cols { grid-template-columns: 1fr; }
}
.footer-legal {
    text-align: center;
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
}
