/* Color Variables */
:root {
    --primary: #c32128;
    /* Red */
    --black: #1a1a1a;
    --dark-grey: #2c2c2c;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --text: #4a4a4a;
    --accent: #d82b33;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.feature-label,
.fallback-logo {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.text-accent {
    color: var(--accent);
}

.text-dark {
    color: var(--dark-grey);
}

.title-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.italic-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo img {
    height: 60px;
}

.fallback-logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-grey);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-grey);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    padding-top: 80px;
    /* Offset for fixed header */
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 80px;
}

.hero-card {
    background: var(--white);
    padding: 40px 50px;
    max-width: 400px;
    margin-left: 10%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-card .divider {
    width: 40px;
    height: 3px;
    background: var(--black);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--black);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.nav-btn:hover {
    background: var(--accent);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
}

.nav-btn.prev {
    left: 0;
}

.nav-btn.next {
    right: 0;
}

/* Intro Section */
.intro {
    padding: 100px 0;
    background: var(--white);
}

.intro-desc {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 400px;
    margin-bottom: 100px;
    background: var(--light-grey);
}

.feature-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-item:hover .feature-img {
    transform: scale(1.08);
}

.feature-overlay {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 40%, transparent 100%);
}

.feature-label {
    background: var(--white);
    padding: 15px 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, color 0.3s;
    z-index: 2;
}

.feature-item:hover .feature-label {
    transform: translateY(-8px);
    color: var(--accent);
}

/* General Contractor */
.general-contractor {
    padding: 80px 0 120px;
    background: var(--white);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.gc-image-container {
    position: relative;
    height: 500px;
}

.gc-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--light-grey);
}

.gc-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--black);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.gc-nav-btn:hover {
    background: var(--accent);
}

.gc-nav-btn.prev {
    left: -25px;
}

.gc-nav-btn.next {
    right: -25px;
}

.gc-content {
    padding-right: 20px;
}

.gc-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--black);
}

.gc-content p {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.8;
}

.gc-content ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gc-content li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
}

.gc-content li::before {
    content: "•";
    color: var(--black);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--black);
    color: #ccc;
    font-size: 0.9rem;
}

.footer-top {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.italic-text,
.tweet-text {
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-info .info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.contact-info .icon {
    width: 20px;
    display: flex;
    justify-content: center;
    color: var(--white);
    margin-top: 3px;
}

.newsletter {
    display: flex;
    margin-top: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    max-width: 300px;
}

.newsletter input {
    background: transparent;
    border: none;
    color: var(--white);
    flex: 1;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    outline: none;
}

.newsletter input::placeholder {
    color: #888;
}

.newsletter button {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
}

.insta-placeholder .bg-graphic {
    width: 100%;
    height: 150px;
    background: url('https://images.unsplash.com/photo-1513694203232-719a280e022f?q=80&w=1469&auto=format&fit=crop') center/cover;
    opacity: 0.2;
    border-radius: 4px;
    filter: grayscale(100%);
}

.footer-bottom {
    padding: 30px 0;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 60px;
}

.footer-logo .fallback-logo {
    color: var(--white);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 0.85rem;
    color: #999;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}


/* ================================== */
/* ABOUT US PAGE STYLES */
/* ================================== */

.about-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.page-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--white);
    position: relative;
    z-index: 10;
    letter-spacing: 2px;
}

.relative {
    position: relative;
}

.z-index-10 {
    z-index: 10;
}

.hi-section {
    padding: 120px 0;
    background: var(--white);
}

.hi-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
}

.hi-graphic {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 80px;
    margin-left: 50px;
}

.hi-pattern {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(#ccc 15%, transparent 16%);
    background-size: 10px 10px;
    z-index: 1;
}

.hi-pattern.top-left {
    top: -20px;
    left: -20px;
}

.hi-pattern.bottom-right {
    bottom: -20px;
    right: -20px;
}

.hi-box {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--white);
    border: 10px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--black);
    z-index: 2;
}

.hi-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hi-content p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}

.accordion-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
}

.accordion-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

.accordion-container {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.acc-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    cursor: pointer;
    list-style: none;
    /* remove default arrow */
    text-transform: uppercase;
}

.acc-header::-webkit-details-marker {
    display: none;
}

.acc-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s;
}

details[open] .acc-header {
    border-bottom: none;
}

.acc-body {
    padding-bottom: 40px;
    color: #ccc;
    animation: fadeIn 0.5s ease-out;
}

.acc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.acc-quote {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.3;
    text-transform: uppercase;
}

