/*
Theme Name: AJC Theme
Theme URI: https://averagejoesconstruction.com
Author: Average Joes Construction LLC
Author URI: https://averagejoesconstruction.com
Description: Professional roofing and construction theme for Average Joes Construction LLC — Tulsa, OK.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ajc-theme
Tags: construction, roofing, business, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --orange:      #C8581A;
  --orange-dark: #a84614;
  --orange-light: rgba(200, 88, 26, 0.12);
  --charcoal:    #666666;
  --dark:        #1A1A1A;
  --dark-mid:    #222222;
  --dark-light:  #2d2d2d;
  --white:       #FFFFFF;
  --off-white:   #F5F5F5;
  --light-gray:  #E8E8E8;
  --text-dark:   #1A1A1A;
  --text-mid:    #444444;
  --text-light:  #888888;
  --border:      #DDDDDD;

  --font-main:   'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius:      6px;
  --radius-lg:   12px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.18);
  --transition:  0.25s ease;
  --max-width:   1200px;
}

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

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

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--orange-dark); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad {
  padding: 5rem 0;
}

.section-pad-sm {
  padding: 3rem 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--charcoal);
  max-width: 600px;
}

.section-subtitle--white {
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 88, 26, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-outline-dark:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--transition);
}

#masthead.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  gap: 1.5rem;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.site-logo img,
.site-logo svg {
  width: 160px;
  height: auto;
  display: block;
}

.site-header .logo img,
.nav-logo img,
header img {
  width: 160px;
  height: auto;
  display: block;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  color: var(--white);
  line-height: 1.15;
}

.site-logo .logo-text .logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-logo .logo-text .logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

#primary-navigation {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0; padding: 0;
}

#primary-navigation ul li a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  transition: all var(--transition);
}

#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item a {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  margin-left: 0.75rem;
}

.nav-cta .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 110px;
  left: 0;
  right: 0;
  background: var(--dark-mid);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0 0 1.5rem; padding: 0;
}

.mobile-menu ul li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu ul li:last-child {
  border-bottom: none;
}

.mobile-menu ul li a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.mobile-menu ul li a:hover { color: var(--orange); }

.mobile-menu .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--dark);
  background-image:
    linear-gradient(to bottom, rgba(26,26,26,0.45) 0%, rgba(26,26,26,0.65) 100%),
    url('images/hero-golden-hour-after.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding-top: 110px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(200, 88, 26, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 88, 26, 0.18);
  border: 1px solid rgba(200, 88, 26, 0.4);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--orange);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-size: 1.05rem;
}

.hero-phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-phone a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.3rem;
}

.hero-phone a:hover { color: var(--orange); }

.hero-phone-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  display: block;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-item {
  text-align: left;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ============================================================
   SERVICES STRIP
   ============================================================ */
.services-strip {
  background: var(--off-white);
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
  color: inherit;
}

.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--orange-light);
  border-radius: 50%;
  margin: 0 auto 1rem;
  color: var(--orange);
}

.service-card-icon svg {
  width: 28px; height: 28px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-us {
  background: var(--white);
  padding: 5rem 0;
}

.why-us-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--light-gray);
  transition: all var(--transition);
  text-align: center;
}

.why-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: var(--orange-light);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.why-icon svg {
  width: 32px; height: 32px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.why-card p {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.6;
}

/* ============================================================
   PROJECT GALLERY TEASER
   ============================================================ */
.projects-teaser {
  background: var(--off-white);
  padding: 5rem 0;
}

.projects-teaser-header {
  text-align: center;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  height: 240px;
  background-color: rgba(200, 88, 26, 0.15);
  background-image: linear-gradient(
    135deg,
    rgba(200, 88, 26, 0.25) 0%,
    rgba(26, 26, 26, 0.3) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8581A' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.project-placeholder-icon {
  color: rgba(200, 88, 26, 0.5);
}

.project-placeholder-icon svg {
  width: 48px; height: 48px;
  stroke: rgba(200, 88, 26, 0.6);
  fill: none;
  stroke-width: 1.5;
}

.project-card-info {
  background: var(--white);
  padding: 1.25rem 1.5rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  background: var(--orange-light);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}

.project-card-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.projects-teaser-cta {
  text-align: center;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--white);
  padding: 5rem 0;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--orange);
  position: relative;
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 0.975rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.testimonial-stars span {
  color: #FFB800;
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============================================================
   STORM DAMAGE BANNER
   ============================================================ */
.storm-banner {
  background: var(--dark);
  background-image: linear-gradient(
    to right,
    rgba(26,26,26,0.97) 0%,
    rgba(26,26,26,0.9) 100%
  );
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.storm-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 80% 50%,
    rgba(200, 88, 26, 0.12) 0%,
    transparent 70%
  );
}

.storm-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.storm-banner-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.storm-banner-text h2 span { color: var(--orange); }

.storm-banner-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
}

