/* VITALIS Premium – vitalis-condoms.com. The only stylesheet. Colours are the variables in :root. */

/* Fonts (self-hosted, SIL Open Font License, see ../fonts/OFL-*.txt) */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/comfortaa-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/comfortaa-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #000;              /* page; the product photos have a black background */
  --surface: #0b0d10;      /* cards, header */
  --surface-2: #12161c;
  --line: #262d36;
  --text: #e8edf2;
  --muted: #a3adb8;
  --accent: #4fb3ff;       /* VITALIS ice blue (natural glow) */
  --c: var(--accent);      /* current product colour, set by .p-<product> */
  --radius: 14px;
  --wrap: 1180px;
  --head: "Comfortaa", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

/* product colours from the packs, lightened where needed for >= 6:1 on --surface */
.p-natural     { --c: #159cd8; }
.p-stimulation { --c: #ed6817; }
.p-delay       { --c: #3a96da; }
.p-ribbed      { --c: #d68d16; }
.p-sensation   { --c: #dd699e; }
.p-comfort     { --c: #08a39e; }
.p-strong      { --c: #b079e4; }
.p-large       { --c: #81ae2b; }
.p-color       { --c: #d86e9f; }
.p-thin        { --c: #d170a5; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #8fd0ff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.eyebrow { display: block; font: 700 .78rem/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.lead { font-size: 1.2rem; color: var(--text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.button {
  display: inline-block; padding: .8em 1.5em; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: #00121f; font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: background .2s, color .2s, box-shadow .2s;
}
.button:hover { background: #8fd0ff; color: #00121f; box-shadow: 0 0 24px rgb(79 179 255 / .45); }
.button-outline { background: transparent; color: var(--text); border-color: var(--line); }
.button-outline:hover { background: transparent; color: var(--text); border-color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(0 0 0 / .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.logo img { width: 150px; }
.nav-panel { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.lang { display: flex; gap: .35rem; }
.lang a {
  display: flex; align-items: center; gap: .3rem; padding: .25rem .45rem; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
}
.lang img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; opacity: .75; }
.lang a:hover, .lang a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.lang a[aria-current="true"] img, .lang a:hover img { opacity: 1; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: none; }

@media (max-width: 900px) {
  .nav-button {
    display: block; margin-left: auto; width: 44px; height: 44px; position: relative; cursor: pointer; border-radius: 8px;
  }
  .nav-button span, .nav-button span::before, .nav-button span::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); content: ""; transition: transform .2s;
  }
  .nav-button span { top: 21px; }
  .nav-button span::before { left: 0; top: -7px; }
  .nav-button span::after { left: 0; top: 7px; }
  .nav-toggle:focus-visible + .nav-button { outline: 2px solid var(--accent); }
  .nav-toggle:checked + .nav-button span { background: transparent; }
  .nav-toggle:checked + .nav-button span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-button span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1.25rem 1.5rem;
    background: #000; border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .nav-panel { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .lang { flex-wrap: wrap; }
}

/* Layout */
.content > section, .content > .card-grid, .products { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.content > section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.page-head { padding-top: 4.5rem !important; padding-bottom: 1rem !important; }
.page-head .lead { color: var(--muted); }
.prose > * { max-width: 48rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; }
[id] { scroll-margin-top: 5.5rem; }
.content { overflow-x: clip; }   /* the hero glow must not widen the page on phones */

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem;
  position: relative; isolation: isolate; min-height: min(78vh, 640px);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -10% auto auto -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgb(79 179 255 / .28), rgb(79 179 255 / 0) 65%);
  pointer-events: none;
}
.hero h1 { font-weight: 300; font-size: clamp(2.6rem, 6.5vw, 4.6rem); color: #9ad6ff; }
.hero .lead { color: var(--muted); max-width: 34em; }
/* the photos have a black background: 'screen' lets it melt into the glow behind */
.hero-media img { mix-blend-mode: screen; }
.hero-media img { width: 100%; }

/* Product overview */
.range { text-align: center; }
.range > p { color: var(--muted); max-width: 40em; margin-inline: auto; }
.product-grid {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.product-tile {
  display: block; height: 100%; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: #000; border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product-tile img { width: 100%; aspect-ratio: 300 / 250; object-fit: cover; object-position: center 40%; }
.product-tile span { display: block; padding: .3rem .75rem 1rem; font: 400 1.05rem/1.25 var(--head); color: var(--c); }
.product-tile:hover { border-color: var(--c); transform: translateY(-3px); box-shadow: 0 10px 40px -10px var(--c); color: var(--text); }

/* Product sections */
.products { display: grid; gap: 1.5rem; padding-bottom: 2rem; }
.product {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 1rem 2.5rem;
  background: #000; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); overflow: hidden;
  padding: 1rem 2.5rem 1rem 0;
}
.product:nth-child(even) { grid-template-columns: 1fr 1.15fr; padding: 1rem 0 1rem 2.5rem; }
.product:nth-child(even) .product-media { order: 2; }
.product-media img { width: 100%; }
.product-body { padding: 1.5rem 0; }
.product h2 {
  font-weight: 300; font-size: clamp(2rem, 3.6vw, 2.7rem); color: var(--c);
  padding-bottom: .5rem; border-bottom: 1px dotted var(--c); margin-bottom: 1rem;
}
.product .claim { font-size: 1.1rem; color: var(--text); }
.product-body > p:not(.claim):not(.to-top) { color: var(--muted); font-size: .97rem; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 1.25rem 0; font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--text); font-weight: 600; }
.to-top { margin: 0; font-size: .9rem; }
.to-top a { color: var(--muted); text-decoration: none; }
.to-top a:hover { color: var(--c); }

/* Quality */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checklist li { position: relative; padding: 1rem 1.25rem 1rem 3.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li::before {
  content: ""; position: absolute; left: 1.25rem; top: 1.35rem; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.timeline li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.timeline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.timeline h3 { margin: 1rem 1.25rem .4rem; font-family: var(--head); font-weight: 600; color: #9ad6ff; }
.timeline p { margin: 0 1.25rem 1.25rem; color: var(--muted); font-size: .95rem; }

/* Contact / legal notice */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding-bottom: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h2 { font-size: 1.2rem; font-weight: 700; color: #9ad6ff; }
.card dl { margin: 0; }
.card dt { color: var(--muted); font-size: .85rem; margin-top: .6rem; }
.card dt:first-child { margin-top: 0; }
.card dd { margin: 0; }

/* 404 */
.notfound { padding-top: 6rem !important; padding-bottom: 6rem !important; }

/* Footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .95rem; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.footer-inner strong { color: var(--text); }
.footer-inner .eyebrow { margin-bottom: .4rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: flex-start; }
.footer-copy { max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem 2rem; font-size: .85rem; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem !important; }
  .hero-media { order: -1; }
  .product, .product:nth-child(even) { grid-template-columns: 1fr; padding: 0 1.25rem 1rem; }
  .product:nth-child(even) .product-media { order: 0; }
  .product-media { margin: 0 -1.25rem; }
  .product-body { padding-top: 0; }
  .timeline, .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .timeline, .card-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .content > section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
