/* Aries Roof - Plain HTML/CSS/JS Styles */

:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 15%, 15%);
  --primary: hsl(350, 70%, 45%);
  --primary-dark: hsl(350, 80%, 30%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(220, 15%, 20%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(220, 15%, 95%);
  --muted-foreground: hsl(220, 10%, 45%);
  --border: hsl(220, 15%, 88%);
  --radius: 0.5rem;
  --shadow: 0 10px 30px -10px hsl(350 70% 45% / 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: min(1400px, 100% - 4rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(0 0% 100% / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo img {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.9375rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--primary);
}

.nav-dropdown-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem 0.25rem;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--muted);
  color: var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--primary-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  max-width: 720px;
  color: var(--primary-foreground);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 560px;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.hero-stat svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--primary-foreground);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 640px;
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

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

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

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  opacity: 0.9;
}

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

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.bg-muted {
  background: var(--muted);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 3rem;
  height: 3rem;
  background: hsl(350 70% 45% / 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.service-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

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

.service-card p {
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-card .learn-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-card .learn-more:hover {
  gap: 0.5rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: hsl(350 70% 45% / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--primary);
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--primary-foreground);
  text-align: center;
  padding: 5rem 2rem;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* Content sections */
.content-section {
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.content-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}

.content-text p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.content-image img {
  border-radius: var(--radius);
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.check-list {
  margin: 1rem 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--muted-foreground);
}

.check-list li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.bullet-list li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted-foreground);
}

.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-card,
.contact-info-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form-card h3,
.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form-card > p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsl(350 70% 45% / 0.2);
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-info-item strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.contact-info-item span,
.contact-info-item a {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.contact-info-item a:hover {
  color: var(--primary);
}

.emergency-card {
  background: hsl(350 70% 45% / 0.08);
  border: 1px solid hsl(350 70% 45% / 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.emergency-card h3 {
  color: var(--primary);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.emergency-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 4rem 0 2rem;
}

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

.footer-brand p {
  opacity: 0.8;
  font-size: 0.9375rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  opacity: 0.8;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-col a:hover {
  opacity: 1;
  color: hsl(350 80% 65%);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  font-size: 0.9375rem;
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: hsl(0 0% 100% / 0.1);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
}

.social-links svg {
  width: 1.125rem;
  height: 1.125rem;
}

.footer-bottom {
  border-top: 1px solid hsl(0 0% 100% / 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: hsl(142 70% 35%);
}

.toast.error {
  background: hsl(0 70% 45%);
}

.toast strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Badge */
.badge {
  display: inline-block;
  background: hsl(350 70% 45% / 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-secondary .section-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.section-secondary .service-card {
  opacity: 0.95;
}

/* Roofing services section */
.roofing-section {
  padding: 5rem 0;
  background:
    linear-gradient(135deg, hsl(220 15% 97%) 0%, hsl(220 15% 94%) 50%, hsl(350 20% 96%) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.roofing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, hsl(350 70% 45% / 0.06) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, hsl(220 15% 20% / 0.04) 0%, transparent 45%);
  pointer-events: none;
}

.roofing-section .container {
  position: relative;
  z-index: 1;
}

.roofing-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 3rem;
  align-items: start;
}

.roofing-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.roofing-intro-lead {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.roofing-trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.roofing-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.roofing-trust-list strong {
  color: var(--foreground);
  font-weight: 700;
}

.roofing-trust-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(350 70% 45% / 0.1);
  border-radius: 50%;
  color: var(--primary);
}

.roofing-trust-icon svg {
  width: 1rem;
  height: 1rem;
}

.roofing-intro-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.roofing-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--secondary);
  transition: var(--transition);
}

.roofing-phone-link svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--primary);
}

.roofing-phone-link:hover {
  color: var(--primary);
}

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

.roofing-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.roofing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.roofing-card:hover {
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: 0 12px 32px -12px hsl(350 70% 45% / 0.2);
  transform: translateY(-3px);
}

.roofing-card:hover::before {
  transform: scaleY(1);
}

.roofing-card-highlight {
  border-color: hsl(350 70% 45% / 0.25);
  background: linear-gradient(145deg, var(--background) 0%, hsl(350 30% 98%) 100%);
}

.roofing-card-top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

.roofing-card-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(350 70% 45% / 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.roofing-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.roofing-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.roofing-card > p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.roofing-card-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.roofing-card-features li {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  background: hsl(220 15% 95%);
  border: 1px solid var(--border);
  padding: 0.3125rem 0.625rem;
  border-radius: 999px;
  white-space: nowrap;
}

.roofing-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  transition: var(--transition);
}

.roofing-card-link span {
  transition: transform 0.25s ease;
}

.roofing-card-link:hover {
  gap: 0.625rem;
}

.roofing-card-link:hover span {
  transform: translateX(2px);
}

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

/* Warning signs section */
.warning-signs-section {
  padding: 5rem 0;
  background: linear-gradient(160deg, hsl(220 15% 12%) 0%, hsl(350 40% 18%) 55%, hsl(220 15% 15%) 100%);
  color: var(--primary-foreground);
  position: relative;
  overflow: hidden;
}

.warning-signs-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, hsl(350 70% 45% / 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, hsl(350 80% 55% / 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.warning-signs-section .container {
  position: relative;
  z-index: 1;
}

.warning-signs-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.warning-signs-badge {
  display: inline-block;
  background: hsl(350 70% 45% / 0.25);
  border: 1px solid hsl(350 70% 55% / 0.45);
  color: hsl(350 85% 78%);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.warning-signs-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.warning-signs-header h2 em {
  font-style: normal;
  color: hsl(350 85% 72%);
}

.warning-signs-header p {
  color: hsl(0 0% 100% / 0.78);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.warning-signs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: hsl(0 0% 100% / 0.08);
  border: 1px solid hsl(0 0% 100% / 0.12);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
}

.warning-signs-prompt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(0 0% 100% / 0.9);
  margin: 0;
}

.warning-signs-prompt svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(350 85% 72%);
  flex-shrink: 0;
}

.warning-signs-counter {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  background: #fff;
  color: var(--foreground);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.warning-signs-count {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
}

.warning-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px -6px hsl(0 0% 0% / 0.35);
  overflow: hidden;
  position: relative;
  font-family: inherit;
  color: inherit;
}

.warning-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px hsl(0 0% 0% / 0.45);
}

.warning-card:focus-visible {
  outline: 2px solid hsl(350 85% 72%);
  outline-offset: 3px;
}

.warning-card[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 16px 36px -8px hsl(350 70% 45% / 0.35);
}

.warning-card-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: var(--transition);
  box-shadow: 0 2px 8px hsl(350 70% 45% / 0.4);
}

.warning-card-check svg {
  width: 1rem;
  height: 1rem;
}

.warning-card[aria-pressed="true"] .warning-card-check {
  opacity: 1;
  transform: scale(1);
}

.warning-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--muted);
}

.warning-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.warning-card:hover .warning-card-thumb img,
.warning-card[aria-pressed="true"] .warning-card-thumb img {
  transform: scale(1.04);
}

.warning-card-body {
  padding: 1.25rem 1.25rem 1.375rem;
  position: relative;
}

.warning-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -2rem auto 0.75rem;
  position: relative;
  z-index: 1;
  background: #fff;
  border: 2px solid hsl(220 15% 92%);
  box-shadow: 0 4px 12px hsl(0 0% 0% / 0.1);
  color: var(--primary);
}

