/* ============================================================
   RoomSense IQ Website — styles.css
   ============================================================ */

/* ── Fade-up on scroll ── */
[data-fade] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-fade].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-fade][data-delay="1"] { transition-delay: 0.10s; }
[data-fade][data-delay="2"] { transition-delay: 0.20s; }
[data-fade][data-delay="3"] { transition-delay: 0.30s; }
[data-fade][data-delay="4"] { transition-delay: 0.40s; }
[data-fade][data-delay="5"] { transition-delay: 0.50s; }
@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1; transform: none; transition: none; }
}

/* ── Fonts — self-hosted (TT Hoves Pro) ── */
@font-face {
  font-family: 'TT Hoves Pro';
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  src: url('roomsense-files/fonts/tt-hoves-pro-regular.woff2') format('woff2'),
       url('roomsense-files/fonts/tt-hoves-pro-regular.woff') format('woff');
}
@font-face {
  font-family: 'TT Hoves Pro';
  font-weight: bold;
  font-style: normal;
  font-display: swap;
  src: url('roomsense-files/fonts/tt-hoves-pro-demi-bold.woff2') format('woff2'),
       url('roomsense-files/fonts/tt-hoves-pro-demi-bold.woff') format('woff');
}

/* ── Design Tokens ── */
:root {
  --gold:              #1DB88A;
  --gold-dark:         #179970;
  --black:             #000;
  --white:             #fff;
  --charcoal:          rgb(33, 36, 38);
  --gray-light:        rgb(245, 244, 242);
  --gray-mid:          rgb(191, 194, 197);
  --text:              rgb(0, 0, 0);
  --radius-sm:         8px;
  --radius-md:         15px;
  --radius-pill:       32px;
  --max-w:             1728px;
  --header-h:          157px;
  --header-h-scrolled: 80px;
  --font:              'TT Hoves Pro', 'TT Hoves', system-ui, -apple-system, sans-serif;
  --transition:        0.35s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 20px; }
body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ── Utilities ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 90px;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15px;
  line-height: 1.4;
  transition: opacity var(--transition);
  touch-action: manipulation;
}
.btn:hover { opacity: 0.75; }
.btn-gold  { background: var(--gold); color: var(--white); }
.btn-outline {
  border: 2px solid var(--black);
  color: var(--black);
  background: transparent;
}
.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
}
.section-body {
  font-size: 25px;
  line-height: 1.4;
  max-width: 600px;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: transparent;
  height: var(--header-h);
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  align-items: center;
  transition: top 0.35s ease, height 0.35s ease, padding 0.35s ease,
              box-shadow 0.35s ease, background 0.35s ease;
}

/* At the top: pull logo up to match nav position */
body:not(.page-scrolled) .header-logo {
  position: absolute;
  top: 28px;
  left: 90px;
}

