/* ==========================================================================
   GRANT ROOFING OHIO - PREMIUM STYLE SYSTEM
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary: #1e293b;       /* Deep Trust Blue */
  --primary-light: #334155; /* Vibrant Accent Blue */
  --secondary: #0891b2;     /* Amber Gold for trust/badges */
  --secondary-light: #06b6d4;
  --accent: #16a34a;        /* Trust Green */
  --accent-light: #22c55e;
  --dark-slate: #0f172a;    /* Charcoal for text/dark bg */
  --gray-medium: #475569;   /* Subtitles */
  --gray-light: #f8fafc;    /* Warm light gray background */
  --gray-border: #e2e8f0;
  --white: #ffffff;
  
  /* Status Colors */
  --error: #dc2626;
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark-slate);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

p {
  font-weight: 400;
  color: var(--gray-medium);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(15, 45, 89, 0.2);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-accent:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

/* Badges & Accents */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--secondary);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 24px;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-cta a {
  color: var(--secondary-light);
  font-weight: 600;
  text-decoration: underline;
}

header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-normal);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-border);
}

header.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

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

.logo-text {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-slate);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--secondary);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-cta {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.phone-cta-label {
  font-size: 0.75rem;
  color: var(--gray-medium);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.phone-cta-number {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.phone-cta-number:hover {
  color: var(--secondary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 45, 89, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="0,100 50,50 100,100" fill="%23ffffff" fill-opacity="0.03"/><polygon points="50,50 100,0 100,100" fill="%23ffffff" fill-opacity="0.015"/></svg>') repeat;
  color: var(--white);
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--secondary-light);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-light);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-top: 4px;
}

/* Hero Owens Corning Trust Badge */
.hero-trust-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 0 0 30px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  max-width: 580px;
  text-align: left;
  transition: var(--transition-normal);
}

.hero-trust-badge:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-oc-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-color: var(--white);
  padding: 4px;
  box-shadow: var(--shadow-md);
}

.hero-trust-badge-text {
  display: flex;
  flex-direction: column;
}

.hero-trust-badge-text strong {
  font-family: var(--font-headings);
  font-size: 1rem;
  color: var(--secondary-light);
  margin-bottom: 2px;
}

.hero-trust-badge-text p {
  font-size: 0.85rem;
  color: var(--gray-light);
  margin: 0;
  line-height: 1.35;
}

/* Trust Badges Strip */
.trust-strip {
  background-color: var(--gray-light);
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-border);
}

.trust-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

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

.trust-badge-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  padding: 2px;
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(15, 45, 89, 0.08);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 700;
}

.trust-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 0.8rem;
  color: var(--gray-medium);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

.section-bg-light {
  background-color: var(--gray-light);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid var(--gray-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(15, 45, 89, 0.15);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: rgba(15, 45, 89, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background-color: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.service-link:hover {
  color: var(--secondary);
}

/* ==========================================================================
   STORM ASSESSMENT INTERACTIVE TOOL
   ========================================================================== */
.assessment-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-border);
  position: relative;
  overflow: hidden;
}

.assessment-header {
  margin-bottom: 30px;
  text-align: center;
}

.assessment-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.assessment-header p {
  font-size: 0.9rem;
}

.progress-bar-outer {
  width: 100%;
  height: 8px;
  background-color: var(--gray-light);
  border-radius: var(--radius-full);
  margin-bottom: 32px;
}

.progress-bar-inner {
  height: 100%;
  width: 25%;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.step-card {
  display: none;
}

.step-card.active {
  display: block;
  animation: fadeIn var(--transition-normal);
}

.step-question {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary);
}

.options-list {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.option-btn {
  background-color: var(--white);
  border: 2px solid var(--gray-border);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-slate);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-btn:hover {
  border-color: var(--primary);
  background-color: rgba(15, 45, 89, 0.02);
}

.option-btn.selected {
  border-color: var(--secondary);
  background-color: rgba(217, 119, 6, 0.04);
}

.option-btn span.radio-dot {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-border);
  display: inline-block;
  position: relative;
}

.option-btn.selected span.radio-dot {
  border-color: var(--secondary);
}

.option-btn.selected span.radio-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   SERVICE AREA MATRIX
   ========================================================================== */
.area-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.area-column {
  background-color: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-border);
}

.area-column h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.area-column h3 span.badge-num {
  font-size: 0.8rem;
  background-color: var(--gray-light);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
}

.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.area-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-medium);
}

.area-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

/* ==========================================================================
   TESTIMONIALS (CAROUSEL)
   ========================================================================== */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-slide {
  min-width: 100%;
  padding: 24px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-border);
  text-align: center;
}

