/* ============================================================
   RESET & SYSTEM ROOT DESIGN VARIABLES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-blue: #142A4E;
    --royal-blue: #244BB5;
    --pale-blue: #ECF2FF;
    --warm-cream: #fbf9f4;
    --gold-accent: #c5a059;
    --dark-charcoal: #2d2d2d;
    --pure-white: #ffffff;
    --soft-gray: #e6e3dc;
    --font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    --heading-family: Georgia, "Times New Roman", serif;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-family);
    color: var(--dark-charcoal);
    background-color: var(--warm-cream);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--heading-family);
    font-weight: 500;
}

/* ============================================================
   REUSABLE LAYOUT HOOKS & COMPONENTS
   ============================================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 88px 24px;
}

.section-subtitle {
    display: block;
    color: var(--royal-blue);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.contact .section-subtitle {
    color: var(--gold-accent);
}

.section-lead {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 680px;
}

.btn-primary, .btn-secondary, .cta-btn-nav {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--navy-blue);
    color: var(--warm-cream);
}

.btn-primary:hover {
    background-color: var(--royal-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--royal-blue);
    border: 2px solid var(--royal-blue);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--royal-blue);
    color: var(--warm-cream);
}

/* ============================================================
   HEADER & NAVIGATION WRAPPERS
   ============================================================ */
header {
    background-color: var(--warm-cream);
    border-bottom: 1px solid var(--soft-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    flex: 0 1 300px;
}

.brand-logo {
    display: block;
    width: 290px;
    max-width: 100%;
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    text-decoration: none;
    color: var(--dark-charcoal);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--royal-blue);
}

.cta-btn-nav {
    padding: 8px 18px;
    background-color: var(--navy-blue);
    color: var(--pure-white);
    border-radius: 3px;
}

.cta-btn-nav:hover {
    background-color: var(--royal-blue);
}

/* ============================================================
   HERO LAYOUT ENGINE
   ============================================================ */
.hero {
    background: linear-gradient(115deg, #f3efe6 0%, var(--warm-cream) 60%, var(--pale-blue) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 76px 24px;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 64px;
}

.hero-content {
    max-width: 560px;
}

.location-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--pale-blue);
    border: 1px solid var(--soft-gray);
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 3.4rem;
    line-height: 1.15;
    color: var(--navy-blue);
    margin-bottom: 22px;
}

.hero p {
    max-width: 540px;
    margin: 0 0 32px;
    font-size: 1.2rem;
    color: #555;
}

.hero-image {
    position: relative;
    min-width: 0;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    border: 5px solid var(--pure-white);
    border-radius: 4px;
    box-shadow: 0 18px 48px rgba(20, 42, 78, 0.15);
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 54%;
}

.hero-image figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 18px 14px;
    color: var(--pure-white);
    font-size: 0.9rem;
    background: linear-gradient(transparent, rgba(20, 42, 78, 0.75));
}

/* ============================================================
   SERVICES GRID SECTIONS
   ============================================================ */
.services {
    background-color: var(--pure-white);
}

.services h2 {
    font-size: 2.2rem;
    color: var(--navy-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 35px 25px;
    background-color: var(--warm-cream);
    border-radius: 6px;
    border: 1px solid var(--soft-gray);
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--royal-blue);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--navy-blue);
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
}

/* ============================================================
   ABOUT STRUCTURAL ELEMENTS
   ============================================================ */
.about {
    background-color: var(--warm-cream);
    padding: 88px 24px;
}

.about-container {
    max-width: 1152px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: start;
    gap: 72px;
}

.about-photo-stack {
    display: grid;
    gap: 20px;
}

.about-image {
    min-width: 0;
    aspect-ratio: 4 / 5;
    max-height: 480px;
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--soft-gray);
}

.about-image--mountains {
    aspect-ratio: 1;
    max-height: 420px;
}

.about-image--working {
    max-height: 360px;
    margin-top: 28px;
}

.about-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.about-text {
    max-width: 540px;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--navy-blue);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: #4a4a4a;
}

/* ============================================================
    WORK GALLERY
    ============================================================ */
.work {
    background-color: var(--pure-white);
}

.work h2 {
    font-size: 2.2rem;
    color: var(--navy-blue);
    margin-bottom: 12px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 225px;
    gap: 18px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 3px;
    background-color: var(--soft-gray);
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.025);
}

.gallery-item figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 34px 16px 13px;
    color: var(--pure-white);
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(20, 42, 78, 0.76));
}

/* ============================================================
   CUSTOMER REVIEWS
   ============================================================ */
.reviews {
    --review-navy: var(--navy-blue);
    background-color: var(--warm-cream);
    color: var(--review-navy);
    text-align: center;
}

.reviews h2 {
    margin-bottom: 12px;
    color: var(--review-navy);
    font-size: 2.2rem;
}

.reviews .section-lead {
    margin: 0 auto 36px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    text-align: left;
}

.review-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    border: 1px solid #e8e1d3;
    border-top: 3px solid var(--gold-accent);
    border-radius: 6px;
    background-color: var(--pure-white);
    box-shadow: 0 10px 28px rgba(20, 42, 78, 0.07);
}

.review-stars {
    margin-bottom: 16px;
    color: #8a681f;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    line-height: 1;
}

.review-card blockquote {
    flex: 1;
    margin-bottom: 24px;
    color: var(--review-navy);
    font-family: var(--heading-family);
    font-size: 1.16rem;
    line-height: 1.55;
}

.review-attribution {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #656b76;
    font-size: 0.88rem;
}

