/* ===================================================
   Expert Roofing Services Inc. — Stylesheet
   Brand: Orange (#E8611A) + Dark Charcoal (#1E1E1E)
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #E8611A;
  --orange-dark: #C4500F;
  --orange-light: #FFF0E6;
  --charcoal: #1E1E1E;
  --slate: #2D2D2D;
  --gray-700: #3A3A3A;
  --gray-500: #6B6B6B;
  --gray-300: #B0B0B0;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --section-pad: 80px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}

.btn:active { transform: scale(0.97); }

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

.btn-secondary {
  background: var(--white);
  color: var(--charcoal);
  border: 2px solid var(--gray-300);
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--charcoal);
}


/* ============================
   TOP BAR
   ============================ */
.top-bar {
  background: var(--charcoal);
  color: var(--gray-300);
  font-size: 0.78rem;
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.top-bar-inner > span { white-space: nowrap; flex-shrink: 0; }

.top-bar a {
  color: var(--gray-300);
  transition: color 0.2s;
  white-space: nowrap;
}
.top-bar a:hover { color: var(--white); }

.top-bar-contact {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
}

/* ============================
   HEADER / NAV
   ============================ */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--charcoal);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 8px; }

nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--gray-700);
  transition: color 0.2s, background 0.2s;
}

nav a:hover {
  color: var(--orange);
  background: var(--orange-light);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}


/* ============================
   HERO
   ============================ */
.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--slate) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,97,26,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-video::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--charcoal) 0%, var(--charcoal) 40%, rgba(30,30,30,0.6) 65%, rgba(30,30,30,0.3) 85%, rgba(30,30,30,0.5) 100%);
  z-index: 1;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

/* Photo accent strips between sections */
.photo-accent {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.photo-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Position each photo to show the best part */
.photo-accent img[src="roofing_lakeside.png"] {
  object-position: center 15%;
}
.photo-accent img[src="roofing_aerial.png"] {
  object-position: center 60%;
}

.photo-accent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(232,97,26,0.45) 0%, rgba(196,80,15,0.35) 50%, rgba(30,30,30,0.5) 100%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,97,26,0.15);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(232,97,26,0.25);
}

.hero h1 {
  margin-bottom: 20px;
}

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

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}


/* ============================
   SERVICES
   ============================ */
.services {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 28px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 30px rgba(232,97,26,0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--charcoal);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}


/* ============================
   WHY US
   ============================ */
.why-us {
  padding: var(--section-pad) 0;
  background: var(--gray-100);
}

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

.why-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
}

.why-card-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card h4 {
  margin-bottom: 6px;
  color: var(--charcoal);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}


/* ============================
   GUARANTEE BANNER
   ============================ */
.guarantee {
  padding: 60px 0;
  background: var(--orange);
  color: var(--white);
}

.guarantee-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.guarantee-text h2 {
  margin-bottom: 10px;
}

.guarantee-text p {
  max-width: 560px;
  opacity: 0.9;
  line-height: 1.7;
}


/* ============================
   PROCESS
   ============================ */
.process {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--charcoal);
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.process-step h4 {
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}


/* ============================
   REVIEWS
   ============================ */
.reviews {
  padding: var(--section-pad) 0;
  background: var(--charcoal);
  color: var(--white);
}

.reviews .section-label { color: var(--orange); }
.reviews .section-subtitle { color: rgba(255,255,255,0.6); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--slate);
  border-radius: 10px;
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,0.06);
}

.review-stars {
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

.review-author span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--gray-300);
  margin-top: 2px;
}

.reviews-cta {
  text-align: center;
  margin-top: 40px;
}

.reviews-cta a {
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.reviews-cta a:hover { border-color: var(--orange); }


/* ============================
   SERVICE AREA
   ============================ */
.service-area {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.area-tag {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 20px;
  background: var(--gray-100);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 100px;
  color: var(--gray-700);
  transition: background 0.2s, border-color 0.2s;
}

.area-tag:hover {
  background: var(--orange-light);
  border-color: var(--orange);
  color: var(--orange);
}


/* ============================
   CONTACT / CTA
   ============================ */
.contact {
  padding: var(--section-pad) 0;
  background: var(--gray-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail h4 {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-detail p,
.contact-detail a {
  font-size: 1rem;
  color: var(--charcoal);
  font-weight: 500;
}
.contact-detail a:hover { color: var(--orange); }

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}

.contact-form h3 {
  font-family: var(--font-display);
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,97,26,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}


/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-logo {
  width: 200px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
  font-size: 0.9rem;
}
.footer-social a:hover {
  background: var(--orange);
  color: var(--white);
}


/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-illustration { width: 45%; opacity: 0.3; }
  .photo-accent { height: 160px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  .hero-illustration { display: none; }
  .photo-accent { height: 120px; }

  /* Mobile nav */
  .menu-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 5%;
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  nav.open { display: flex; }

  nav a { padding: 12px 0; width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; border-radius: 8px !important; }

  /* Hamburger animation */
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .guarantee-inner {
    flex-direction: column;
    text-align: center;
  }

  .top-bar-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }
  .top-bar-contact { 
    flex-wrap: wrap;
    justify-content: center; 
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .process-steps { grid-template-columns: 1fr; }
}

/* --- Focus & a11y --- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
