/* ==========================================================================
   SenopiVR — static site styles
   ========================================================================== */

:root {
  --green-900: #041f1b;   /* darkest, footer text */
  --green-800: #0e2d27;   /* headings */
  --green-700: #1c5a4f;   /* header bar, body copy */
  --accent:    #26b49b;   /* teal accent */
  --mint:      #b1d6cf;   /* section background */
  --white:     #ffffff;
  --med-blue:  #5aa5c4;   /* SenopiMed */
  --care-yellow: #fde9af; /* SenopiCare background */
  --care-gold: #e8b53a;   /* SenopiCare accent */

  --serif: "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, serif;
  --sans:  "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--white);
  color: var(--green-700);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green-800);
  line-height: 1.25;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(24px, 2.6vw, 30px); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.bg-mint { background: var(--mint); }
.bg-yellow { background: var(--care-yellow); }

.divider {
  width: 52px; height: 3px; border: 0;
  background: var(--accent);
  margin: 20px auto 28px;
}
.divider--left { margin-left: 0; }
.divider--blue { background: var(--med-blue); }
.divider--gold { background: var(--care-gold); }
.divider--white { background: var(--white); }

.lead { font-size: clamp(18px, 1.8vw, 22px); }
.subtitle { color: var(--accent); font-size: clamp(20px, 2.2vw, 25px); margin: 0; }
.subtitle--blue { color: var(--med-blue); }
.subtitle--gold { color: #b98a17; }

.btn {
  display: inline-block;
  padding: 14px 64px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .04em;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--blue { background: var(--med-blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-700);
  height: var(--header-h);
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 40px; width: auto; }

.nav { display: flex; gap: 64px; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--white); text-decoration: none; font-size: 15px; font-weight: 400;
  padding: 8px 0; display: block;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .has-sub { position: relative; }
.nav .sub {
  display: none; position: absolute; top: 100%; left: -20px;
  list-style: none; margin: 0; padding: 8px 0; min-width: 170px;
  background: var(--green-700); box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.nav .sub a { padding: 8px 20px; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--green-700); padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav .sub { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; }
}

/* ---------- Home hero ---------- */
.hero {
  min-height: 576px;
  background: #fff url("../img/hero-home.jpg") left center / cover no-repeat;
  display: flex; align-items: center;
}
.hero__text { margin-left: auto; width: min(820px, 100%); padding: 48px 0; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); color: var(--green-700); line-height: 1.12; margin-bottom: 20px; }
.hero p { font-size: clamp(24px, 3vw, 40px); color: var(--accent); margin: 0; font-weight: 300; }
@media (max-width: 860px) {
  .hero { background-position: 20% center; min-height: 480px; position: relative; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.72); }
  .hero .container { position: relative; }
}

/* ---------- Quote band ---------- */
.quote-band blockquote { margin: 0; }
.quote-band p { font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); color: var(--green-800); line-height: 1.35; max-width: 820px; margin: 0 auto 12px; }
.quote-band cite { font-family: var(--serif); font-style: normal; font-size: 20px; color: var(--green-800); }

/* ---------- Feature icons ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.feature { text-align: center; }
.feature img { width: 90px; height: 90px; object-fit: contain; margin: 0 auto 24px; }
.feature span { font-size: 25px; color: var(--green-700); }

/* ---------- Product showcase (headset + game) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin: 48px auto 40px; max-width: 900px; }
.showcase figure { margin: 0; text-align: center; }
.showcase figcaption { margin-bottom: 20px; }
.showcase figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 25px; color: var(--green-800); }
.showcase figcaption span { font-size: 20px; }
.showcase img { margin: 0 auto; max-height: 300px; width: auto; }
.showcase .rounded { border-radius: 28px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }

.links-block { text-align: center; font-size: 20px; }
.links-block p { margin: 0 0 .3em; }

/* ---------- Split (circle image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img {
  width: min(460px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  margin: 0 auto;
}
.split__text { text-align: center; max-width: 460px; margin: 0 auto; }
.split__text p { font-size: 20px; }

.logo-row { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; align-items: center; margin-top: 40px; }
.logo-row img { height: 44px; width: auto; filter: grayscale(1); opacity: .8; }

/* ---------- Studies ---------- */
.studies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.study h3 { margin-bottom: 4px; }
.study .date { font-size: 20px; margin-bottom: 24px; display: block; }
.study img { height: 64px; width: auto; margin: 0 auto 28px; filter: grayscale(1); mix-blend-mode: multiply; }
.study p { font-size: 18px; }

