/* =====================================================
   Keely's Drywall - Static Site Styles
   Rebuilt from keelysdrywall.com (Wix original)
   ===================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,700;1,400;1,700&display=swap');

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

:root {
    --color-orange:   #E14325;
    --color-dark:     #2F2E2E;
    --color-grey-bg:  #F7F7F7;
    --color-white:    #FFFFFF;
    --color-light-blue: rgb(192, 210, 229);
    --site-width:     980px;
    --font-heavy:     'Raleway', 'avenir-lt-w01_85-heavy1475544', Arial, sans-serif;
    --font-light:     -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-light);
    font-size: 16px;
    color: var(--color-dark);
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

/* =====================================================
   HEADER
   ===================================================== */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-dark);
    width: 100%;
}

.header-inner {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 18px 20px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0;
}

.header-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
}

.header-logo img {
    width: 200px;
    height: auto;
}

.header-contact {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
}

.header-phone {
    font-family: var(--font-heavy);
    font-size: 36px;
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-decoration: none;
}

a.header-phone {
    color: var(--color-white);
}

.header-estimate {
    font-family: var(--font-heavy);
    font-size: 18px;
    color: var(--color-orange);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.header-nav {
    grid-column: 1 / 4;
    grid-row: 2;
    margin-top: 12px;
}

.header-nav ul {
    display: flex;
    justify-content: center;
    gap: 0;
}

.header-nav li a {
    display: block;
    padding: 10px 22px;
    font-family: var(--font-heavy);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.header-nav li a:hover,
.header-nav li a.active {
    color: var(--color-orange);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
#hero {
    position: relative;
    min-height: 500px;
    background-color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.38;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 160px 20px 80px;
}

.hero-text h1.hero-tagline {
    font-family: var(--font-heavy);
    font-size: 47px;
    font-weight: 700;
    line-height: 1.1em;
    color: var(--color-dark);
    text-shadow: #ffffff 0px 0px 6px;
}

.hero-text h1.hero-main {
    font-family: var(--font-heavy);
    font-size: 65px;
    font-weight: 700;
    line-height: 1.1em;
    color: var(--color-orange);
    text-shadow: #ffffff 0px 0px 6px;
}

.hero-arrow {
    margin-top: 40px;
}

.hero-arrow img {
    width: 54px;
    height: auto;
}

/* =====================================================
   SECTION HEADINGS (shared)
   ===================================================== */
.section-heading {
    text-align: center;
    font-family: var(--font-heavy);
    font-size: 55px;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-divider {
    border: none;
    border-top: 1px solid #c6c6c6;
    margin: 0 auto 40px;
    max-width: 200px;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
#services {
    background-color: var(--color-white);
    padding: 60px 20px;
}

.services-inner {
    max-width: var(--site-width);
    margin: 0 auto;
}

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

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 227px;
    object-fit: cover;
}

.service-card-body {
    padding: 20px 16px;
    background-color: var(--color-grey-bg);
    flex: 1;
}

.service-card-body h3 {
    font-family: var(--font-heavy);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.1em;
    margin-bottom: 12px;
}

.service-card-body p {
    font-size: 15px;
    line-height: 1.6em;
    color: var(--color-dark);
}

/* =====================================================
   PROJECTS SECTION
   ===================================================== */
#projects {
    background-color: var(--color-white);
    padding: 60px 20px;
    border-top: 1px solid #eeeeee;
}

.projects-inner {
    max-width: var(--site-width);
    margin: 0 auto;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 8px 10px;
    font-size: 13px;
    font-family: var(--font-heavy);
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-item:hover .gallery-item-label {
    opacity: 1;
}

.projects-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heavy);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

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

/* =====================================================
   ABOUT BACKGROUND STRIP (image strip)
   ===================================================== */
#about-bg-strip {
    position: relative;
    min-height: 400px;
    background-image: url('../images/bg_about.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#about-bg-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgb(192, 210, 229);
    opacity: 0.3;
}

/* =====================================================
   ABOUT SECTION (content)
   ===================================================== */
#about {
    background-color: var(--color-grey-bg);
    padding: 60px 20px;
}

