/* CardioThoraxia — light mode site styles
   Place at: /assets/css/styles.css
*/

:root {
  --bg: #ffffff;
  --bg-muted: #f6f7fb;
  --text: #0b0f19;
  --text-muted: #4b5563;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --radius-lg: 24px;
  --max: 1120px;

  --brand: #2f66ff;      /* primary */
  --brand-2: #6b5cff;    /* secondary accent */
  --brand-ink: #0b2a7a;  /* deeper for hover */
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  z-index: 999;
}
.skip-link:focus { left: 12px; }

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47,102,255,0.12), rgba(107,92,255,0.12));
  border: 1px solid rgba(47,102,255,0.22);
  color: var(--brand-ink);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

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

.nav-link {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
}
.nav-link:hover { opacity: 1; text-decoration: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47,102,255,0.25);
  background: rgba(47,102,255,0.08);
  font-weight: 700;
}
.nav-cta:hover { text-decoration: none; background: rgba(47,102,255,0.12); }

/* Hero */
.hero {
  padding: 48px 0 28px;
  background:
    radial-gradient(900px 500px at 30% 10%, rgba(47,102,255,0.10), transparent 60%),
    radial-gradient(800px 420px at 90% 20%, rgba(107,92,255,0.10), transparent 60%),
    linear-gradient(#fff, #fff);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.0rem, 3.2vw, 3.0rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lead {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }

.button.primary {
  border-color: rgba(47,102,255,0.28);
  background: linear-gradient(135deg, rgba(47,102,255,0.14), rgba(107,92,255,0.14));
  color: var(--brand-ink);
}

.button.secondary {
  background: #fff;
  color: var(--text);
}

.hero-bullets {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}
.hero-bullets li { margin: 8px 0; }

.fineprint {
  margin: 14px 0 0;
  color: rgba(75,85,99,0.92);
  font-size: 0.92rem;
  max-width: 70ch;
}

/* Posters */
.hero-media { position: relative; }
.poster-stack {
  position: relative;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.55));
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: var(--shadow);
}

.poster {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 14px 36px rgba(15,23,42,0.10);
}

.poster-2, .poster-3 {
  position: absolute;
  width: 60%;
  right: -10px;
  bottom: -12px;
  transform: rotate(2.5deg);
  opacity: 0.0;
  pointer-events: none;
}

/* Only show stacked effect on larger screens */
@media (min-width: 980px) {
  .poster-2 { opacity: 1; }
  .poster-3 {
    opacity: 1;
    width: 52%;
    right: 22px;
    bottom: 18px;
    transform: rotate(-2deg);
  }
}

/* Sections */
.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--bg-muted);
  border-top: 1px solid rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 22px;
  color: var(--text-muted);
  max-width: 72ch;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}
.card li { margin: 7px 0; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.shot {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.shot img {
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
}

.shot figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Callout */
.callout {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47,102,255,0.10), rgba(107,92,255,0.08));
  border: 1px solid rgba(47,102,255,0.18);
}

.callout h3 { margin: 0 0 6px; }
.callout p { margin: 0; color: var(--text-muted); }

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

details {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: var(--shadow-soft);
}

summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }

details p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

/* CTA */
.section.cta {
  padding: 44px 0;
  background:
    radial-gradient(900px 450px at 20% 10%, rgba(47,102,255,0.10), transparent 60%),
    radial-gradient(700px 420px at 80% 30%, rgba(107,92,255,0.10), transparent 60%),
    #fff;
  border-top: 1px solid rgba(15,23,42,0.06);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15,23,42,0.08);
  padding: 22px 0;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 14px;
}
.footer-links a {
  color: var(--text);
  font-weight: 700;
  opacity: 0.9;
}
.footer-links a:hover { opacity: 1; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .brand { min-width: auto; }
  .nav { gap: 10px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .poster-stack { padding: 10px; }
}

@media (max-width: 720px) {
  .nav-link { display: none; }
  .nav-cta { padding: 10px 12px; }
}
