/* ==========================================================================
   HiStreamers — stylesheet for the main pages
   Sections: tokens · base · type · buttons · header · hero · bands ·
             components · forms · rent calculator · article · footer
   ========================================================================== */

@font-face {
  font-family: "Metropolitano";
  src: url("/wp-content/themes/streamvid/assets/font/metropolitano/Metropolitano-Regular.woff2") format("woff2"),
       url("/wp-content/themes/streamvid/assets/font/metropolitano/Metropolitano-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolitano";
  src: url("/wp-content/themes/streamvid/assets/font/metropolitano/Metropolitano-Medium.woff2") format("woff2"),
       url("/wp-content/themes/streamvid/assets/font/metropolitano/Metropolitano-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolitano";
  src: url("/wp-content/themes/streamvid/assets/font/metropolitano/Metropolitano-Bold.woff2") format("woff2"),
       url("/wp-content/themes/streamvid/assets/font/metropolitano/Metropolitano-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --ink: #00031c;          /* page base: the deepest navy */
  --navy: #191c33;         /* bands, header, footer */
  --plum: #120e2c;         /* raised panels */
  --violet: #7b61ff;
  --orange: #ff6600;
  --orange-soft: #ff8433;  /* hover */
  --orange-deep: #b54800;  /* orange for text on white */
  --text: #cccdd2;
  --muted: #9b9db0;
  --line: rgba(255, 255, 255, 0.12);
  --paper: #ffffff;
  --paper-ink: #14172e;
  --paper-text: #41445a;

  --font: "Metropolitano", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --r-lg: 32px;
  --r-md: 20px;
  --r-sm: 12px;
  --header-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-size: clamp(2.4rem, 0.9rem + 4.2vw, 4.4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
  /* long compound words (Swedish) must not run into the picture beside the headline */
  overflow-wrap: break-word;
  hyphens: auto;
}
.display-sm { font-size: clamp(2rem, 1.3rem + 2.5vw, 3.2rem); line-height: 1.1; }
.title {
  font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
.page-title {
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #fff;
  text-wrap: balance;
}
.subtitle { font-size: 1.3rem; line-height: 1.25; font-weight: 700; color: #fff; }
.accent { display: block; color: var(--orange); }
.kicker { font-style: italic; font-size: 0.95rem; }
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.28rem); line-height: 1.5; color: #fff; }
.measure { max-width: 42rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.7em;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-soft); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 3, 28, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.25s;
}
/* over the top of the page the bar is clear; it turns solid once you scroll */
.js .site-header.at-top:not(.nav-open)::before { opacity: 0; }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 44px); height: 100%; }
.logo { flex: none; display: block; }
.logo img { width: 178px; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 34px); margin-right: auto; }
.nav-links a {
  display: block; padding: 8px 0;
  font-weight: 500; font-size: 0.98rem; color: #fff; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-color: rgba(255, 255, 255, 0.45); }
.nav-links a[aria-current="page"] { border-color: var(--orange); }
.nav-home { display: none; }
.nav-tools { display: flex; align-items: center; gap: 16px; }
.lang {
  display: flex; padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  font-size: 0.82rem; font-weight: 700;
}
.lang a { padding: 6px 12px; border-radius: 999px; color: var(--text); text-decoration: none; }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: #fff; color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-left: auto; margin-right: -10px;
    background: none; border: 0; color: #fff; cursor: pointer;
  }
  .nav-toggle svg { width: 28px; height: 28px; }
  .nav-toggle .icon-close, .nav-open .nav-toggle .icon-menu { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .site-header.nav-open::before { background: var(--ink); }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
    padding: 4px var(--gutter) 28px;
    background: var(--ink); border-bottom: 1px solid var(--line);
  }
  .nav-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-home { display: block; }
  .nav-links a { padding: 15px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { border-color: var(--line); color: var(--orange); }
  .nav-tools { justify-content: space-between; padding-top: 22px; }
  /* without scripting there is no toggle, so the menu is simply laid out in the page */
  html:not(.js) .site-header { position: static; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { display: flex; position: static; flex-basis: 100%; padding: 0 0 8px; border: 0; background: none; }
}

/* ---------- hero ---------- */
.hero {
  padding: calc(var(--header-h) + clamp(36px, 6vw, 88px)) 0 clamp(56px, 7vw, 104px);
  background:
    linear-gradient(180deg, rgba(0, 3, 28, 0.7) 0, rgba(0, 3, 28, 0) 190px),
    linear-gradient(180deg, rgba(0, 3, 28, 0) 62%, var(--ink) 100%),
    linear-gradient(90deg, rgba(0, 3, 28, 0.84) 0, rgba(0, 3, 28, 0.52) 52%, rgba(0, 3, 28, 0.18) 100%),
    var(--hero-img, none) center / cover no-repeat,
    var(--ink);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5.5vw, 88px); align-items: center;
}
.hero-solo .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: clamp(280px, 30vw, 400px); }
.hero-copy { max-width: 41rem; }
.hero-copy > * + * { margin-top: 1rem; }
.hero-copy > .display + * { margin-top: 1.6rem; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.75);
}
.hero-media.portrait { max-width: 430px; justify-self: end; width: 100%; }
.hero-media.portrait img { aspect-ratio: 4 / 5; }
.hero-media.plain img { aspect-ratio: auto; object-fit: contain; max-height: 340px; width: auto; margin-inline: auto; border-radius: 0; box-shadow: none; }

