/* Wilkins Norwood Appraisal Associates, Inc. — site stylesheet */

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Arial, sans-serif;
    color: #333;
    background: #fff;
}

a { color: #333; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 32px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}

.brand {
    text-align: center;
    margin-right: 24px;
}

.brand img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
}

.brand .phone {
    display: block;
    margin-top: 6px;
    font-weight: bold;
    font-size: 14px;
    color: #000;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.main-nav a {
    font-size: 18px;
    color: #333;
}

.main-nav a.active {
    font-weight: bold;
    border-bottom: 2px solid #003366;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #003366;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.page-banner {
    background: linear-gradient(135deg, #003366, #00509e);
    color: #fff;
    text-align: center;
    padding: 20px 20px;
}

.page-banner h1 {
    margin: 0;
    font-size: 22px;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.page-banner .tagline {
    margin-top: 6px;
    font-style: italic;
    color: #cfe0f2;
    font-size: 15px;
}

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 20px;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 24px;
}

.image-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slide-fade 15s infinite;
}

.image-slider img:nth-child(1) { animation-delay: 0s; }
.image-slider img:nth-child(2) { animation-delay: 5s; }
.image-slider img:nth-child(3) { animation-delay: 10s; }

@keyframes slide-fade {
    0% { opacity: 0; }
    2% { opacity: 1; }
    31% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .image-slider img {
        animation: none;
        opacity: 0;
    }
    .image-slider img:first-child {
        opacity: 1;
    }
}

.intro-text {
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
}

.services-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.services-layout img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.services-layout ul {
    columns: 2;
    -webkit-columns: 2;
    padding-left: 20px;
    margin-top: 0;
}

.services-layout ul li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.coverage-layout {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.coverage-layout img {
    max-width: 100%;
    height: auto;
}

.coverage-layout p {
    flex: 1 1 400px;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

.team-member {
    margin-bottom: 16px;
}

.team-member .role {
    color: #666;
    font-style: italic;
}

.clientele-group {
    margin-bottom: 32px;
}

.clientele-group h2 {
    font-size: 19px;
    color: #003366;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.clientele-list {
    list-style: none;
    columns: 2;
    -webkit-columns: 2;
    column-gap: 32px;
    padding: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.clientele-list li {
    padding: 8px 0 8px 18px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    break-inside: avoid;
}

.clientele-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #00509e;
    font-size: 13px;
}

.clientele-list li:last-child {
    font-style: italic;
    color: #666;
}

.clientele-list li:last-child::before {
    content: "";
}

.clientele-image {
    text-align: center;
    margin-top: 24px;
}

.clientele-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-rows: auto auto;
    gap: 24px 32px;
    align-items: start;
}

.contact-layout img {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.contact-info {
    grid-column: 1;
    grid-row: 2;
    font-size: 16px;
    line-height: 1.8;
}

.contact-info strong {
    color: #000;
}

.contact-form {
    grid-column: 2;
    grid-row: 1 / 3;
    background: #f7f7f7;
    padding: 24px;
    border-radius: 6px;
}

.contact-form h2 {
    margin-top: 0;
    font-size: 20px;
    color: #003366;
}

.contact-form label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
}

.contact-form label span {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: #003366;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #00509e;
}

.form-status {
    margin-top: 12px;
    font-size: 14px;
}

.form-status.success { color: #1a7a1a; }
.form-status.error { color: #b00020; }

.hidden-field {
    position: absolute;
    left: -9999px;
}

.cta-band {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 24px 20px;
}

.cta-band a {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 700px) {
    .site-header { justify-content: space-between; text-align: center; }
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        order: 3;
        margin-top: 16px;
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        padding: 12px 0;
        border-top: 1px solid #eee;
    }
    .services-layout { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .image-slider { height: 200px; }
    .clientele-list { columns: 1; }
}
