/* ============================================================
   PINC Innovations — Shared Stylesheet
   Matches pincinnovations.org: white/gray bg, red accent, Caveat headings
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: #2a2a2a;
  background: #fff;
  line-height: 1.6;
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Tokens ── */
:root {
  --red:       #e63232;
  --red-dark:  #c82020;
  --red-light: #fdeaea;
  --black:     #1a1a1a;
  --gray-bg:   #f5f5f5;
  --gray-mid:  #e8e8e8;
  --gray-text: #666;
  --white:     #ffffff;
  --max-w:     1200px;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Caveat', cursive;
  color: var(--black);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { color: var(--gray-text); line-height: 1.65; }

.accent { color: var(--red); }

/* ── Layout helpers ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-alt { background: var(--gray-bg); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-red  { background: var(--red);   color: #fff; }
.btn-red:hover  { background: var(--red-dark); transform: translateY(-1px); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #333; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline-red:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.83rem; }

/* ── Header / Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #fff;
  border-bottom: 1px solid var(--gray-mid);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand .dot { color: var(--red); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 6px 13px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #444;
  border-radius: 5px;
  transition: color 0.2s, background 0.15s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--black); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -21px;
  left: 13px; right: 13px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nav-links .nav-cta > a {
  background: var(--red);
  color: #fff !important;
  border-radius: 6px;
  padding: 7px 16px;
}
.nav-links .nav-cta > a:hover { background: var(--red-dark); }
.nav-links .nav-cta > a.active::after { display: none; }

/* ── Back to top ── */
.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 50%;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(230,50,50,0.35);
  z-index: 400;
  transition: background 0.2s;
}
.back-top:hover { background: var(--red-dark); }

/* ── Footer ── */
footer {
  background: #1a1a1a;
  color: #999;
  padding: 52px 24px 24px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  padding-bottom: 36px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-col h4 svg { color: var(--red); flex-shrink: 0; }
.footer-col p, .footer-col a {
  display: block;
  font-size: 0.84rem;
  color: #777;
  margin-bottom: 7px;
  line-height: 1.5;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }
.footer-col strong { color: #bbb; }
.social-row { display: flex; gap: 9px; margin-top: 4px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #3a3a3a;
  display: flex; align-items: center; justify-content: center;
  color: #777;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.social-row a:hover { border-color: var(--red); color: var(--red); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #555;
}
.footer-bottom a { color: var(--red); }

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-red   { background: var(--red);   color: #fff; }
.badge-green { background: #e8f5e9; color: #2e7d32; }
.badge-yellow{ background: #fff8e1; color: #f57f17; }
.badge-blue  { background: #e3f2fd; color: #1565c0; }
.badge-pink  { background: #fce4ec; color: #b71c1c; }

/* ── Form elements ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: #2a2a2a;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}
.form-control:focus { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Section headers ── */
.section-title {
  margin-bottom: 36px;
}
.section-title h2 { margin-bottom: 8px; }
.section-title p  { max-width: 560px; }
.section-title.center { text-align: center; }
.section-title.center p { margin: 0 auto; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--gray-mid); margin: 0; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 36px 30px;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-close {
  position: absolute; top: 13px; right: 16px;
  background: none; border: none;
  font-size: 1.4rem; color: #bbb; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: #444; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 9px; font-size: 0.82rem; }
}
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
}
