/* ThePrinterSolution.mcs — one-page business site */
:root {
  --bg: #f3f8fd;
  --surface: #ffffff;
  --ink: #0e2a47;
  --muted: #47617d;
  --line: #d9e6f4;
  --accent: #1c64d8;
  --accent-dark: #144ea8;
  --accent-soft: #e3eefa;
  --whatsapp: #128c4b;
  --whatsapp-dark: #0d6e3a;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(14, 42, 71, 0.07);
  --shadow-lg: 0 12px 36px rgba(14, 42, 71, 0.12);
  --max: 1200px;
}

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

html {
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand-logo { height: 44px; width: auto; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem 1.5rem;
}
.primary-nav.open { display: block; }

.primary-nav ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.primary-nav ul a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}
.primary-nav ul a:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }

.btn-outline { background: var(--surface); color: var(--accent-dark); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

.btn-nav { width: 100%; }

/* Hero */
.hero { padding: 3rem 0 3.5rem; }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow, .section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-text { font-size: 1.0625rem; color: var(--muted); max-width: 34rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.trust-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.trust-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}
.trust-facts svg { color: var(--accent); flex-shrink: 0; }

.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 46rem; font-size: 1.0625rem; }

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.9375rem; }

.card-icon {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 10px;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.equipment-heading { margin-top: 3rem; }

.pill-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.pill-list li {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption {
  padding: 0.875rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* FAQ */
.faq-list { margin-top: 2rem; display: grid; gap: 0.75rem; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.faq-list summary {
  cursor: pointer;
  padding: 1.125rem 1.25rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-list details p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

.contact-card h3 { margin-bottom: 0.125rem; }
.contact-role { color: var(--muted); margin-bottom: 0.75rem; }

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.open-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa8b8;
}
.open-badge.is-open .open-dot { background: #18a058; }
.open-badge.is-closed .open-dot { background: #d64545; }

.contact-card address { font-style: normal; }
.contact-card address p {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.contact-card address svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-card address a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-card address a:hover { color: var(--accent); text-decoration: underline; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.25rem; }

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9d8e8;
  padding: 3rem 0 6.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-logo { height: 48px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
.footer-tagline { margin: 0.75rem 0 0; font-size: 0.9375rem; }
.footer-heading {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.footer-links a, .footer-contact a {
  color: #c9d8e8;
  text-decoration: none;
}
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact { font-style: normal; }
.footer-contact p { margin-bottom: 0.5rem; font-size: 0.9375rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
.footer-credit a { color: #7fb3f2; font-weight: 600; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* Mobile action bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(14, 42, 71, 0.12);
}
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.625rem 0.25rem calc(0.625rem + env(safe-area-inset-bottom));
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}
.mobile-bar a:active { background: var(--accent-soft); }

/* Tablet */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
}

/* Desktop */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .primary-nav ul { flex-direction: row; gap: 0.25rem; margin: 0; }
  .primary-nav ul a { padding: 0.5rem 0.875rem; }
  .btn-nav { width: auto; min-height: 44px; padding: 0.5rem 1.25rem; }

  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  h1 { font-size: 3rem; }
  .section { padding: 5rem 0; }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; }
  .site-footer { padding-bottom: 3rem; }
  .mobile-bar { display: none; }
}

@media (min-width: 768px) and (max-width: 959px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile bottom padding so the fixed bar never covers content */
@media (max-width: 959px) {
  body { padding-bottom: 60px; }
  .site-footer { padding-bottom: 4rem; }
}

/* Motion & scroll preferences */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