/* At the top: hide only the right controls */
body:not(.page-scrolled) .header-right {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
body.page-scrolled .header-right {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}

/* At the top: nav sits over video area (right side) — white text */
body:not(.page-scrolled) .header-nav {
  position: absolute;
  top: 28px;
  right: 90px;
  transition: opacity 0.35s ease;
}
body:not(.page-scrolled) .header-nav a {
  color: #0A1628;
}
body:not(.page-scrolled) .header-nav a:hover {
  color: #1DB88A;
}

/* Scrolled down: white background, shrink, hide off-screen */
body.page-scrolled .site-header {
  background: var(--white);
  height: var(--header-h-scrolled);
  padding-top: 20px;
  padding-bottom: 20px;
  top: calc(-1 * var(--header-h-scrolled));
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

/* Scrolling up: slide back into view */
body.page-scrolled.header-fixed .site-header {
  top: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header-logo img {
  height: 56px;
  width: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header-nav a {
  font-size: 20px;
  font-weight: 500;
  color: #0A1628;
  padding: 10px;
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--gold); }
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-switcher {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.lang-switcher:hover { color: var(--gold); }
.lang-switcher svg { width: 14px; height: 14px; }

/* Hamburger — hidden on desktop, shown via media query on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  padding: 10px;
  margin-left: 10px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─────────────────────────────────────────
   MOBILE MENU OVERLAY
───────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 88px 40px 60px;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
body.menu-open { overflow: hidden; }

.mobile-nav {
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  font-size: 28px;
  font-weight: 400;
  color: #0A1628;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: block;
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] { color: var(--gold); padding-left: 8px; }
.mobile-menu-contact {
  margin-top: 40px;
  font-size: 15px;
  color: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu-contact a {
  color: #0A1628;
  font-size: 15px;
  transition: color var(--transition);
}
.mobile-menu-contact a:hover { color: var(--gold); }

/* Hamburger → X animation when menu is open */
body.menu-open .hamburger span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}
body.menu-open .hamburger span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */

/* Outer section — white bg, aspect ratio matches original 2100×1367 at desktop */
.hero {
  position: relative;
  background: #fff;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero { aspect-ratio: unset; height: calc(100vw * 1367 / 2100 - 200px); }
}

/* ── Media wrap: covers entire hero, holds shapes + video ── */
.hero-media-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── Media div: white left strip (::before) + white bottom strip (::after) ── */
.hero-media {
  position: relative;
  width: 100%;
  height: 100%;
}

/* White left strip — sits over the left portion, z-index 1 */
.hero-media::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 21.5vw;
  height: 100%;
  background: #fff;
  z-index: 1;
}

/* White bottom strip — full width across bottom, z-index 1 */
.hero-media::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 10.5vw;
  background: #fff;
  z-index: 1;
}

/* ── Video container: top-right, excludes the white left/bottom strips ── */
.hero-video-container {
  position: absolute;
  top: 0; right: 0;
  width: calc(100% - 21.5vw);
  height: calc(100% - 10.5vw);
}

/* Video inner — fills its container */
.hero-video-inner {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.hero-video-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── SVG wave shapes — z-index 100 (above white strips, below headline) ── */
.hero-shape-top,
.hero-shape-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 100;
}
.hero-shape-top    { top: 0; }
.hero-shape-bottom { bottom: 0; }

.hero-shape-top img,
.hero-shape-bottom img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Headline: absolute top-left, starts below header, z-index 110 ── */
.hero-headline {
  position: absolute;
  left: 0;
  top: calc(var(--header-h) + 35px);
  width: 100%;
  z-index: 110;
}

/* Inner container: max-width 1728px centred, 90px horizontal padding */
.hero-headline-inside {
  max-width: 1728px;
  margin: 0 auto;
  padding: 0 90px;
}

/* H1 — 100px, weight 400, black, offset -4px left (matches original) */
.hero-h1 {
  font-size: 100px;
  font-weight: 400;
  line-height: 1.1;
  color: #000;
  margin: 0;
  max-width: 960px;
  position: relative;
  left: -4px;
}

/* H2 — 40px, weight 400, black */
.hero-h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
  margin-top: 15px;
  margin-bottom: 0;
  max-width: 960px;
}

/* Body paragraph — 25px, max-width 635px */
.hero-body {
  font-size: 25px;
  line-height: 1.27;
  color: #000;
  max-width: 635px;
  margin-top: 35px;
  margin-bottom: 0;
}

/* ── Responsive: tighten white-panel width at specific breakpoints ── */
@media (min-width: 1240px) and (max-width: 1399px) {
  .hero-media::before       { width: 21.88vw; }
  .hero-video-container     { width: calc(100% - 21.88vw); }
}

@media (min-width: 1400px) and (max-width: 2099px) {
  .hero-media::before       { width: 21.99vw; }
  .hero-media::after        { height: 10.95vw; }
  .hero-video-container     { width: calc(100% - 21.99vw); height: calc(100% - 10.95vw); }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .hero-media::after        { height: 10.85vw; }
  .hero-video-container     { height: calc(100% - 10.85vw); }
}

@media (min-width: 2100px) {
  .hero-media::before       { width: 466px; }
  .hero-media::after        { height: 232px; }
  .hero-video-container     { width: 1636px; height: 1136px; }
}

