/* Appliance Repair Template — style.css */
/* Palette: off-white base, deep navy accent, slate grays */

:root {
  --color-bg: #f8f7f5;
  --color-surface: #ffffff;
  --color-navy: #1a2744;
  --color-navy-dark: #0f1a30;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-text: #1c1c1e;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-trust-bg: #f0f4ff;
  --color-callout-bg: #1a2744;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── STICKY HEADER ─── */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--color-navy);
  color: #fff;
  transform: translateY(-100%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.sticky-header.visible { transform: translateY(0); }
.sticky-biz-name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
  transition: background .2s;
}
.sticky-phone-btn:hover { background: var(--color-accent-hover); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--color-navy-dark);
  background-image: url('assets/hero-tech.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,26,48,.88) 0%, rgba(15,26,48,.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 48px 24px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
}
.hero-content.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--color-trust-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-navy);
  opacity: 0;
  transform: translateY(8px);
}
.trust-item.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}
.trust-icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ─── SECTIONS COMMON ─── */
section { padding: 72px 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ─── SERVICES GRID ─── */
.services { background: var(--color-surface); }
.services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: .95rem;
  opacity: 0;
  transform: translateY(12px);
  transition: box-shadow .2s, transform .15s;
}
.service-card.animated {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--color-trust-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

/* ─── ABOUT ─── */
.about { background: var(--color-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image-wrap { border-radius: var(--radius-lg); overflow: hidden; }
.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-navy) url('assets/about-workshop.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg);
}
.about-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.about-text h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  line-height: 1.25;
}
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-text .btn { margin-top: 8px; }

/* ─── CALLOUT BANNER ─── */
.callout-banner {
  background: var(--color-callout-bg);
  padding: 36px 0;
}
.callout-text {
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto;
}
.callout-text strong { color: #fff; }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--color-surface); }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  opacity: 0;
  transform: translateX(-16px);
}
.testimonial-card:nth-child(2) { transform: translateX(16px); }
.testimonial-card.animated {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .4s ease, transform .4s ease;
}
.stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 14px; }
.testimonial-card blockquote {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial-card cite {
  font-size: .85rem;
  color: var(--color-text-muted);
  font-style: normal;
  font-weight: 600;
}

/* ─── SERVICE AREA ─── */
.service-area {
  background: var(--color-bg);
  text-align: center;
}
.service-area-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand strong {
  display: block;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand p { font-size: .9rem; }
.footer-contact p { margin-bottom: 8px; font-size: .9rem; }
.footer-contact a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  padding: 20px 24px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image-wrap { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 16px 24px; }
  section { padding: 48px 0; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .sticky-biz-name { display: none; }
  .hero-h1 { font-size: 1.8rem; }
}
