/*
Theme Name: Summit Roofing
Theme URI: https://example.com/summit-roofing
Author: OpenAI
Author URI: https://openai.com
Description: A confident, conversion-focused roofing company theme built to work beautifully with Elementor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: summit-roofing
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

:root {
    --ink: #17212b;
    --muted: #5c6873;
    --paper: #ffffff;
    --cloud: #f4f7f9;
    --line: #dce4e9;
    --orange: #e87527;
    --orange-dark: #b84d0e;
    --navy: #102c44;
    --teal: #1d6870;
    --gold: #f3bc4c;
    --radius: 4px;
    --shadow: 0 18px 48px rgba(16, 44, 68, 0.12);
    --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.admin-bar .site-header { top: 32px; }

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

a { color: var(--orange-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    white-space: nowrap;
    width: 1px;
}
.screen-reader-text:focus {
    background: #fff;
    clip: auto !important;
    clip-path: none;
    color: var(--ink);
    display: block;
    height: auto;
    left: 12px;
    padding: 12px 16px;
    top: 12px;
    width: auto;
    z-index: 100000;
}

.container { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.section-pad { padding-block: clamp(68px, 8vw, 112px); }
.eyebrow {
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}
.eyebrow--light { color: var(--gold); }

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: .98;
    margin: 0 0 18px;
}
h1 { font-size: clamp(52px, 7vw, 90px); }
h2 { font-size: clamp(38px, 5vw, 64px); }
h3 { font-size: clamp(28px, 3vw, 38px); }
p { margin: 0 0 18px; }

.button,
.wp-block-button__link,
.elementor-button {
    align-items: center;
    background: var(--orange);
    border: 0;
    border-radius: var(--radius);
    color: #fff !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    letter-spacing: .04em;
    line-height: 1;
    min-height: 52px;
    padding: 0 24px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.button:hover,
.wp-block-button__link:hover,
.elementor-button:hover { background: var(--orange-dark); box-shadow: 0 10px 24px rgba(184, 77, 14, .2); color: #fff !important; transform: translateY(-2px); }
.button--outline { background: transparent; border: 1px solid rgba(255,255,255,.55); }
.button--outline:hover { background: #fff; color: var(--navy) !important; }
.button--dark { background: var(--navy); }
.button--dark:hover { background: #204b6d; }

/* Header */
.site-header { background: var(--paper); position: relative; z-index: 20; }
.topbar { background: var(--navy); color: #dbe7ed; font-size: 12px; }
.topbar__inner { align-items: center; display: flex; justify-content: space-between; min-height: 38px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar__right { align-items: center; display: flex; gap: 20px; }
.topbar__right svg { fill: var(--gold); margin-right: 5px; vertical-align: -2px; }
.main-header { border-bottom: 1px solid var(--line); }
.main-header__inner { align-items: center; display: flex; gap: 42px; min-height: 90px; }
.site-branding, .site-branding__link { align-items: center; display: inline-flex; flex: 0 0 auto; gap: 10px; text-decoration: none; }
.site-branding .custom-logo { max-height: 58px; width: auto; }
.brand-mark { align-items: center; background: var(--orange); color: #fff; display: inline-flex; height: 40px; justify-content: center; width: 40px; }
.brand-mark svg { fill: currentColor; }
.site-title { color: var(--navy); font-family: "Barlow Condensed", sans-serif; font-size: 25px; font-weight: 800; letter-spacing: .02em; line-height: .9; text-transform: uppercase; }
.site-title span { color: var(--orange); display: block; font-size: 11px; letter-spacing: .16em; margin-top: 5px; }
.primary-navigation { margin-left: auto; }
.primary-navigation ul { align-items: center; display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-navigation a { color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.primary-navigation a:hover { color: var(--orange-dark); }
.header-cta { align-items: center; border-left: 1px solid var(--line); display: flex; gap: 14px; padding-left: 28px; }
.header-cta__label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.2; text-align: right; text-transform: uppercase; }
.header-cta__phone { color: var(--navy); display: block; font-family: "Barlow Condensed", sans-serif; font-size: 25px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; }
.menu-toggle { background: transparent; border: 1px solid var(--line); color: var(--navy); display: none; height: 44px; padding: 0; width: 44px; }

/* Homepage */
.hero { background-color: var(--navy); background-image: linear-gradient(90deg, rgba(16,44,68,.96) 0%, rgba(16,44,68,.83) 48%, rgba(16,44,68,.38) 100%), url("assets/roofing-hero.svg"); background-position: center; background-size: cover; color: #fff; overflow: hidden; position: relative; }
.hero__inner { min-height: min(680px, calc(100vh - 128px)); padding-block: 110px; position: relative; }
.hero__content { max-width: 660px; }
.hero h1 { color: #fff; margin-top: 18px; max-width: 680px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: #dce8ee; font-size: 19px; max-width: 550px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__stamp { align-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; bottom: 64px; color: #fff; display: flex; font-family: "Barlow Condensed", sans-serif; font-size: 20px; height: 118px; justify-content: center; letter-spacing: .04em; line-height: 1.05; position: absolute; right: 9%; text-align: center; text-transform: uppercase; transform: rotate(10deg); width: 118px; }
.hero__stamp:before { border: 1px dashed var(--gold); border-radius: 50%; content: ""; inset: 7px; position: absolute; }
.trust-strip { background: var(--orange); color: #fff; }
.trust-strip__inner { align-items: stretch; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { align-items: center; border-right: 1px solid rgba(255,255,255,.25); display: flex; gap: 13px; min-height: 94px; padding: 20px 25px; }
.trust-item:first-child { border-left: 1px solid rgba(255,255,255,.25); }
.trust-item__icon { color: var(--gold); flex: 0 0 auto; }
.trust-item strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 21px; line-height: 1; }
.trust-item span { display: block; font-size: 12px; margin-top: 3px; opacity: .85; }
.intro-grid { align-items: center; display: grid; gap: clamp(48px, 8vw, 112px); grid-template-columns: 1fr 1fr; }
.intro-copy p { color: var(--muted); font-size: 17px; max-width: 520px; }
.intro-copy .button { margin-top: 12px; }
.service-list { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.service-card { background: var(--cloud); border-bottom: 3px solid transparent; padding: 27px 24px 25px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.service-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card__number { color: var(--orange); font-family: "Barlow Condensed", sans-serif; font-size: 14px; font-weight: 800; }
.service-card h3 { font-size: 25px; margin: 12px 0 8px; }
.service-card p { color: var(--muted); font-size: 14px; margin: 0; }
.split-band { background: var(--cloud); }
.split-band__inner { align-items: center; display: grid; gap: 80px; grid-template-columns: .8fr 1.2fr; }
.split-band__image { background: var(--orange); min-height: 400px; overflow: hidden; position: relative; }
.split-band__image:after { background: url("assets/roofing-team.svg") center / cover no-repeat; content: ""; inset: 0; opacity: .9; position: absolute; }
.split-band__image:before { border: 1px solid rgba(255,255,255,.65); content: ""; inset: 20px; position: absolute; z-index: 1; }
.check-list { list-style: none; margin: 28px 0 30px; padding: 0; }
.check-list li { align-items: flex-start; display: flex; gap: 12px; margin: 12px 0; }
.check-list svg { background: var(--orange); border-radius: 50%; color: #fff; flex: 0 0 auto; margin-top: 3px; padding: 3px; }
.check-list span { color: var(--muted); }
.projects-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 38px; }
.projects-heading h2 { margin-bottom: 0; }
.project-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.project-card { background: var(--navy); min-height: 300px; overflow: hidden; position: relative; }
.project-card__visual { background: linear-gradient(135deg, #52758a, #cad7d9 48%, #724b35 49%, #ba7b44); min-height: 300px; opacity: .82; transition: transform .4s; }
.project-card:nth-child(2) .project-card__visual { background: linear-gradient(135deg, #223f56, #8da3ad 48%, #3f2d2a 49%, #bd633b); }
.project-card:nth-child(3) .project-card__visual { background: linear-gradient(135deg, #6a8c8a, #d7d9d2 46%, #4c433d 47%, #9d6848); }
.project-card:hover .project-card__visual { transform: scale(1.06); }
.project-card__content { background: linear-gradient(transparent, rgba(16,44,68,.95) 30%); bottom: 0; color: #fff; left: 0; padding: 80px 25px 24px; position: absolute; right: 0; }
.project-card h3 { color: #fff; font-size: 27px; margin: 5px 0 0; }
.project-card span { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.testimonial-band { background: var(--navy); color: #fff; position: relative; }
.testimonial-band__inner { display: grid; gap: 85px; grid-template-columns: .75fr 1.25fr; }
.testimonial-band h2 { color: #fff; }
.testimonial-band__aside p { color: #b8cbd5; }
.quote-mark { color: var(--orange); font-family: Georgia, serif; font-size: 100px; height: 65px; line-height: 1; }
.testimonial { margin: 0; }
.testimonial blockquote { color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: clamp(28px, 4vw, 45px); line-height: 1.05; margin: 0 0 24px; }
.testimonial figcaption { align-items: center; color: #b8cbd5; display: flex; font-size: 13px; gap: 12px; }
.testimonial figcaption:before { background: var(--orange); content: ""; height: 2px; width: 35px; }
.cta-band { background: var(--gold); }
.cta-band__inner { align-items: center; display: flex; gap: 40px; justify-content: space-between; }
.cta-band h2 { margin: 0; max-width: 650px; }

/* Elementor and content compatibility */
.elementor-page .site-main { padding: 0; }
.elementor-page .entry-content { margin: 0; max-width: none; }
.entry-content { margin-inline: auto; max-width: 820px; }
.entry-content > * { margin-left: auto; margin-right: auto; }
.entry-content p, .entry-content ul, .entry-content ol { color: var(--muted); }
.entry-content img { margin-block: 28px; }
.entry-content blockquote { border-left: 4px solid var(--orange); color: var(--navy); font-family: "Barlow Condensed", sans-serif; font-size: 30px; line-height: 1.1; margin: 30px 0; padding: 10px 0 10px 24px; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 10px; text-align: left; }
.content-shell { padding-block: 90px; }
.archive-header { background: var(--cloud); padding-block: 72px; }
.archive-header h1 { margin: 12px 0 0; }
.post-loop { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.post-card { border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__image { aspect-ratio: 16 / 10; background: var(--cloud); object-fit: cover; width: 100%; }
.post-card__body { padding: 24px; }
.post-card__meta { color: var(--orange-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.post-card h2 { font-size: 28px; margin: 12px 0; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card p { color: var(--muted); font-size: 14px; }
.single-header { background: var(--cloud); padding-block: 80px; }
.single-header__inner { max-width: 850px; }
.single-header h1 { margin-top: 14px; }
.single-meta { color: var(--muted); font-size: 13px; }
.post-navigation { border-top: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; margin: 50px auto 0; max-width: 820px; padding-top: 22px; }
.post-navigation a { font-weight: 800; text-decoration: none; }
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; gap: 7px; }
.pagination a, .pagination span { align-items: center; border: 1px solid var(--line); display: inline-flex; height: 42px; justify-content: center; min-width: 42px; text-decoration: none; }
.pagination .current { background: var(--orange); border-color: var(--orange); color: #fff; }
.no-results { padding-block: 50px; text-align: center; }

/* Footer */
.site-footer { background: #0b2235; color: #b8cbd5; }
.footer-main { padding-block: 72px; }
.footer-main__grid { display: grid; gap: 50px; grid-template-columns: 1.4fr .8fr .8fr 1fr; }
.footer-brand .site-title { color: #fff; }
.footer-brand p { font-size: 14px; max-width: 270px; }
.footer-main h3 { color: #fff; font-size: 20px; margin-bottom: 18px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin-bottom: 8px; }
.footer-main a { color: #b8cbd5; font-size: 14px; text-decoration: none; }
.footer-main a:hover { color: var(--gold); }
.footer-contact a { color: #fff; display: block; font-family: "Barlow Condensed", sans-serif; font-size: 25px; line-height: 1.1; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; padding-block: 20px; }
.footer-bottom__inner { align-items: center; display: flex; justify-content: space-between; }

/* Forms and comments */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], textarea, select { border: 1px solid var(--line); border-radius: 2px; color: var(--ink); padding: 13px 15px; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); outline: 2px solid rgba(232,117,39,.18); }
.comment-list { list-style: none; margin: 40px 0; padding: 0; }
.comment-list li { border-top: 1px solid var(--line); padding: 22px 0; }
.comment-meta { color: var(--muted); font-size: 13px; }
.comment-content { color: var(--muted); }

@media (max-width: 980px) {
    .main-header__inner { gap: 18px; }
    .header-cta { padding-left: 15px; }
    .header-cta__label { display: none; }
    .primary-navigation ul { gap: 16px; }
    .split-band__inner, .testimonial-band__inner { gap: 45px; }
    .footer-main__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    body.admin-bar .site-header { top: 46px; }
    .container { width: min(calc(100% - 32px), var(--max-width)); }
    .topbar__inner { justify-content: center; }
    .topbar__left { display: none; }
    .main-header__inner { min-height: 74px; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
    .primary-navigation { background: #fff; border-bottom: 1px solid var(--line); display: none; left: 0; padding: 18px 16px 24px; position: absolute; right: 0; top: 112px; }
    .primary-navigation.is-open { display: block; }
    .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
    .primary-navigation li { border-bottom: 1px solid var(--line); }
    .primary-navigation a { display: block; padding: 13px 0; }
    .header-cta { border-left: 0; padding-left: 0; }
    .header-cta__phone { font-size: 20px; }
    .hero__inner { min-height: 610px; padding-block: 82px 150px; }
    .hero__stamp { bottom: 28px; right: 10px; transform: rotate(8deg) scale(.82); }
    .hero p { font-size: 17px; }
    .trust-strip__inner { grid-template-columns: 1fr 1fr; }
    .trust-item { border-bottom: 1px solid rgba(255,255,255,.25); min-height: 82px; padding: 15px 10px; }
    .trust-item:first-child { border-left: 0; }
    .trust-item strong { font-size: 18px; }
    .trust-item span { font-size: 11px; }
    .intro-grid, .split-band__inner, .testimonial-band__inner { grid-template-columns: 1fr; }
    .split-band__image { min-height: 280px; }
    .project-grid, .post-loop { grid-template-columns: 1fr; }
    .projects-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
    .cta-band__inner { align-items: flex-start; flex-direction: column; gap: 24px; }
    .footer-main__grid { gap: 32px; grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom__inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 440px) {
    .site-title { font-size: 21px; }
    .header-cta__phone { display: none; }
    .service-list { grid-template-columns: 1fr; }
    .footer-main__grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}