.rating-stars {
  color: var(--secondary-light);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--dark-slate);
  margin-bottom: 24px;
}

.testimonial-author {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

.testimonial-location {
  font-size: 0.85rem;
  color: var(--gray-medium);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.carousel-control:hover {
  background-color: var(--secondary);
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--gray-border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--secondary);
  width: 24px;
}

/* ==========================================================================
   FAQS (ACCORDION)
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-header {
  padding: 20px 24px;
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--secondary);
  transition: transform var(--transition-normal);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  background-color: var(--white);
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease-out;
}

.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.faq-item.active .faq-header {
  background-color: rgba(15, 45, 89, 0.02);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-content {
  max-height: 300px; /* arbitrary height to slide down */
  padding: 0 24px 20px;
}

/* ==========================================================================
   CONTACT SECTION & LEAD CAPTURE
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background-color: var(--primary);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.contact-info-card h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info-card p {
  color: var(--gray-light);
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.method-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.method-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-light);
  font-size: 1.15rem;
}

.method-details h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.method-details p {
  font-size: 0.9rem;
  color: var(--gray-light);
  margin: 0;
}

.method-details a:hover {
  color: var(--secondary-light);
}

.guarantees-strip {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.guarantee-item::before {
  content: "🛡️";
}

.lead-form-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-border);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--dark-slate);
  color: var(--white);
  padding: 80px 0 30px;
  border-top: 4px solid var(--secondary);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-about p {
  color: #94a3b8;
  margin-top: 16px;
  font-size: 0.9rem;
}

.footer-links h3, 
.footer-contact h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h3::after, 
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: var(--secondary-light);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--secondary-light);
}

/* ==========================================================================
   PPC AD LANDING PAGE (`landing.html`) SPECIFIC STYLES
   ========================================================================== */
.landing-header {
  border-bottom: 1px solid var(--gray-border);
  padding: 16px 0;
  background-color: var(--white);
}

.landing-header .nav-container {
  padding: 0;
}

.hero-landing {
  padding: 60px 0 80px;
  background: linear-gradient(135deg, rgba(15, 45, 89, 0.88) 0%, rgba(15, 23, 42, 0.85) 100%), 
              url('images/Ohio-roofer1.jpg') center/cover no-repeat;
}

.landing-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.landing-benefits-list {
  list-style: none;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.landing-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit-check {
  width: 28px;
  height: 28px;
  background-color: rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.landing-benefit-text h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.landing-benefit-text p {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.promo-tag {
  background-color: var(--secondary);
  color: var(--white);
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-bottom: 12px;
  animation: pulse 2s infinite;
}

/* Countdown timer */
.countdown-wrapper {
  margin-bottom: 20px;
}
.countdown-label {
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.countdown-display {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

/* Landing H1 class for proper mobile override */
.landing-h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.landing-trust-bar {
  background-color: var(--gray-light);
  padding: 30px 0;
  border-bottom: 1px solid var(--gray-border);
}

.landing-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: center;
}

.landing-oc-badge {
  height: 48px;
  width: auto;
  object-fit: contain;
  background-color: var(--white);
  padding: 4px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.landing-oc-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.landing-trust-logo {
  text-align: center;
}

.landing-trust-logo .stars {
  color: var(--secondary-light);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.landing-trust-logo h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.landing-trust-logo p {
  font-size: 0.75rem;
  color: var(--gray-medium);
  font-weight: 600;
  text-transform: uppercase;
}

/* Testimonials section */
.testimonials-section {
  padding: 60px 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-border);
}

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

.testimonial-card {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-left: 4px solid var(--secondary);
  position: relative;
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--secondary-light);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--gray-medium);
}

/* Steps section style */
.steps-section {
  padding: 80px 0;
  background-color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.step-card-box {
  text-align: center;
  padding: 24px;
}

.step-number-circle {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 4px solid var(--gray-light);
  box-shadow: 0 0 0 4px var(--primary);
}

/* Form success overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  z-index: 10;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 24px;
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-layout, .landing-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-trust-badge {
    margin: 0 auto 30px auto;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .landing-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* simple burger toggle needed on mobile */
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .top-bar-info {
    display: none;
  }
  
  .top-bar .container {
    justify-content: center;
  }
  
  .header-ctas {
    gap: 8px;
  }
  
  .phone-cta {
    display: none; /* hide label/text icon, just show phone button */
  }
  
  #header-cta-btn {
    display: none;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .trust-flex {
    justify-content: center;
    gap: 16px;
  }
  
  .trust-item {
    width: 45%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .area-list {
    grid-template-columns: 1fr;
  }

  /* Fix #7: Keep phone CTA visible on mobile ONLY for landing header */
  .landing-header .phone-cta {
    display: flex;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-trust-badge {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  
  .trust-item {
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  /* Fix #8: Landing H1 mobile font-size override */
  .landing-h1 {
    font-size: 2.1rem;
  }

  .countdown-display {
    font-size: 1.3rem;
  }

  .step-actions {
    flex-direction: column;
  }
  
  .step-actions button {
    width: 100%;
  }
}

/* ==========================================================================
   SEO SUBPAGE, LOCATION, & BLOG CARD LAYOUTS
   ========================================================================== */
.subpage-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 45, 89, 0.97) 0%, rgba(15, 23, 42, 0.95) 100%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="0,100 50,50 100,100" fill="%23ffffff" fill-opacity="0.015"/></svg>') repeat;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  border-bottom: 4px solid var(--secondary);
}

.subpage-hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-light);
  font-weight: 500;
}

.breadcrumbs a {
  color: var(--secondary-light);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: #64748b;
}

.subpage-container {
  padding: 80px 0;
}

.subpage-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.subpage-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-medium);
}

.subpage-content h2 {
  font-size: 1.9rem;
  margin: 36px 0 18px;
  color: var(--primary);
}

.subpage-content h3 {
  font-size: 1.45rem;
  margin: 28px 0 14px;
  color: var(--primary);
}

.subpage-content p {
  margin-bottom: 24px;
}

.subpage-content ul, .subpage-content ol {
  margin-bottom: 28px;
  padding-left: 28px;
}

.subpage-content li {
  margin-bottom: 10px;
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
}

/* Blog layouts */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-border);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(15, 45, 89, 0.15);
}

