/* Coastal Texas Roofing — Built for the Elements Design System */

:root {
  --color-coastal-navy: #0B192C;
  --color-coastal-dark: #070F1E;
  --color-copper-rust: #C85A17;
  --color-copper-hover: #A7470E;
  --color-sea-glass: #0E7490;
  --color-slate-bg: #F8FAFC;
  --color-charcoal-text: #1E293B;
  --color-emerald-trust: #10B981;
}

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

svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
}

svg.w-6 { width: 1.5rem; height: 1.5rem; }
svg.w-5 { width: 1.25rem; height: 1.25rem; }
svg.w-4 { width: 1rem; height: 1rem; }
svg.w-12 { width: 3rem; height: 3rem; }

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #1E293B;
  background-color: #FFFFFF;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  color: #0B192C;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: #C85A17;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #A7470E;
}

/* Pure CSS Mobile Navigation Drawer */
#mobile-drawer-toggle:checked ~ #mobile-drawer {
  display: block !important;
}

/* Sticky Bottom Call Bar for Mobile Viewports */
.sticky-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #0B192C;
  border-top: 2px solid #C85A17;
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* High Contrast Prose Tables for Accessibility and QA */
.prose table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.overflow-x-auto {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.prose table thead th {
  background-color: #0B192C !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid #1E293B;
}

.prose table tbody td {
  padding: 0.75rem 1rem;
  border: 1px solid #E2E8F0;
  background-color: #FFFFFF;
}

.prose table tbody tr:nth-child(even) td {
  background-color: #F8FAFC;
}

/* Accordion Native Styling */
details summary::-webkit-details-marker {
  display: none;
}
details[open] summary .accordion-icon {
  transform: rotate(180deg);
}

/* Container Utility */
.container-custom {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
