/* =====================================================
   Mounting TV Repair — Main Stylesheet
   Organized: Reset > Variables > Base > Layout > Components > Utilities > Responsive
   ===================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ---------- Variables ---------- */
:root {
  --navy-900: #0a1628;
  --navy-800: #0e1d36;
  --navy-700: #132a4a;
  --blue-700: #1652a3;
  --blue-600: #1d6fd8;
  --blue-500: #2f86f5;
  --accent: #f5871f;
  --accent-dark: #d9700f;
  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f7;
  --gray-200: #dde4ed;
  --gray-300: #c3cddb;
  --gray-600: #5b6778;
  --gray-700: #3c4657;
  --gray-900: #1a212c;
  --success: #1f9d55;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 16px 40px rgba(10, 22, 40, 0.16);
  --max-width: 1200px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-900);
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.25rem); }
h3 { font-size: 1.25rem; }
p { color: var(--gray-700); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark p { color: var(--gray-300); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.eyebrow {
  display: inline-block;
  color: var(--blue-600);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-dark .eyebrow { color: var(--accent); }
.section-header p { margin-top: 12px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-700);
  color: var(--white);
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.65);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border: 2px solid var(--blue-700);
}
.btn-outline:hover { background: var(--blue-700); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-call { background: var(--blue-700); color: var(--white); }
.btn-call:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1fb457; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.header-top {
  background: var(--navy-900);
  color: var(--gray-300);
  font-size: 0.85rem;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.header-top a { color: var(--gray-300); }
.header-top a:hover { color: var(--white); }
.header-top-links { display: flex; gap: 18px; flex-wrap: wrap; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-900);
}
.logo svg { flex-shrink: 0; }
.logo-text-main { display: block; line-height: 1.1; }
.logo-text-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-weight: 600;
  color: var(--gray-700);
  padding: 6px 2px;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue-700); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-700) 100%);
  color: var(--white);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-content h1 { color: var(--white); margin-bottom: 18px; }
.hero-content .highlight { color: var(--accent); }
.hero-content p { color: var(--gray-300); font-size: 1.1rem; margin-bottom: 30px; max-width: 540px; }
.hero-badges { display: flex; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 8px; color: var(--gray-300); font-size: 0.9rem; font-weight: 600; }
.hero-badge svg { color: var(--accent); flex-shrink: 0; }

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-800);
}
.hero-media img, .hero-media svg { width: 100%; height: 100%; display: block; }

/* ---------- Cards / Grids ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--blue-700);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { margin-bottom: 2px; }
.card ul { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.card ul li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.94rem; color: var(--gray-700); }
.card ul li svg { flex-shrink: 0; margin-top: 3px; color: var(--success); }
.card-link { margin-top: auto; font-weight: 700; color: var(--blue-700); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { color: var(--accent); }

.service-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--gray-100);
  margin-bottom: 4px;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: inherit;
}

/* ---------- Why Choose Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.why-item { text-align: center; padding: 20px; }
.why-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(245,135,31,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.section-dark .why-icon { background: rgba(245,135,31,0.18); }

/* ---------- Process Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  counter-reset: step;
  position: relative;
}
.step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
}
.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.stars { color: var(--accent); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-quote { font-style: italic; color: var(--gray-700); margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.author-name { font-weight: 700; color: var(--navy-900); }
.author-role { font-size: 0.85rem; color: var(--gray-600); }
.testimonial-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  text-align: left;
  font-weight: 700;
  color: var(--navy-900);
}
.faq-question .plus {
  font-size: 1.4rem;
  color: var(--blue-700);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}
.faq-answer p { padding-bottom: 20px; }
.faq-item[data-open="true"] .faq-answer { max-height: 400px; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--blue-700), var(--navy-900));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: var(--gray-200); max-width: 620px; margin: 14px auto 30px; }
.cta-section .btn-group { justify-content: center; }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info-item .icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(245,135,31,0.16);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a { color: var(--gray-300); font-size: 0.95rem; }
.contact-info-item a:hover { color: var(--accent); }
.contact-social { display: flex; gap: 12px; margin-top: 24px; }
.contact-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.contact-social a:hover { background: var(--accent); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--navy-900); margin-bottom: 6px; }
.form-group .required { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--gray-900);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-600);
  background: var(--white);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--gray-600); margin-top: 10px; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.success { color: var(--success); }
.form-status.error { color: #d9362f; }

.map-placeholder {
  margin-top: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  aspect-ratio: 16/7;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  text-align: center;
  padding: 20px;
}

/* ---------- Page Header (interior pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.breadcrumb { color: var(--gray-300); font-size: 0.9rem; }
.breadcrumb a { color: var(--gray-300); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Legal Pages ---------- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 36px; margin-bottom: 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 22px; list-style: disc; }
.legal-content ul li { margin-bottom: 8px; color: var(--gray-700); }
.legal-updated { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 30px; }
.legal-note {
  background: var(--gray-50);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--gray-300); }
.footer-top { padding: 60px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.footer-about p { color: var(--gray-300); font-size: 0.94rem; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.footer-social a:hover { background: var(--accent); }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--gray-300); font-size: 0.94rem; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.payment-methods { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.payment-methods-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.payment-methods h5 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 6px; }
.payment-icons { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.payment-icons svg { border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal-links a { color: var(--gray-600); }
.footer-legal-links a:hover { color: var(--accent); }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--navy-900);
  color: var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  z-index: 1500;
  display: none;
  gap: 16px;
  flex-direction: column;
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { color: var(--gray-200); font-size: 0.92rem; }
.cookie-banner a { color: var(--accent); font-weight: 700; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 22px; font-size: 0.88rem; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--accent); }

/* ---------- 404 Page ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.error-page .error-code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--blue-700);
  line-height: 1;
}
.error-page p { max-width: 480px; margin: 16px auto 30px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header-top { display: none; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 85%);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px 30px;
    gap: 30px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: 22px; }
  .nav-cta { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10,22,40,0.5);
    z-index: 999;
  }
  .nav-overlay.visible { display: block; }
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .payment-methods-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .hero { padding: 60px 0; }
  .btn-group { flex-direction: column; align-items: stretch; }
}
