/* ============================================
   Vasari — Evidence-based art streaming for healthcare
   styles.css
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-teal: #1a6b6a;
  --color-teal-dark: #145453;
  --color-teal-light: #e8f4f3;
  --color-white: #faf9f6;
  --color-gold: #c4a35a;
  --color-gold-dark: #a8893e;
  --color-black: #1a1a1a;
  --color-gray: #6b6b6b;
  --color-gray-light: #e5e5e3;
  --color-sage: #8a9a8a;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  --max-width: 1200px;
  --nav-height: 72px;
  --border-radius: 4px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
  scroll-margin-top: var(--nav-height);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-black);
}

.btn-primary:hover {
  background-color: var(--color-gold-dark);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

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

.btn-dark:hover {
  background-color: var(--color-teal-dark);
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--space-md);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

.site-header.scrolled {
  background-color: rgba(26, 26, 26, 0.95);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .btn {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav */
@media (max-width: 899px) {
  .site-header.scrolled {
    background-color: #1a1a1a;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-md)) var(--space-md) var(--space-md);
    background-color: #1a1a1a;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: var(--space-sm);
  }

  .nav-links a {
    font-size: 1rem;
    padding: var(--space-xs) 0;
  }

  .nav-open .nav-links {
    transform: translateX(0);
  }

  .nav-open.site-header {
    background-color: #1a1a1a;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-teal-dark);
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg/1280px-Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg');
  background-size: cover;
  background-position: center;
  padding: var(--nav-height) 0 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 84, 83, 0.75) 0%,
    rgba(26, 26, 26, 0.7) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  padding: var(--space-xl) 0;
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.proof-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-bar span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

/* --- Section Backgrounds --- */
.section-light {
  background-color: var(--color-white);
  color: var(--color-black);
}

.section-teal {
  background-color: var(--color-teal);
  color: #fff;
}

.section-teal h2,
.section-teal h3 {
  color: #fff;
}

.section-teal p {
  color: rgba(255, 255, 255, 0.9);
}

.section-dark {
  background-color: var(--color-black);
  color: #fff;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Problem Section --- */
.problem-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.problem-block h3 {
  color: var(--color-teal);
  font-size: 1.25rem;
}

.problem-block p {
  color: var(--color-gray);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  counter-reset: steps;
}

.step {
  counter-increment: steps;
  padding: var(--space-md);
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step h3 {
  color: #fff;
}

.step p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

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

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

/* --- Donor / Philanthropy --- */
.callout-box {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-teal-light);
  border-left: 4px solid var(--color-teal);
  border-radius: var(--border-radius);
  font-size: 0.9375rem;
}

.callout-box p {
  color: var(--color-teal-dark);
}

/* --- Evidence / Stats --- */
.stats-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-block {
  padding: var(--space-md);
  border-left: 3px solid var(--color-gold);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.stat-block p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

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

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

/* --- Traction --- */
.traction-content {
  max-width: 720px;
}

.metrics-grid {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.metric {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-gray-light);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-teal);
  white-space: nowrap;
}

.metric-label {
  font-size: 0.9375rem;
  color: var(--color-gray);
}

.investor-note {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background-color: var(--color-teal-light);
  border-radius: var(--border-radius);
  font-size: 0.9375rem;
}

.investor-note p {
  color: var(--color-teal-dark);
}

@media (min-width: 600px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm) var(--space-lg);
  }
}

/* --- About --- */
.about-content {
  max-width: 720px;
}

.founder-block {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.4);
}

.founder-info h3 {
  margin-bottom: var(--space-xs);
}

.founder-info p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 599px) {
  .founder-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* --- Contact --- */
.contact-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  margin-top: var(--space-lg);
  text-align: left;
}

.form-row {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.form-row-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-gray);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  background-color: #fff;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

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

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

.contact-form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: var(--space-sm);
}

.contact-info {
  margin-top: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-gray);
}

.contact-info a {
  color: var(--color-teal);
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--color-teal-dark);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-black);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-lg) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8125rem;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: fill 0.2s ease;
}

.footer-links a:hover svg {
  fill: #fff;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* --- Utility --- */
.section-subtitle {
  max-width: 640px;
  font-size: 1.0625rem;
  color: var(--color-gray);
  margin-bottom: var(--space-lg);
}

.section-teal .section-subtitle,
.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.text-gold {
  color: var(--color-gold);
}

.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;
}

/* --- Artwork Strip --- */
.artwork-strip {
  padding: 0;
  overflow: hidden;
  background-color: var(--color-black);
}

.artwork-strip-inner {
  display: flex;
  gap: 4px;
  height: 280px;
}

.artwork-strip-inner img {
  height: 100%;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.artwork-strip-inner img:hover {
  opacity: 1;
}

@media (max-width: 599px) {
  .artwork-strip-inner {
    height: 180px;
  }
}

/* --- Section with art background --- */
.section-art-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}

.section-art-bg::before {
  content: '';
  position: absolute;
  inset: 0;
}

.section-art-bg .container {
  position: relative;
  z-index: 1;
}

.section-evidence-bg {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/A_Sunday_on_La_Grande_Jatte%2C_Georges_Seurat%2C_1884.jpg/3840px-A_Sunday_on_La_Grande_Jatte%2C_Georges_Seurat%2C_1884.jpg');
}

.section-evidence-bg::before {
  background: rgba(26, 26, 26, 0.88);
}

.section-about-bg {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/40/The_Kiss_-_Gustav_Klimt_-_Google_Cultural_Institute.jpg/3840px-The_Kiss_-_Gustav_Klimt_-_Google_Cultural_Institute.jpg');
  background-position: center top;
}

.section-about-bg::before {
  background: rgba(20, 84, 83, 0.88);
}

/* --- Responsive Section Padding --- */
@media (min-width: 900px) {
  section {
    padding: var(--space-2xl) 0;
  }

  .hero-content {
    padding: var(--space-2xl) 0;
  }
}
