/* ==========================================================================
   Derm3Labs — static site stylesheet
   Palette and typography taken from the original Elementor kit.
   ========================================================================== */

/* ---------- Fonts (self-hosted variable fonts) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/roboto-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (Elementor kit #84) */
  --c-primary: #045C6B;        /* deep teal: buttons, headings, links */
  --c-primary-dark: #08485E;   /* eyebrow headings */
  --c-teal: #019F9E;           /* gradient end, hero button hover */
  --c-teal-2: #079E9D;         /* nav hover, footer tagline, icon hover */
  --c-accent: #55BDBC;         /* light teal: contact gradient start, focus ring */
  --c-green: #229631;          /* button + link hover */
  --c-green-dark: #0C5A23;     /* nav underline */
  --c-secondary: #54595F;      /* icon-box description */
  --c-muted: #7A7A7A;
  --c-text: #2B2B2B;
  --c-white: #FFFFFF;
  --c-input-bg: #D1EAEA;
  --c-divider-tint: #21C0631C;

  --font-heading: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Roboto", "Segoe UI", Arial, sans-serif;

  --container: 1140px;
  --gutter: 16px;
  --header-h: 92px;
  --radius: 10px;
  --shadow-card: 0 0 30px 0 rgba(0, 0, 0, 0.1);
  --shadow-card-strong: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  --ease: 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--ease); }
a:hover, a:focus-visible { color: var(--c-green); }
ul { margin: 0 0 1em; padding-left: 1.4em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-family: var(--font-heading); font-size: 60px; font-weight: 700; letter-spacing: -2px; color: var(--c-white); }
h2 { font-family: var(--font-heading); font-size: 52px; font-weight: 700; letter-spacing: -2px; }
h3 { font-family: var(--font-heading); font-size: 38px; font-weight: 700; }
h4 { font-family: var(--font-body); font-size: 28px; font-weight: 700; }
h5 { font-family: var(--font-body); font-size: 16px; font-weight: 700; }
h6 { font-family: var(--font-heading); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--c-primary-dark); }
label { font-weight: 700; line-height: 1.9; }
strong { font-weight: 700; }
sup { font-size: 0.55em; vertical-align: super; letter-spacing: 0; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--c-primary); color: #fff; padding: 8px 16px; border-radius: 0 0 5px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared components ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--c-white);
  background: var(--c-primary);
  border: 0;
  border-radius: 5px;
  padding: 15px 30px;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--ease), color var(--ease), transform var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--c-green); color: var(--c-white); }
.btn--hero:hover, .btn--hero:focus-visible { background: var(--c-teal); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-primary-dark);
  margin: 0 0 20px;
  line-height: 1.2;
}
.eyebrow--light { color: var(--c-white); }
.eyebrow--accent { color: var(--c-teal-2); }
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -2px;
  margin: 0 0 20px;
  color: var(--c-text);
}
.section-title--light { color: var(--c-white); }
.section-title--center { text-align: center; }

.divider {
  background: var(--c-divider-tint);
  margin: 0 0 20px;
  line-height: 0;
}
.divider span {
  display: inline-block;
  width: 50px;
  border-top: 2px solid var(--c-primary);
}

.rich-text { margin-bottom: 20px; }
.rich-text:last-child { margin-bottom: 0; }
.rich-text p:last-child, .rich-text ul:last-child { margin-bottom: 0; }

/* Shape dividers (Elementor "curve", negative) */
.shape {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  direction: ltr;
}
.shape--bottom { bottom: -1px; transform: rotate(180deg); }
.shape svg { display: block; width: calc(100% + 1.3px); height: 75px; position: relative; left: 50%; transform: translateX(-50%); }
.shape__fill { fill: var(--c-white); }
.shape--hero svg { height: 75px; }
.shape--hero .shape__fill { fill: var(--c-primary); }
.shape--contact svg { width: calc(125% + 1.3px); height: 200px; }

