/* A1A Appliance Repair — plain-CSS translation of the Lovable (Tailwind) design.
   Tokens converted from src/styles.css (light theme). Fonts: Barlow Condensed
   (display) + DM Sans (body). */
:root {
  --background: #fcfdfe;
  --foreground: #222b3c;
  --card: #ffffff;
  --primary: #1d4ed8;
  --primary-foreground: #f8fafc;
  --secondary: #eef1f6;
  --muted: #f0f2f6;
  --muted-foreground: #5c6675;
  --accent: #e8ecf3;
  --border: #dfe3ea;
  --surface: #f3f5f8;
  --ink-inverse: #fcfdfe;
  --ink-inverse-muted: #d2d9e4;
  --navy-band: #111827;
  --whatsapp: #22a35c;
  --radius: 0.5rem;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-display); }
img { max-width: 100%; }
a { color: inherit; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.ic-sm { width: 16px; height: 16px; }

.container { max-width: 72rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.page-wrap main { flex: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; object-fit: contain; display: block; }
.main-nav { display: none; }
@media (min-width: 768px) {
  .main-nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.875rem; font-weight: 500; }
  .main-nav a { color: rgba(34, 43, 60, 0.8); text-decoration: none; transition: color 0.15s; }
  .main-nav a:hover, .main-nav a.active { color: var(--primary); }
  .main-nav a.active { font-weight: 600; }
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--foreground); cursor: pointer; background: #fff;
}
@media (min-width: 768px) { .menu-btn, .mobile-nav { display: none !important; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; padding: 0.75rem 1rem; }
.nav-toggle:checked ~ .mobile-nav { display: block; }
.mobile-nav a {
  display: block; padding: 0.5rem; border-radius: 0.375rem;
  font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--foreground);
}
.mobile-nav a:hover { background: var(--secondary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius); background: var(--primary); color: var(--primary-foreground);
  padding: 0.875rem 1.75rem; font-size: 1rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-sans);
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-sm { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
.btn-phone { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
.btn-outline-light {
  border-color: rgba(252, 253, 254, 0.4); background: rgba(17, 24, 39, 0.6);
  color: var(--ink-inverse); padding: 0.875rem 1.5rem;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: rgba(17, 24, 39, 0.8); opacity: 1; }
.btn-whatsapp { background: var(--whatsapp); padding: 0.75rem 1.25rem; font-size: 0.875rem; }
.btn-block { width: 100%; margin-top: 1.5rem; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 72vh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 18, 32, 0.62) 0%, rgba(13, 18, 32, 0.74) 100%); }
.hero-content { position: relative; text-align: center; padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .hero-content { padding-top: 8rem; padding-bottom: 8rem; } }
.eyebrow { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-inverse-muted); margin: 0; }
.eyebrow-primary { color: var(--primary); letter-spacing: 0.18em; }
.hero h1 {
  max-width: 56rem; margin: 0.75rem auto 0;
  font-size: 3rem; font-weight: 800; text-transform: uppercase;
  line-height: 0.98; letter-spacing: -0.02em; color: var(--ink-inverse);
}
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } }
.hero .lede { max-width: 42rem; margin: 1.25rem auto 0; font-size: 1.125rem; color: var(--ink-inverse-muted); }
@media (min-width: 640px) { .hero .lede { font-size: 1.25rem; } }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-band { background: var(--surface); }
.grid-2 { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.photo { width: 100%; height: 20rem; object-fit: cover; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); display: block; }
@media (min-width: 768px) { .photo { height: 24rem; } }
.photo-services { height: 16rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .photo-services { height: 18rem; } }
.photo-contact { height: 15rem; margin-top: 1.5rem; }
.section-title { font-size: 2.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
@media (min-width: 640px) { .section-title { font-size: 3rem; } }
.lead { margin: 1rem 0 0; font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); }
.text-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.block-link { display: inline-flex; margin-top: 1.5rem; }

/* services */
.services-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .services-grid { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.services-cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .services-cards { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; margin: 0; }
.card p { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* why choose us */
.why-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.why-list li { display: flex; gap: 0.875rem; }
.why-list li + li { margin-top: 1.25rem; }
.check-ic { margin-top: 0.125rem; color: var(--primary); }
.why-list h3 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; margin: 0; }
.why-list p { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* get in touch */
.contact-rows { margin-top: 1.5rem; }
.contact-rows a { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; font-weight: 500; color: var(--foreground); text-decoration: none; }
.contact-rows a + a { margin-top: 0.625rem; }
.contact-rows a:hover { color: var(--primary); }
.contact-rows .ic-sm { color: var(--primary); }
.cta-buttons { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- page band (about/blog/contact headers) ---------- */
.page-band { background: var(--surface); padding: 3.5rem 0; }
@media (min-width: 768px) { .page-band { padding: 5rem 0; } }
.page-band h1 { margin: 0.5rem 0 0; font-size: 3rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
@media (min-width: 640px) { .page-band h1 { font-size: 3.75rem; } }
.band-lede { margin: 1rem 0 0; max-width: 48rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }
.band-lede-narrow { max-width: 42rem; font-size: 1rem; }

/* about */
.about-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.prose p { font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.benefits { margin-top: 3.5rem; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 640px) { .benefits { padding: 2rem; } }
.benefits h2 { font-size: 1.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; margin: 0; }
@media (min-width: 640px) { .benefits h2 { font-size: 2.25rem; } }
.benefits ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.875rem; }
@media (min-width: 640px) { .benefits ul { grid-template-columns: 1fr 1fr; } }
.benefits li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }

/* blog */
.blog-list { max-width: 56rem; }
.post { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1.5rem; }
.post + .post { margin-top: 1.25rem; }
.post time { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.post h2 { margin: 0.375rem 0 0; font-size: 1.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
.post .excerpt { margin: 0.625rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.post-body { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.post-body ul { list-style: disc; padding-left: 1.25rem; margin: 0; }
.post-body li { font-size: 0.875rem; line-height: 1.6; }
.post-body li + li { margin-top: 0.5rem; }
.post-links { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; }
.post-links .call-link { color: var(--muted-foreground); text-decoration: none; }
.post-links .call-link:hover { color: var(--foreground); }

/* contact */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.contact-side > * + * { margin-top: 1.5rem; }
.contact-card { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h2 { font-size: 1.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; margin: 0; }
.contact-card ul { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.contact-card li + li { margin-top: 0.875rem; }
.contact-card li a { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--foreground); text-decoration: none; }
.contact-card li a:hover { color: var(--primary); }
.contact-card li a .ic-sm { color: var(--primary); }
.muted-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.muted-row .ic-sm { color: var(--primary); }
.form-card { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 640px) { .form-card { padding: 2rem; } }
.form-card h2 { font-size: 1.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.form-wrap { min-height: 640px; }
.form-wrap iframe { display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-band); color: var(--ink-inverse); }
.footer-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.footer-muted { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--ink-inverse-muted); }
.footer-col h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.footer-col ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.footer-col li { font-size: 0.875rem; color: var(--ink-inverse-muted); }
.footer-col li + li { margin-top: 0.375rem; }
.footer-col a { color: var(--ink-inverse-muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink-inverse); }
.footer-bottom { border-top: 1px solid rgba(252, 253, 254, 0.15); padding: 1rem; text-align: center; font-size: 0.75rem; color: var(--ink-inverse-muted); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.notfound h1 { font-size: 4.5rem; font-weight: 700; margin: 0; }
.notfound h2 { font-size: 1.25rem; font-weight: 600; margin: 1rem 0 0; font-family: var(--font-sans); }
.notfound p { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); }
.notfound-btn { margin-top: 1.5rem; }