/* ---------- Video ---------- */
.video { position: relative; width: 100%; max-width: 820px; margin: 0 auto; aspect-ratio: 16/9; background: #000; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Care home CTA ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; }
.cta-split__text { background: var(--mint); display: flex; flex-direction: column; justify-content: center; padding: 64px 48px; text-align: center; }
.cta-split__text p { font-size: 18px; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-split__media { background: url("../img/senopicare.jpeg") center / cover no-repeat; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; align-items: center; justify-items: center; margin-top: 40px; }
.partners img { max-height: 110px; max-width: 180px; width: auto; filter: grayscale(1); }

/* ---------- Contact ---------- */
.contact {
  position: relative; color: var(--white);
  background: var(--green-900) url("../img/contact-bg.jpeg") center / cover no-repeat;
}
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(4, 31, 27, .78); }
.contact .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { color: var(--accent); margin-bottom: 0; }
.contact address { font-style: normal; font-size: 18px; line-height: 1.7; }
.contact address a { color: var(--accent); }

.form label { display: block; font-size: 14px; margin: 0 0 4px; }
.form input, .form textarea {
  width: 100%; padding: 10px 12px; margin-bottom: 18px;
  border: 1px solid #fff; border-radius: 6px; background: #fff;
  font: inherit; font-size: 16px; color: var(--green-900);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { display: block; margin: 0 auto; padding: 12px 72px; background: var(--green-700); box-shadow: none; }
.form .hidden { display: none; }
.form-status { text-align: center; margin-top: 14px; min-height: 1.6em; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; color: var(--green-900); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 32px; align-items: start; }
.site-footer .logo-green { height: 36px; width: auto; margin-bottom: 18px; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer .made { text-align: center; }
.site-footer .made img { height: 34px; width: auto; margin: 18px auto 0; }
.site-footer .follow { text-align: right; }
.site-footer .follow img { width: 22px; height: 22px; display: inline-block; margin-top: 10px; }
.site-footer .copy { text-align: center; margin-top: 40px; font-size: 12px; }

/* ---------- Product pages ---------- */
.banner {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: var(--green-800);
  position: relative; overflow: hidden;
}
.banner::before {
  content: ""; position: absolute; inset: -20px;
  background: url("../img/product-banner.jpg") center / cover no-repeat;
  filter: blur(8px) brightness(.55);
}
.banner img { position: relative; width: min(384px, 80%); }

.slider { position: relative; max-width: 820px; margin: 0 auto; }
.slider__track { position: relative; overflow: hidden; }
.slider__slide { display: none; }
.slider__slide.active { display: block; animation: fade .6s; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 12px;
  color: var(--green-800); font-size: 34px; line-height: 1;
}
.slider__btn--prev { left: -56px; }
.slider__btn--next { right: -56px; }
.slider__count { text-align: right; font-size: 13px; margin-top: 6px; }
.slider--images .slider__slide img { width: 100%; aspect-ratio: 602/368; object-fit: cover; }
.slider--images .slider__btn { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.slider--images .slider__btn--prev { left: 0; }
.slider--images .slider__btn--next { right: 0; }
.slider--quotes .slider__slide p { font-size: clamp(20px, 2.2vw, 26px); text-align: center; max-width: 640px; margin: 0 auto; }
.slider--quotes .quote-icon { width: 40px; margin: 0 auto 16px; }
.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.slider__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #c9c9c9; cursor: pointer; }
.slider__dots button.active { background: var(--green-800); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.two-col > div { text-align: center; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 32px 0 40px; }
.gallery figure { margin: 0; position: relative; }
.gallery img { width: 100%; aspect-ratio: 237/229; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px;
  font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55));
  text-align: left;
}
.two-col h3.minor { font-family: var(--sans); font-weight: 400; font-size: 22px; color: var(--green-800); margin: 0; }
.two-col .justify { text-align: justify; }
.testimonial-quotes p { font-size: 16px; }

.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; font-size: 22px; margin-top: 32px; }

/* ---------- Science ---------- */
.page-hero {
  min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative;
  background: var(--green-800) url("../img/science-hero.jpg") center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(14,45,39,.72); }
.page-hero > * { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(34px, 4.4vw, 52px); margin: 0; }

.band { padding: 64px 0; text-align: center; position: relative; background: var(--green-800) url("../img/science-hero.jpg") center 70% / cover no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(14,45,39,.78); }
.band h2 { position: relative; color: var(--white); margin: 0; }

.prose { max-width: 980px; margin: 0 auto; font-size: 16px; text-align: justify; }
.prose p { margin-bottom: 1.4em; }
.prose .note { text-align: center; font-size: 13px; }

.study-table { width: 100%; border-collapse: separate; border-spacing: 4px; margin: 24px 0 8px; font-size: 14px; text-align: center; }
.study-table th { background: var(--accent); color: #fff; font-weight: 600; padding: 14px 10px; }
.study-table td { padding: 14px 10px; }
.study-table tr:nth-child(odd) td { background: #e6e6e6; }
.study-table tr:nth-child(even) td { background: var(--mint); }
.table-wrap { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .section { padding: 64px 0; }
  .features, .studies, .targets { grid-template-columns: 1fr; gap: 40px; }
  .showcase, .split, .two-col, .cta-split, .contact .container, .site-footer .cols { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split { gap: 32px; }
  .cta-split__media { min-height: 320px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols, .site-footer .follow { text-align: center; }
  .site-footer .logo-green { margin: 0 auto 18px; }
  .slider__btn--prev { left: -8px; }
  .slider__btn--next { right: -8px; }
  .slider--quotes { padding: 0 32px; }
}
