@import url("variables.css");
@import url("header.css");
@import url("nav.css");
@import url("buttons.css");
@import url("hero.css");
@import url("responsive.css");

/*
|--------------------------------------------------------------------------
| SWA Content Design System
|--------------------------------------------------------------------------
|
| Shared content styles for Paul Martin Construction and future SWA sites.
| Keep page-specific styling to a minimum. Prefer these reusable classes.
|
*/

/* ==========================================================================
   1. Foundation
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

main {
    display: block;
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
p,
blockquote,
ul {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--primary);
    line-height: 1.15;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(30px, 3.2vw, 44px);
    letter-spacing: -0.02em;
}

h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

p {
    margin-bottom: 20px;
    font-size: 17px;
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--gold);
    color: var(--primary-dark);
}


/* ==========================================================================
   2. Layout
   ========================================================================== */

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.container--narrow {
    width: min(820px, calc(100% - 48px));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 72px 0;
}

.section--compact {
    padding: 52px 0;
}

.section--muted {
    background: #f7f5f1;
}

.section--dark {
    background: var(--primary-dark);
    color: #ffffff;
}

.section--gold {
    background: var(--gold);
    color: var(--primary-dark);
}

.two-column,
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
}

.two-column--wide-copy {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.two-column--wide-image {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.align-start {
    align-items: start;
}


/* ==========================================================================
   3. Section Headings
   ========================================================================== */

.section-heading {
    max-width: 900px;
    margin-bottom: 52px;
}

.section-heading h2{
    margin:0;
    line-height:1.15;
}

.section-heading h3{
    margin:0;
    line-height:1.25;
}

.section-heading--centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading--light h2,
.section-heading--light h3,
.section-heading--light p {
    color: #ffffff;
}

.section-heading__eyebrow {
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-heading__eyebrow::after {
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 16px;
    background: var(--gold);
    content: "";
}

.section-heading--centered .section-heading__eyebrow::after {
    margin-inline: auto;
}

.section-heading > p:not(.section-heading__eyebrow) {
    max-width: 720px;
    color: #5c5c5c;
}

.section-heading--centered > p:not(.section-heading__eyebrow) {
    margin-inline: auto;
}

/* ==========================================================================
   4. Section Spacing
   ========================================================================== */
   
   


/* ==========================================================================
   4. Interior Page Hero
   ========================================================================== */

.page-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
    background-position: center;
    background-size: cover;
    color: #ffffff;
    isolation: isolate;
}

.page-hero__content {
    padding-top: 48px;
    padding-bottom: 40px;
}

.page-hero__content {
    padding-top: 48px;
    padding-bottom: 48px;
}

.page-hero__eyebrow {
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-hero h1 {
    max-width: 800px;
    margin-bottom: 12px;
    margin-right: 24px;
    color: #ffffff;
    font-size: clamp(44px, 5vw, 64px);
    letter-spacing: -0.035em;
}

.page-hero__subtitle {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.4;
}

/* ==========================================================================
   5. Content Panels
   ========================================================================== */

.content-panel {
    position: relative;
}

.content-panel--accent {
    padding-left: 30px;
    border-left: 4px solid var(--gold);
}

.image-panel {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 6px;
    background: #dedbd4;
    box-shadow: 0 24px 60px rgba(24, 36, 29, 0.16);
}

.image-panel::after {
    position: absolute;
    right: 28px;
    bottom: 0;
    left: 28px;
    height: 5px;
    background: var(--gold);
    content: "";
}

.image-panel img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-panel:hover img {
    transform: scale(1.035);
}

.image-panel--portrait {
    min-height: 560px;
}

.image-panel--panoramic {
    min-height: 320px;
}


/* ==========================================================================
   6. Feature Cards
   ========================================================================== */

.feature-grid,
.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.feature-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.approach-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 38px 32px 34px;
    border: 1px solid rgba(36, 63, 48, 0.12);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(24, 36, 29, 0.07);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.feature-card::before,
.approach-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--gold);
    content: "";
}

.feature-card:hover,
.approach-card:hover {
    transform: translateY(-8px);
    border-color: rgba(173, 132, 53, 0.45);
    box-shadow: 0 22px 48px rgba(24, 36, 29, 0.13);
}

.feature-card__number,
.approach-card__number {
    display: block;
    margin-bottom: 24px;
    color: rgba(173, 132, 53, 0.34);
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.feature-card p,
.approach-card p {
    color: #5f625f;
    font-size: 16px;
}


/* ==========================================================================
   7. Quotes, Statements, and Project Showcase
   ========================================================================== */

/* Quote panels */

.quote-panel,
.about-intro__statement {
    position: relative;
    padding: 38px;
    border-left: 5px solid var(--gold);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 18px 42px rgba(24,36,29,.16);
}

.statement-signature{
    margin-top:28px;
    color:rgba(209,167,71,.90);
    font-size:.78rem;
    font-weight:600;
    letter-spacing:.15em;
    text-transform:uppercase;
}

/* Project showcase */

.quality__highlight {
    position: relative;
    padding: 26px;
    border-left: 2px solid var(--gold);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 16px 42px rgba(24,36,29,.16);
}

/* Decorative quotation mark only for actual statements and quotes */
.quote-panel::before,
.about-intro__statement::before {
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    content: "“";
    font-family: Georgia, "Times New Roman", serif;
    font-size: 74px;
    line-height: 0.7;
}

.project-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.project-image {
    margin-bottom: 20px;
}

.project-title {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}

.project-type {
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4;
}

.project-location {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.4;
}

.about-intro__content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: start;
    gap: clamp(42px, 7vw, 90px);
}


/* ==========================================================================
   8. Quality / Story Section
   ========================================================================== */

.quality__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
}

