/* =====================================================
   CineLodi TV — global stylesheet
   Hand-written, no framework. Spec: references/design.md
   ===================================================== */

:root {
  --bg: #ffffff;
  --surface: #f8f8f8;
  --ink: #1a1a1a;
  --ink-muted: #666666;
  --accent: #ff6b35;        /* Brand orange — decorative use only (borders, focus, logo dot) */
  --accent-deep: #c44a1c;   /* WCAG AA on white (4.84:1) — for text + filled buttons */
  --accent-hover: #a13d15;  /* Hover state for --accent-deep (6.58:1) */
  --border: #e0e0e0;
  --success: #16a34a;

  --max-content: 1200px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.04);

  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.375rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease-out;
}

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

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--ink-muted);
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.25rem;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease-out;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--ink);
}

.site-logo .dot {
  color: var(--accent);
}

.site-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent-deep);
}

.site-nav .cta {
  background: var(--accent-deep);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.site-nav .cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease-out, border-color 150ms ease-out,
    color 150ms ease-out;
  line-height: 1;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .btn-group {
    flex-direction: row;
  }
}

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

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
    text-align: left;
  }
}

.hero h1 {
  max-width: 18ch;
  margin: 0 auto 1rem;
}

@media (min-width: 768px) {
  .hero h1 {
    margin-left: 0;
  }
}

.hero .lead {
  max-width: 50ch;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .hero .lead {
    margin-left: 0;
  }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

@media (min-width: 768px) {
  .trust-row {
    justify-content: flex-start;
  }
}

.trust-row strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 150ms ease-out;
}

.pricing-card:hover {
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  border-top: 3px solid var(--accent);
  position: relative;
}

.pricing-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  right: 1rem;
  background: var(--accent-deep);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
}

.pricing-card .tier-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.25rem 0;
  line-height: 1;
}

.pricing-card .price .currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: 0.25rem;
  vertical-align: super;
  position: relative;
  top: 0.25em;
}

.pricing-card .per {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.pricing-card .eur-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  flex: 1;
}

.pricing-card li {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.9375rem;
}

.pricing-card li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.25rem;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / contain no-repeat;
}

/* ---------- Card grid (about, content) ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-block {
  text-align: center;
}

.stat-block .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.stat-block .stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform 150ms ease-out;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212";
  color: var(--accent-deep);
}

.faq .answer {
  padding-bottom: 1.25rem;
  color: var(--ink-muted);
  max-width: 70ch;
}

.faq .answer p {
  margin: 0 0 0.75em;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact / forms ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.field {
  display: block;
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease-out;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-channel + .contact-channel {
  margin-top: 1rem;
}

.contact-channel .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.contact-channel .value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.contact-channel .value:hover {
  color: var(--accent-deep);
}

/* ---------- Story / quote block ---------- */

.quote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote p {
  margin: 0;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--ink-muted);
}

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

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  padding: 0.25rem 0;
}

.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.lang-switcher {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switcher a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8125rem;
}

.lang-switcher a.active {
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
}

.lang-switcher a:hover {
  color: var(--accent-deep);
}

/* ---------- About-page specifics ---------- */

.byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.byline .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
  overflow: hidden;
}

.byline img.avatar {
  display: block;
  background: transparent;
  object-fit: cover;
}

.byline .name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9375rem;
}

.byline .role {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.prose {
  max-width: 70ch;
}

.prose p {
  margin: 0 0 1.25em;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h3 {
  margin-top: 2rem;
}

/* ---------- Skip link (a11y) ---------- */

.skip-link {
  position: absolute;
  left: 0;
  top: -100%;
  z-index: 100;
  background: var(--accent-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumb {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-deep);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

/* ---------- Table of contents ---------- */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.toc ul {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin: 0.25rem 0;
}

/* ---------- Feature image (hero under H1) ---------- */

.feature-image {
  margin: 1.5rem 0 2rem;
  max-width: 800px;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- Back to top ---------- */

.back-to-top {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.back-to-top:hover {
  color: var(--accent-deep);
}

/* ---------- Utilities ---------- */

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