/* The tracking frame: the orange box the system draws around a speaker on stage,
   here locking on to the hero picture as the page opens. */
.frame { position: relative; }
.frame::after {
  --c: 34px;
  content: ""; position: absolute; inset: -14px; pointer-events: none;
  border: 3px solid var(--orange);
  -webkit-mask:
    linear-gradient(#000 0 0) 0 0 / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) 100% 0 / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) 0 100% / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) 100% 100% / var(--c) var(--c) no-repeat;
  mask:
    linear-gradient(#000 0 0) 0 0 / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) 100% 0 / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) 0 100% / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) 100% 100% / var(--c) var(--c) no-repeat;
  animation: lock-on 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}
@keyframes lock-on {
  from { transform: scale(1.12); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* plain page top for pages without a hero picture */
.page-head {
  padding: calc(var(--header-h) + clamp(40px, 6vw, 84px)) 0 clamp(28px, 4vw, 52px);
  background:
    radial-gradient(1100px 420px at 88% -12%, rgba(123, 97, 255, 0.3), transparent 62%),
    radial-gradient(820px 380px at 8% -24%, rgba(214, 24, 156, 0.24), transparent 58%),
    var(--ink);
}
.page-head .lede { margin-top: 0.9rem; color: var(--text); }
.crumbs { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: #fff; }

/* ---------- bands ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-flush-top { padding-top: 0; }
.section-ruled { border-top: 1px solid var(--line); }
.bg-navy { background: var(--navy); }
.bg-smoke { background: url("/wp-content/uploads/2024/12/bg-smoke.jpg") center / cover no-repeat, var(--ink); }
.bg-glow { background: url("/wp-content/uploads/2024/12/Rectangle-52.png") center top / cover no-repeat, var(--ink); }
.bg-paper { background: var(--paper); color: var(--paper-text); }
.bg-paper .title, .bg-paper .subtitle { color: var(--paper-ink); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.link-more { font-weight: 700; color: #fff; text-decoration-color: var(--orange); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.link-more:hover { color: var(--orange); }
.centered { max-width: 46rem; margin-inline: auto; text-align: center; }
.centered > * + * { margin-top: 1rem; }

/* ---------- components ---------- */

/* four-up strip of icon + heading + line */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { padding: 4px clamp(18px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.feature:first-child { padding-left: 0; border-left: 0; }
.feature:last-child { padding-right: 0; }
.feature-icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 20px; }
.feature-title { font-size: 1.22rem; line-height: 1.25; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.feature p { font-size: 1rem; }

/* numbered steps: a real sequence, joined by a rail */
.steps { --gap: clamp(20px, 3vw, 44px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.step { position: relative; padding-top: 78px; counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
  font-weight: 700; font-size: 1.6rem; line-height: 56px; text-align: center;
}
.step::after {
  content: ""; position: absolute; top: 27px; left: 70px; right: calc(14px - var(--gap)); height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 102, 0, 0.12));
}
.step:last-child::after { display: none; }
.step-title { font-size: 1.22rem; line-height: 1.25; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.step p { font-size: 1rem; }

/* cards */
.cards { display: grid; gap: clamp(20px, 2.2vw, 32px); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column;
  padding: 12px; border-radius: 26px;
  background: var(--paper); color: var(--paper-text);
  box-shadow: 0 28px 64px -28px rgba(0, 0, 0, 0.7);
}
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: #f1f1f6; }
.card-img.wide { aspect-ratio: 16 / 9; }
.card-img.contain { object-fit: contain; background: #fff; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 22px 12px 12px; }
.card-title { font-size: 1.55rem; line-height: 1.15; font-weight: 700; color: var(--paper-ink); }
.card-foot { display: grid; gap: 18px; justify-items: start; margin-top: auto; padding-top: 8px; }
.card-note { font-weight: 700; line-height: 1.35; color: var(--orange-deep); }
.card-dark { background: var(--navy); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.card-dark .card-title { color: #fff; font-size: 1.3rem; }

.ticks { display: grid; gap: 0.5em; }
.ticks li { position: relative; padding-left: 1.7em; font-weight: 500; line-height: 1.4; }
.ticks li::before {
  content: ""; position: absolute; left: 0.1em; top: 0.3em;
  width: 0.85em; height: 0.45em;
  border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}
.card .ticks li { color: var(--paper-ink); }

/* client logos */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.logo-link { display: block; text-decoration: none; }
.logo-tile {
  display: grid; place-items: center; aspect-ratio: 8 / 5; padding: 0 17%;
  border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(135deg, #160a30 0%, #3a0d4e 100%);
  transition: border-color 0.2s;
}
.logo-tile img { width: 100%; height: 40%; object-fit: contain; }
.logo-link:hover .logo-tile { border-color: rgba(255, 255, 255, 0.35); }
.logo-name { display: block; margin-top: 12px; font-weight: 700; color: #fff; line-height: 1.3; }
.logo-url { display: block; font-size: 0.85rem; color: var(--muted); }
.logo-link:hover .logo-url { color: #fff; text-decoration: underline; }

/* text beside a picture or film */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-wide-media { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.split-copy > * + * { margin-top: 1rem; }
.split-copy > .kicker + * { margin-top: 0.6rem; }
.split-copy > .title + * { margin-top: 1.3rem; }
.split-copy > .btn { margin-top: 1.8rem; }
.split-media img { width: 100%; border-radius: var(--r-lg); }
.split-flip > .split-media { order: -1; }
.stack > * + * { margin-top: 1.25rem; }

.embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* labels (not buttons): outlined so they don't read as something to press */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { padding: 0.5em 1.15em; border: 2px solid var(--orange); border-radius: 999px; font-weight: 700; color: #fff; line-height: 1.3; }
.bg-paper .chips li { color: var(--paper-ink); }

/* panel holding a picture and text, edge to edge */
.panel-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border-radius: var(--r-lg); overflow: hidden; background: var(--plum); border: 1px solid var(--line); }
.panel-split > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.panel-copy { padding: clamp(28px, 5vw, 72px); align-self: center; }
.panel-copy > * + * { margin-top: 1rem; }
.panel-copy > .kicker + * { margin-top: 0.6rem; }

.figure-wide img { width: 100%; border-radius: var(--r-md); }
.figure-wide figcaption { margin-top: 1.25rem; max-width: 60rem; }

/* testimonial */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 80px); align-items: end; }
.quote blockquote { position: relative; padding-top: clamp(84px, 9vw, 124px); }
.quote blockquote::before {
  content: "\201C"; position: absolute; top: 0; left: -0.04em;
  font-size: clamp(8rem, 14vw, 12rem); line-height: 1; font-weight: 700; color: #fff;
  text-shadow: -4px 0 0 #ff2fb3, 4px 0 0 #2fd6ff;
}
.quote blockquote p { max-width: 27em; font-size: clamp(1.35rem, 1rem + 1.5vw, 2.15rem); line-height: 1.38; color: #fff; }
.quote figcaption { display: flex; align-items: center; gap: 18px; }
.quote figcaption img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.quote-name { display: block; font-weight: 700; font-size: 1.15rem; color: #fff; }
.quote-role { display: block; font-size: 0.92rem; max-width: 14em; line-height: 1.4; }

/* news */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.post-link { display: block; text-decoration: none; }
.post-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md); background: var(--navy); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-img img.top { object-position: top; }
.post-link:hover .post-img img { transform: scale(1.035); }
.post-img.is-film::after {
  content: ""; position: absolute; left: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300031c' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.post-date { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }
.post-title { margin-top: 6px; font-size: 1.25rem; line-height: 1.25; font-weight: 700; color: #fff; text-decoration: underline transparent 2px; text-underline-offset: 5px; transition: text-decoration-color 0.2s; }
.post-link:hover .post-title { text-decoration-color: var(--orange); }
.post-excerpt { margin-top: 8px; font-size: 0.98rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* ---------- forms ---------- */
.contact { max-width: 880px; margin-inline: auto; }
.contact-intro { margin-top: 1rem; margin-bottom: 2rem; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.col-12 { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.92rem; font-weight: 500; color: #fff; }
.field label.req::after { content: " *"; color: var(--orange); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06); color: #fff;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field textarea[readonly] { min-height: 0; border-style: dashed; color: var(--text); resize: none; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.55); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; border-radius: var(--r-sm); }
.field .wpcf7-not-valid { border-color: #ff8f8f; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: block; padding: 0.55em 1.15em;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  font-weight: 500; color: #fff;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.choice input:hover + span { border-color: #fff; }
.choice input:checked + span { background: #fff; border-color: #fff; color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.form-actions { display: flex; }
.wpcf7-response-output { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.05); color: #fff; }
.wpcf7-response-output:empty { display: none; }
.wpcf7-form.sent .wpcf7-response-output { border-color: #4fd08a; }
.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.failed .wpcf7-response-output { border-color: #ff8f8f; }

/* ---------- rent calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
.panel { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--navy); }
.panel > * + * { margin-top: 1.1rem; }
.panel-title { font-size: 1.3rem; line-height: 1.25; font-weight: 700; color: #fff; }
.panel-label { font-size: 0.92rem; color: var(--muted); }
.panel-sub { padding-top: 0.6rem; font-size: 1.05rem; font-weight: 700; color: #fff; }
.periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 0.6rem; }
.period {
  display: grid; align-content: center; gap: 2px; min-height: 68px; padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04); color: #fff; font-weight: 700; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.period small { font-size: 0.74rem; font-weight: 400; color: var(--muted); }
.period:hover { border-color: #fff; }
.period[aria-pressed="true"] { border-color: var(--orange); background: rgba(255, 102, 0, 0.14); box-shadow: inset 0 0 0 1px var(--orange); }
.addons { display: grid; gap: 10px; margin-top: 0.6rem; }
.addon {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04); color: #fff; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.addon:hover { border-color: #fff; }
.addon input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--orange); }
.addon:has(input:checked) { border-color: var(--orange); background: rgba(255, 102, 0, 0.14); }
.calc-sum { position: sticky; top: calc(var(--header-h) + 20px); }
.sum-rows { display: grid; gap: 10px; }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sum-row dt { font-size: 0.95rem; color: var(--muted); }
.sum-row dd { font-weight: 700; color: #fff; text-align: right; }
.sum-total { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.sum-total dd { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.1; color: var(--orange); }
.sum-row.is-soft dd { font-weight: 500; color: var(--text); }
.conditions { columns: 2; column-gap: 48px; margin-top: 1rem; }
.conditions li { position: relative; padding-left: 1.2em; margin-bottom: 0.5em; break-inside: avoid; }
.conditions li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ---------- article (newsletter) ---------- */
.article { max-width: 46rem; margin-inline: auto; }
.article > * + * { margin-top: 1.15em; }
.article h2 { margin-top: 2.6em; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.2; font-weight: 700; color: #fff; text-wrap: balance; }
.article h2:first-child { margin-top: 0; }
.article strong { color: #fff; font-weight: 500; }
.article a { color: #fff; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.article a:hover { color: var(--orange); }
.article figure { margin-top: 2em; }
.article figure img { width: 100%; border-radius: var(--r-md); }
.article figure a { display: block; }
.article figcaption { margin-top: 0.6em; font-size: 0.88rem; font-style: italic; color: var(--muted); }
.article .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.article blockquote { padding-left: 1.2em; border-left: 3px solid var(--orange); font-style: italic; }
.article blockquote > * + * { margin-top: 1em; }

/* ---------- not found ---------- */
.notfound { min-height: 46vh; display: grid; align-content: center; justify-items: start; gap: 1.6rem; }

/* ---------- footer ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 96px); background: var(--navy); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 80px); }
.creed { max-width: 27rem; margin-top: 28px; }
.creed dt { margin-top: 18px; font-weight: 500; color: #fff; }
.creed dd { font-style: italic; }
.footer-title { margin-bottom: 8px; font-size: 1rem; font-weight: 700; color: #fff; }
.footer-mail { font-weight: 700; color: #fff; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.footer-mail:hover { color: var(--orange); }
.social { display: flex; gap: 10px; margin-left: -8px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; color: #fff; }
.social a:hover { color: var(--orange); }
.social svg { width: 30px; height: 30px; }
.footer-bottom { margin-top: clamp(40px, 6vw, 72px); padding-block: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .split-wide-media, .quote, .calc, .panel-split { grid-template-columns: minmax(0, 1fr); }
  .hero-solo .hero-grid { min-height: 0; }
  .hero-media { max-width: 620px; }
  .hero-media.portrait { justify-self: start; }
  .split-flip > .split-media { order: 0; }
  .panel-split > img { min-height: 0; aspect-ratio: 16 / 10; }
  .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .feature, .feature:first-child, .feature:last-child { padding: 0; border: 0; }
  .step::after { display: none; }
  .cards-3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-sum { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --header-h: 66px; --r-lg: 24px; }
  body { font-size: 1rem; }
  .logo img { width: 150px; }
  .frame::after { inset: -9px; --c: 26px; }
  .features, .steps, .cards-4, .posts, .form, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-6 { grid-column: 1 / -1; }
  .periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conditions { columns: 1; }
  .article .pair { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
}

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