/* ============================================
   On The Edge Roofing - Custom Styles
   ============================================ */

:root {
  --brand: #FF0101;
  --accent: #EE3224;
  --muted: #F7F7F8;
  --beige: #D9CFC1;
  --dark: #1e293b;  /* slate-900 */
}

/* Red scrollbar - global */
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }
::-webkit-scrollbar-track { background: #eee; }
* { scrollbar-color: var(--brand) #eee; scrollbar-width: thin; }

/* Section headings - override Tailwind */
main h2,
section h2,
article h2,
div h2 {
  font-size: 1.875rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.2 !important;
  color: #1e293b !important;
}

@media (min-width: 768px) {
  main h2,
  section h2,
  article h2,
  div h2 {
    font-size: 2.25rem !important;
  }
}

/* ============================================
   HERO SECTIONS - Consistent across all pages
   ============================================ */

/* Standard hero (location pages, service pages, blog) - NOW BEIGE */
.hero-dark {
  background: var(--beige);
  color: var(--dark);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-dark h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

.hero-dark p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4b5563;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Beige hero alternative */
.hero-beige {
  background: var(--beige);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-beige h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

.hero-beige p {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Dark slate hero (if needed for specific pages) */
.hero-slate {
  background: var(--dark);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-slate h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}

.hero-slate p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Dark blue section backgrounds */
.section-slate {
  background: var(--dark);
  color: white;
  padding: 5rem 1.5rem;
}

.section-slate h2,
.section-slate h3 {
  color: white;
}

.section-slate p,
.section-slate li {
  color: #e2e8f0;
}

/* Dark blue CTA sections */
.cta-section-slate {
  background: var(--dark);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-section-slate h2,
.cta-section-slate h3 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.cta-section-slate p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #e2e8f0;
}


/* ============================================
   BUTTONS - Consistent styling
   ============================================ */

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--brand);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border: 2px solid var(--dark);
  border-radius: 9999px;
  transition: all 0.2s;
}

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

.btn-secondary-light {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border: 2px solid white;
  border-radius: 9999px;
  transition: all 0.2s;
}

.btn-secondary-light:hover {
  background: white;
  color: var(--dark);
}


/* ============================================
   SERVICE CARDS - Consistent grid items
   ============================================ */

.service-card {
  position: relative;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: all 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  border-color: #d1d5db;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: #4b5563;
  line-height: 1.6;
}

/* Alternative: Dark blue hover (strength, trust) */
.service-card-blue {
  position: relative;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: all 0.2s;
  overflow: hidden;
}

.service-card-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark);
  opacity: 0;
  z-index: 0;
  border-radius: 1rem;
  transition: opacity 0.3s;
}

.service-card-blue:hover::before {
  opacity: 0.03;
}

.service-card-blue:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.service-card-blue h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-card-blue p {
  color: #4b5563;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Alternative: Red accent border hover (bold, strong) */
.service-card-red-border {
  position: relative;
  background: white;
  border-radius: 1rem;
  border: 2px solid #e5e7eb;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: all 0.2s;
}

.service-card-red-border:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  border-color: var(--brand);
}

.service-card-red-border h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.service-card-red-border:hover h3 {
  color: var(--brand);
}

.service-card-red-border p {
  color: #4b5563;
  line-height: 1.6;
}


/* ============================================
   TRUST BADGE SECTION - For all pages
   ============================================ */

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 1.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand);
  flex-shrink: 0;
}


/* ============================================
   CTA SECTIONS - Big red callouts
   ============================================ */

.cta-section-red {
  background: var(--brand);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-section-red h2,
.cta-section-red h3 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section-red p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-section-beige {
  background: var(--beige);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-section-beige h2,
.cta-section-beige h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
}


/* ============================================
   LOCATION/AREA CARDS - For service areas
   ============================================ */

.area-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  text-align: center;
  transition: all 0.2s;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.area-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.area-card:hover h3 {
  color: var(--brand);
}

.area-card p {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Area card without pink hover effect */
.area-card-no-tint {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: all 0.2s;
  position: relative;
  display: block;
}

.area-card-no-tint:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.area-card-no-tint h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.area-card-no-tint:hover h3 {
  color: var(--brand);
}

.area-card-no-tint p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.area-card-no-tint span {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.875rem;
}


/* ============================================
   BLOG CARDS
   ============================================ */

.blog-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: all 0.2s;
  display: block;
}

.blog-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  transform: translateY(-2px);
}

.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.blog-card:hover h3 {
  color: var(--brand);
}

.blog-card p {
  font-size: 0.875rem;
  color: #4b5563;
}


/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
  .hero-dark,
  .hero-beige {
    padding: 3rem 1.5rem;
  }
  
  .cta-section-red,
  .cta-section-beige {
    padding: 3rem 1.5rem;
  }
}


/* ============================================
   SCROLL TO TOP BUTTON (Global)
   ============================================ */

#toTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 2px solid var(--brand);
  color: var(--brand);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 50;
}

#toTop:hover {
  background: var(--brand);
  color: white;
}
