/* ==========================================================================
   Artisan Construction - Unified Stylesheet
   ========================================================================== */

/* ---------- Google Fonts (CDN for simplicity) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;500&family=Open+Sans:ital,wght@0,400;0,600;1,400&family=Droid+Sans:wght@400;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
    --color-brand: #8d2424;
    --color-brand-dark: #791f1f;
    --color-accent: #b39964;
    --color-text: #3b3b3b;
    --color-text-light: #818181;
    --color-text-muted: #626262;
    --color-white: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-border: #cccccc;
    --color-footer-text: #d5d5d5;

    --font-heading: 'Lato', sans-serif;
    --font-nav: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-button: 'Droid Sans', sans-serif;

    --max-width: 960px;
    --header-height: 60px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.8;
    background: var(--color-white);
}

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

a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color 0.2s;
}

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

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-brand);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; letter-spacing: 5px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1em;
    font-size: 1.0625rem;
    line-height: 1.95;
}

strong { font-weight: 600; }

blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--color-text-muted);
}

/* ---------- Layout ---------- */
.wrapper {
    background: var(--color-white);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section--light {
    background: var(--color-bg-light);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 20px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-logo:hover {
    color: var(--color-brand-dark);
}

.site-logo__division {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 12px;
    white-space: nowrap;
}

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    display: flex;
    gap: 0;
}

.site-nav__list a {
    display: block;
    padding: 0 12px;
    font-family: var(--font-nav);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text);
    text-decoration: none;
    line-height: var(--header-height);
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.site-nav__list a:hover,
.site-nav__list a.active {
    color: var(--color-brand);
    border-bottom-color: var(--color-brand);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
    position: relative;
}

.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }

/* Landing header (centered, no nav) */
.site-header--landing {
    text-align: center;
    padding: 40px 0 30px;
    border-bottom: 1px solid #eee;
    background: var(--color-white);
    position: relative;
}

.site-header--landing .site-logo {
    display: block;
    font-size: 2rem;
    letter-spacing: 4px;
}

.site-tagline {
    font-family: var(--font-nav);
    font-size: 0.7rem;
    color: var(--color-text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Mobile nav panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-brand-dark);
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 60px 0 30px;
}

.mobile-nav a {
    display: block;
    padding: 14px 30px;
    color: var(--color-white);
    font-family: var(--font-nav);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(0,0,0,0.2);
    color: var(--color-white);
}

.mobile-nav__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

body.nav-open .mobile-nav {
    right: 0;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}

body.nav-open .nav-overlay {
    display: block;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.hero__content h1 {
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 15px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero__content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-family: var(--font-nav);
    text-transform: uppercase;
}

/* Page hero (smaller, for sub-pages) */
.page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-hero__content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.page-hero__content h1 {
    color: var(--color-white);
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ---------- Landing Page - Division Blocks ---------- */
.divisions {
    padding: 60px 0;
    background: var(--color-white);
}

.divisions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    min-height: 380px;
}

.division-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 380px;
    text-decoration: none;
    cursor: pointer;
}

.division-card__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.division-card:hover .division-card__image {
    transform: scale(1.05);
}

.division-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 35, 45, 0.3);
    transition: background 0.3s ease;
}

.division-card:hover .division-card__overlay {
    background: rgba(20, 25, 35, 0.45);
}

.division-card__content {
    position: relative;
    z-index: 1;
    padding: 30px 25px;
}

.division-card__content h2 {
    color: var(--color-white);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.division-card__content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.division-card__cta {
    display: inline-block;
    color: var(--color-white);
    font-family: var(--font-button);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 22px;
    border: 2px solid rgba(255,255,255,0.7);
    transition: all 0.3s;
}

.division-card:hover .division-card__cta {
    background: var(--color-white);
    color: var(--color-brand);
    border-color: var(--color-white);
}

/* ---------- About Brief (Landing) ---------- */
.about-brief {
    padding: 80px 0;
    text-align: center;
    background: var(--color-bg-light);
    border-top: 1px solid #eee;
}

.about-brief h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 300;
}

.about-brief p {
    max-width: 660px;
    margin: 0 auto 25px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.9;
}

/* ---------- Main Content ---------- */
.main-content {
    padding: 50px 0 60px;
    background: var(--color-white);
}

.main-content h2 {
    margin: 40px 0 15px;
    font-size: 1.6rem;
}

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

.main-content p {
    color: var(--color-text-light);
}

.main-content .lead {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 2;
    margin-bottom: 1.5em;
}

.content-intro {
    margin-bottom: 40px;
}

/* ---------- Portfolio Grid ---------- */
.portfolio-category {
    margin-bottom: 50px;
}

.portfolio-category h2 {
    margin-bottom: 8px;
}