/* Invisible anchor targets, offset for the sticky header */
.anchor {
  display: block;
  position: relative;
  top: calc(-1 * var(--header-h));
  visibility: hidden;
  height: 0;
}
.anchor--clients { top: calc(-1 * var(--header-h) - 100px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  transition: box-shadow var(--ease);
}
.site-header.is-stuck { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08); }
.header__inner {
  display: grid;
  grid-template-columns: 20% 1fr 20%;
  align-items: center;
  min-height: var(--header-h);
}
.header__logo { display: block; padding: 10px 0; }
.header__logo img { width: 75%; max-width: 170px; }

.nav__list {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-block;
  position: relative;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  padding: 28px 0;
  margin: 0 14px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 100%;
  height: 1px;
  background: var(--c-green-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav__link:hover, .nav__link:focus-visible, .nav__link.is-active { color: var(--c-teal-2); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__cta { text-align: right; }

.menu-toggle {
  display: none;
  justify-self: end;
  background: none;
  border: 0;
  padding: 8px;
  font-size: 28px;
  color: var(--c-primary);
  cursor: pointer;
  line-height: 0;
}
.menu-toggle:hover { color: var(--c-teal-2); }
.menu-toggle svg { display: block; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--c-white);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { display: flex; }
.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  padding: 16px var(--gutter);
  border-top: 1px solid rgba(4, 92, 107, 0.08);
}
.mobile-menu__link:hover { color: var(--c-teal-2); }
.mobile-menu__link--cta { color: var(--c-white); background: var(--c-primary); border-radius: 0 0 5px 5px; text-align: center; }
.mobile-menu__link--cta:hover { color: var(--c-white); background: var(--c-green); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 10em 0 5em;
  z-index: 1;
  overflow: hidden;
  background: var(--c-white);
}
.hero__bg {
  position: absolute;
  inset: -20% 0;
  background: url("../assets/img/hero.jpg") top center / cover no-repeat;
  opacity: 0.75;
  will-change: transform;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.hero__card {
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 3em;
}
.hero__title {
  font-size: 48px;
  color: var(--c-primary);
  margin-bottom: 20px;
}

/* ---------- About ---------- */
.about {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-teal) 100%);
  color: var(--c-white);
  padding: 5em 0;
}
.about__inner { text-align: center; padding: 1em; }
.about__text { max-width: 980px; margin: 0 auto; color: var(--c-white); }

/* ---------- Product ---------- */
.product {
  position: relative;
  z-index: 0;
  margin-top: -52px;
  padding: 9em 0;
  overflow: hidden;
}
.product__mark {
  position: absolute;
  pointer-events: none;
  opacity: 0.2;
  background-repeat: no-repeat;
}
.product__mark--right {
  inset: 0;
  background-image: url("../assets/img/dm3-mark-2.png");
  background-position: top right;
  background-size: 25% auto;
}
.product__mark--left {
  inset: 0;
  background-image: url("../assets/img/dm3-mark-1.png");
  background-position: bottom left;
  background-size: 65% auto;
}
.product__inner {
  display: grid;
  grid-template-columns: 68% 1fr;
  gap: 2%;
  align-items: center;
}
.product__text {
  position: relative;
  padding: 3em;
}
.product__text > * { position: relative; }
.product__figure {
  margin: 0;
  padding: 5em 1em 1em;
}
.product__figure img {
  border-radius: 14px;
  width: 100%;
}

/* ---------- Lab photo band ---------- */
.band {
  position: relative;
  min-height: 800px;
  margin: -20px 0;
  overflow: hidden;
}
.band__bg {
  position: absolute;
  inset: -20% 0;
  background: url("../assets/img/lab.jpg") center center / 130% auto no-repeat;
  will-change: transform;
}

/* ---------- Clients ---------- */
.clients {
  position: relative;
  background: var(--c-white);
  padding: 5em 0 0;
}
.clients__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 20px;
  padding: 10px;
}
.clients__logo { display: inline-block; padding: 10px; transition: opacity var(--ease), transform var(--ease); }
.clients__logo:hover { opacity: 0.85; transform: translateY(-2px); }
.clients__logo img { margin: 0 auto; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-teal-2) 100%);
  padding: 5em 0 5em;
  min-height: 400px;
}
.contact__inner { padding: 10px 0; }
.contact__card {
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-strong);
  margin: 1em;
  padding: 2em;
}

