/* ==========================================================================
   TURN KEY APPLIANCE - MAIN DESIGN SYSTEM (style.css)
   US Local Service Business Aesthetic (Navy / Blue / White)
   Serving Hillsboro, Beaverton & Washington County, Oregon
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --navy-950: #07101e;
  --navy-900: #0b1a30;
  --navy-800: #0f2342;
  --navy-700: #17335d;
  --navy-600: #1f457c;

  --blue-600: #1d68e8;
  --blue-700: #1551ba;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-50: #ecfdf5;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  /* Layout */
  --max-width: 1320px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--slate-700);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-700);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 576px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Section Spacing */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 54px 0;
  }
  .section-sm {
    padding: 36px 0;
  }
  .section-lg {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 42px 0;
  }
}

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

.bg-navy {
  background-color: var(--navy-900);
  color: var(--white);
}

.bg-navy-dark {
  background-color: var(--navy-950);
  color: var(--white);
}

.bg-blue-light {
  background-color: var(--blue-50);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4,
.bg-navy-dark h1, .bg-navy-dark h2, .bg-navy-dark h3 {
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid rgba(29, 104, 232, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-tag.light {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--blue-100);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--slate-500);
  max-width: 680px;
  margin-bottom: 40px;
}

.bg-navy .section-desc {
  color: var(--slate-300);
}

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

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Badges & Trust Labels */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FEF3C7;
  color: #92400E;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--emerald-50);
  color: var(--emerald-600);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(29, 104, 232, 0.35);
}

.btn-primary:hover {
  background-color: var(--blue-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 104, 232, 0.45);
}

.btn-emergency {
  background-color: #DC2626;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-emergency:hover {
  background-color: #B91C1C;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.btn-secondary {
  background-color: var(--slate-100);
  color: var(--slate-800);
}

.btn-secondary:hover {
  background-color: var(--slate-200);
  color: var(--slate-900);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.12rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Trust Metric Bar */
.trust-metric-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  align-items: center;
  padding: 20px 0;
}

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

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(29, 104, 232, 0.12);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
}

.bg-navy .metric-val {
  color: var(--white);
}

.metric-lbl {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.bg-navy .metric-lbl {
  color: var(--slate-400);
}

/* Rating Stars */
.star-rating {
  display: inline-flex;
  gap: 3px;
  color: var(--amber-500);
}

.star-rating svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
