/* Virrod Inc. — design system
   Navy/white pharma-distributor identity, matched to the existing brand.
   Display: Fraunces (warm serif — "healing and hope"). Body: Public Sans. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy-900: #0a1f3d;
  --navy-800: #0f2a52;
  --navy-700: #16386b;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #1c2733;
  --ink-soft: #4a5568;
  --gold: #c8973a;
  --gold-soft: #e8d5ab;
  --line: #e4e0d6;
  --shadow: 0 20px 50px -20px rgba(10, 31, 61, 0.25);
  --radius: 4px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Public Sans', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 0.9em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 2.4rem; align-items: center; }
.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-800);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s ease;
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { color: var(--gold); }
.nav-cta {
  background: var(--navy-900);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy-700); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(200, 151, 58, 0.16), transparent 45%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}
.hero .wrap { position: relative; text-align: center; max-width: 780px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: rise 0.8s 0.1s ease forwards;
}
.hero .eyebrow { opacity: 0; animation: rise 0.7s ease forwards; }
.hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 2em;
  opacity: 0;
  animation: rise 0.8s 0.3s ease forwards;
}
.hero .btn { opacity: 0; animation: rise 0.8s 0.45s ease forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.page-hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 92px 0 68px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(200, 151, 58, 0.5); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); box-shadow: 0 12px 24px -8px rgba(10,31,61,0.5); }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* What We Do */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.service-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.service-card img { height: 240px; width: 100%; object-fit: cover; }
.service-card .body { padding: 32px 34px 36px; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.4em; }

/* Partners */
.partners-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.partner-tile {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  height: 128px;
  transition: background 0.2s;
}
.partner-tile:hover { background: var(--paper); }
.partner-tile img { max-height: 58px; max-width: 100%; object-fit: contain; filter: grayscale(0.15); }

/* CTA band */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  padding: 76px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }

/* ---------- About page ---------- */
.about-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.about-intro .lede { font-size: 1.2rem; color: var(--navy-800); font-family: 'Fraunces', serif; font-weight: 500; line-height: 1.5; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.pillar h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.pillar ul { margin: 0; padding-left: 1.15em; color: var(--ink-soft); }
.pillar li { margin-bottom: 0.4em; }
.pillar p { margin: 0; }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; gap: 28px; max-width: 800px; margin: 0 auto; }
.news-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px 44px;
}
.news-item .date { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; }
.news-item h3 { margin: 0.4em 0 0.5em; font-size: 1.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.contact-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: 10px;
  padding: 44px;
}
.contact-card h3 { color: var(--white); font-size: 1.3rem; }
.contact-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-row .icon { color: var(--gold); font-size: 1.1rem; line-height: 1.5; flex-shrink: 0; width: 22px; }
.contact-row div { color: rgba(255,255,255,0.85); }
.contact-row strong { display: block; color: var(--white); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 44px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.form-msg { margin-top: 16px; font-size: 0.9rem; display: none; }
.form-msg.ok { color: #1a7a4c; display: block; }
.form-msg.err { color: #b3392c; display: block; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.15rem; margin-top: 2em; }
.legal p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.6); padding: 44px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; }
.site-footer a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 84px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 320px; }
  .nav a {
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
  }
  .nav a::after { display: none; }
  .nav-cta { margin: 16px 32px; text-align: center; }
  .services, .about-intro, .contact-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
}
