/**
 * RentaRater — main stylesheet
 * Sticky split header, split hero, rating cards, 4-col footer.
 * Palette: ink #1a2332, cool paper #eef2f6, accent #3d7ea6, muted slate.
 * Fonts: Manrope + Source Serif 4.
 */

:root {
  --ink: #1a2332;
  --paper: #eef2f6;
  --paper-deep: #e2e8ef;
  --accent: #3d7ea6;
  --accent-hover: #326889;
  --slate: #5a6574;
  --slate-soft: #7a8696;
  --line: rgba(26, 35, 50, 0.12);
  --white: #f8fafc;
  --shadow: 0 14px 36px rgba(26, 35, 50, 0.1);
  --radius: 4px;
  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(61, 126, 166, 0.12), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(26, 35, 50, 0.06), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 55%, var(--paper) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4,
.site-logo__word,
.site-footer__logo {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.link-button:hover {
  color: var(--accent);
}

/* Sticky split header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 242, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.site-logo img {
  width: auto;
  height: 2.35rem;
  object-fit: contain;
}

.site-logo__word {
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0.65rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--ink);
  width: 100%;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.site-nav__list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.site-nav__list a:hover {
  color: var(--accent);
}

.site-nav__cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-nav__cta {
    text-align: center;
  }

  .site-logo__word {
    font-size: 1.2rem;
  }
}

/* Hero split */
.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - var(--header-h));
  border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4rem);
  max-width: 38rem;
  margin-left: auto;
}

.hero__text h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.55rem);
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 22rem;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: calc(100vh - var(--header-h));
}

@media (max-width: 899px) {
  .hero--split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__text {
    margin: 0;
    max-width: none;
    padding-block: 2.5rem;
  }

  .hero__media img {
    min-height: 18rem;
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
}

.section__intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__intro h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
}

.section__copy {
  max-width: 44rem;
  margin-top: 2rem;
}

.section__media {
  margin-top: 2.5rem;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.25rem;
}

.service-card h3 {
  font-size: 1.25rem;
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Process */
.process-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  counter-reset: none;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.process-item__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 2.5rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.about-grid__media figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-soft);
  padding: 0 0.25rem;
}

.about-grid__media .media-frame,
.about-grid__media picture,
.about-grid__media img {
  border-radius: var(--radius);
}

.about-grid__media img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid__media img {
    aspect-ratio: 16 / 10;
  }
}

/* Ranking / rating cards */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.rating-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rating-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rating-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.rating-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.rating-card__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.4rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.rating-card__place {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-soft);
}

.rating-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.rating-card__tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--slate);
  background: var(--paper);
}

@media (max-width: 960px) {
  .ranking-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
}

/* FAQ */
.faq-list {
  max-width: 46rem;
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 1.1rem 0.35rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  padding: 0.85rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--slate);
  padding-bottom: 0.85rem;
}

/* Contact */
.contact-block {
  max-width: 40rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.contact-block__address {
  margin: 1.25rem 0;
  color: var(--ink);
  line-height: 1.7;
}

.contact-block__list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-block__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 0.15rem;
}

.contact-block__list a {
  font-weight: 650;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
}

.contact-block__list a:hover {
  color: var(--accent);
}

.contact-block__note {
  color: var(--slate-soft);
  font-size: 0.95rem;
}

.contact-block__media {
  margin-top: 1.5rem;
}

/* Inner pages */
.site-main--page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem clamp(4rem, 8vw, 6rem);
}

.content-page__title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

.prose {
  max-width: 42rem;
}

.prose h2,
.prose h3 {
  margin-top: 1.75rem;
}

.error-404 {
  max-width: 36rem;
}

.error-404 .hero__actions {
  margin-top: 1.25rem;
}

/* Footer 4-col */
.site-footer {
  background: var(--ink);
  color: rgba(238, 242, 246, 0.82);
  padding: clamp(2.75rem, 6vw, 4rem) 1.25rem 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: rgba(238, 242, 246, 0.9);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  max-width: var(--max);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem 1.5rem;
}

.site-footer__logo {
  display: inline-block;
  font-size: 1.45rem;
  color: var(--paper);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(238, 242, 246, 0.55);
  margin: 0 0 0.85rem;
}

.site-footer__links {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer__links a,
.site-footer__links .link-button {
  text-decoration: none;
  font-weight: 500;
}

.site-footer__links a:hover,
.site-footer__links .link-button:hover {
  text-decoration: underline;
  color: #fff;
}

.site-footer__address {
  line-height: 1.7;
}

.site-footer__address a {
  text-decoration: none;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(238, 242, 246, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(238, 242, 246, 0.55);
}

.site-footer__bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 36rem;
  margin: 0 auto;
}

.cookie-banner__inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.35rem;
}

.cookie-banner__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.cookie-banner__text {
  font-size: 0.95rem;
  color: var(--slate);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.cookie-settings {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
}

.cookie-settings__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Reveal + hover lift — content visible without JS */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lift {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .lift,
  .btn {
    transition: none !important;
    transform: none !important;
  }

  .js .reveal {
    opacity: 1;
  }

  .lift:hover,
  .btn:hover {
    transform: none !important;
    box-shadow: none;
  }
}
