
/* ===== GLOBAL STYLES ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    line-height: 1.6;
}

section {
    padding: 90px 10%;
}

h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 35px;
    color: #14253d;
}

/* ===== NAVIGATION ===== */

header {
    background: #14253d;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.navbar {
    max-width: 1400px;
    margin: auto;
    padding: 22px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}


/* ===== COMPANY LOGO ===== */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 180px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ef4444;
}

/* ===== HERO SECTION ===== */

.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;

    background:
        linear-gradient(
            rgba(10, 25, 45, 0.75),
            rgba(10, 25, 45, 0.75)
        ),
        url("https://images.unsplash.com/photo-1635424710928-0544e8512eae?auto=format&fit=crop&w=1600&q=85");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero p {
    font-size: 21px;
    margin-bottom: 35px;
    color: #e2e8f0;
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 15px 32px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #b91c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ===== SERVICES ===== */

.services {
    background: #f8fafc;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    border-top: 5px solid #dc2626;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.service-card h3 {
    font-size: 23px;
    margin-bottom: 15px;
    color: #14253d;
}

.service-card p {
    color: #64748b;
}

/* ===== ABOUT US ===== */

.about {
    text-align: center;
    background: white;
}

.about p {
    max-width: 800px;
    margin: auto;
    font-size: 19px;
    color: #475569;
}

/* ===== CONTACT ===== */

.contact {
    background: #14253d;
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact > p {
    margin-bottom: 35px;
    color: #cbd5e1;
}

#contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

#contact-form label {
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

#contact-form button {
    margin-top: 15px;
}

/* ===== FOOTER ===== */

footer {
    background: #0b1729;
    color: #cbd5e1;
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

/* ===== MOBILE RESPONSIVENESS ===== */

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .logo {
        font-size: 18px;
    }

    section {
        padding: 65px 6%;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
    }

    h2 {
        font-size: 29px;
    }

    .service-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px 25px;
    }
}

/* ===== LINE DRIVE BRAND COLORS ===== */

header {
    background: #ffffff;
}

.logo img {
    width: 180px;
    height: auto;
}

.nav-links a {
    color: #071D40;
    font-weight: 600;
}

.nav-links a:hover {
    color: #17345C;
}

h2,
.service-card h3 {
    color: #071D40;
}

.btn {
    background: #17345C;
}

.btn:hover {
    background: #071D40;
}

.service-card {
    border-top-color: #17345C;
}

.contact {
    background: #071D40;
}

footer {
    background: #04132B;
}

/* ===== MODERN HOMEPAGE DESIGN ===== */

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 100px 10%;

    background:
        linear-gradient(
            90deg,
            rgba(7, 29, 64, 0.95) 0%,
            rgba(7, 29, 64, 0.75) 55%,
            rgba(7, 29, 64, 0.25) 100%
        ),
        url("images/roofing-hero.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 750px;
}

.hero-label {
    display: inline-block;
    color: #C4CBD5;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.15;
    color: white;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #C4CBD5;
}

.hero p {
    font-size: 20px;
    color: #E2E8F0;
    max-width: 600px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    padding: 15px 32px;
    border: 2px solid white;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: white;
    color: #071D40;
}

/* ===== MOBILE HOMEPAGE ===== */

@media (max-width: 768px) {
    .hero {
        min-height: 580px;
        padding: 80px 6%;
        background-position: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-label {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        text-align: center;
    }
}

/* ===== MODERN SERVICES SECTION ===== */

.services {
    padding: 100px 8%;
    background: #f8fafc;
}

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 55px;
}

.section-label {
    display: block;
    color: #17345C;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.section-heading p {
    color: #64748b;
    font-size: 18px;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: auto;
}

.service-card {
    background: white;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-info {
    padding: 28px;
}

.service-info h3 {
    color: #071D40;
    font-size: 22px;
    margin-bottom: 12px;
}

.service-info p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 20px;
}

.service-info a {
    color: #17345C;
    text-decoration: none;
    font-weight: bold;
}

.service-info a:hover {
    text-decoration: underline;
}

/* ===== TABLET ===== */

@media (max-width: 1000px) {
    .service-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
    .services {
        padding: 70px 6%;
    }

    .service-container {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .service-card img {
        height: 200px;
    }
}

/* ===== PROJECT GALLERY ===== */

.gallery {
    background: #ffffff;
    padding: 100px 8%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1300px;
    margin: auto;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.06);
}

