:root {
    --gold: #8a6a2f;
    --gold-dark: #6f5422;
    --blue: #3c4a57;
    --blue-dark: #24313d;
    --light-blue: #5b6c7a;
    --bg: #f3f6f9;
    --surface: #ffffff;
    --surface-soft: #f9fafb;
    --section-soft: #eef3f8;
    --text: #374151;
    --text-muted: #4b5563;
    --line: #d1d5db;
    --line-strong: #94a3b8;
    --error: #b91c1c;
    --error-bg: #fef2f2;
    --focus: #1d4ed8;
    --focus-offset: #ffffff;
    --shadow-sm: 0 8px 20px rgba(60, 74, 87, 0.08);
    --shadow-md: 0 18px 40px rgba(60, 74, 87, 0.14);
    --radius: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1050px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

/* Skip link */

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    background: var(--surface);
    color: var(--blue-dark);
    border: 2px solid var(--blue-dark);
    border-radius: 8px;
    z-index: 1000;
    transform: translateY(-140%);
    transition: transform 0.2s ease;
    font-weight: 700;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

/* Typography */

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--blue);
}

h1 {
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.2rem;
    line-height: 1.3;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    color: var(--text-muted);
}

/* Global focus styles */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 2px var(--focus-offset);
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.btn:hover,
.btn:focus-visible {
    text-decoration: none;
}

/* Header */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 74px;
    width: auto;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue);
}

.site-nav a {
    padding: 6px 2px;
}

.site-nav a:hover,
.phone-link:hover,
.footer-phone a:hover {
    color: var(--gold-dark);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.phone-link {
    font-weight: 700;
    color: var(--gold-dark);
    white-space: nowrap;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.98;
}

.btn-gold {
    background: var(--gold-dark);
    color: #ffffff;
}

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

.btn-blue {
    background: var(--blue);
    color: #ffffff;
}

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

/* Form loading spinner */

.btn.loading {
    position: relative;
    pointer-events: none;
    padding-right: 44px;
}

.btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -8px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile menu */

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid transparent;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--blue);
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: currentColor;
    border-radius: 999px;
}

/* Hero */

.hero {
    background: linear-gradient(180deg, #f8fafc 0%, #f6f8fb 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    max-width: 16ch;
}

.hero-copy p {
    max-width: 520px;
    margin-top: 20px;
}

.hero-copy span {
    color: var(--gold-dark);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 28px;
}

.hero-image-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 0;
    height: auto;
    background: var(--surface);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Shared two-column sections */

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* About */

.about .lead {
    font-size: 1.05rem;
    color: var(--text);
    margin: 18px 0;
    font-weight: 700;
}

.about-copy .btn {
    margin-top: 24px;
}

.about-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Services */

.services {
    background: var(--section-soft);
}

.section-heading {
    text-align: center;
}

.section-heading p {
    font-size: 1rem;
    margin-top: 8px;
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 36px;
}

.service-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(60, 74, 87, 0.08);
    border: 1px solid #e5e7eb;
}

.service-icon {
    font-size: 2rem;
    line-height: 1;
    color: var(--blue);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-top: 12px;
}

.service-card p {
    margin: 14px 0 20px;
}

/* Testimonials */

.quote-card {
    background: var(--surface-soft);
    border-radius: 8px;
    padding: 28px;
    margin-top: 12px;
    max-width: 520px;
    box-shadow: var(--shadow-sm);
}

.quote-mark {
    color: var(--gold-dark);
    font-size: 3rem;
    line-height: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: #d1d5db;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--blue-dark);
}

.reviewer-name,
.stars {
    color: var(--gold-dark);
    font-weight: 700;
}

.owner-reply {
    margin-top: 18px;
    background: #fff8ea;
    border-left: 4px solid var(--gold-dark);
    padding: 14px 16px;
    border-radius: 6px;
}

.owner-reply p {
    margin-top: 8px;
}

.builder-image-wrap {
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.builder-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Contact */

.contact {
    background: var(--surface);
}

.contact-copy p {
    margin-top: 18px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.contact-list li {
    margin: 10px 0;
    color: var(--text);
}

.contact-list a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.contact-form {
    background: var(--surface-soft);
    border-radius: 10px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-weight: 700;
    color: var(--blue-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: var(--surface);
}

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

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: var(--blue);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--focus);
}

.field-error {
    color: var(--error);
    background: var(--error-bg);
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--error);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Footer */

.site-footer {
    background: var(--blue);
    color: #ffffff;
    padding: 36px 0;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 56px;
    width: auto;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-accessibility {
    display:block;
    margin-top:8px;
    font-size:0.9rem;
    color:white;
    text-decoration:underline;
}

.footer-accessibility:hover {
    opacity:0.9;
}

.footer-subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
}

.footer-phone a {
    font-weight: 800;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .btn:hover {
        transform: none;
    }
}

/* Responsive */

@media (max-width: 980px) {
    .topbar {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        grid-column: 1 / -1;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 8px;
        gap: 14px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .header-contact {
        display: none;
    }

    .hero-grid,
    .about-grid,
    .testimonial-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding: 26px 0 0;
    }

    .hero h1 {
        max-width: 100%;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .quote-card {
        max-width: 100%;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1050px);
    }

    .brand-logo {
        height: 58px;
    }

    .section {
        padding: 50px 0;
    }

    .contact-form {
        padding: 20px;
    }

    .hero-actions .btn,
    .contact-form .btn,
    .service-card .btn,
    .footer-main .btn {
        width: 100%;
    }
}