.acc-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.acc-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.btn-link {
    display: inline-block;
    color: var(--white);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.btn-link:hover {
    transform: translateX(10px);
}

.contact-section {
    padding: 120px 0;
    background: var(--white);
}

.grid-2-contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
}

.contact-info-block h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: 15px;
}

.text-muted {
    color: #888;
}

.contact-list {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text);
}

.contact-item svg {
    color: var(--black);
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--black);
    outline: none;
    background: transparent;
    transition: border-bottom-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--black);
}

.btn-submit {
    background: #f8f8f8;
    color: var(--black);
    border: 1px solid #eee;
    padding: 15px 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }

    .feature-item {
        height: 300px;
    }

    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-card {
        margin-left: 20px;
        margin-right: 20px;
    }

    .gc-image-container {
        height: 400px;
    }

    .grid-2-contact {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .feature-item {
        height: 250px;
    }

    .title-large {
        font-size: 2rem;
    }

    .header-container {
        padding: 15px 20px;
    }

    .hero-card {
        padding: 30px;
    }

    .acc-grid {
        grid-template-columns: 1fr;
    }

    .grid-2-contact {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 3rem;
    }

    .hi-graphic {
        margin-left: 20px;
        width: 200px;
        height: 200px;
    }

    .hi-box {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }

    .flex-between {
        flex-direction: column;
        gap: 20px;
    }

    .page-title {
        font-size: 2.5rem;
    }
}

/* ================================== */
/* CONTACT PAGE STYLES */
/* ================================== */

.contact-main {
    padding-top: 80px;
    /* Header offset */
    min-height: 100vh;
}

.contact-split {
    display: flex;
    flex-wrap: wrap;
    min-height: calc(100vh - 80px);
}

.contact-left,
.contact-right {
    flex: 1;
    min-width: 50%;
}

.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-image-container {
    height: 50vh;
    min-height: 400px;
    position: relative;
    width: 100%;
}

.contact-main-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.contact-info-section {
    padding: 60px 10%;
    background: var(--white);
    flex-grow: 1;
}

.contact-info-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--black);
}

.contact-right {
    background: var(--white);
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #f0f0f0;
}

.form-container {
    max-width: 500px;
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--black);
}

.addr-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--black);
}

.right-list {
    margin-top: 0;
    margin-bottom: 50px;
}

.italic-muted {
    font-style: italic;
    color: #888;
}

.contact-page-form .form-group input,
.contact-page-form .form-group textarea {
    padding: 15px 0;
}

.border-light input,
.border-light textarea {
    border-bottom: 1px solid #eee;
}

.btn-full {
    width: 100%;
    padding: 20px;
    margin-top: 30px;
    background: #fcfcfc;
    border: 1px solid #eee;
}

.btn-full:hover {
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent);
}

/* ================================== */
/* PORTFOLIO PAGE STYLES */
/* ================================== */

.portfolio-main {
    padding-top: 80px;
}

.portfolio-header {
    background: #fafafa;
    padding: 60px 0 40px;
    border-bottom: 1px solid #eee;
}

.portfolio-header .page-title {
    font-size: 3.5rem;
    margin-bottom: 0;
}

.align-end {
    align-items: flex-end;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: var(--black);
    font-weight: 600;
}

.portfolio-grid-section {
    padding: 80px 0 120px;
    position: relative;
    background: var(--white);
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-evenly;
    pointer-events: none;
    z-index: 1;
}

.grid-lines span {
    width: 1px;
    height: 100%;
    background: rgba(0, 0, 0, 0.03);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    row-gap: 60px;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
}

.portfolio-img-wrapper {
    width: 100%;
    padding-top: 65%;
    /* aspect ratio */
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.portfolio-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 5px;
    line-height: 1.3;
}

.portfolio-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.portfolio-arrow {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--black);
    transition: transform 0.3s, color 0.3s;
}

.portfolio-item:hover .portfolio-arrow {
    transform: translateX(5px);
    color: var(--accent);
}

/* ================================== */
/* SERVICES PAGE STYLES */
/* ================================== */

.services-main {
    padding-top: 80px;
}

.services-hero {
    background: #fafafa;
    padding: 100px 0;
    border-bottom: 1px solid #eee;
}

.services-list-section {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.service-card {
    background: var(--white);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.service-img {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 40px;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--black);
}

.service-content p {
    color: #666;
    line-height: 1.8;
}

/* Responsive updates for new pages */
@media (max-width: 992px) {

    .contact-left,
    .contact-right {
        min-width: 100%;
    }

    .contact-right {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 60px 10%;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-header .flex-between {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .portfolio-header .page-title {
        margin-bottom: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-header .page-title {
        font-size: 2.5rem;
    }
}