/*
Theme Name: Domivo
Theme URI: https://domivo.ro
Author: Domivo
Description: Temă pentru Domivo — unde stai, cu cine stai. Cluj-Napoca.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: domivo
*/

:root {
  --paper: #f3eee4;
  --cream: #fbf7f0;
  --ink: #1a1612;
  --muted: #5c534a;
  --line: #d9d0c3;
  --clay: #c24a1b;
  --forest: #1f4d3d;
  --sand: #e7dccb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
.font-display {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.1;
}

::selection {
  background: #e8c4b0;
  color: var(--ink);
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

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

.brand svg {
  flex-shrink: 0;
}

.brand__word {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand__city {
  display: none;
  margin-left: 0.35rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a {
  color: var(--ink);
}

.header-cta {
  display: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.menu-toggle {
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.nav--open {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: 4rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.75rem 1rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.nav--open a {
  padding: 0.5rem 0;
}

.hero {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0 2rem;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.hero h1 {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.05;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 2;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-size: 1rem;
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-cream {
  background: var(--cream);
  color: var(--ink);
}

.note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 36px;
  background: var(--sand);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  right: 1.5rem;
  bottom: -1.5rem;
  left: -0.5rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 1rem;
}

.hero-card .kicker {
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-card p.font-display {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
}

.faces {
  display: flex;
  margin-top: 0.75rem;
}

.faces img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 2px solid var(--cream);
  object-fit: cover;
  margin-left: -0.75rem;
}

.faces img:first-child {
  margin-left: 0;
}

.section {
  margin-top: 5rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2,
.section > h2 {
  margin: 0.2rem 0 0;
  font-size: 1.875rem;
}

.split {
  display: grid;
  gap: 2rem;
}

.panel {
  border-radius: 32px;
  padding: 2rem;
}

.panel-forest {
  background: var(--forest);
  color: var(--cream);
}

.panel-sand {
  background: var(--sand);
}

.panel h2 {
  margin: 0.75rem 0 0;
  font-size: 2.25rem;
}

.panel ul {
  margin: 1.5rem 0 0;
  padding: 0 0 0 1.1rem;
  color: color-mix(in srgb, var(--cream) 90%, transparent);
}

.panel-sand p,
.panel-sand .kicker {
  color: var(--muted);
}

.panel .btn {
  margin-top: 2rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.step {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
}

.step .kicker {
  letter-spacing: 0.2em;
}

.step h3 {
  margin: 0.75rem 0 0;
  font-size: 1.5rem;
}

.step p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-main {
  padding: 3rem 0 4rem;
}

.page-main h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.prose {
  max-width: 42rem;
}

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

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.8;
}

.prose a {
  color: var(--ink);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.site-footer strong {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.site-footer p {
  margin: 0.5rem 0 0;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer__firma {
  font-size: 0.78rem;
  opacity: 0.75;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.domivo-paginare {
  margin-top: 2.5rem;
}

.domivo-paginare .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.domivo-paginare .page-numbers {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--muted);
}

.domivo-paginare .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

@media (min-width: 640px) {
  .brand__city {
    display: inline;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero-card {
    left: -2rem;
  }

  .panel {
    padding: 2.5rem;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav,
  .nav--open {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    border: 0;
    background: none;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 4rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }
}