/* ─────────────────────────────────────────
   TRUST STRIP
───────────────────────────────────────── */
.trust-strip {
  background: var(--white);
  padding: 60px 0 50px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.trust-strip .container { display: flex; flex-direction: column; gap: 36px; }
.trust-heading {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
}
.logo-track-wrap {
  overflow: hidden;
  position: relative;
}
.logo-track-wrap::before,
.logo-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.logo-track-wrap::before { left: 0;  background: linear-gradient(to right, #fff, transparent); }
.logo-track-wrap::after  { right: 0; background: linear-gradient(to left,  #fff, transparent); }

.logo-track {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: scroll-logos 40s linear infinite;
  width: max-content;
}
.logo-track:hover { animation-play-state: paused; }
.logo-track img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity var(--transition), filter var(--transition);
  flex-shrink: 0;
}
.logo-track img:hover { filter: none; opacity: 1; }

@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   VALUE PROPS  (tile grid)
   Layout: Image(50%) | Tile(25%) | Tile(25%)
           Tile(25%)  | Tile(25%) | Image(50%)
───────────────────────────────────────── */
.value-props {
  padding: 0;
  background: var(--white);
}
.value-grid {
  display: flex;
  flex-wrap: wrap;
}
/* Text tile: 25% wide, square */
.value-card {
  flex: 0 0 25%;
  max-width: 25%;
  aspect-ratio: 1 / 1;
  background: #1A3A5C;
  padding: 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
/* Alternate tile colors: image | #1A3A5C | #E8F7F2 | #1A3A5C | #E8F7F2 | image */
.value-grid > .value-card:nth-child(3),
.value-grid > .value-card:nth-child(5) {
  background: #E8F7F2;
}
/* Heading: span, 40px, margin-bottom 35px */
.value-card-title {
  display: block;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 35px;
}
.value-card p {
  font-size: 25px;
  line-height: 1.4;
  color: var(--white);
}
/* Light tiles need dark text */
.value-grid > .value-card:nth-child(3) .value-card-title,
.value-grid > .value-card:nth-child(5) .value-card-title,
.value-grid > .value-card:nth-child(3) p,
.value-grid > .value-card:nth-child(5) p {
  color: #1A3A5C;
}
/* Image tile: 50% wide */
.value-card-image {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  overflow: hidden;
}
.value-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────
   WHAT IS ROOMSENSE IQ
───────────────────────────────────────── */
.what-is {
  padding: 0;
}
.what-is-grid {
  display: flex;
  min-height: 600px;
}
/* Left: square image fills full column */
.what-is-media {
  flex: 0 0 50%;
  max-width: 50%;
}
.what-is-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Right: warm grey panel, content bottom-aligned */
.what-is-content {
  flex: 0 0 50%;
  max-width: 50%;
  background: rgba(213, 206, 198, 0.5);
  padding: 100px;
  display: flex;
  align-items: flex-end;
}
.what-is-content-inner {
  max-width: 550px;
  width: 100%;
}
.what-is-content h2 {
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 50px;
}
.what-is-content p {
  font-size: 25px;
  line-height: 1.4;
  margin-bottom: 50px;
}

/* Original circle-arrow button (button--normal style) */
.btn-circle-arrow {
  position: relative;
  display: inline-block;
  padding: 7px 10px 7px 51px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--black);
  transition: padding var(--transition), color var(--transition);
}
.btn-circle-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  transition: width var(--transition), height var(--transition);
}
.btn-circle-arrow:hover { padding-left: 74px; }
.btn-circle-arrow:hover::before { width: 39px; height: 39px; }
.btn-circle-arrow__circle {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 10px;
  overflow: hidden;
  transition: width var(--transition), left var(--transition);
}
.btn-circle-arrow:hover .btn-circle-arrow__circle { width: 45px; left: 20px; }
.btn-circle-arrow__circle svg {
  width: 45px;
  height: 10px;
  display: block;
}

/* ─────────────────────────────────────────
   ROOMSENSE SYSTEM
───────────────────────────────────────── */
.roomsense-system {
  padding: 100px 0;
  background: var(--white);
}
.system-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}
.system-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.system-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.system-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.system-card:hover img { transform: scale(1.04); }
.system-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 32px 16px 14px;
}
.system-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.system-logos img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity var(--transition), filter var(--transition);
}
.system-logos img:hover { filter: none; opacity: 1; }