.warning-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.warning-card[aria-pressed="true"] .warning-card-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.warning-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.warning-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin: 0;
}

.warning-signs-summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: hsl(350 70% 45% / 0.15);
  border: 1px solid hsl(350 70% 55% / 0.35);
  border-radius: var(--radius);
  animation: warningFadeIn 0.35s ease;
}

.warning-signs-summary[hidden] {
  display: none;
}

@keyframes warningFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.warning-signs-summary-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-signs-summary-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.warning-signs-summary-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--primary-foreground);
}

.warning-signs-summary-text p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: hsl(0 0% 100% / 0.82);
  margin: 0;
}

.warning-signs-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(0 0% 100% / 0.12);
}

.btn-outline-light {
  background: transparent;
  color: var(--primary-foreground);
  border: 2px solid hsl(0 0% 100% / 0.5);
}

.btn-outline-light:hover {
  background: hsl(0 0% 100% / 0.1);
  border-color: var(--primary-foreground);
  color: var(--primary-foreground);
}

.service-card .bullet-list {
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-grid.reverse {
    direction: ltr;
  }

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

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

  .roofing-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .roofing-intro-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(1400px, 100% - 2rem);
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-link,
  .nav-dropdown-toggle {
    padding: 0.875rem 1rem;
    width: 100%;
    text-align: left;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 500px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .warning-signs-grid {
    grid-template-columns: 1fr;
  }

  .warning-signs-toolbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .warning-signs-prompt {
    justify-content: center;
  }

  .warning-signs-counter {
    justify-content: center;
  }

  .warning-signs-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .warning-signs-actions .btn {
    width: 100%;
  }

  .roofing-grid {
    grid-template-columns: 1fr;
  }

  .roofing-intro-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .roofing-intro-actions .btn {
    width: 100%;
    text-align: center;
  }
}
