/* styles.css for PHP version mirroring the React design (tokens from Tailwind) */
:root {
  --background: 150 16% 96.5%;
  --foreground: 222.2 47.4% 11.2%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 47.4% 11.2%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 47.4% 11.2%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 150 12% 92%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 215.4 16.3% 46.9%;
  --accent: 150 12% 92%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 150 10% 88%;
  --input: 150 10% 88%;
  --ring: 222.2 47.4% 11.2%;
  --radius: 6px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
img { max-width: 100%; display: block; }
.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; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid hsl(var(--border)); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: hsl(var(--foreground)); font-size: 14px; text-decoration: none; }

.hero { padding: 132px 0px 80px 0px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.1; margin: 0; font-weight: 600; letter-spacing: -0.01em; }

.section { padding: 80px 0; }
/* Extra spacing to match React my-[33px] */
#investments { margin: 33px 0; }
.section-title { font-size: 20px; font-weight: 500; margin: 0 0 16px; }

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); transition: transform .2s ease; text-decoration: none; color: inherit; }
.card:hover { transform: scale(1.02); }
.square { position: relative; aspect-ratio: 1 / 1; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.square img { height: 56px; width: auto; object-fit: contain; }
.arrow { position: absolute; top: 12px; right: 12px; color: hsl(var(--muted)); }

.two-col { display: grid; gap: 32px; }
@media (min-width: 768px) { .two-col { grid-template-columns: repeat(12, 1fr); } .two-col > :first-child { grid-column: span 6; } .two-col > :last-child { grid-column: span 6; } }

.prose p { margin: 0; font-size: 18px; line-height: 1.7; }
.prose p + p { margin-top: 20px; }

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

.form { display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .row { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 8px; }
label { font-size: 14px; }
input, textarea {
  width: 100%; background: hsl(var(--card)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--input)); border-radius: var(--radius);
  padding: 10px 12px; outline: none; transition: box-shadow .2s ease, border-color .2s ease;
}
input:focus, textarea:focus { border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsla(var(--ring) / 0.15); }
textarea { resize: vertical; min-height: 140px; }

.btn {
  appearance: none; cursor: pointer; border: 1px solid hsl(var(--primary));
  background: transparent; color: hsl(var(--primary));
  padding: 10px 14px; border-radius: var(--radius); font-weight: 600;
  transition: background-color .2s ease, transform .2s ease, filter .2s ease;
  display: inline-block;
}
.btn:link,
.btn:visited { color: hsl(var(--primary)); }
.btn:hover { background: hsla(var(--primary) / 0.08); transform: translateY(-1px); }
/* Ensure button link colors in all states with higher specificity in nav */
.nav .btn,
.nav .btn:link,
.nav .btn:visited {
  color: hsl(var(--primary));
}

.status { padding: 10px 12px; border-radius: var(--radius); font-size: 14px; margin-bottom: 12px; }
.status.success { background: hsla(150 70% 40% / 0.12); border: 1px solid hsla(150 70% 40% / 0.35); }
.status.error { background: hsla(0 84% 60% / 0.12); border: 1px solid hsla(0 84% 60% / 0.35); }

.site-footer { border-top: 1px solid hsl(var(--border)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; font-size: 14px; color: hsl(var(--muted)); }

.story-link,
.story-link:link,
.story-link:visited { position: relative; text-decoration: none; color: inherit; }
.story-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: hsl(var(--primary)); transform: scaleX(0); transform-origin: bottom right; transition: transform .3s ease; }
.story-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }

.hover-scale { transition: transform .2s ease; }
.hover-scale:hover { transform: scale(1.05); }