/* ─────────────────────────────────────────
   FOR WHOM
───────────────────────────────────────── */
.for-whom {
  padding: 100px 0;
  background: var(--gray-light);
}
.for-whom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.for-whom-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.for-whom-images img {
  border-radius: var(--radius-sm);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.for-whom-images img:first-child {
  aspect-ratio: 2/1;
  grid-column: 1 / -1;
}
.for-whom-text p { font-size: 25px; line-height: 1.7; color: rgba(0,0,0,0.75); margin-bottom: 20px; }

/* ─────────────────────────────────────────
   HOW IT WORKS  (.teaser.row.reverse replica)
   DOM order: media first → content second
   flex-direction: row-reverse → media RIGHT, content LEFT
───────────────────────────────────────── */
.how-works { padding: 0; background: var(--white); }

.teaser-how-works {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
}

/* ── Video column (right) ── */
.teaser-hw__media {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  aspect-ratio: 1 / 1;   /* square at ≥1400px, like original */
  overflow: hidden;
  background: var(--charcoal);  /* fallback while video loads */
}
.teaser-hw__video-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.teaser-hw__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* poster shown until video starts */
.teaser-hw__poster {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ── Content column (left) ── */
.teaser-hw__content {
  flex: 0 0 50%;
  max-width: 50%;
  background: rgba(213, 206, 198, 0.5);   /* --brand-grey-o5 */
  padding: 100px;
  display: flex;
  align-items: flex-end;   /* bottom-xl: content sits at bottom */
}
.teaser-hw__inside { width: 100%; }
.teaser-hw__inside h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 50px;
}
.teaser-hw__inside p {
  font-size: 25px;
  line-height: 1.4;
  color: var(--black);
}

/* ─────────────────────────────────────────
   ROOMSENSE BANNER  ("More patient safety…")
   Faithful replica of .banner--image from original
───────────────────────────────────────── */
.roomsense-banner {
  position: relative;
  background: var(--white);
}
/* Desktop: background SVG is in normal flow — its natural height sets the section height.
   Content container is absolutely centred on top. */
.roomsense-banner__bg {
  line-height: 0;       /* collapse whitespace so image sits flush */
}
.roomsense-banner__bg img {
  display: block;
  width: 100%;
  height: auto;
}
.roomsense-banner__container {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 2;
  transform: translateY(-50%);
  padding-left: 10.9%;
  padding-right: 10.9%;
}
.roomsense-banner__heading {
  font-size: 100px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  margin: 0;
  max-width: 960px;
}

/* ─────────────────────────────────────────
   NEWS
───────────────────────────────────────── */
.news {
  padding: 100px 0;
  background: var(--gray-light);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.news-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 28px 24px 32px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-size: 16px;
  color: var(--black);
  font-weight: 400;
  margin-bottom: 10px;
}
.news-card-body h3 {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 12px;
}
.news-card-body p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0,0,0,0.65);
  flex: 1;
  margin-bottom: 24px;
}
.news-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition), gap var(--transition);
}
.news-link:hover { color: var(--gold); gap: 10px; }
.news-link svg { width: 14px; height: 14px; }

/* ─────────────────────────────────────────
   WHO IS ROOMSENSE
───────────────────────────────────────── */
.who-is {
  padding: 100px 0;
  background: var(--white);
}
.who-is-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.who-is-text p {
  font-size: 25px;
  line-height: 1.7;
  color: rgba(0,0,0,0.75);
  margin-bottom: 20px;
}
.who-is-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ─────────────────────────────────────────
   SOCIAL FEED
