:root {
  --yellow: #f4e708;
  --yellow-2: #fff23d;
  --char: #47464c;
  --char-2: #3e3d43;
  --ink: #232327;
  --paper: #f5f1ea;
  --white: #ffffff;
  --text: #2c2c30;
  --muted: #6d6c72;
  --on-dark: rgba(255, 255, 255, 0.72);
  --line: #ddd7cc;
  --line-dark: rgba(255, 255, 255, 0.16);
  --hd: 72px;
  --section: clamp(3rem, 6vw, 5rem);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--hd);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-dark);
  background: var(--char);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
hr {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--white);
}

h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.6rem);
  text-wrap: balance;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.wrap {
  width: min(1640px, 100% - 2 * clamp(1.25rem, 5vw, 6rem));
  margin-inline: auto;
}

.center {
  text-align: center;
}

.kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 1.35rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.btn span {
  transition: transform 0.25s var(--ease);
}

.btn:hover span {
  transform: translateX(3px);
}

.btn-y {
  background: var(--yellow);
  color: var(--ink);
}

.btn-y:hover {
  background: var(--yellow-2);
  transform: translateY(-1px);
}

.btn-line {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-line:hover {
  border-color: var(--yellow);
}

/* header */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(71, 70, 76, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.hd.is-scrolled {
  border-color: var(--line-dark);
}

.hd-in {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--hd);
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--yellow);
}

.nav {
  display: flex;
  gap: 2.25rem;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark);
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.is-current {
  color: var(--white);
}

.nav a:hover::after,
.nav a.is-current::after {
  transform: scaleX(1);
}

.hd-cta {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: 0.78rem;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  position: relative;
}

.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.burger span:first-child {
  top: 16px;
}

.burger span:last-child {
  top: 24px;
}

.menu-open .burger span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-open .burger span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

/* hero */
.hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.hero-copy {
  text-align: center;
}

.hero h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04;
}

.lede {
  margin-top: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.banner {
  overflow: hidden;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  aspect-ratio: 16 / 4.2;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
}

.banner-thin {
  aspect-ratio: 16 / 3;
}

.banner-thin img {
  object-position: 50% 45%;
}

/* sections */
.block {
  padding-top: var(--section);
}

.block-end {
  padding-bottom: var(--section);
}

.center-head {
  text-align: center;
}

.center-head p {
  margin-top: 0.8rem;
}

.center-head .btn {
  margin-top: 1.5rem;
}

/* cards */
.card {
  background: var(--paper);
  color: var(--muted);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.card h2 {
  color: var(--ink);
}

.card-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.card-photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.card:hover .card-photo img {
  transform: scale(1.03);
}

.card-copy {
  max-width: 520px;
}

.card-split-rev .card-copy {
  padding-left: clamp(0.5rem, 2vw, 1.5rem);
}

.card-copy > p {
  margin-top: 1.1rem;
}

.card-copy hr {
  margin-block: 1.5rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.small {
  font-size: 0.82rem;
}

.forms {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.forms li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text);
}

/* process */
.steps {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-dark);
}

.step {
  display: grid;
  grid-template-columns: 4.5rem 1fr minmax(0, 0.9fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.step-no {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--yellow);
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  font-size: 0.82rem;
  max-width: 44ch;
}

/* locations */
.counties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 760px;
  margin: clamp(1.75rem, 3vw, 2.25rem) auto 0;
}

.county {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.25s;
}

.county:nth-child(odd) {
  border-right: 1px solid var(--line-dark);
}

.county:nth-child(-n + 2) {
  border-top: 1px solid var(--line-dark);
}

.county span {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--yellow);
  transition: transform 0.3s var(--ease);
}

.county:hover {
  background: rgba(255, 255, 255, 0.04);
}

.county:hover span {
  transform: translateX(4px);
}

.county[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.06);
}

.county[aria-expanded="true"] span {
  transform: rotate(90deg);
}

.towns,
.qa-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.towns > div,
.qa-a > div {
  overflow: hidden;
}

.towns.is-open,
.qa.is-open .qa-a {
  grid-template-rows: 1fr;
}

.towns p {
  max-width: 760px;
  margin-inline: auto;
  padding-top: 1.1rem;
  text-align: center;
  font-size: 0.88rem;
}

#locatii .center {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

/* faq */
.card-faq {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1.1rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}

.plus {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}

.plus::after {
  transform: rotate(90deg);
}

.qa.is-open .plus::after {
  transform: rotate(0deg);
}

.qa-a p {
  padding-bottom: 1.1rem;
  font-size: 0.88rem;
}

/* footer */
.ft {
  background: var(--char-2);
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.ft-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.ft-brand .brand {
  font-size: 1.4rem;
}

.ft-brand p {
  margin-top: 0.5rem;
  color: var(--white);
}

.ft-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ft-col h4 {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

.ft-col a {
  text-decoration: none;
  transition: color 0.2s;
}

.ft-col a:hover {
  color: var(--yellow);
}

.ft-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.75rem;
}

/* motion */
.rise {
  animation: rise 0.9s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* responsive */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: var(--hd) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--char);
    border-bottom: 1px solid var(--line-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }

  .menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.95rem;
  }

  .nav a::after {
    display: none;
  }

  .hd-cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .card-split,
  .card-faq {
    grid-template-columns: 1fr;
  }

  .card-split-rev .card-photo {
    order: -1;
  }

  .card-split-rev .card-copy {
    padding-left: 0;
  }

  .card-copy {
    max-width: none;
  }

  .ft-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ft-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .lede br {
    display: none;
  }

  .banner {
    aspect-ratio: 16 / 8;
  }

  .banner-thin {
    aspect-ratio: 16 / 6;
  }

  .step {
    grid-template-columns: 3rem 1fr;
    gap: 0.4rem 1rem;
  }

  .step p {
    grid-column: 2;
  }

  .counties {
    grid-template-columns: 1fr;
  }

  .county:nth-child(odd) {
    border-right: 0;
  }

  .county:nth-child(2) {
    border-top: 0;
  }
}

@media (max-width: 480px) {
  .ft-grid {
    grid-template-columns: 1fr;
  }
}