.review-attribution cite {
    color: var(--review-navy);
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 700;
}

.reviews-google-link {
    display: inline-block;
    margin-top: 34px;
    padding: 12px 24px;
    border: 2px solid var(--review-navy);
    border-radius: 4px;
    background-color: var(--review-navy);
    color: var(--warm-cream);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.reviews-google-link:hover {
    background-color: transparent;
    color: var(--review-navy);
}

.reviews-google-link:focus-visible {
    outline: 3px solid var(--royal-blue);
    outline-offset: 3px;
}

/* ============================================================
   CONTACT MECHANICS & INPUT FORMS
   ============================================================ */
.contact {
    background-color: var(--navy-blue);
    color: var(--warm-cream);
    padding: 100px 20px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: #d1d9e5;
    margin-bottom: 35px;
}

.contact-info .contact-link-item {
    margin-bottom: 0;
}

.direct-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link-item {
    color: var(--warm-cream);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.contact-link-item:hover {
    color: var(--gold-accent);
}

.contact-link-item:focus-visible {
    outline: 2px solid var(--gold-accent);
    outline-offset: 4px;
}

.contact-form-wrapper {
    flex: 1.2;
    background-color: var(--pure-white);
    padding: 40px;
    border-radius: 8px;
    color: var(--dark-charcoal);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy-blue);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--soft-gray);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: var(--warm-cream);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 2px solid var(--royal-blue);
    outline-offset: 2px;
    border-color: var(--royal-blue);
}

.form-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.form-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.form-status {
    margin-top: 16px;
    font-size: 0.95rem;
}

.form-status:empty {
    display: none;
}

.form-status.is-error {
    color: #8c2828;
}

.form-status.is-success {
    color: var(--navy-blue);
    font-weight: 600;
}

/* ============================================================
   FOOTER PATTERNS
   ============================================================ */
footer {
    background-color: #0b1930;
    color: #c6cfda;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #243b5d;
}

.footer-container p {
    margin-bottom: 10px;
}

.footer-sub {
    font-size: 0.8rem;
    color: #b8c5d8;
}

/* ============================================================
   RESPONSIVE MOBILE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
    }

    .logo-area {
        flex: 0 1 auto;
        width: 250px;
    }
    
    nav {
        gap: 12px 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.92rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 56px 20px;
    }

    .hero-content {
        max-width: 620px;
        margin: 0 auto;
        text-align: center;
    }

    .hero p {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .hero-image {
        width: min(100%, 560px);
        aspect-ratio: 3 / 4;
        margin: 0 auto;
    }

    .hero-image img {
        object-position: center 54%;
    }

    .section-container {
        padding: 68px 20px;
    }

    .about {
        padding: 68px 20px;
    }
    
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-photo-stack {
        width: min(100%, 480px);
        margin: 0 auto;
    }
    
    .about-image {
        width: min(100%, 480px);
        margin: 0 auto;
    }

    .about-image--working {
        margin-top: 28px;
    }

    .about-text {
        max-width: 680px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 12px;
        margin-top: 30px;
    }

    .gallery-item {
        aspect-ratio: 4 / 3;
    }

    .gallery-item:first-child,
    .gallery-item:last-child {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .review-card {
        padding: 24px;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-actions a {
        padding: 12px 18px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews h2 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}

/* SEO refresh: supporting tagline beneath descriptive H1 */
.hero .hero-tagline { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; margin-top: 0.6rem; margin-bottom: 0.7rem; }


/* Phase 2: service pages */
.service-page { background: var(--warm-cream); padding: 40px 0 70px; }
.service-page .section-container { max-width: 820px; }
.service-page h1 { font-family: var(--heading-family); color: var(--navy-blue); margin: 8px 0 14px; line-height: 1.2; }
.service-page h2 { font-family: var(--heading-family); color: var(--navy-blue); margin: 30px 0 10px; }
.service-page p { margin-bottom: 14px; line-height: 1.7; }
.service-page .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 26px; }
.service-page a:not(.btn-primary):not(.btn-secondary) { color: var(--royal-blue); text-decoration: underline; }
.sp-figure { margin: 10px 0 20px; }
.sp-figure img { width: 100%; max-width: 420px; height: auto; border-radius: 8px; display: block; }
.sp-links { margin: 0 0 10px 20px; line-height: 1.9; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 14px; }
.footer-sub a { color: inherit; text-decoration: underline; }
.service-link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--royal-blue); text-decoration: underline; }

/* Phase 2b: content blocks */
.sp-tasks { margin: 0 0 14px 22px; line-height: 1.8; }
.sp-faq details { background: var(--pure-white); border: 1px solid var(--soft-gray); border-radius: 8px; margin-bottom: 10px; padding: 0 16px; }
.sp-faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--navy-blue); }
.sp-faq summary:focus-visible, .service-page a:focus-visible { outline: 3px solid var(--royal-blue); outline-offset: 2px; }
.sp-faq details p { padding-bottom: 12px; margin: 0; }
.sp-cta { background: var(--pure-white); border: 1px solid var(--soft-gray); border-left: 5px solid var(--gold-accent); border-radius: 8px; padding: 22px 22px 8px; margin: 34px 0 10px; }
.sp-cta h2 { margin-top: 0; }
.sp-small { font-size: 0.95rem; }
@media (max-width: 600px) { .service-page .hero-actions a, .sp-cta .btn-primary, .sp-cta .btn-secondary { display: block; text-align: center; margin-bottom: 10px; } }
.footer-sub a { color: #f0e6cf; }