.quality__content > .section-heading__eyebrow {
    margin-bottom: 14px;
}


/* ==========================================================================
   9. Lists
   ========================================================================== */

.check-list,
.trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 34px;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.check-list li,
.trust-list li {
    position: relative;
    padding: 18px 20px 18px 52px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 17px;
}

.check-list li::before,
.trust-list li::before {
    position: absolute;
    top: 17px;
    left: 18px;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary-dark);
    content: "✓";
    font-size: 14px;
    font-weight: 800;
}


/* ==========================================================================
   10. Calls to Action
   ========================================================================== */

.page-cta {
    padding: 64px 0;
    background:
        linear-gradient(
            120deg,
            var(--primary) 0%,
            var(--primary-dark) 100%
        );
}

.page-cta__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.page-cta h2 {
    max-width: 720px;
    margin-bottom: 0;
    color: #ffffff;
}

.page-cta .section-heading__eyebrow {
    color: var(--gold);
}


/* ==========================================================================
   11. Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-light {
    color: #ffffff;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* =========================================================
   COMMUNITY INTRODUCTION
========================================================= */

.community-intro {
    padding: 72px 0;
}

.community-intro__content {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 38px;

    background: #faf9f6;
    border-left: 4px solid var(--gold);
}

.community-intro__content p {
    margin: 0 0 1.25rem;
    font-size: 1.08rem;
    line-height: 1.9;
}

.community-intro__content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   COMMUNITY SPOTLIGHT
========================================================= */

.community-spotlight {
    padding: 0 0 80px;
}

.community-subtitle {

    margin-top: 18px;

    color: #555555;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;

}

/* =========================================================
   COMMUNITY PHOTO
========================================================= */

.community-photo {
    margin: 0 0 34px;
    overflow: hidden;
}

.community-photo img{
    display:block;
    width:100%;
    height:360px;
    object-fit:cover;
    object-position:center;
}


/* =========================================================
   COMMUNITY PHILOSOPHY
========================================================= */

.community-philosophy {
    padding: 0 0 80px;
}


/* =========================================================
   COMMUNITY SUPPORT
========================================================= */

.community-support {
    padding: 80px 0;
    background: #f4f1ea;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 42px;
}

.support-card {
    padding: 36px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.support-card h3 {
    margin: 0 0 14px;
}

.support-card p {
    margin: 0;
}


/* =========================================================
   COMMUNITY CLOSING
========================================================= */

.community-closing {
    padding: 80px 0;
}

.community-closing p {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {

    .community-intro,
    .community-support,
    .community-closing {
        padding: 60px 0;
    }

    .community-spotlight,
    .community-philosophy {
        padding-bottom: 60px;
    }

    .community-spotlight__image img {
        height: 280px;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-card {
        padding: 28px;
    }

}


/* ==========================================================================
   12. Responsive Content System
   ========================================================================== */

@media (max-width: 1024px) {

    .section {
        padding: 82px 0;
    }

    .feature-grid,
    .approach-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column,
    .split-layout,
    .two-column--wide-copy,
    .two-column--wide-image,
    .about-intro__content,
    .quality__layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {

    .container,
    .container--narrow {
        width: min(100% - 32px, 1180px);
    }

    .section {
        padding: 68px 0;
    }

    .section--compact {
        padding: 48px 0;
    }

    h2 {
        font-size: 38px;
    }

    p {
        font-size: 17px;
    }

    .page-hero {
        min-height: 360px;
    }

    .page-hero__content {
        padding-top: 82px;
        padding-bottom: 54px;
    }

    .page-hero h1 {
        font-size: 58px;
    }

    .two-column,
    .split-layout,
    .two-column--wide-copy,
    .two-column--wide-image,
    .about-intro__content,
    .quality__layout {
        grid-template-columns: 1fr;
    }

    .image-panel,
    .image-panel--portrait {
        min-height: 390px;
    }

    .feature-grid,
    .approach-grid,
    .feature-grid--three,
    .feature-grid--two,
    .check-list,
    .trust-list {
        grid-template-columns: 1fr;
    }

    .section-heading {
    max-width: 900px;
    margin-bottom: 40px;
		}

    .page-cta__content {
        align-items: stretch;
        flex-direction: column;
    }

    .page-cta .button,
    .page-cta .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .section {
        padding: 56px 0;
    }

    h2 {
        font-size: 33px;
    }

    .page-hero {
        min-height: 320px;
    }

    .page-hero h1 {
        font-size: 48px;
    }

    .page-hero__subtitle {
        font-size: 19px;
    }

    .feature-card,
			.approach-card {
			    padding: 30px 28px;
			}
			
			.feature-card__number,
			.approach-card__number {
			    margin-bottom: 18px;
			    font-size: 46px;
			}

    .image-panel,
    .image-panel--portrait {
        min-height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}