.icon-box {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  margin-bottom: 20px;
}
.icon-box__icon {
  font-size: 40px;
  line-height: 0;
  color: var(--c-primary);
  transition: color var(--ease), transform var(--ease);
}
.icon-box:hover .icon-box__icon { color: var(--c-teal-2); animation: pop 0.3s linear; }
@keyframes pop {
  50% { transform: scale(1.2); }
}
.icon-box__content { display: flex; flex-direction: column; }
.icon-box__title {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-primary);
  margin-bottom: 5px;
}
.icon-box__desc { font-weight: 600; color: var(--c-secondary); }
.icon-box:hover .icon-box__desc { color: var(--c-teal-2); }

.contact-form { margin-top: 10px; }
.contact-form__row { margin-bottom: 14px; }
.contact-form label { display: block; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--c-primary);
  background: var(--c-input-bg);
  border: 1px solid transparent;
  border-radius: 5px;
  box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 0.1);
  padding: 10px 14px;
  line-height: 1.5;
  transition: background-color var(--ease), border-color var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--c-white);
  border-color: var(--c-accent);
}
.contact-form__status { min-height: 1.9em; margin: 0 0 6px; font-weight: 600; color: var(--c-primary); }
.contact-form__status.is-error { color: #b42318; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 10em; background: var(--c-white); }
.footer__inner { text-align: center; padding-top: 50px; }
.footer__logo { width: 20%; max-width: 240px; margin: 20px auto; }
.footer__nav { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer__nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0 26px;
  padding: 13px 0;
}
.footer__nav a:hover { color: var(--c-teal-2); }
.footer__copy { font-size: 14px; margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .container { max-width: 1024px; }
  .header__inner { grid-template-columns: 30% 1fr 35%; }
  .product__inner { grid-template-columns: 1fr; gap: 0; }
  .product__figure { padding: 0; margin: -20px 0 -50px; text-align: center; }
  .product__figure img { max-width: 51%; margin: 0 auto; }
  .contact { margin-top: -50px; }
  .contact__card { width: calc(50% - 2em); }
  .section-title--contact { font-size: 2em; }
  .contact .section-title { font-size: 2em; }
}

@media (max-width: 767px) {
  :root { --header-h: 72px; }
  h1 { font-size: 38px; }
  h2, .section-title { font-size: 28px; letter-spacing: -1px; }
  h4, .icon-box__title { font-size: 21px; }
  h5 { font-size: 14px; }
  h6, .eyebrow { font-size: 12px; }

  .header__inner { grid-template-columns: 1fr auto; }
  .header__logo img { width: auto; max-height: 52px; max-width: 150px; }
  .nav, .header__cta { display: none; }
  .menu-toggle { display: block; font-size: 22px; }

  .hero { padding: 0; margin: 1px 0; }
  .hero__bg { inset: 0; background-size: 100% auto; background-position: top center; opacity: 0.75; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { margin: 212px 0 70px; padding: 20px 16px; text-align: center; }
  .hero__title { font-size: 28px; letter-spacing: -1px; }
  .btn--hero { font-size: 1em; }
  .shape--hero svg { height: 40px; }

  .about { padding: 2em 0; }
  .product { margin-top: 15px; padding: 1em; }
  .product__text { padding: 1em; }
  .product__text .eyebrow, .product__text .section-title { text-align: center; }
  .product__text .divider { text-align: center; }
  .product__figure { margin: 0; padding: 1em 0 0; }
  .product__figure img { max-width: 100%; }

  .band { min-height: 510px; margin: 0; }
  .band__bg { inset: 0; background-size: cover; }

  .clients { padding: 1em; }
  .clients__grid { grid-template-columns: 1fr; }
  .clients__logo + .clients__logo { margin-top: 20px; }

  .contact { padding: 0 1em 6em; margin-top: 0; }
  .contact__inner { margin-top: -50px; padding: 0; }
  .contact__card { width: auto; margin: 1em 0 0; padding: 1em; }
  .icon-box { flex-direction: column; text-align: center; }
  .icon-box__icon { font-size: 35px; }
  .shape--contact svg { height: 80px; }

  .site-footer { padding-bottom: 4em; }
  .footer__logo { width: 75%; }
  .footer__nav a { font-size: 12px; margin: 0 6px; }
}