.about-inner {
    max-width: var(--site-width);
    margin: 0 auto;
}

.about-heading h2 {
    font-family: var(--font-heavy);
    font-size: 29px;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.about-heading h2 span.orange {
    color: var(--color-orange);
    font-size: 30px;
}

.about-divider {
    border: none;
    border-top: 1px solid #c6c6c6;
    margin: 20px 0 28px;
}

.about-text {
    font-size: 20px;
    line-height: 1.7em;
    color: var(--color-dark);
}

.about-text p {
    margin-bottom: 0.5em;
}

.about-text .signature {
    font-style: italic;
    font-size: 20px;
    margin-top: 16px;
}

/* =====================================================
   CTA SECTION (orange)
   ===================================================== */
#cta {
    background-color: var(--color-orange);
    padding: 70px 20px;
    text-align: center;
}

.cta-inner {
    max-width: var(--site-width);
    margin: 0 auto;
}

.cta-inner h2 {
    font-family: var(--font-heavy);
    font-size: 47px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.cta-inner h3 {
    font-family: var(--font-heavy);
    font-size: 31px;
    font-style: italic;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.cta-inner h4 {
    font-family: var(--font-heavy);
    font-size: 40px;
    font-weight: 700;
    color: var(--color-white);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
#contact {
    background-color: var(--color-white);
    padding: 60px 20px;
}

.contact-inner {
    max-width: var(--site-width);
    margin: 0 auto;
    text-align: center;
}

.contact-map {
    width: 100%;
    height: 300px;
    border: 0;
    margin-bottom: 30px;
    display: block;
}

.contact-divider {
    border: none;
    border-top: 1px solid #c6c6c6;
    margin: 20px auto;
    max-width: 200px;
}

.contact-office-title {
    font-family: var(--font-heavy);
    font-size: 25px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
    line-height: 0.9em;
}

.contact-address {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.contact-info {
    font-size: 17px;
    line-height: 1.5em;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.contact-info a {
    color: var(--color-dark);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-estimate {
    margin-top: 24px;
}

.contact-estimate h3 {
    font-family: var(--font-heavy);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3em;
}

.contact-estimate h3 span.orange {
    color: var(--color-orange);
}

/* =====================================================
   FOOTER
   ===================================================== */
#site-footer {
    background-color: var(--color-white);
    border-top: 1px solid #e0e0e0;
    padding: 24px 20px 29px;
    text-align: center;
}

.footer-inner {
    max-width: var(--site-width);
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    padding-left: 0;
}

.footer-copyright {
    font-family: 'Raleway', 'avenir-lt-w01_35-light1475496', sans-serif;
    font-size: 14px;
    color: var(--color-dark);
    letter-spacing: 0.04em;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .header-contact {
        grid-column: 2;
        grid-row: 1;
    }

    .header-nav {
        grid-column: 1 / 3;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .header-logo img {
        width: 160px;
    }

    .header-contact {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
    }

    .header-phone {
        font-size: 26px;
    }

    .header-nav {
        grid-column: 1;
        grid-row: 3;
    }

    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-text h1.hero-tagline {
        font-size: 32px;
    }

    .hero-text h1.hero-main {
        font-size: 42px;
    }

    .section-heading {
        font-size: 38px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-buttons {
        flex-direction: column;
        align-items: center;
    }

    #about-bg-strip {
        min-height: 250px;
        background-attachment: scroll;
    }

    .about-text {
        font-size: 17px;
    }

    .cta-inner h2 {
        font-size: 32px;
    }

    .cta-inner h3 {
        font-size: 22px;
    }

    .cta-inner h4 {
        font-size: 28px;
    }

    .contact-estimate h3 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        padding: 100px 16px 60px;
    }
}
