/*
Theme Name: Lubbock Roofing Pro
Theme URI: https://lubbockroofingpro.com
Author: Lubbock Roofing Pro
Author URI: https://lubbockroofingpro.com
Description: Professional roofing contractor website for Lubbock, TX. SEO optimized for local search rankings.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lubbock-roofing-pro
Tags: business, roofing, local-seo, responsive
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #C0392B;
  --red-dark:   #96281B;
  --red-light:  #E74C3C;
  --charcoal:   #1A1A1A;
  --steel:      #2C3E50;
  --slate:      #4A5568;
  --silver:     #CBD5E0;
  --off-white:  #F7F5F0;
  --white:      #FFFFFF;
  --tan:        #D4C5A9;
  --gold:       #D4A017;
  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Source Serif 4', serif;
  --font-sans:  'Barlow', sans-serif;
  --shadow:     0 4px 24px rgba(0,0,0,0.15);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.25);
  --radius:     4px;
  --max-w:      1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }

h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--steel { background: var(--steel); color: var(--white); }
.section--tan { background: var(--off-white); }

.section-label {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 640px;
  line-height: 1.6;
}

.section--dark .section-subtitle,
.section--steel .section-subtitle { color: var(--silver); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,.4);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--charcoal);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.1rem 2.5rem; font-size: 1rem; }

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--charcoal);
  color: var(--silver);
  font-family: var(--font-sans);
  font-size: .8rem;
  padding: .5rem 0;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar a { color: var(--silver); }
.top-bar a:hover { color: var(--white); }

.top-bar__items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar__phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--gold) !important;
  font-weight: 700;
  font-size: .9rem;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.12);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.logo-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text-group { display: flex; flex-direction: column; }

.logo-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1;
  letter-spacing: .04em;
}

.logo-tagline {
  font-family: var(--font-sans);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.main-nav li a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: .5rem 1rem;
  display: block;
  transition: color .2s;
  position: relative;
}

.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s;
}

.main-nav li a:hover { color: var(--red); }
.main-nav li a:hover::after { transform: scaleX(1); }

.nav__cta {
  flex-shrink: 0;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  transition: all .3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26,26,26,.92) 45%, rgba(192,57,43,.6) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1400') center/cover no-repeat;
  z-index: 0;
}

/* Diagonal accent */
.hero__bg::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(to bottom-left, rgba(192,57,43,.15), transparent);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 6rem 0 4rem;
  max-width: 720px;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.0;
}

.hero__title span { color: var(--red-light); }

.hero__desc {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  letter-spacing: .04em;
}

.trust-badge__icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--red);
  padding: 1.75rem 0;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat__num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat__label {
  font-family: var(--font-sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.75);
  margin-top: .25rem;
}

/* =============================================
   SERVICES GRID
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--silver);
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .3s;
}

.service-card:hover { background: var(--off-white); transform: translateY(-2px); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-size: 1.3rem;
  margin-bottom: .75rem;
  color: var(--charcoal);
}

.service-card__desc {
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card__link {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* =============================================
   WHY US / FEATURES
   ============================================= */
.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.features__list { display: flex; flex-direction: column; gap: 1.5rem; }

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-item__num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  opacity: .25;
  width: 60px;
  text-align: right;
}

.feature-item__content h3 {
  font-size: 1.15rem;
  margin-bottom: .35rem;
  color: var(--white);
}

.feature-item__content p {
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--silver);
  line-height: 1.6;
}

.features__image {
  position: relative;
}

.features__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}

