/* ==========================================================================
   BASE RESET & LAYOUT SYSTEM — Garage Door Repairs Plumpton
   style.css
   ========================================================================== */

/* Modern CSS Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

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

/* Selection Color
   ========================================================================== */
::selection {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
}

/* Base Typographic Rules
   ========================================================================== */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 6vw + 1rem, 3.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw + 0.5rem, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw + 0.4rem, 1.85rem);
  font-weight: 700;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* Links & Text Utilities
   ========================================================================== */
a {
  color: var(--color-accent-dark);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

.text-center { text-align: center; }

/* Grid System
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-xl); }
}

.section-padding {
  padding: var(--space-2xl) 0;
}

@media (min-width: 1024px) {
  .section-padding { padding: var(--space-3xl) 0; }
}

.bg-alt {
  background-color: var(--color-bg);
}

/* Section Header
   ========================================================================== */
.section-title {
  text-align: center;
  margin-bottom: var(--space-xs);
}

.section-title span {
  color: var(--color-accent);
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl) auto;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* Premium Button System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 1.85rem;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(197, 160, 89, 0.35);
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-emergency {
  background: var(--color-emergency);
  color: var(--color-bg-white);
  border-color: var(--color-emergency);
  animation: emergencyPulse 2s infinite;
}

.btn-emergency:hover {
  background: #be123c;
  border-color: #be123c;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

@keyframes emergencyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

/* Grids
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Scroll Reveal — Disabled for reliability and SEO crawling */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 1;
  transform: none;
}
