/*
Theme Name: OTUS 2026
Theme URI: https://otusworld.com
Description: OTUS brand site, 2026 redesign. Child of the "otus" theme: keeps its product registration and inquiry handlers.
Author: OTUS World
Template: otus
Version: 1.0.0
Text Domain: otus-2026
*/

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}


:root {
  --stone: #ecebe7;      /* page ground: low-chroma stone */
  --stone-2: #e2e0db;    /* one tone step down */
  --paper: #ffffff;      /* product panels: matches white-background product shots */
  --ink: #16181a;
  --ink-2: #4f5357;      /* secondary text on stone / paper */
  --night: #17191b;      /* dark band */
  --night-2: #222528;
  --on-night: #f1f0ec;
  --on-night-2: #b9b6ae;
  --brass: #9a7430;      /* accent: from the brass finish; links, focus, selection */
  --brass-light: #d6b878;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 3.75rem);
  --step-display: clamp(3rem, 1rem + 8vw, 8.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden]:not(img) { display: none !important; }
/* grid children may shrink below their content width (wide images, thumbnails, tables) */
.pdp > *, .split > *, .flagship > *, .hero-grid > *, .help-grid > *, .register-grid > *, .warranty > *, .section-head > *, .footer-grid > * { min-width: 0; }
::selection { background: var(--brass-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--brass); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* type */
.display, h1, h2, h3 { font-variation-settings: "wdth" 118; font-weight: 560; margin: 0; text-wrap: balance; }
.display { font-size: var(--step-display); line-height: 0.94; letter-spacing: -0.035em; }
h1 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: var(--step-lead); line-height: 1.4; color: var(--ink-2); max-width: 40ch; }
.small { font-size: var(--step-small); color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* buttons: square, named for the action */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.4em;
  background: var(--ink); color: var(--stone);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--ink); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--light { background: var(--on-night); color: var(--ink); border-color: var(--on-night); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #2c2f33; }
  .btn--ghost:hover { background: var(--ink); color: var(--stone); }
  .btn--light:hover { background: #fff; }
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* header */
.topbar { background: var(--night); color: var(--on-night-2); font-size: var(--step-small); }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 1.6em; min-height: 36px; align-items: center; flex-wrap: wrap; }
.topbar a { color: var(--on-night); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header { background: var(--stone); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo { display: block; padding: 8px 0; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav a { text-decoration: none; font-weight: 500; padding: 12px 0; }
.nav a[aria-current="page"], .nav a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; background: none; border: 2px solid var(--ink); font: inherit; font-weight: 600; padding: 0 14px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--stone); flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; box-shadow: 0 12px 24px -12px rgba(22,24,26,.25); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.15rem; }
  .topbar .wrap { justify-content: flex-start; gap: 2px 14px; padding-block: 6px; }
  .topbar .wrap > a { display: none; }
  .facts li { grid-template-columns: 6.5em 1fr; }
}

/* hero */
.hero { padding: clamp(32px, 6vw, 88px) 0 0; }
.hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.hero .display { max-width: 11ch; }
.hero-copy { display: grid; gap: 28px; align-content: end; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-strip { margin-top: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--stone-2); }
@media (max-width: 760px) {
  .hero-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
  .hero-strip img { scroll-snap-align: start; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: end; }
}

/* sections */
.section { padding: clamp(64px, 9vw, 140px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 960px) { .section-head { grid-template-columns: 1.35fr 1fr; align-items: end; } .section-head p { margin: 0; } }

/* flagship */
.flagship { display: grid; background: var(--paper); }
.flagship-photo { position: relative; aspect-ratio: 1 / 1; background: var(--paper); }
.flagship-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 220ms var(--ease-out); }
.flagship-photo img[hidden] { display: block; opacity: 0; pointer-events: none; }
.flagship-body { padding: clamp(24px, 4vw, 64px); display: grid; gap: 22px; align-content: center; }
@media (min-width: 960px) { .flagship { grid-template-columns: 1.1fr 1fr; } }

.finishes { display: flex; gap: 10px; flex-wrap: wrap; }
.finish {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 10px;
  background: var(--stone); border: 2px solid transparent; font: inherit; font-size: 1rem; cursor: pointer; color: var(--ink);
}
.finish[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.swatch { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.swatch--grey { background: #5d6166; }
.swatch--brass { background: linear-gradient(135deg, #c9a45c, #8d6a2b); }
.swatch--black { background: #1b1c1e; }
.swatch--white { background: #f4f4f2; box-shadow: inset 0 0 0 1px #c9c7c1; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; font-size: 1rem; }
.facts li span:first-child { color: var(--ink-2); }

.links-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; padding: 10px 0; }

/* other lamps */
.lamps { display: grid; gap: clamp(16px, 2vw, 24px); margin-top: clamp(16px, 2vw, 24px); }
@media (min-width: 760px) { .lamps { grid-template-columns: repeat(3, 1fr); } }
.lamp { background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.lamp-photo { display: block; aspect-ratio: 1 / 1; background: var(--paper); }
.lamp-photo img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.lamp-body { padding: 0 clamp(20px, 2.4vw, 32px) clamp(24px, 2.8vw, 36px); display: grid; gap: 14px; align-content: start; }
.lamp-body p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* help band (dark) */
.band { background: var(--night); color: var(--on-night); }
.band .lead, .band p { color: var(--on-night-2); }
.band a { color: var(--on-night); }
.help-grid { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 960px) { .help-grid { grid-template-columns: 1.2fr 1fr; } }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.help-list li { background: var(--night-2); padding: 22px 24px; display: grid; gap: 6px; }
.help-list strong { font-size: 1.1rem; font-weight: 600; color: var(--on-night); }
.help-list p { margin: 0; font-size: 1rem; }
.contact-big { display: grid; gap: 18px; align-content: start; }
.contact-big a { font-variation-settings: "wdth" 112; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); font-weight: 560; letter-spacing: -0.02em; text-decoration: none; }
.contact-big a:hover { text-decoration: underline; text-decoration-color: var(--brass-light); }

/* warranty */
.warranty { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .warranty { grid-template-columns: 1.35fr 1fr; } }

/* product page */
.crumbs { font-size: var(--step-small); color: var(--ink-2); padding-top: 24px; }
.crumbs a { color: var(--ink-2); }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: 24px 0 clamp(48px, 6vw, 96px); }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .pdp-info { position: sticky; top: 96px; } }
.gallery { display: grid; gap: 8px; }
.gallery-main { background: var(--paper); aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: var(--paper); aspect-ratio: 1 / 1; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: grid; gap: 24px; }
.pdp-info h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.buy { display: grid; gap: 10px; }
.buy .btn { width: 100%; justify-content: space-between; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 12px 0; }
.spec-table tr + tr th, .spec-table tr + tr td { border-top: 1px solid var(--stone-2); }
.spec-table th { font-weight: 500; color: var(--ink-2); width: 42%; padding-right: 16px; }
.pdp-sections { display: grid; gap: clamp(48px, 6vw, 96px); padding-bottom: clamp(64px, 8vw, 120px); }
.split { display: grid; gap: 24px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.35fr; } }
.steps { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: 14px; max-width: 60ch; }
.steps li::marker { font-weight: 600; }
.download {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--paper); padding: 20px 24px; text-decoration: none; font-weight: 600;
}
.download span.small { font-weight: 400; }

/* footer */
.site-footer { background: var(--night); color: var(--on-night-2); padding: clamp(48px, 6vw, 88px) 0 32px; font-size: 1rem; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--brass-light); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h3 { font-size: 1rem; font-variation-settings: "wdth" 100; font-weight: 600; color: var(--on-night); margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo { height: 46px; width: auto; filter: invert(1) brightness(0.95); }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2e3236; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--step-small); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- WordPress pages (legal, about, contact) ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.page-head { padding: clamp(32px, 6vw, 88px) 0 clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.5rem, 1rem + 5vw, 5.5rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 16ch; }
.page-head .lead { margin-top: 20px; }
.page-body { padding-bottom: clamp(64px, 9vw, 140px); }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); margin-top: 1.8em; margin-bottom: 0.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-decoration-thickness: 2px; }
.prose strong { font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.prose td, .prose th { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--stone-2); text-align: left; vertical-align: top; }

/* ---------- forms: registration + Contact Form 7 ---------- */
.form-panel { background: var(--paper); padding: clamp(24px, 4vw, 48px); max-width: 760px; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .wpcf7 label { font-weight: 600; font-size: 1rem; }
.field .hint { font-size: var(--step-small); color: var(--ink-2); }
.otus-form input[type="text"], .otus-form input[type="email"], .otus-form input[type="tel"], .otus-form input[type="date"], .otus-form select,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--stone); border: 2px solid transparent; border-radius: 0;
}
.wpcf7 textarea { min-height: 160px; }
/* Contact Form 7 sits on the stone page, not on a white panel: white fields so they stay visible */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { background: var(--paper); border-color: var(--stone-2); }
.otus-form input:focus, .otus-form select:focus, .wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.wpcf7 form > p { margin: 0 0 18px; }
.wpcf7 input[type="submit"], .otus-form button[type="submit"] {
  min-height: 48px; padding: 0 1.6em; background: var(--ink); color: var(--stone); border: 2px solid var(--ink);
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; border-radius: 0;
  transition: transform 160ms var(--ease-out);
}
.wpcf7 input[type="submit"]:active, .otus-form button[type="submit"]:active { transform: scale(0.97); }
.wpcf7 .wpcf7-not-valid-tip { color: #a33a2a; font-size: var(--step-small); margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 14px 16px; border: 0; background: var(--stone); }
.wpcf7 form.sent .wpcf7-response-output { background: #e3eedf; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: #f6e1dc; }

.alert { padding: 16px 18px; margin-bottom: 20px; font-size: 1rem; }
.alert-success { background: #e3eedf; color: #1f3b18; }
.alert-error { background: #f6e1dc; color: #5a1d12; }

.register-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1100px) { .register-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.register-aside { display: grid; gap: 20px; align-content: start; }

/* contact page: support block sits above the form */
.page-contact .prose h2:first-child { margin-top: 0; }

/* lamps page + lamp pages extras */
.pdp-note { font-size: 1rem; color: var(--ink-2); margin: 0; }
.not-found { padding: clamp(64px, 10vw, 160px) 0; }