.blog-card-meta {
  padding: 24px 24px 12px;
  font-size: 0.8rem;
  color: var(--gray-medium);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.blog-card-content {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.3;
}

.blog-card-content p {
  font-size: 0.95rem;
  color: var(--gray-medium);
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-link {
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-link:hover {
  color: var(--secondary-light);
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-top: 8px;
}

.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
  .subpage-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sidebar-sticky {
    position: static;
  }
}

@media (max-width: 480px) {
  .subpage-hero h1 {
    font-size: 2rem;
  }
}



/* ── Layout Override: classic-trust ── */
/* ==========================================================================
   EdgeSEO Layout: Classic Trust
   Body class: .layout-classic-trust
   Vibe: Traditional, established, professional service company
   Fonts: Merriweather (serif headings) + Lato (body)
   ========================================================================== */

/* Classic Trust overrides the base template tokens */
body.layout-classic-trust {
  --font-headings: 'Merriweather', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --primary: #1e3a5f;
  --primary-light: #2563eb;
  --secondary: #b45309;
  --secondary-light: #d97706;
  --accent: #047857;
  --accent-light: #059669;
  --dark-slate: #0f172a;
  --gray-medium: #4b5563;
  --gray-light: #f3f4f6;
  --gray-border: #d1d5db;
  --white: #ffffff;
  background-color: #fafafa;
}

/* Navigation — solid bar, no blur */
body.layout-classic-trust header nav,
body.layout-classic-trust .site-header {
  background: var(--primary) !important;
  border-bottom: 3px solid var(--secondary) !important;
  backdrop-filter: none !important;
}

body.layout-classic-trust header nav a,
body.layout-classic-trust .nav-link {
  color: #ffffff !important;
}

body.layout-classic-trust header nav a:hover {
  color: var(--secondary-light) !important;
}

/* Hero — full-width background image feel */
body.layout-classic-trust .hero,
body.layout-classic-trust .hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #2d5fa0 100%);
  border-bottom: 4px solid var(--secondary);
}

/* Buttons — solid, rounded corners */
body.layout-classic-trust .btn,
body.layout-classic-trust button[type="submit"] {
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

body.layout-classic-trust .btn-accent,
body.layout-classic-trust .btn-primary {
  background: var(--secondary);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35);
}

body.layout-classic-trust .btn-accent:hover,
body.layout-classic-trust .btn-primary:hover {
  background: var(--secondary-light);
}

/* Cards — bordered, no glassmorphism */
body.layout-classic-trust .glass-card,
body.layout-classic-trust .card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}

/* Section dividers */
body.layout-classic-trust section { border-bottom: 1px solid var(--gray-border); }

/* Headings */
body.layout-classic-trust h1,
body.layout-classic-trust h2,
body.layout-classic-trust h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
}

/* Footer — navy */
body.layout-classic-trust footer {
  background: var(--primary);
  color: #cbd5e1;
  border-top: 3px solid var(--secondary);
}
