/* public-assets/style.css */
/* =========================================================
   ISAB — Global Stylesheet
   Global layout + components
   (Navigation styles live in /public-assets/nav.css)
   ========================================================= */

/* =====================
   Base / Reset
   ===================== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

/* Make images behave sensibly by default WITHOUT forcing width:100% */
img {
  max-width: 100%;
  height: auto;
}

/* =====================
   Links
   ===================== */
a {
  color: #0b7ef4;
  text-decoration: none;
  font-weight: 600;
}
a:hover { text-decoration: underline; }

/* =====================
   Header (nav itself styled in nav.css)
   ===================== */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

/* Ensure the injected navbar area is not constrained by other layouts */
#navbar {
  width: 100%;
  display: block;
}

/* =====================
   MAIN PAGE WRAPPER
   ===================== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6%;
}

/* =====================
   Sections
   ===================== */
.section {
  padding: 3rem 0;
}

/* =====================
   HERO (full-width background)
   ===================== */
.hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #e8f0ff 0%,
    #dfe5ff 35%,
    #d8ddff 100%
  );
}

/* Inner constrained layout */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 6%;
  min-height: 62vh;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* Hero text */
.hero-copy { max-width: 680px; }

.kicker {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #5c6b88;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0.5rem 0;
  color: #0b2149;
}

.lead {
  font-size: 1.15rem;
  color: #2c3755;
  margin: 0 0 1.4rem;
}

.cta {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(90deg, #0b7ef4, #7a3fff);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}
.cta:hover {
  opacity: 0.92;
  text-decoration: none;
}

.muted {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  opacity: 0.75;
}

/* Hero logo (SVG must be sized explicitly) */
.hero-logo { flex: 0 0 auto; }

.hero-logo img {
  width: min(520px, 42vw);
  height: auto;
  display: block;
  max-width: 100%;
}

/* Responsive hero */
@media (max-width: 900px) {
  .hero-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 6%;
  }

  .hero-logo img {
    width: min(420px, 80vw);
  }

  .hero h1 { font-size: 2rem; }
}

/* =====================
   Grid / Cards
   ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card h3 {
  margin-top: 0;
  color: #0b7ef4;
}

/* =====================
   Subpage Hero (no logo)
   ===================== */
.subhero {
  position: relative;
  width: 100%;
  padding: 2.2rem 6%;
  background: linear-gradient(
    135deg,
    #f5f6ff 0%,
    #f0ecff 50%,
    #edf4ff 100%
  );
  border-bottom: 1px solid #e3e6f1;
}

.subhero h1 {
  margin: 0;
  font-size: 2rem;
  color: #0b2149;
}

/* =====================
   Typography (content)
   ===================== */
h2 {
  color: #0b7ef4;
  margin: 1.5rem 0 0.5rem;
}

main p,
main ul,
main ol {
  margin: 0.7rem 0;
}

/* =====================
   Images in content
   ===================== */
img.responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* =====================
   Footer
   ===================== */
footer {
  background: #f5f7fb;
  border-top: 1px solid #ddd;
  padding: 1rem 6%;
  text-align: center;
  color: #555;
}

footer .muted {
  font-size: 0.85rem;
  color: #888;
}

/* =====================
   Buttons (generic)
   ===================== */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #0b7ef4;
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}
.btn:hover {
  background: #095ec2;
  text-decoration: none;
}

/* =====================
   Contact page (scoped)
   ===================== */
.contact-page .page-header {
  margin: 24px 0 18px;
  max-width: 820px;
}

.contact-page .page-lead {
  margin: 8px 0 0;
  opacity: 0.85;
  max-width: 65ch;
}

.contact-page .contact-card {
  max-width: 820px;
  padding: 22px;
  margin: 18px 0 40px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
}

.contact-page .contact-form {
  display: grid;
  gap: 16px;
}

.contact-page .field label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px;
}

.contact-page .field input,
.contact-page .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  font: inherit;
}

.contact-page .field input:focus,
.contact-page .field textarea:focus {
  outline: none;
  border-color: rgba(0,0,0,0.35);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

.contact-page .actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.contact-page .btn-primary {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.06);
  font-weight: 600;
  cursor: pointer;
}

.contact-page .btn-primary:hover {
  background: rgba(0,0,0,0.10);
}

.contact-page .status { opacity: 0.85; }

/* Honeypot */
.contact-page .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =====================
   Generic two-column (text + image)
   ===================== */
.two-col {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.two-col-text {
  flex: 0 0 66.666%;
  min-width: 0;
}

.two-col-image {
  flex: 0 0 33.333%;
}

.two-col-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile fallback */
@media (max-width: 768px) {
  .two-col { flex-direction: column; }
  .two-col-text,
  .two-col-image {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* =====================
   Figures within page width
   ===================== */
main figure {
  margin: 2rem auto;
  max-width: 100%;
}

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

/* =====================
   Prion page: text + figure layout
   ===================== */
.prion-two-col {
  display: grid;
  grid-template-columns: 1fr 4fr; /* 20% / 80% */
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.prion-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stack on narrow screens */
@media (max-width: 900px) {
  .prion-two-col { grid-template-columns: 1fr; }
}