.features__badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--red);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.features__badge .big { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.features__badge .small { font-family: var(--font-sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

/* =============================================
   PROCESS
   ============================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--red), var(--red-light));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__circle {
  width: 64px;
  height: 64px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--off-white);
  box-shadow: 0 0 0 4px var(--red);
}

.step__title {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: var(--charcoal);
}

.step__desc {
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--slate);
  line-height: 1.55;
}

/* =============================================
   REVIEWS
   ============================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.review-card {
  background: var(--steel);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  border-top: 3px solid var(--red);
}

.review-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.review-text {
  font-family: var(--font-sans);
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.review-author {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .8rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.review-location {
  font-size: .75rem;
  color: var(--silver);
  margin-top: .2rem;
  font-family: var(--font-sans);
}

/* =============================================
   LOCAL AREA / SEO SECTION
   ============================================= */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-top: 2.5rem;
}

.area-tag {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: .6rem 1rem;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: center;
  transition: all .2s;
}

.area-tag:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  cursor: default;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--steel) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: var(--red);
  border-radius: 50%;
  opacity: .08;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: var(--red);
  border-radius: 50%;
  opacity: .05;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-inner .section-title { color: var(--white); }

.cta-inner .section-subtitle {
  color: rgba(255,255,255,.75);
  margin: 0 auto 2.5rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--charcoal);
  color: var(--silver);
  padding: 4rem 0 2rem;
  font-family: var(--font-sans);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo .logo-name { color: var(--white); font-size: 1.4rem; }
.footer__logo .logo-tagline { color: var(--silver); }

.footer__about {
  font-size: .88rem;
  line-height: 1.65;
  margin-top: 1rem;
  color: rgba(255,255,255,.6);
}

.footer__heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer__links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer__links a:hover { color: var(--red-light); }

.footer__contact-item {
  display: flex;
  gap: .75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .85rem;
  align-items: flex-start;
}

.footer__contact-item strong { color: var(--white); display: block; }

.footer__phone-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold) !important;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  color: rgba(255,255,255,.4);
  font-size: .78rem;
}

.footer__bottom-links a:hover { color: var(--white); }

/* =============================================
   SCHEMA / LOCAL SEO — structured data via PHP
   ============================================= */

/* =============================================
   EMERGENCY STRIP
   ============================================= */
.emergency-strip {
  background: var(--red);
  padding: 1rem 0;
  text-align: center;
}

.emergency-strip__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.emergency-strip p {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--white);
  font-size: .9rem;
}

.emergency-strip a {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--white);
  font-size: 1rem;
  border-bottom: 2px solid rgba(255,255,255,.5);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { gap: 2.5rem; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav,
  .nav__cta { display: none; }
  .hamburger { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--charcoal);
    z-index: 2000;
    padding: 5rem 2rem 2rem;
    gap: .5rem;
    align-items: flex-start;
    overflow-y: auto;
  }

  .main-nav.open li a {
    color: var(--white);
    font-size: 1.5rem;
    padding: .75rem 0;
  }

  .mobile-close {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 2001;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    font-family: var(--font-sans);
  }

  .hero { min-height: 100svh; }
  .hero__content { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .features__badge { left: 1rem; bottom: 1rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .section { padding: 3.5rem 0; }
  .top-bar__inner { justify-content: center; }
  .top-bar .top-bar__items { display: none; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   INNER PAGE STYLES
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--charcoal) 60%, var(--red-dark) 100%);
  padding: 5rem 0 3.5rem;
  color: var(--white);
}

.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: .75rem; }
.page-hero .breadcrumb { font-family: var(--font-sans); font-size: .8rem; color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover { color: var(--white); }

.content-area { padding: 4rem 0; }
.content-area p { margin-bottom: 1.25rem; }
.content-area h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 2.5rem 0 1rem; color: var(--charcoal); }
.content-area h3 { font-size: 1.3rem; margin: 2rem 0 .75rem; color: var(--charcoal); }
.content-area ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.content-area ul li { margin-bottom: .5rem; font-family: var(--font-sans); }

.two-col-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col-content { grid-template-columns: 1fr; }
}

.sidebar-box {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem;
  border-top: 4px solid var(--red);
  position: sticky;
  top: 100px;
}

.sidebar-box h3 { font-size: 1.1rem; margin-bottom: 1rem; }

.sidebar-phone {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 1rem;
}
