/* ============================================
   4 Points Enterprises — Styles
   Modeled after outdoorlivingcare.com
   ============================================ */

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

/* Variables */
:root {
    --blue: #0a86ee;
    --blue-hover: #0a6cbc;
    --dark: #101218;
    --dark-text: #494B51;
    --light-bg: #F3F5F5;
    --white: #ffffff;
    --footer-bg: #161616;
    --footer-bottom: #000000;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--white);
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   HEADER
   ============================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

#site-header.scrolled {
    background: var(--dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links li a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1.1rem;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-links li a:hover {
    color: var(--blue);
}

.nav-cta {
    border: 2px solid var(--white) !important;
    padding: 0.5rem 1.5rem !important;
    margin-left: 0.75rem;
    transition: all 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: var(--white) !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 14px 32px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
}

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

.btn-outline:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

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

.btn-full {
    width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: url('ductwork-installation.jpg') center / cover no-repeat;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 18, 24, 0.82) 0%, rgba(16, 18, 24, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    padding: 120px 0 80px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--blue);
}

.section-subheading {
    text-align: center;
    color: var(--dark-text);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0.75rem auto 3rem;
    line-height: 1.7;
}

/* ============================================
   ABOUT + CONTACT FORM
   ============================================ */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.about-text p {
    color: var(--dark-text);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.about-form {
    background: var(--light-bg);
    padding: 2.5rem;
}

.about-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark-text);
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group select {
    cursor: pointer;
}

/* ============================================
   SERVICES
   ============================================ */
.services-section {
    padding: 80px 0;
    background: var(--light-bg);
}

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

@media (min-width: 923px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-card-img {
    height: 240px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 2rem;
}

.service-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.service-card-body p {
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.service-link:hover {
    color: var(--blue-hover);
    text-decoration: underline;
}

/* ============================================
   BUILDERS & LEGAL SUPPORT
   ============================================ */
.legal-section {
    padding: 80px 0;
    background: var(--dark);
    color: var(--white);
}

.legal-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.legal-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.legal-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.legal-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 3rem;
    text-align: left;
}

.legal-step {
    background: rgba(255, 255, 255, 0.06);
    padding: 2rem;
    border-top: 3px solid var(--blue);
}

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.legal-step h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.legal-step p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   OUR WORK / GALLERY
   ============================================ */
.work-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

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

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

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.why-card {
    background: var(--white);
    padding: 2.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.why-card p {
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(16, 18, 24, 0.88), rgba(16, 18, 24, 0.75)),
                url('building-construction-inspection.jpg') center / cover no-repeat;
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-main {
    background: var(--footer-bg);
    padding: 60px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.75;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--blue);
}

.footer-contact li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
    word-break: break-word;
}

.footer-contact li a:hover {
    color: var(--blue);
}

/* ============================================
   FLOATING CONTACT CTA
   ============================================ */
.floating-contact {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.floating-contact > a {
    pointer-events: auto;
}

.floating-call {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--blue);
    color: var(--white);
    padding: 14px 22px 14px 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(10, 134, 238, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.floating-call:hover,
.floating-call:focus-visible {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(10, 134, 238, 0.55), 0 6px 16px rgba(0, 0, 0, 0.22);
    outline: none;
}

.floating-call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    animation: floating-pulse 2s ease-in-out infinite;
}

.floating-call-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.floating-call-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.floating-call-number {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.floating-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--dark);
    padding: 10px 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.floating-email:hover,
.floating-email:focus-visible {
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    outline: none;
}

.floating-email-label {
    font-weight: 600;
}

@keyframes floating-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

@media (max-width: 640px) {
    /* Mobile: full-width bottom bar — won't overlap content */
    body {
        padding-bottom: 72px;
    }

    .floating-contact {
        right: 0;
        left: 0;
        bottom: 0;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: var(--dark);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
    }

    .floating-call,
    .floating-email {
        flex: 1 1 50%;
        border-radius: 0;
        box-shadow: none;
        padding: 14px 12px;
        justify-content: center;
        min-height: 64px;
    }

    .floating-call {
        background: var(--blue);
        gap: 10px;
    }

    .floating-call:hover,
    .floating-call:focus-visible {
        background: var(--blue-hover);
        transform: none;
        box-shadow: none;
    }

    .floating-call-icon {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.18);
        animation: none;
    }

    .floating-call-icon svg {
        width: 18px;
        height: 18px;
    }

    .floating-call-label {
        font-size: 0.65rem;
    }

    .floating-call-number {
        font-size: 0.95rem;
    }

    .floating-email {
        background: transparent;
        color: var(--white);
        gap: 8px;
        font-size: 0.95rem;
    }

    .floating-email svg {
        width: 18px;
        height: 18px;
    }

    .floating-email:hover,
    .floating-email:focus-visible {
        color: var(--blue);
        background: rgba(255, 255, 255, 0.04);
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-call-icon {
        animation: none;
    }
}

.footer-bottom {
    background: var(--footer-bottom);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 922px) {
    .container {
        padding: 0 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    /* Mobile Nav */
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 1rem 0 2rem;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links li a {
        padding: 0.75rem 24px;
        display: block;
    }

    .nav-cta {
        margin: 0.5rem 24px 0 !important;
        text-align: center;
        display: block !important;
    }

    /* Hero */
    .hero {
        min-height: 70vh;
    }

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

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Sections */
    .about-section,
    .services-section,
    .work-section,
    .why-section,
    .cta-section {
        padding: 60px 0;
    }

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

    .legal-steps {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

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

    .about-form {
        padding: 1.75rem;
    }

    /* Footer */
    .footer-main {
        padding: 40px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
