/* =========================================================
   Lifetime Roofing & Services
   Stylesheet
   ========================================================= */

:root {
    --primary: #1c3d5a;
    --primary-dark: #122a3f;
    --primary-light: #3f6c8f;
    --accent: #c9a227;
    --accent-dark: #a8841b;
    --dark: #16232f;
    --darker: #0e1820;
    --light: #f7f8fa;
    --gray: #5c6b78;
    --gray-light: #e3e8ec;
    --white: #ffffff;
    --shadow: 0 4px 16px rgba(14, 24, 32, 0.08);
    --shadow-lg: 0 12px 40px rgba(14, 24, 32, 0.14);
    --radius: 6px;
    --radius-lg: 12px;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --font-heading: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--dark);
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .75rem; }

.eyebrow {
    display: inline-block;
    color: var(--accent-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .78rem;
    margin-bottom: .75rem;
}
.eyebrow.light { color: var(--accent); }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}
.section-header p { color: var(--gray); font-size: 1.02rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 14px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .92rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--accent);
    color: var(--darker);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--darker);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}
.btn-full { width: 100%; }

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
    background: var(--darker);
    color: var(--white);
    padding: 8px 0;
    font-size: .85rem;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.top-bar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.top-link {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.top-link:hover { color: var(--accent); }
.top-link svg { flex-shrink: 0; }
.top-bar-right { font-weight: 500; letter-spacing: .3px; color: rgba(255,255,255,.75); }

/* =========================================================
   HEADER
   ========================================================= */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 46px; width: auto; display: block; }

.main-nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav a {
    display: inline-block;
    padding: 10px 14px;
    color: var(--dark);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: .92rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(28, 61, 90, .08);
}
.main-nav .nav-cta {
    background: var(--primary);
    color: var(--white);
    margin-left: 6px;
}
.main-nav .nav-cta:hover { background: var(--primary-dark); color: var(--white); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.mobile-toggle span {
    display: block;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================================================
   HERO (single image, decluttered)
   ========================================================= */
.hero {
    position: relative;
    min-height: clamp(440px, 62vh, 640px);
    display: flex;
    align-items: center;
    background: var(--darker);
}
.hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(14,24,32,.88) 0%, rgba(14,24,32,.62) 55%, rgba(14,24,32,.4) 100%);
}
.hero-content {
    position: relative;
    max-width: 640px;
    color: var(--white);
    padding: 60px 0;
}
.hero-content .eyebrow { color: var(--accent); }
.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.1rem;
}
.hero-content p {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255,255,255,.9);
    margin-bottom: 1.9rem;
    max-width: 540px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255,255,255,.18);
}
.hero-trust-item { display: flex; align-items: center; gap: 10px; }
.hero-trust-item strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1rem;
}
.hero-trust-item span { color: rgba(255,255,255,.7); font-size: .82rem; }
.hero-trust-item svg { color: var(--accent); flex-shrink: 0; }

/* =========================================================
   SUB-HERO (for non-home pages)
   ========================================================= */
.sub-hero {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, rgba(28,61,90,.92), rgba(14,24,32,.94)), url('../images/roof-project-1.jpg') center/cover;
    padding: 56px 24px;
}
.sub-hero h1 { color: var(--white); margin-bottom: .6rem; }
.sub-hero p { font-size: 1.05rem; max-width: 640px; margin: 0 auto; opacity: .92; color: rgba(255,255,255,.85); }
.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: .88rem;
    background: rgba(255,255,255,.14);
    padding: 6px 16px;
    border-radius: 999px;
}
.breadcrumbs a { color: var(--white); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .6; }

/* =========================================================
   QUICK LINKS
   ========================================================= */
.quick-links { padding: 56px 0; background: var(--light); }
.quick-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.quick-link-card {
    background: var(--white);
    padding: 32px 22px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid transparent;
}
.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent);
    color: var(--dark);
}
.quick-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(28, 61, 90, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 14px;
}
.quick-link-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.quick-link-card p { color: var(--gray); font-size: .9rem; }

/* =========================================================
   WELCOME / INTRO
   ========================================================= */
.welcome { padding: 80px 0; background: var(--white); }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.welcome-text p { color: var(--gray); font-size: 1.02rem; margin-bottom: 1.2rem; }
.welcome-features { margin-top: 28px; display: grid; gap: 13px; }
.feature { display: flex; align-items: center; gap: 12px; color: var(--dark); font-weight: 500; }
.feature svg {
    color: var(--primary);
    flex-shrink: 0;
    background: rgba(28, 61, 90, .1);
    border-radius: 50%;
    padding: 4px;
}
.welcome-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}
.welcome-image img { width: 100%; height: 100%; object-fit: cover; }
.image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--darker);
    padding: 12px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.image-badge strong { display: block; font-family: var(--font-heading); font-size: 1rem; }
