/* Piveu Website — Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-primary: #31103F;
  --color-accent:  #74A87A;
  --color-light:   #EDE8F7;
  --color-text:    #1A1A1A;
  --color-muted:   #555;
  --color-white:   #FFFFFF;
  --font:          'Libre Franklin', sans-serif;
  --max-w:         1120px;
  --radius:        6px;
}

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

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAV */
.site-nav {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

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

.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--color-accent); }

/* HERO */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}

.hero .lead {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  opacity: 0.88;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary { background: var(--color-accent); color: var(--color-primary); }
.btn-primary:hover { background: #d4c0f7; }
.btn-outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: rgba(194,168,241,0.1); }

/* SECTION BASICS */
.section { padding: 5rem 1.5rem; }
.section-light { background: var(--color-light); }
.section-dark  { background: var(--color-primary); color: var(--color-white); }

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-dark .section-title { color: var(--color-white); }

.section-lead {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.section-dark .section-lead { color: rgba(255,255,255,0.8); }

/* HOME — PROBLEM */
.problem-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.problem-cols p {
  color: var(--color-muted);
  line-height: 1.8;
}

/* HOME — SOLUTION */
.solution-rows {
  display: grid;
  gap: 1px;
  background: var(--color-accent);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.solution-row {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr;
  align-items: center;
  background: var(--color-white);
  padding: 1.25rem 1.5rem;
  gap: 0.75rem;
}

.solution-row .col { display: flex; flex-direction: column; }

.solution-row .lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.before .lbl { color: #aaa; }
.after .lbl  { color: var(--color-accent); }

.solution-row .val {
  font-size: 1rem;
  line-height: 1.4;
}

.before .val { color: var(--color-muted); }
.after .val  { color: var(--color-primary); font-weight: 600; }

.arrow-col { text-align: center; color: var(--color-accent); font-size: 1.1rem; font-weight: 700; }

.stat-banner {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* HOME — PRODUCT CTA CARDS */
.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.product-card {
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.product-card:hover { box-shadow: 0 6px 24px rgba(49,16,63,0.12); }

.product-card .tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-primary);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.product-card .tagline {
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-secondary { text-align: center; }
.contact-secondary a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }

/* PAGE HERO */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 660px;
  margin: 0 auto;
  opacity: 0.88;
  line-height: 1.7;
}

/* PRODUCTS PAGE */
.hero-sub {
  max-width: 660px;
  margin: 0 auto;
  opacity: 0.88;
  line-height: 1.7;
  font-size: 1.05rem;
}

.redefined-section {
  background: var(--color-light);
  padding: 3rem 1.5rem;
}

.redefined-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.redefined-section p {
  max-width: 700px;
  color: var(--color-muted);
  line-height: 1.75;
}

.product-logo-wrap {
  margin-bottom: 1.25rem;
}

.product-logo {
  max-height: 70px;
  width: auto;
  max-width: 100%;
}

.product-block { padding: 4.5rem 1.5rem; border-bottom: 1px solid var(--color-light); }
.product-block:last-child { border-bottom: none; }

.badge-row { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

.chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  background: var(--color-light);
  color: var(--color-primary);
}

.chip.dev { background: var(--color-primary); color: var(--color-accent); }

.product-block h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.product-block .intro {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 680px;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.feature-list { list-style: none; margin: 1.5rem 0 2rem; border-top: 1px solid var(--color-light); }

.feature-list li {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-light);
  color: #333;
  font-size: 1rem;
  line-height: 1.65;
}

.feature-list li::before {
  content: '→';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.product-tagline {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
}

.reg-note {
  background: var(--color-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #444;
  margin-top: 2rem;
}

.patent-note {
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: #444;
  margin-top: 1.5rem;
}

/* ABOUT PAGE */
.founding-section { padding: 4.5rem 1.5rem; background: var(--color-light); }
.founding-section p { max-width: 760px; color: var(--color-muted); line-height: 1.8; margin-bottom: 1rem; }
.founding-section p:last-child { margin-bottom: 0; }

.mission-section {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.mission-section h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em; opacity: 0.6; text-transform: uppercase; margin-bottom: 1rem; }
.mission-section p { font-size: 1.15rem; max-width: 680px; margin: 0 auto; line-height: 1.75; opacity: 0.92; }

.leadership-section { padding: 4.5rem 1.5rem; }

.leadership-intro {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-muted);
  max-width: 700px;
  margin-bottom: 3rem;
  border-left: 4px solid var(--color-accent);
  padding-left: 1.25rem;
  line-height: 1.7;
}

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }

.team-card {
  border: 1px solid #e0d8ec;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: var(--color-white);
}

.team-card:hover { box-shadow: 0 6px 24px rgba(49,16,63,0.12); }

.team-card img { width: 100%; height: 220px; object-fit: cover; object-position: center top; }
.team-card-body { padding: 1.25rem; }
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.2rem; }

.team-card .role {
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.team-card p { font-size: 1rem; color: #444; line-height: 1.65; margin-bottom: 0.9rem; }

.linkedin-link { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); text-decoration: underline; }
.linkedin-link:hover { color: #5a3078; }

/* CONTACT PAGE */
.contact-page {
  min-height: calc(100vh - 64px - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 5rem 1.5rem;
  text-align: center;
}

.contact-inner h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 2.5rem; }

.contact-items { display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
.contact-items a { color: var(--color-accent); font-size: 1.1rem; font-weight: 600; text-decoration: underline; transition: color 0.2s; }
.contact-items a:hover { color: #d4c0f7; }

/* PRIVACY PAGE */
.privacy-page { padding: 4rem 1.5rem 5rem; }
.privacy-inner { max-width: 760px; margin: 0 auto; }
.privacy-inner h1 { font-size: 2rem; color: var(--color-primary); margin-bottom: 0.4rem; }
.privacy-inner .updated { font-size: 0.85rem; color: #777; margin-bottom: 2.5rem; display: block; }
.privacy-inner h2 { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); margin-top: 2rem; margin-bottom: 0.6rem; }
.privacy-inner p { font-size: 1rem; color: #444; line-height: 1.75; margin-bottom: 0.5rem; }

/* FOOTER */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: 0.82rem;
}

.site-footer a { color: var(--color-accent); text-decoration: underline; }
.site-footer a:hover { color: #d4c0f7; }

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* DESKTOP BREAK (hidden on mobile) */
.desktop-br { display: inline; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 150;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .desktop-br { display: none; }
  .problem-cols { grid-template-columns: 1fr; }
  .product-cards { grid-template-columns: 1fr; }
  .solution-row { grid-template-columns: 1fr; }
  .arrow-col { display: none; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
}

/* ABOUT — HERO WITH ABOUT IMAGE */
#about-hero {
  background-image: linear-gradient(rgba(49,16,63,0.68), rgba(49,16,63,0.78)),
                    url('../img/hero-about.jpg');
  background-size: cover;
  background-position: center;
}

/* PRODUCTS — HERO WITH SURGICAL IMAGE */
#products-hero {
  background-image: linear-gradient(rgba(49,16,63,0.68), rgba(49,16,63,0.78)),
                    url('../img/Instrument table in OR.jpg');
  background-size: cover;
  background-position: center;
}

/* HOME — HERO WITH OR IMAGE */
.hero {
  background-image: linear-gradient(rgba(49,16,63,0.72), rgba(49,16,63,0.82)),
                    url('../img/hero-or-scene.jpg');
  background-size: cover;
  background-position: center;
}

/* HOME — CONTEXT PARAGRAPHS */
.context-p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 1.25rem;
}

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