/*
Theme Name: Torchline Roofing
Theme URI: https://example.com/torchline-roofing
Author: Your Name
Author URI: https://example.com
Description: A bold, conversion-focused roofing theme designed to pair with Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: torchline
Tags: one-column, two-columns, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

:root {
    --torch-orange: #ff5a00;
    --torch-orange-dark: #d84300;
    --torch-ink: #08090a;
    --torch-ink-soft: #121517;
    --torch-panel: #1a1d20;
    --torch-line: #363a3d;
    --torch-paper: #f7f7f5;
    --torch-muted: #adb1b3;
    --torch-white: #ffffff;
    --torch-shadow: 0 18px 45px rgba(0, 0, 0, .16);
    --torch-radius: 3px;
    --torch-content: 1160px;
    --torch-heading: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --torch-body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--torch-paper);
    color: var(--torch-ink);
    font-family: var(--torch-body);
    font-size: 16px;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--torch-orange); }
button, input, textarea, select { font: inherit; }
.site-main { overflow: hidden; }
.container { width: min(calc(100% - 48px), var(--torch-content)); margin-inline: auto; }
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus { clip: auto !important; clip-path: none; display: block; height: auto; left: 5px; padding: 12px 18px; top: 5px; width: auto; z-index: 100000; background: var(--torch-white); }

.site-header { background: var(--torch-ink); color: var(--torch-white); position: relative; z-index: 10; }
.site-header__inner { align-items: center; display: flex; gap: 28px; justify-content: space-between; min-height: 76px; }
.site-branding { align-items: center; display: flex; flex: 0 0 auto; gap: 12px; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 54px; width: auto; }
.site-title { color: var(--torch-white); font-family: var(--torch-heading); font-size: 20px; letter-spacing: .04em; line-height: 1; text-decoration: none; text-transform: uppercase; }
.site-description { color: var(--torch-muted); font-size: 11px; margin: 3px 0 0; }
.main-navigation { margin-left: auto; }
.main-navigation ul { align-items: center; display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { color: var(--torch-white); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--torch-orange); }
.header-phone { align-items: center; background: var(--torch-orange); border-radius: var(--torch-radius); color: var(--torch-white); display: inline-flex; font-size: 13px; font-weight: 700; gap: 8px; padding: 12px 17px; text-decoration: none; white-space: nowrap; }
.header-phone:hover { background: var(--torch-orange-dark); color: var(--torch-white); }
.menu-toggle { background: transparent; border: 1px solid var(--torch-line); color: var(--torch-white); cursor: pointer; display: none; padding: 9px 12px; }

.eyebrow { color: var(--torch-orange); font-size: 13px; font-weight: 800; letter-spacing: .08em; margin: 0 0 8px; text-transform: uppercase; }
.display-title { font-family: var(--torch-heading); font-size: clamp(42px, 6vw, 80px); letter-spacing: .01em; line-height: .94; margin: 0; text-transform: uppercase; }
.display-title span, .accent { color: var(--torch-orange); }
.button { border: 1px solid transparent; border-radius: var(--torch-radius); display: inline-flex; font-size: 12px; font-weight: 800; justify-content: center; letter-spacing: .06em; padding: 14px 21px; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { color: var(--torch-white); transform: translateY(-2px); }
.button--orange { background: var(--torch-orange); color: var(--torch-white); }
.button--orange:hover { background: var(--torch-orange-dark); }
.button--outline { border-color: var(--torch-white); color: var(--torch-white); }
.button--outline:hover { background: var(--torch-white); color: var(--torch-ink); }
.button--dark { background: var(--torch-ink); color: var(--torch-white); }

.hero { background: var(--torch-ink); color: var(--torch-white); padding: 48px 0 0; }
.hero__grid { align-items: center; display: grid; gap: 42px; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.hero__copy { padding: 20px 0 50px; }
.hero__copy p { color: #d5d7d8; font-size: 18px; max-width: 550px; }
.hero__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.experience-badge { align-items: center; border: 2px solid var(--torch-orange); border-radius: 50%; display: inline-flex; flex-direction: column; height: 92px; justify-content: center; margin-left: 18px; text-align: center; width: 92px; }
.experience-badge strong { color: var(--torch-orange); font-family: var(--torch-heading); font-size: 29px; line-height: .9; }
.experience-badge span { font-size: 10px; font-weight: 800; letter-spacing: .04em; line-height: 1.1; text-transform: uppercase; }
.hero__image, .image-placeholder { min-height: 385px; position: relative; }
.hero__image img, .image-placeholder { background: linear-gradient(145deg, #596874 0%, #8a989d 38%, #373d45 39%, #252a31 100%); border: 5px solid var(--torch-orange); display: block; height: 100%; min-height: 385px; object-fit: cover; width: 100%; }
.image-placeholder::before { background: repeating-linear-gradient(165deg, transparent 0 43px, rgba(255,255,255,.1) 44px 46px); content: ""; inset: 0; position: absolute; }
.image-placeholder::after { border-bottom: 90px solid rgba(10,12,14,.36); border-left: 240px solid transparent; bottom: 0; content: ""; position: absolute; right: 0; }
.hero__image figcaption { background: var(--torch-orange); bottom: 0; color: var(--torch-white); font-size: 11px; font-weight: 800; left: 0; letter-spacing: .08em; padding: 10px 13px; position: absolute; text-transform: uppercase; }
.trust-strip { border-top: 1px solid var(--torch-line); display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 10px; }
.trust-item { align-items: center; border-right: 1px solid var(--torch-line); display: flex; flex-direction: column; font-size: 11px; font-weight: 800; justify-content: center; min-height: 78px; padding: 12px 6px; text-align: center; text-transform: uppercase; }
.trust-item:last-child { border-right: 0; }
.trust-item::before { border: 2px solid var(--torch-orange); border-radius: 50%; content: ""; height: 13px; margin-bottom: 8px; width: 13px; }

.about { background: var(--torch-white); padding: 66px 0; }
.about__grid { align-items: center; display: grid; gap: 70px; grid-template-columns: .8fr 1.2fr; }
.about__copy h2, .section-heading h2 { font-family: var(--torch-heading); font-size: clamp(34px, 4vw, 54px); line-height: .98; margin: 0 0 18px; text-transform: uppercase; }
.about__copy p { color: #45494b; max-width: 470px; }
.about__image { min-height: 300px; position: relative; }
.about__image img, .about__image .image-placeholder { border-radius: var(--torch-radius); min-height: 300px; object-fit: cover; width: 100%; }
.image-placeholder--light { background: linear-gradient(145deg, #c6c0b1, #777b75 47%, #4e626c 48%, #293238); }
.image-label { background: var(--torch-ink); bottom: 0; color: var(--torch-white); font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 13px 17px; position: absolute; right: 0; text-transform: uppercase; }

.services { background: var(--torch-ink); color: var(--torch-white); padding: 70px 0 76px; }
.section-heading { margin: 0 auto 30px; text-align: center; }
.section-heading h2 { margin-bottom: 0; }
.services-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.service-card { background: var(--torch-panel); min-height: 168px; overflow: hidden; position: relative; }
.service-card__image { background: linear-gradient(145deg, #768b92, #273238 70%); inset: 0; opacity: .82; position: absolute; transition: transform .3s ease; }
.service-card:nth-child(2) .service-card__image { background: linear-gradient(145deg, #a4a9a8, #43545d 48%, #263036); }
.service-card:nth-child(3) .service-card__image { background: linear-gradient(145deg, #9e3c2f, #4b6567 55%, #222a2d); }
.service-card:nth-child(4) .service-card__image { background: linear-gradient(145deg, #b2b1aa, #56605e 50%, #282e30); }
.service-card:nth-child(5) .service-card__image { background: linear-gradient(145deg, #8d735f, #333e42 55%, #151a1c); }
.service-card:nth-child(6) .service-card__image { background: linear-gradient(145deg, #ae988c, #4f5f61 50%, #222628); }
.service-card:nth-child(7) .service-card__image { background: linear-gradient(145deg, #d2c2a9, #5f6b6e 50%, #212729); }
.service-card:nth-child(8) .service-card__image { background: linear-gradient(145deg, #879c95, #34504e 55%, #1d2426); }
.service-card::after { background: linear-gradient(0deg, rgba(4,5,6,.9), rgba(4,5,6,0) 70%); content: ""; inset: 0; position: absolute; }
.service-card:hover .service-card__image { transform: scale(1.06); }
.service-card__content { bottom: 0; left: 0; padding: 17px; position: absolute; right: 0; z-index: 1; }
.service-card h3 { font-family: var(--torch-heading); font-size: 18px; line-height: 1.05; margin: 0; max-width: 170px; text-transform: uppercase; }
.service-card a { display: block; height: 100%; inset: 0; position: absolute; z-index: 2; }
.service-card__arrow { color: var(--torch-orange); font-size: 28px; position: absolute; right: 16px; bottom: 10px; }

.projects { background: var(--torch-white); padding: 66px 0; }
.projects__header { align-items: end; display: flex; justify-content: space-between; margin-bottom: 25px; }
.projects__header .section-heading { margin: 0; text-align: left; }
.projects__header .section-heading h2 { font-size: clamp(30px, 4vw, 48px); }
.projects__intro { color: #555; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.projects-grid { display: grid; gap: 10px; grid-template-columns: repeat(5, 1fr); }
.project-card { background: #c8cdd0; aspect-ratio: 1.2; overflow: hidden; }
.project-card__image { background: linear-gradient(145deg, #91a4ad, #566e75 43%, #31393c 44%, #222729); height: 100%; position: relative; transition: transform .3s ease; }
.project-card:nth-child(2) .project-card__image { background: linear-gradient(145deg, #c2c5bf, #687a79 45%, #303b3d 46%); }
.project-card:nth-child(3) .project-card__image { background: linear-gradient(145deg, #b4a99c, #77837e 50%, #4a5554 51%); }
.project-card:nth-child(4) .project-card__image { background: linear-gradient(145deg, #9ba7ab, #687878 45%, #34423f 46%); }
.project-card:nth-child(5) .project-card__image { background: linear-gradient(145deg, #bdc3c1, #879692 50%, #46534e 51%); }
.project-card:hover .project-card__image { transform: scale(1.05); }
.projects .button { display: flex; margin: 22px auto 0; width: max-content; }

.reviews { background: var(--torch-ink); color: var(--torch-white); padding: 34px 0 42px; }
.reviews__top { align-items: center; display: flex; gap: 28px; justify-content: space-between; }
.reviews__top h2 { font-family: var(--torch-heading); font-size: 24px; margin: 0; text-transform: uppercase; }
.reviews__proof { color: var(--torch-orange); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.reviews-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.review-card { border: 1px solid #414548; color: #e2e3e3; font-size: 14px; padding: 18px 20px; position: relative; }
.review-card::before { color: var(--torch-orange); content: "“"; font-family: Georgia, serif; font-size: 46px; left: 14px; line-height: 1; position: absolute; top: 3px; }
.review-card p { margin: 0 0 12px; padding-left: 18px; }
.review-card cite { color: var(--torch-orange); font-size: 11px; font-style: normal; font-weight: 800; text-transform: uppercase; }

.cta-band { background: var(--torch-orange); color: var(--torch-white); padding: 25px 0; }
.cta-band__inner { align-items: center; display: flex; justify-content: space-between; }
.cta-band h2 { font-family: var(--torch-heading); font-size: 34px; line-height: 1; margin: 0 0 5px; text-transform: uppercase; }
.cta-band p { font-size: 14px; font-weight: 800; margin: 0; text-transform: uppercase; }
.cta-band .header-phone { background: var(--torch-ink); }

.site-footer { background: var(--torch-ink); color: var(--torch-white); padding: 28px 0; }
.site-footer__inner { align-items: start; display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer .site-title { font-size: 17px; }
.site-footer h2 { color: var(--torch-orange); font-size: 12px; letter-spacing: .06em; margin: 0 0 12px; text-transform: uppercase; }
.site-footer p, .site-footer li, .site-footer a { color: #c5c7c8; font-size: 13px; }
.site-footer p { margin: 10px 0 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 5px; }
.copyright { border-top: 1px solid var(--torch-line); color: var(--torch-muted); font-size: 11px; margin-top: 25px; padding-top: 18px; }

.content-area { background: var(--torch-white); min-height: 55vh; padding: 70px 0; }
.entry-header { margin-bottom: 30px; }
.entry-title { font-family: var(--torch-heading); font-size: clamp(38px, 5vw, 68px); line-height: 1; margin: 0; text-transform: uppercase; }
.entry-content { max-width: 800px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--torch-orange-dark); }
.entry-content .alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
.comments-area { margin-top: 50px; max-width: 800px; }

@media (max-width: 980px) {
    .main-navigation ul { gap: 16px; }
    .header-phone { padding-inline: 12px; }
    .hero__grid { gap: 26px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
    .project-card:nth-child(n+4) { display: none; }
    .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .container { width: min(calc(100% - 32px), var(--torch-content)); }
    .site-header__inner { min-height: 68px; position: relative; }
    .menu-toggle { display: block; }
    .main-navigation { background: var(--torch-ink-soft); display: none; left: -16px; padding: 18px 16px; position: absolute; right: -16px; top: 68px; }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
    .main-navigation li { border-bottom: 1px solid var(--torch-line); }
    .main-navigation a { display: block; padding: 12px 0; }
    .header-phone { font-size: 11px; padding: 10px 9px; }
    .hero { padding-top: 20px; }
    .hero__grid, .about__grid { grid-template-columns: 1fr; }
    .hero__copy { padding-bottom: 10px; }
    .hero__image { min-height: 260px; }
    .hero__image img, .hero__image .image-placeholder { min-height: 260px; }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(odd) { border-left: 0; }
    .trust-item:nth-child(n+5) { display: none; }
    .about__grid { gap: 30px; }
    .about__image { min-height: 240px; }
    .about__image img, .about__image .image-placeholder { min-height: 240px; }
    .projects__header, .reviews__top, .cta-band__inner { align-items: start; flex-direction: column; gap: 14px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card:nth-child(n+5) { display: block; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
    .site-branding .site-description { display: none; }
    .display-title { font-size: 47px; }
    .experience-badge { height: 78px; margin-left: 0; width: 78px; }
    .experience-badge strong { font-size: 23px; }
    .services-grid, .projects-grid, .site-footer__inner { grid-template-columns: 1fr; }
    .project-card:nth-child(n) { display: block; }
}
