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

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section-alt { background: #FEF5FB; }

/* ---------- Typography ---------- */
h1 { font-size: 2.75rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: 2rem;   font-weight: 700; line-height: 1.2;  letter-spacing: -0.3px; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  text-decoration: none;
}
.btn-primary {
  background: #A8006D;
  color: #fff;
  border-color: #A8006D;
}
.btn-primary:hover { background: #7A004F; border-color: #7A004F; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: #A8006D;
  border-color: #A8006D;
}
.btn-outline:hover { background: #A8006D; color: #fff; text-decoration: none; }
.btn + .btn { margin-left: 12px; }

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #F0D8E8;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-img {
  height: 72px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: #2C2C2C;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: #A8006D; text-decoration: none; }
.nav-links a.active { color: #A8006D; }
.nav-cta { margin-left: 8px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2C2C2C;
  transition: transform 0.2s;
}

/* ---------- Flash messages ---------- */
.flash {
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-weight: 500;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---------- Hero ---------- */
.hero {
  background: #FCE8F4;
  padding: 96px 0 88px;
}
.hero-content { max-width: 640px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead {
  font-size: 1.15rem;
  color: #3a4a4a;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Value strip ---------- */
.value-strip {
  padding: 64px 0;
  border-bottom: 1px solid #F0D8E8;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.value-item h3 { color: #A8006D; margin-bottom: 10px; }

/* ---------- Product teaser ---------- */
.product-teaser {
  background: #A8006D;
  color: #fff;
  padding: 60px 0;
}
.product-teaser h2 { color: #fff; margin-bottom: 16px; }
.product-teaser p { color: #F0C0DC; max-width: 600px; margin-bottom: 28px; }
.product-teaser .btn-outline {
  color: #fff;
  border-color: #fff;
}
.product-teaser .btn-outline:hover { background: #fff; color: #A8006D; }


/* ---------- Credibility strip ---------- */
.credibility {
  background: #FEF5FB;
  padding: 52px 0;
  border-top: 1px solid #E8C0D8;
}
.credibility p { max-width: 700px; color: #3a4a4a; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: #FCE8F4;
  padding: 56px 0 48px;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { font-size: 1.1rem; color: #3a4a4a; max-width: 680px; }

/* ---------- Science page ---------- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.arch-card {
  border: 1px solid #E8C0D8;
  border-top: 4px solid #A8006D;
  border-radius: 8px;
  padding: 28px 24px;
}
.arch-card h3 { margin-bottom: 8px; }
.arch-tag {
  display: inline-block;
  background: #FCE8F4;
  color: #A8006D;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.paper-figure {
  margin: 32px 0 0;
  text-align: center;
}
.paper-figure img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #E8C0D8;
}
.paper-figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.spec-box {
  background: #FEF5FB;
  border: 1px solid #E8C0D8;
  border-radius: 8px;
  padding: 28px 32px;
  margin-top: 16px;
}
.spec-box p { margin-bottom: 0.5rem; }

.pubs-list { list-style: none; margin-top: 12px; }
.pubs-list li {
  padding: 12px 0;
  border-bottom: 1px solid #F0D8E8;
  font-size: 0.93rem;
  color: #3a4a4a;
}
.pubs-list li:last-child { border-bottom: none; }

/* ---------- MAASTY products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.product-card {
  border: 1px solid #E8C0D8;
  border-top: 4px solid #A8006D;
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.product-card h3 { margin-bottom: 4px; }
.product-card .catno {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 16px;
}
.product-spec {
  list-style: none;
  font-size: 0.9rem;
  color: #3a4a4a;
  margin-bottom: 20px;
  flex: 1;
}
.product-spec li {
  padding: 5px 0;
  border-bottom: 1px solid #FBF0F7;
  display: flex;
  justify-content: space-between;
}
.product-spec li:last-child { border-bottom: none; }
.product-spec .label { font-weight: 500; }
.price-badge {
  font-size: 1.6rem;
  font-weight: 700;
  color: #A8006D;
  margin-bottom: 16px;
}

.kit-card {
  background: #A8006D;
  color: #fff;
  border-radius: 10px;
  padding: 40px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
}
.kit-card h2 { color: #fff; margin-bottom: 12px; }
.kit-card p { color: #F0C0DC; margin-bottom: 16px; }
.kit-card .kit-price {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.kit-card .kit-save {
  font-size: 0.88rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 20px;
}
.kit-card .btn-outline {
  color: #fff;
  border-color: #fff;
}
.kit-card .btn-outline:hover { background: #fff; color: #A8006D; }

.kit-body { flex: 1; }
.kit-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kit-image img {
  max-width: 320px;
  width: 100%;
  border-radius: 6px;
}
.product-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 6px 6px 0 0;
  background: #FDF7FB;
  padding: 12px 0;
  margin-bottom: 12px;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-top: 12px;
}
.comparison-table th {
  background: #A8006D;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F0D8E8;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: #FEF5FB; }

/* FAQ */
.faq-item { border-bottom: 1px solid #F0D8E8; padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #A8006D;
}
.faq-a { color: #3a4a4a; font-size: 0.95rem; }

/* ---------- Order page ---------- */
.order-intro {
  background: #FCE8F4;
  padding: 48px 0 40px;
}
.order-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
}
.shipping-notes {
  background: #FEF5FB;
  border: 1px solid #E8C0D8;
  border-radius: 8px;
  padding: 28px 24px;
}
.shipping-notes h3 { margin-bottom: 16px; color: #A8006D; }
.shipping-notes ul {
  list-style: none;
  font-size: 0.92rem;
  color: #3a4a4a;
}
.shipping-notes ul li {
  padding: 7px 0;
  border-bottom: 1px solid #F0D8E8;
  padding-left: 16px;
  position: relative;
}
.shipping-notes ul li::before {
  content: "•";
  color: #A8006D;
  position: absolute;
  left: 0;
}
.shipping-notes ul li:last-child { border-bottom: none; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #c8d8d8;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #2C2C2C;
  background: #fff;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #A8006D;
  box-shadow: 0 0 0 3px rgba(168,0,109,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-note {
  font-size: 0.82rem;
  color: #888;
  margin-top: 4px;
}
.required { color: #A8006D; }
.form-submit { margin-top: 8px; }

/* ---------- Team page ---------- */
.team-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 800px;
}
.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
  background: #FCE8F4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #A8006D;
  font-weight: 700;
}
.team-avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #FCE8F4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #A8006D;
  font-weight: 700;
  letter-spacing: -2px;
}
.team-info h2 { margin-bottom: 4px; }
.team-title { color: #A8006D; font-weight: 600; margin-bottom: 16px; }
.team-bio { margin-bottom: 16px; color: #3a4a4a; }
.team-links { display: flex; gap: 12px; flex-wrap: wrap; }
.team-links a {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 5px 14px;
  border: 1px solid #A8006D;
  border-radius: 4px;
  color: #A8006D;
}
.team-links a:hover { background: #A8006D; color: #fff; text-decoration: none; }

.team-divider {
  border: none;
  border-top: 1px solid #F0D8E8;
  margin: 48px 0;
  max-width: 800px;
}

.future-team {
  margin-top: 48px;
  padding: 28px 32px;
  background: #FEF5FB;
  border: 1px dashed #D4A0C4;
  border-radius: 8px;
  color: #3a4a4a;
  font-style: italic;
  font-size: 0.95rem;
  max-width: 600px;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
  padding: 64px 0;
}
.contact-details h3 { color: #A8006D; margin-bottom: 16px; }
.contact-details p { color: #3a4a4a; margin-bottom: 8px; font-size: 0.95rem; }
.contact-details a { font-weight: 500; }
.collab-box {
  background: #FCE8F4;
  border-radius: 8px;
  padding: 28px 24px;
  margin-top: 32px;
}
.collab-box h3 { color: #A8006D; margin-bottom: 12px; }
.collab-box p { font-size: 0.93rem; color: #3a4a4a; }

/* ---------- Footer ---------- */
footer {
  background: #2C2C2C;
  color: #aaa;
  padding: 40px 0;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-logo { display: flex; justify-content: center; }
.footer-logo-img { height: 80px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer-links a { color: #aaa; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy { color: #666; }

/* ---------- Section header ---------- */
.section-header { margin-bottom: 40px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: #3a4a4a; max-width: 640px; }
.section-tag {
  display: inline-block;
  background: #FCE8F4;
  color: #A8006D;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr; gap: 28px; }
  .arch-grid   { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .kit-card { flex-direction: column; gap: 20px; }
  .order-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
}
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px 24px 24px; border-bottom: 1px solid #F0D8E8; gap: 16px; }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
