/* ==========================================================================
   MOVO by Medica-lab — stylesheet
   ========================================================================== */

:root {
  --navy: #184969;
  --navy-dark: #123a54;
  --red: #C5262C;
  --red-dark: #a51f24;
  --bg: #F5F7F9;
  --card-bg: #FFFFFF;
  --text: #1E2A36;
  --muted: #6B7A88;
  --border: #E3E8ED;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow: 0 2px 8px rgba(24, 73, 105, 0.08);
  --shadow-hover: 0 12px 28px rgba(24, 73, 105, 0.16);
  --font-heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.site-header.nav-open .mobile-nav {
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 88px 24px 96px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 38, 44, 0.35);
}

/* ---------- Section titles ---------- */

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ---------- Catalog ---------- */

.catalog {
  padding: 72px 0 88px;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.search-wrap {
  flex: 1 1 260px;
  max-width: 360px;
}

#searchInput {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
}

#searchInput:focus-visible {
  border-color: var(--navy);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.results-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-image-frame {
  aspect-ratio: 4 / 5;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.product-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0;
}

.product-code {
  display: inline-block;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(197, 38, 44, 0.08);
  border: 1px solid rgba(197, 38, 44, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}

.product-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.btn-download:hover,
.btn-download:focus-visible {
  background: var(--navy-dark);
}

.btn-quickview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-quickview:hover,
.btn-quickview:focus-visible {
  color: var(--red);
  border-color: var(--red);
}

.empty-state,
.load-error {
  text-align: center;
  color: var(--muted);
  padding: 48px 24px;
  font-size: 1rem;
}

.load-error {
  color: var(--red);
}

/* ---------- Category tiles (Shop by Category) ---------- */

.categories-strip {
  background: #fff;
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .category-tiles { grid-template-columns: 1fr; }
}

.category-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-tile:hover,
.category-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}

.category-tile .tile-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.category-tile .tile-count {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- About ---------- */

.about {
  padding: 72px 0;
}

.about-copy {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--text);
  font-size: 1.05rem;
}

.trust-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.trust-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  justify-content: center;
}

.trust-icon {
  color: var(--red);
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
}

.trust-label {
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  margin-top: 10px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-contact li,
.footer-nav li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Mobile nav breakpoint ---------- */

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