/* TABLET */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .gallery {
        padding: 70px 6%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FULL-SCREEN PHOTO VIEWER ===== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox button {
    position: absolute;
    background: transparent;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
    padding: 15px;
}

.lightbox button:focus-visible {
    outline: 2px solid white;
}

.lightbox-close {
    top: 15px;
    right: 25px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 600px) {
    .lightbox img {
        max-width: 95%;
        max-height: 75vh;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }
}

/* ===== ABOUT US ===== */

.about {
    background: #f5f7fa;
    padding: 100px 8%;
    text-align: left;
}

.about-container {
    max-width: 1100px;
    margin: auto;
}

.about-content {
    max-width: 850px;
}

.about h2 {
    text-align: left;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.2;
    margin-bottom: 25px;
}

.about p {
    max-width: none;
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.8;
    color: #475569;
}

.about-stats {
    display: flex;
    gap: 20px;
    margin: 35px 0;
}

.stat {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #17345C;
}

.stat strong {
    display: block;
    font-size: 32px;
    color: #071D40;
    margin-bottom: 5px;
}

.stat p {
    font-size: 14px;
    margin: 0;
}

/* MOBILE */
@media (max-width: 600px) {
    .about {
        padding: 70px 6%;
    }

    .about-stats {
        flex-direction: column;
    }

    .about h2 {
        font-size: 32px;
    }
}

/* ===== FINAL MOBILE IMPROVEMENTS ===== */

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

@media (max-width: 768px) {

    .hero {
        min-height: 550px;
        padding: 80px 6%;
    }

    .hero h1 {
        font-size: clamp(30px, 8vw, 40px);
    }

    .hero p {
        font-size: 16px;
    }

    .service-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
    }

    .contact input,
    .contact textarea,
    .contact select {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== MOBILE NAVIGATION ===== */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #071D40;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .navbar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
        padding: 15px 6%;
    }

    .logo img {
        width: 145px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 15px 0;
        margin: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px;
    }
}

/* ==================================
   LINE DRIVE - RED & NAVY THEME TEST
   ================================== */

:root {
    --navy: #071D40;
    --red: #C8102E;
    --red-hover: #A30D26;
}

/* PRIMARY ESTIMATE BUTTONS */
.hero .btn:first-of-type,
.about .btn,
.contact button[type="submit"] {
    background-color: var(--red);
    color: white;
    border-color: var(--red);
}

/* BUTTON HOVER */
.hero .btn:first-of-type:hover,
.about .btn:hover,
.contact button[type="submit"]:hover {
    background-color: var(--red-hover);
    border-color: var(--red-hover);
}

/* SERVICE CARD LINKS */
.service-info a {
    color: var(--red);
}

.service-info a:hover {
    color: var(--red-hover);
}

/* SECTION LABELS */
.section-label {
    color: var(--red);
}

/* ABOUT US ACCENT BORDERS */
.about .stat {
    border-left-color: var(--red);
}

/* NAVIGATION HOVER */
.nav-links a:hover {
    color: var(--red);
}

/* ===== ESTIMATE FORM UPGRADES ===== */

.contact select {
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: white;
    color: #071D40;
    font: inherit;
    margin-bottom: 20px;
    cursor: pointer;
    box-sizing: border-box;
}

.contact select:focus,
.contact input:focus,
.contact textarea:focus {
    outline: 2px solid #C8102E;
    outline-offset: 2px;
}

/* ===== WEBSITE FOOTER ===== */

.site-footer {
    background: #06152e;
    color: white;
    padding: 55px 6% 25px;
    text-align: center;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.site-footer h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 12px;
}

.site-footer p {
    color: #cbd5e1;
    line-height: 1.7;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.site-footer nav a {
    color: white;
    text-decoration: none;
}

.site-footer nav a:hover {
    color: #ff6478;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    margin-top: 30px;
}

.footer-bottom p {
    font-size: 14px;
    margin: 0;
}

/* ===== CONTACT FORM PRIVACY NOTICE ===== */

.contact .privacy-notice {
    font-size: 13px;
    line-height: 1.7;
    color: #cbd5e1;
    text-align: center;
    max-width: 550px;
    margin: 18px auto 0;
}

.contact .privacy-notice a {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== TEXAS SERVICE AREA ===== */

.service-area {
    background: #071D40;
    color: white;
    padding: 100px 8%;
    text-align: center;
}

.service-area-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-area-label {
    display: block;
    color: #FCA5A5;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.service-area h2 {
    color: white;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 25px;
}

.service-area h2 span {
    display: block;
    color: #FCA5A5;
}

.service-area p {
    color: #E2E8F0;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-area-btn {
    display: inline-block;
    background: #C8102E;
    color: white;
    padding: 15px 32px;
    margin-top: 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.service-area-btn:hover {
    background: #A30D26;
}

/* MOBILE */
@media (max-width: 768px) {
    .service-area {
        padding: 70px 6%;
    }

    .service-area p {
        font-size: 16px;
    }

    .service-area-label {
        font-size: 11px;
        letter-spacing: 2px;
    }
}

/* ===== BUSINESS PHONE NUMBER ===== */

.contact-phone {
    text-align: center;
    margin: 25px auto 35px;
}

.contact-phone p {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-phone a {
    display: inline-block;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #C8102E;
    padding-bottom: 5px;
}

.contact-phone a:hover {
    color: #ff6b81;
}
