/* ralfhouse.com prototype styles.
   Colours, type and component values are taken from the live ralfhouse.lv
   theme (Mozello fusion-green + HEAD typography / rh-hero / rh-typo), 26.11.2026.
   Do not invent new palette values. */

:root {
  /* fusion-green / layout.css + editable.css + computed on www.ralfhouse.lv */
  --green: #234C1F;
  --lime: #E9F09D;
  --page: #F0F7DE;
  --white: #FFFFFF;
  --text: #777777;
  --ink: #222222;
  --footer-text: #888888;
  --hero-btn-text: #1b1b1b;
  --section-1: #f5f6f4;
  --section-2: #395b50;
  --section-3: #1f322c;
  --hero-fallback: #cfe3f0;
  --yellow: #f5e100;
  --input: #F2F2F2;
  --price: #BC2F2F;

  --font: Rubik, Arial, Helvetica, sans-serif;
  --page-max: 1260px;   /* computed #header / #bottom max-width at 1440 */
  --content: 1180px;    /* inner content at 1440 (130px side inset) */
  --header-pad-y: 13px;
  --header-pad-x: 40px;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: underline; }
a:hover { color: var(--ink); text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green);
  color: var(--lime);
  padding: 0.6rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--page-max), 100%);
  margin-inline: auto;
  padding-inline: var(--header-pad-x);
  box-sizing: border-box;
}

/* ----- Header: white bar + dark green menu, as on ralfhouse.lv ----- */
.site-header { background: var(--white); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 69px;
  padding-block: var(--header-pad-y);
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.logo-mark {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
}
.wordmark {
  font-family: var(--font);
  font-size: 21.76px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0;
}
.top-phone {
  font-family: var(--font);
  font-size: 19.52px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink) !important;
  text-decoration: none !important;
  white-space: nowrap;
  margin-right: auto;
}
.top-phone:hover { color: var(--green) !important; }

/* Country flags: vertical column on the right edge of the hero */
.lang-flags {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 128px;
  margin: 0;
  padding: 20px 0 28px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  background: none;
}
.flag-btn {
  position: relative;
  display: block;
  width: 77px;
  height: 51px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  line-height: 0;
  text-decoration: none !important;
  flex: 0 0 auto;
}
.flag-btn svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.flag-btn:hover,
.flag-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.55),
    0 6px 12px rgba(0, 0, 0, 0.4);
}
.flag-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.menubox {
  background: var(--green);
}
.menubox .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding-inline: var(--header-pad-x);
}
.menubox a {
  display: block;
  background: var(--green);
  color: var(--lime);
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 500;
  line-height: 17px;
  text-transform: uppercase;
  letter-spacing: 0;
  text-decoration: none !important;
}
.menubox a:hover,
.menubox a[aria-current="page"],
.menubox a:focus-visible {
  background: var(--lime);
  color: var(--green);
}

/* Country hint */
.hint {
  display: none;
  background: var(--green);
  color: var(--lime);
  font-size: 15px;
  font-weight: 300;
}
.hint.is-visible { display: block; }
.hint .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 10px;
}
.hint p { margin: 0; }
.hint a { color: var(--white); font-weight: 500; }
.hint-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--lime);
  font: 500 15px/1.2 var(--font);
  text-transform: uppercase;
  cursor: pointer;
  padding: 5px 12px;
}

/* ----- Hero: full-bleed photo, centred white type, square white button ----- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-fallback);
  min-height: 600px;
  height: max(600px, min(56.25vw, 86vh));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  padding: 0;
}
.hero-visual,
.hero-visual picture,
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-visual img {
  object-fit: cover;
  object-position: center 70%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.5) 0, rgba(0,0,0,.28) 200px, rgba(0,0,0,0) 330px);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 48px 144px 0 16px;
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.hero .eyebrow { display: none; } /* live hero has no kicker above the H1 */
.hero h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