.portfolio-category .clients {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.portfolio-item {
    text-decoration: none;
    display: block;
    transition: opacity 0.2s;
}

.portfolio-item:hover {
    opacity: 0.9;
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 1px solid #eee;
}

.portfolio-item__caption {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* ---------- People Grid ---------- */
.people-intro {
    text-align: center;
    margin-bottom: 40px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.person-card {
    text-align: center;
}

.person-card img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    margin-bottom: 12px;
}

.person-card h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.person-card .person-title {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: none;
    letter-spacing: 0;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    border-bottom: 1px solid #e8e8e8;
}

.faq-item summary {
    padding: 18px 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-brand);
    letter-spacing: 0.5px;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 18px;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-brand);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item .faq-answer {
    padding: 0 0 20px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ---------- Testimonials ---------- */
.testimonial {
    padding: 30px 0;
    border-bottom: 1px solid #e8e8e8;
}

.testimonial:last-child {
    border-bottom: none;
}

.testimonial blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 0 0 0 20px;
    margin: 0 0 12px;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.testimonial .attribution {
    font-size: 0.9rem;
    color: var(--color-brand);
    font-weight: 600;
    font-style: normal;
    padding-left: 23px;
}

/* ---------- Contact Layout ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 0.5em;
}

.contact-info .phone-large {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    color: var(--color-brand);
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-details {
    margin-top: 20px;
}

.contact-details dt {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    color: var(--color-text);
}

.contact-details dd {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-button);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 28px;
    border: 2px solid var(--color-brand-dark);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: var(--color-brand-dark);
}

.btn-outline:hover {
    background: var(--color-brand-dark);
    color: var(--color-white);
}

.btn-primary {
    background: var(--color-brand);
    color: var(--color-white);
    border-color: var(--color-brand);
}

.btn-primary:hover {
    background: var(--color-brand-dark);
    border-color: var(--color-brand-dark);
    color: var(--color-white);
}

.btn-white {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-white:hover {
    background: var(--color-white);
    color: var(--color-brand);
}

/* ---------- Division Switcher ---------- */
.division-switcher {
    background: var(--color-bg-light);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.division-switcher span {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-right: 15px;
}

.division-switcher a {
    font-family: var(--font-nav);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-brand);
    margin: 0 10px;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    text-decoration: none;
}

.division-switcher a:hover {
    border-bottom-color: var(--color-brand);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #2b2b2b;
    color: var(--color-footer-text);
    padding: 40px 0 30px;
}

.site-footer h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 2px;
    font-weight: 400;
}

.site-footer .footer-address {
    color: var(--color-footer-text);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer__divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 20px 0;
}

.footer__bottom {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 30px;
    align-items: start;
}

.footer__col h4 {
    color: var(--color-white);
    font-size: 0.85rem;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.footer__col p {
    color: var(--color-footer-text);
    font-size: 0.9rem;
    margin-bottom: 0;
}

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

.footer__col a:hover {
    color: var(--color-accent);
}

.footer__social {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.footer__social a:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    color: var(--color-white);
}

.footer__back {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__back a {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    text-decoration: none;
    font-family: var(--font-nav);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 40px 0;
}

.spacer { height: 40px; }
.spacer--sm { height: 20px; }
.spacer--lg { height: 60px; }

/* ---------- Process Steps ---------- */
.process-steps {
    counter-reset: step;
    margin-top: 30px;
}

.process-step {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #e8e8e8;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--color-brand);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ---------- Stats / Highlights ---------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    margin: 40px 0;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 4px;
}

.stat p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services callout blocks */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #e8e8e8;
    transition: border-color 0.2s;
}

.service-card:hover {
    border-color: var(--color-brand);
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Emergency CTA (Restoration) */
.emergency-cta {
    background: var(--color-brand);
    color: var(--color-white);
    text-align: center;
    padding: 40px 20px;
    margin: 40px 0;
}

.emergency-cta h2 {
    color: var(--color-white);
    margin-bottom: 10px;
}

.emergency-cta .phone-large {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.emergency-cta p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
}

/* ---------- Media Queries ---------- */
@media screen and (max-width: 992px) {
    .site-nav { display: none; }
    .hamburger { display: block; }
    .site-logo__division { display: none; }

    .site-header__inner {
        height: 55px;
    }

    .site-logo {
        font-size: 1.2rem;
    }

    .divisions__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .division-card {
        min-height: 260px;
    }

    .footer__bottom {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

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

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

@media screen and (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }

    .hero {
        min-height: 300px;
    }

    .hero__content h1 {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .page-hero {
        min-height: 200px;
    }

    .page-hero__content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 40px 0;
    }

    .two-col,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    .people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .footer__bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .about-brief {
        padding: 50px 0;
    }

    .division-switcher span {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .division-switcher a {
        display: inline-block;
        margin: 5px 8px;
    }

    .process-step {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .hero__content h1 {
        font-size: 1.6rem;
    }

    .division-card__content h2 {
        font-size: 1.4rem;
    }

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