/* Omega Masonry LLC: A2P compliance site
   Brand colors from clients/omega-masonry-llc/brand-profile.md
   Red #F00000 (logo and accents), black #000000, off-white #F9FAFB, yellow #EBC700 (call buttons) */

:root {
    --primary-color: #F00000;
    --primary-dark: #C40000;
    --primary-darker: #9A0000;
    --black: #111111;
    --yellow: #EBC700;
    --yellow-dark: #CFAE00;
    --white: #FFFFFF;
    --cream: #F9FAFB;
    --cream-dark: #EEF0F2;
    --text-dark: #111111;
    --text-medium: #3F444A;
    --text-light: #62676D;
    --border-light: #E2E4E7;
    --error: #B42318;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
}

img {
    max-width: 100%;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 26px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

nav a:hover {
    color: var(--primary-dark);
}

.header-phone {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 9px 16px;
    border-radius: 8px;
    white-space: nowrap;
}

.header-phone:hover {
    background: var(--primary-darker);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    padding: 60px 0 72px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: start;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.18;
}

.hero .subhead {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    display: block;
    margin-bottom: 24px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.hero-facts {
    display: flex;
    gap: 28px;
    padding-top: 22px;
    border-top: 3px solid var(--primary-color);
    flex-wrap: wrap;
}

.fact-item {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.fact-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
}

/* Form card */
.form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    scroll-margin-top: 90px;
}

.form-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-card .form-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(240, 0, 0, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 96px;
}

.required {
    color: var(--error);
}

/* SMS consent (A2P critical) */
.sms-consent-section {
    margin: 22px 0;
    padding: 20px;
    background: var(--cream);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.sms-consent-section .consent-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
}

.checkbox-container:last-child {
    margin-bottom: 0;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary-dark);
}

.checkbox-text {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-medium);
}

.form-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.form-footer p {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 16px;
}

.form-footer a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-footer a:hover {
    color: var(--primary-darker);
}

.form-footer p.form-note {
    margin: 12px 0 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s ease;
    border: none;
    font-family: inherit;
    text-align: center;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-darker);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--black);
}

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

/* Sections */
.section {
    padding: 72px 0;
}

.section-alt {
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.services-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.service-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.35;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 12px;
    flex: 1;
}

.service-card a {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: underline;
}

/* About */
.about-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-inner img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    max-height: 560px;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-medium);
    margin-bottom: 16px;
}

/* Long-form service detail (services page) */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.service-detail:last-child {
    margin-bottom: 0;
}

.service-detail img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.service-detail h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-detail p {
    color: var(--text-medium);
    margin-bottom: 14px;
}

.service-detail ul {
    margin: 0 0 18px 20px;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.service-detail li {
    margin-bottom: 6px;
}

/* CTA band */
.cta-inner {
    text-align: center;
    max-width: 660px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.cta-inner p {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    width: auto;
    padding: 16px 34px;
}

/* Page header (services, legal) */
.page-header {
    background: var(--black);
    color: var(--white);
    padding: 48px 0;
    border-bottom: 4px solid var(--primary-color);
}

.page-header h1 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.page-header p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    max-width: 720px;
}

.legal-content {
    padding: 56px 20px 72px;
    max-width: 820px;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-dark);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 22px 0 8px;
}

.legal-content p {
    color: var(--text-medium);
    margin-bottom: 14px;
}

.legal-content ul {
    margin: 0 0 16px 22px;
    color: var(--text-medium);
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--primary-dark);
    text-decoration: underline;
    word-break: break-word;
}

.callout {
    background: var(--cream);
    border-left: 4px solid var(--primary-color);
    padding: 18px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.callout p {
    margin-bottom: 0;
}

/* Thank you */
.thanks {
    padding: 72px 20px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.thanks .check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: var(--white);
    font-size: 2rem;
    line-height: 64px;
    margin: 0 auto 22px;
    font-weight: 700;
}

.thanks h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.thanks > p {
    color: var(--text-medium);
    margin-bottom: 28px;
}

.thanks > p a {
    color: var(--primary-dark);
}

.next-steps {
    text-align: left;
    background: var(--cream);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 26px 28px;
    margin-bottom: 28px;
}

.next-steps h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.next-steps ol {
    margin-left: 20px;
    color: var(--text-medium);
}

.next-steps li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: var(--black);
    padding: 52px 0 24px;
    color: var(--white);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 44px;
    margin-bottom: 36px;
}

.footer-brand img {
    height: 24px;
    width: auto;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 16px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 6px;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--yellow);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 22px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid.three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .header-right {
        gap: 10px;
    }

    .header-phone {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .logo img {
        height: 20px;
    }

    nav {
        display: none;
        position: absolute;
        top: calc(100% + 16px);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    nav.active {
        display: flex;
    }

    .hero {
        padding: 40px 0 48px;
    }

    .hero-inner,
    .about-inner,
    .service-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .hero-facts {
        flex-direction: column;
        gap: 14px;
    }

    .services-grid,
    .services-grid.three {
        grid-template-columns: 1fr;
    }

    .service-detail img {
        order: -1;
    }

    .about-inner img {
        aspect-ratio: 4 / 3;
    }

    .section {
        padding: 48px 0;
    }

    .section-header h2,
    .about-content h2,
    .cta-inner h2 {
        font-size: 1.6rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .logo img {
        height: 16px;
    }

    .header-phone {
        font-size: 0.8rem;
        padding: 7px 10px;
    }
}