/* Hero / dark-section button: rh-btn rh-white */
.btn {
  display: inline-block;
  box-sizing: border-box;
  min-width: 220px;
  max-width: 100%;
  padding: 13px 22px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none !important;
  text-align: center;
  color: var(--hero-btn-text) !important;
  background: var(--white);
  border: 0;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.btn:hover { background: var(--lime); color: var(--green) !important; }

/* Desktop: the hero flag column already offers countries, so hide this CTA.
   It comes back below 900px, where the flags are hidden. */
.hero-copy .btn-row .btn { display: none; }

/* In-page green button (editable.css .moze-button on a light background) */
.btn-green {
  display: inline-block;
  box-sizing: border-box;
  min-width: 6.5em;
  padding: 0.55em 1em;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  color: var(--white) !important;
  background: var(--green);
  border: 0;
  border-radius: 0;
}
.btn-green:hover { background: var(--ink); color: var(--white) !important; }

.btn-text {
  color: var(--white);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: underline;
  padding: 13px 8px;
  font-size: 16px;
}
.btn-text:hover { color: var(--lime); text-decoration: none; }

/* Feature strip under the hero (rh-strip) */
.rh-strip {
  list-style: none;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 22px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.rh-strip li { list-style: none; margin: 0; padding: 0; }
.rh-strip li::before { content: "✓ "; }

/* ----- Sections ----- */
.band { padding: 48px 0; background: var(--white); }
.band-muted { background: var(--section-1); }
.band-dark {
  background: var(--section-2);
  color: var(--white);
}
.band-dark h2,
.band-dark h3,
.band-dark .section-kicker { color: var(--white); }
.band-page { background: var(--page); }

.section-kicker {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 8px;
}
.band-dark .section-kicker { color: var(--lime); }

h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 21.632px;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 20.8px;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}

.prose p { margin: 0 0 1.6em; color: var(--text); max-width: 40rem; font-weight: 300; }
.prose p:last-child { margin-bottom: 0; }
.band-dark .prose p { color: var(--white); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  aspect-ratio: 1 / 1; /* catalog thumbs on ralfhouse.lv are square */
}

/* Facts on section-bg-2 */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.fact {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.fact strong {
  display: block;
  font-family: var(--font);
  font-size: 20.8px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 8px;
  color: var(--white);
}
.fact p { margin: 0; color: var(--white); font-size: 16px; font-weight: 300; line-height: 1.7; }

/* Section intro copy (also used under Choose your country) */
.models-intro { max-width: 40rem; margin: 0 0 20px; color: var(--text); font-weight: 300; }

/* Country cards — catalogue-like, square corners, no drop shadow */
.country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
@media (min-width: 1180px) {
  .country-grid { grid-template-columns: repeat(4, 1fr); }
}
.country {
  background: var(--white);
  border: 0;
  border-radius: 0;
  padding: 0 16px 20px;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: none;
}
a.country:hover, a.country:focus-visible {
  color: inherit;
}
.flag {
  width: auto;
  height: 10px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin: 0 -16px 16px;
}
.flag svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.country-body { padding: 0 4px 16px; }
.country h3 { margin: 0 0 6px; color: var(--green); }
.country p { margin: 0 0 14px; color: var(--text); font-size: 16px; font-weight: 300; flex: 1; }
.country .cta {
  display: inline-block;
  margin-top: auto;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--white) !important;
  background: var(--green);
  padding: 0.55em 1em;
  border-radius: 0;
  text-align: center;
}
a.country:hover .cta { background: var(--ink); }
.coming { margin: 20px 0 0; color: var(--text); font-size: 16px; font-weight: 300; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}
.contact-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.contact-list li { margin: 0 0 0.85rem; }
.contact-list a { font-weight: 700; color: var(--green); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.address {
  background: var(--section-1);
  border: 0;
  border-radius: 0;
  padding: 24px;
}
.address p { margin: 0 0 0.6rem; color: var(--text); }
.address p:last-child { margin: 0; color: var(--footer-text); }

/* Footer: sits on the pale page green, like #bottom on ralfhouse.lv */
.site-footer {
  background: var(--page);
  border: 0;
  padding: 40px 0;
  color: var(--footer-text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; }
.site-footer a {
  color: var(--green);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; color: var(--green); }

.visually-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1200px) {
  .lang-flags { width: 120px; padding: 16px 0 24px; }
  .flag-btn { width: 72px; height: 48px; }
  .hero-copy { padding-right: 132px; }
}
@media (max-width: 1040px) {
  .lang-flags { width: 112px; padding: 12px 0 22px; }
  .flag-btn { width: 67px; height: 45px; }
  .hero-copy { padding-right: 124px; }
}
@media (max-width: 900px) {
  .lang-flags { display: none; }
  .hero-copy { padding: 28px 16px 24px; }
  :root { --header-pad-x: 16px; }
  .logo-mark { width: 56px; height: 56px; flex-basis: 56px; }
  .wordmark { font-size: 18px; }
  .top-phone { font-size: 16px; }
  .menubox a { font-size: 15px; padding: 11px 15px; }
  .hero { height: auto; min-height: max(56.25vw, 28rem); display: flex; align-items: flex-start; }
  .hero-visual { position: absolute; inset: 0; height: auto; }
  .hero h1 { font-size: 26px; }
  .hero-copy .btn-row .btn { display: inline-block; }
  .btn { min-width: 0; width: 100%; max-width: 300px; }
  .split, .fact-grid, .country-grid, .contact-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .rh-strip { font-size: 14px; padding: 10px 16px; }
  .band { padding: 36px 0; }
}

@media (max-width: 560px) {
  .fact-grid, .country-grid { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; gap: 8px; }
  .brand { gap: 10px; }
}