.storm-banner-icon {
  color: var(--orange);
  opacity: 0.2;
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
}

.storm-banner-icon svg {
  width: 140px; height: 140px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1;
}

/* ============================================================
   CONTACT CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--orange);
  padding: 4rem 0;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-strip-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.cta-strip-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

.cta-strip .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  white-space: nowrap;
}

.cta-strip .btn-outline:hover {
  background: var(--white);
  color: var(--orange);
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
}

.footer-main {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr;
  gap: 3rem;
}

.footer-brand .site-logo {
  margin-bottom: 1.25rem;
  display: block;
}

.footer-brand .site-logo img {
  height: 52px;
  width: auto;
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--orange);
  color: var(--white);
}

.footer-social a svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  margin: 0; padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a::before {
  content: '›';
  color: var(--orange);
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item svg {
  width: 16px; height: 16px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.65);
}

.footer-contact-item a:hover { color: var(--orange); }

.footer-contact-phone {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange) !important;
}

.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-inner a {
  color: rgba(255,255,255,0.35);
}

.footer-bottom-inner a:hover { color: var(--orange); }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.page-hero {
  background: var(--dark);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,88,26,0.12) 0%, transparent 70%);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 1rem auto 0;
  position: relative;
  z-index: 1;
}

.services-list {
  padding: 5rem 0;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-item:nth-child(even) {
  direction: rtl;
}

.service-item:nth-child(even) > * {
  direction: ltr;
}

.service-item-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  background: var(--orange-light);
  background-image: linear-gradient(135deg, rgba(200,88,26,0.2) 0%, rgba(26,26,26,0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item-image svg {
  width: 72px; height: 72px;
  stroke: rgba(200,88,26,0.5);
  fill: none;
  stroke-width: 1.2;
}

.service-item-content h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-item-content h2 span { color: var(--orange); }

.service-item-content p {
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-includes {
  list-style: none;
  margin: 0 0 2rem; padding: 0;
}

.service-includes li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.service-includes li::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding: 5rem 0;
}

.contact-form-wrap {
  background: var(--white);
}

.contact-form-wrap h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-form-wrap > p {
  color: var(--charcoal);
  margin-bottom: 2rem;
}

/* WPForms overrides */
.wpforms-container .wpforms-form .wpforms-field {
  margin-bottom: 1.25rem;
}

.wpforms-container .wpforms-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.4rem;
}

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(200,88,26,0.12);
}

.wpforms-container .wpforms-form textarea {
  min-height: 120px;
  resize: vertical;
}

.wpforms-container .wpforms-submit-container .wpforms-submit {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.9rem 2rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.wpforms-container .wpforms-submit-container .wpforms-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

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

.contact-info-box {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-box h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--orange);
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
}

.contact-info-row svg {
  width: 18px; height: 18px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-row a {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
}

.service-area-box {
  background: var(--off-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.service-area-box h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
}

.hours-box {
  background: var(--orange);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--white);
}

.hours-box h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-weight: 700; }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item-image {
  height: 220px;
  background: var(--orange-light);
  background-image: linear-gradient(135deg, rgba(200,88,26,0.2) 0%, rgba(26,26,26,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-item-image .project-placeholder-icon svg {
  width: 42px; height: 42px;
  stroke: rgba(200,88,26,0.5);
  fill: none;
  stroke-width: 1.5;
}

.gallery-item-info {
  padding: 1.25rem;
}

.gallery-item-info .project-tag { margin-bottom: 0.5rem; }

.gallery-item-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.gallery-item-info p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ============================================================
   DEFAULT PAGE
   ============================================================ */
.page-content {
  padding: 4rem 0;
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-mid);
}

.entry-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 2rem 0 0.75rem;
}

.entry-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.75rem 0 0.6rem;
}

.entry-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.entry-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   UTILITY / DIVIDERS
   ============================================================ */
.orange-divider {
  width: 64px;
  height: 4px;
  background: var(--orange);
  border-radius: 4px;
  margin: 1rem auto;
}

.orange-divider--left {
  margin-left: 0;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--orange);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-item:nth-child(even) {
    direction: ltr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .projects-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .section-pad { padding: 3.5rem 0; }

  /* Nav */
  #primary-navigation,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    background-attachment: scroll;
    min-height: 80vh;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  /* Services strip */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why us */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Projects teaser */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Storm banner */
  .storm-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .storm-banner-icon { display: none; }

  /* CTA strip */
  .cta-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Contact */
  .contact-sidebar {
    grid-template-columns: 1fr;
  }

  /* Projects gallery */
  .projects-gallery {
    grid-template-columns: 1fr;
  }

  /* Services page */
  .service-item-image {
    height: 240px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .service-card {
    padding: 1.25rem 0.75rem;
  }

  .container { padding: 0 1rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #masthead, .mobile-menu, .cta-strip, .storm-banner { display: none; }
  body { background: white; color: black; }
  .container { max-width: 100%; }
}