.image-badge span { font-size: .82rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 80px 0; background: var(--primary); color: var(--white); }
.services .section-header h2, .services .section-header p { color: var(--white); }
.services .section-header p { color: rgba(255,255,255,.82); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
    background: var(--white);
    color: var(--dark);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); }
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: rgba(28, 61, 90, .1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.service-card h3 { color: var(--primary-dark); margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { color: var(--gray); font-size: .95rem; }

/* =========================================================
   SERVICE LIST PAGE (services.html detail blocks)
   ========================================================= */
.service-detail { padding: 64px 0; border-bottom: 1px solid var(--gray-light); }
.service-detail:last-child { border-bottom: none; }
.service-detail-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: center; }
.service-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: rgba(28, 61, 90, .08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.service-detail h2 { color: var(--primary-dark); }
.service-detail p { color: var(--gray); margin-bottom: 1rem; }
.service-detail ul { list-style: none; margin-top: 1rem; }
.service-detail li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
    color: var(--dark);
    font-size: .96rem;
}
.service-detail li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* =========================================================
   STORM / CTA BANNER
   ========================================================= */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 56px 0;
    text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: .7rem; }
.cta-banner p { color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 640px; margin: 0 auto 1.5rem; }
.cta-banner .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why-us { padding: 80px 0; background: var(--light); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow); text-align: center; }
.why-card svg { color: var(--primary); margin-bottom: 14px; }
.why-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.why-card p { color: var(--gray); font-size: .88rem; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 18px;
    background: linear-gradient(transparent, rgba(14,24,32,.85));
    color: var(--white);
    font-family: var(--font-heading);
    font-size: .92rem;
    font-weight: 500;
}
.gallery-note {
    text-align: center;
    color: var(--gray);
    max-width: 560px;
    margin: 40px auto 0;
    font-size: .95rem;
}

/* =========================================================
   SERVICE AREA
   ========================================================= */
.area-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.area-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 1.4rem; }
.area-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 500;
    background: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.area-list li svg { color: var(--accent-dark); flex-shrink: 0; }
.area-map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 420px;
}
.area-map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* =========================================================
   ABOUT / OWNER
   ========================================================= */
.about-block { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center; }
.about-badge {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.about-badge .big-num { font-family: var(--font-heading); font-size: 3.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.about-badge span { display: block; margin-top: 8px; font-size: .9rem; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: 1px; }
.about-info p { color: var(--gray); margin-bottom: 1.1rem; font-size: 1.02rem; }
.credential-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2rem 0; }
.credential-tag {
    background: rgba(28, 61, 90, .08);
    color: var(--primary);
    padding: 7px 16px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: .82rem;
    font-weight: 600;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 80px 0; background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info h2, .contact-info p { color: var(--white); }
.contact-info > p { color: rgba(255,255,255,.85); font-size: 1.02rem; margin-bottom: 1.8rem; }
.contact-features { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.contact-feature { display: flex; align-items: flex-start; gap: 14px; }
.contact-feature svg {
    color: var(--accent);
    flex-shrink: 0;
    background: rgba(201, 162, 39, .14);
    padding: 6px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
}
.contact-feature strong { display: block; color: var(--white); font-family: var(--font-heading); font-size: 1.02rem; margin-bottom: 3px; }
.contact-feature span { color: rgba(255,255,255,.7); font-size: .9rem; }

.contact-form-wrapper { background: var(--white); padding: 38px; border-radius: var(--radius-lg); color: var(--dark); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--dark); font-family: var(--font-heading); font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.required { color: #c0392b; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 61, 90, .14);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    background: rgba(28, 61, 90, .08);
    color: var(--primary-dark);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    font-weight: 500;
}
.form-success.show { display: flex; }
.form-success svg { color: var(--primary); flex-shrink: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.main-footer { background: var(--darker); color: rgba(255,255,255,.8); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 46px; }
.footer-col h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--accent); }
.footer-col p { font-size: .9rem; line-height: 1.7; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: inline-flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--accent); color: var(--darker) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .84rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom ul { display: flex; gap: 18px; list-style: none; flex-wrap: wrap; }
.footer-bottom p, .footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--accent); }

/* =========================================================
   FAB
   ========================================================= */
.fab-container { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 12px; z-index: 90; }
.fab {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 50px; color: var(--white);
    font-family: var(--font-heading); font-weight: 600; font-size: .88rem;
    box-shadow: var(--shadow-lg); transition: var(--transition);
}
.fab:hover { transform: scale(1.05); color: var(--white); }
.fab-call { background: var(--primary); }
.fab-text { background: var(--accent-dark); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .welcome-grid, .contact-grid, .service-detail-grid, .area-grid, .about-grid { grid-template-columns: 1fr; }
    .services-grid, .quick-links-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .area-map-wrap { min-height: 320px; }
    .area-map-wrap iframe { min-height: 320px; }
}

@media (max-width: 768px) {
    .top-bar-left span.top-hours { display: none; }
    .main-nav {
        position: fixed; top: 68px; right: 0; width: 280px; height: calc(100vh - 68px);
        background: var(--white); box-shadow: var(--shadow-lg); padding: 20px;
        transform: translateX(100%); transition: var(--transition); overflow-y: auto;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
    .main-nav a { display: block; padding: 12px 16px; }
    .main-nav .nav-cta { margin-left: 0; margin-top: 10px; text-align: center; }
    .mobile-toggle { display: flex; }
    .mobile-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .services-grid, .quick-links-grid, .why-grid, .gallery-grid, .area-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 26px 20px; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
    .footer-bottom ul { justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .welcome, .services, .why-us, .about-block, .contact, .service-detail { padding: 56px 0; }
    .btn { padding: 12px 22px; font-size: .86rem; }
    .fab span { display: none; }
    .fab { padding: 12px; }
}