───────────────────────────────────────── */
.social-feed {
  padding: 100px 0;
  background: var(--gray-light);
}
.social-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.social-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.social-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.social-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
}
.social-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.social-card:hover .social-card-img img { transform: scale(1.05); }
.social-card-body {
  padding: 16px;
}
.social-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.social-platform {
  width: 20px;
  height: 20px;
  background: #0077B5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-platform svg { width: 12px; height: 12px; fill: white; }
.social-date { font-size: 12px; color: var(--gray-mid); }
.social-card-body p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0,0,0,0.75);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.show-more-wrap { text-align: center; margin-top: 36px; }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-section {
  position: relative;
  padding: 0;
  background: #0A1628;
}
/* Top wave: white page → gold section */
.contact-wave-top {
  display: block;
  line-height: 0;
  background: #1A3A5C;   /* background behind the SVG wave shape */
  width: 100%;
}
.contact-wave-top img {
  display: block;
  width: 100%;
  height: auto;              /* let SVG scale naturally — no object-fit */
}
.contact-inner {
  background: #0A1628;
  padding: 80px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-text h2 {
  font-size: 40px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.contact-text p {
  font-size: 25px;
  color: rgba(255,255,255,0.90);
  margin-bottom: 32px;
  line-height: 1.6;
}
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  transition: opacity var(--transition);
}
.contact-link:hover { opacity: 0.75; }
.contact-link svg { width: 18px; height: 18px; fill: var(--white); flex-shrink: 0; }
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.contact-form-card h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; position: relative; }
.form-group:has(input[required])::after,
.form-group:has(textarea[required])::after {
  content: '*';
  color: #c0392b;
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}
.form-group textarea { height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { width: 100%; padding: 16px; font-size: 16px; font-weight: 700; border-radius: var(--radius-sm); }
/* Bottom wave: gold section → white footer */
.contact-wave-bottom {
  display: block;
  line-height: 0;
  background: var(--gold);   /* gold behind the SVG so the cutout reveals white */
  width: 100%;
}
.contact-wave-bottom img {
  display: block;
  width: 100%;
  height: auto;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 28px;
  width: auto;
  filter: brightness(10);
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.footer-social a:hover { border-color: var(--gold); background: var(--gold); }
.footer-social svg { width: 16px; height: 16px; fill: white; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-col li a:hover { color: var(--gold); }
.footer-contact a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.scroll-top {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
  cursor: pointer;
}
.scroll-top:hover { opacity: 0.80; }
.scroll-top svg { width: 18px; height: 18px; fill: var(--white); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* ── Tablet / Mobile (≤1024px) ── */
@media (max-width: 1024px) {
  /* Compact header — always the same height, no giant padding */
  :root { --header-h: 72px; --header-h-scrolled: 72px; }
  .site-header {
    z-index: 200;           /* above mobile menu overlay (z-index 150) */
    height: 72px;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  }

  /* Logo: keep in normal flex flow so space-between works correctly */
  body:not(.page-scrolled) .header-logo {
    position: static;
  }
  /* Remove the desktop absolute-positioned nav (hidden on mobile anyway) */
  body:not(.page-scrolled) .header-nav { display: none; }

  /* Header-right always visible (not faded out at top of page) */
  body:not(.page-scrolled) .header-right {
    opacity: 1;
    pointer-events: auto;
  }

  /* Show hamburger, hide desktop nav */
  .hamburger { display: flex; }
  .header-nav { display: none; }

  /* Container padding */
  .container { padding-inline: 40px; }

  /* Section padding */
  .roomsense-system,
  .for-whom,
  .news,
  .who-is,
  .social-feed { padding: 70px 0; }

  /* Value tile grid: 2 text tiles per row */
  .value-card       { flex: 0 0 50%; max-width: 50%; }
  .value-card-image { flex: 0 0 100%; max-width: 100%; min-height: 320px; aspect-ratio: auto; }

  /* System section */
  .system-intro { grid-template-columns: 1fr; }

  /* For-whom */
  .for-whom-grid { gap: 40px; }

  /* Who is */
  .who-is-grid { gap: 48px; }

  /* Contact */
  .contact-grid { gap: 48px; }

  /* Social */
  .social-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* What is / how works — reduce padding */
  .what-is-content  { padding: 60px 48px; }
  .teaser-hw__content { padding: 60px 48px; }
}

/* ── Hero: give it height below 992px (normally set by aspect-ratio at ≥992px) ── */
@media (max-width: 991px) {
  .hero { min-height: 65vw; }
}

/* Banner breakpoints — mirrors original banner--image responsive CSS */
@media (max-width: 1239px) and (min-width: 992px) {
  .roomsense-banner__container { padding-left: 90px; padding-right: 90px; }
  .roomsense-banner__heading   { font-size: 70px; }
}
@media (max-width: 991px) and (min-width: 768px) {
  .roomsense-banner__container { padding-left: 50px; padding-right: 50px; }
  .roomsense-banner__heading   { font-size: 60px; }
}

/* How it works — tablet: 16:9 video, reduced padding */
@media (max-width: 991px) and (min-width: 768px) {
  .teaser-hw__media  { aspect-ratio: 16 / 9; }
  .teaser-hw__content { padding: 50px 50px 90px; align-items: flex-start; }
}

@media (max-width: 1200px) {
  .hero-h1 { font-size: clamp(48px, 7vw, 100px); }
}

@media (max-width: 768px) {
  .container { padding-inline: 24px; }

  /* Logo absolute offset — already static on mobile from ≤1024px rule */

  /* Hero — full-width media on mobile */
  .hero { min-height: 85vh; }
  .hero-media::before {
    /* Replace solid white strip with gradient — readable text, full-width image */
    width: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.55) 55%, rgba(255,255,255,0) 80%);
  }
  .hero-media::after { height: 100px; }
  .hero-video-container {
    width: 100%;
    height: calc(100% - 100px);
  }
  .hero-headline { top: calc(var(--header-h) + 24px); }
  .hero-headline-inside { padding: 0 24px; }
  .hero-h1 { font-size: clamp(36px, 10vw, 56px); left: 0; }
  .hero-h2 { font-size: clamp(20px, 5vw, 30px); }
  .hero-body { font-size: 18px; margin-top: 20px; }

  /* Section typography */
  .section-title { font-size: clamp(24px, 6vw, 32px); }
  .section-body  { font-size: 18px; }

  /* How it works — stack vertically */
  .teaser-hw__media,
  .teaser-hw__content { flex: 0 0 100%; max-width: 100%; }
  .teaser-hw__media   { aspect-ratio: 16 / 9; }
  .teaser-hw__content { padding: 48px 24px 64px; align-items: flex-start; }
  .teaser-hw__inside h2 { font-size: 28px; margin-bottom: 24px; }
  .teaser-hw__inside p  { font-size: 18px; }

  /* Banner */
  .roomsense-banner__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }
  .roomsense-banner__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .roomsense-banner__container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 80px 24px;
    z-index: 2;
  }
  .roomsense-banner__heading { font-size: clamp(28px, 8vw, 48px); }

  /* What is */
  .what-is-grid { flex-direction: column; min-height: auto; }
  .what-is-media,
  .what-is-content { flex: 0 0 100%; max-width: 100%; }
  .what-is-content { padding: 48px 24px; align-items: flex-start; }
  .what-is-content h2,
  .what-is-content p { font-size: 18px; }

  /* Grids */
  .for-whom-grid,
  .who-is-grid,
  .contact-grid,
  .system-intro { grid-template-columns: 1fr; gap: 32px; }

  /* Value cards */
  .value-card       { flex: 0 0 100%; max-width: 100%; aspect-ratio: auto; padding: 48px 24px; }
  .value-card-image { flex: 0 0 100%; max-width: 100%; min-height: 260px; }
  .value-card-title { font-size: 28px; margin-bottom: 20px; }
  .value-card p     { font-size: 18px; }

  /* News, social, footer */
  .news-grid   { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* System section */
  .system-cards { grid-template-columns: 1fr; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }
  .contact-text h2  { font-size: 28px; }
  .contact-text p   { font-size: 18px; }

  /* For-whom */
  .for-whom-images { grid-template-columns: 1fr; }
  .for-whom-images img:first-child { grid-column: 1; }
  .for-whom-text p { font-size: 18px; }

  /* Who is */
  .who-is-text p { font-size: 18px; }
}

@media (max-width: 480px) {
  .social-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 32px; }
  .hero-h2 { font-size: 18px; }
  .mobile-nav a { font-size: 22px; padding: 16px 0; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
  .mobile-menu { padding: 84px 24px 48px; }
}
