/* ========== TOKENS ========== */
:root {
  --bg: #f2f2ee;
  --bg-soft: #e8e8e2;
  --black: #111111;
  --ink: #1a1a1a;
  --muted: #6b6b66;
  --accent: #c6ef5f;
  --accent-dark: #9bc23a;
  --white: #ffffff;
  --border: rgba(17, 17, 17, 0.12);
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1180px;
  --header-h: 64px;
  --font: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 3rem, var(--container));
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }
}

/* ========== TYPO ========== */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.85rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-title--light {
  color: var(--white);
}

.accent {
  color: var(--accent);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  background: #000;
}

.btn--accent {
  background: var(--accent);
  color: var(--black);
}

.btn--accent:hover {
  background: var(--accent-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--block {
  width: 100%;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.logo__mark {
  flex-shrink: 0;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.nav__link:hover {
  opacity: 1;
}

.header__cta {
  display: none;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
}

.burger {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  border-bottom: 0;
  justify-content: center;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .header__cta {
    display: inline-flex;
    margin-left: auto;
  }
  .burger,
  .mobile-nav {
    display: none !important;
  }
}

/* ========== HERO ========== */
.hero {
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.1rem, 8vw, 4.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero__title-muted {
  color: #9a9a94;
}

.hero__lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.hero__badges li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.hero__badge-icon {
  color: var(--ink);
  opacity: 0.7;
}

.hero__visual {
  min-height: 260px;
}

.hero__scene {
  position: relative;
  background: linear-gradient(160deg, #1a2a1e 0%, #0d1510 55%, #111 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__sun {
  position: absolute;
  width: min(55%, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  top: 12%;
  right: 10%;
  box-shadow: 0 0 60px rgba(198, 239, 95, 0.35);
}

.hero__house {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 480px;
  margin-bottom: -2%;
}

@media (min-width: 768px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
  .hero__badges li {
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }
  .hero__lead {
    font-size: 1.05rem;
  }
}

/* ========== SERVICES ========== */
.services {
  padding: 3.5rem 0 4rem;
}

.services .section-title {
  margin-bottom: 2rem;
}

.services__grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
  transition: transform 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-3px);
}

.service-card--dark {
  background: var(--black);
  color: var(--white);
}

.service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.service-card__icon {
  opacity: 0.9;
}

.service-card__arrow {
  font-size: 1.1rem;
  opacity: 0.5;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: auto;
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.service-card--dark .service-card__text {
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
  .service-card {
    padding: 1.75rem 1.5rem;
    min-height: 240px;
  }
}

/* ========== PORTFOLIO ========== */
.portfolio {
  padding: 3.5rem 0 4rem;
}

.portfolio .section-title {
  margin-bottom: 1.5rem;
}

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter {
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter:hover {
  border-color: var(--black);
}

.filter.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.portfolio__grid {
  display: grid;
  gap: 1.5rem;
}

.project__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project:hover .project__media img {
  transform: scale(1.04);
}

.project__tag {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: var(--accent);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}

.project__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.85rem;
}

.project__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.project__desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.project__link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.project__link:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.project.is-hidden {
  display: none;
}

@media (min-width: 768px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== CALCULATOR ========== */
.calculator {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0;
}

.calculator__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.calculator__lead {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 28rem;
  font-size: 0.95rem;
}

.calc-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border: 0;
}

.field__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.field__control {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.field__control:focus {
  border-color: var(--black);
}

textarea.field__control {
  resize: vertical;
  min-height: 100px;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--black);
  border: 3px solid var(--accent);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--black);
  border: 3px solid var(--accent);
  cursor: pointer;
}

.slider__ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.segmented__btn {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.7rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.segmented__btn.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.calc-result {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.calc-result__label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
}

.calc-result__value {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .calc-card {
    padding: 1.85rem;
  }
}

@media (min-width: 1024px) {
  .calculator__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ========== PROCESS ========== */
.process {
  padding: 4rem 0;
}

.process .section-title {
  margin-bottom: 2.5rem;
}

.process__list {
  display: grid;
  gap: 1.75rem;
}

.process__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.process__title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.process__text {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 22rem;
}

@media (min-width: 768px) {
  .process__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .process__list {
    grid-template-columns: repeat(4, 1fr);
  }
  .process__item {
    padding-right: 1rem;
    border-right: 1px solid var(--border);
  }
  .process__item:last-child {
    border-right: 0;
  }
}

/* ========== FAQ ========== */
.faq {
  padding: 3.5rem 0 4.5rem;
  background: var(--bg-soft);
}

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

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2rem 1.15rem 0;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}

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

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--muted);
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  padding: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
  }
}

/* ========== CONTACT ========== */
.contact {
  padding: 0;
  background: var(--black);
}

.contact > .container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.contact__grid {
  display: grid;
}

.contact__info {
  padding: 3.5rem 1rem 2rem;
  color: var(--white);
  width: min(100%, var(--container));
  margin-inline: auto;
  box-sizing: border-box;
}

.contact__details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.25rem;
}

.contact__details a {
  font-size: 1.15rem;
  font-weight: 600;
}

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

.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.75rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 480px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .contact {
    padding: 4.5rem 0;
  }
  .contact > .container {
    width: min(100% - 3rem, var(--container));
    margin-inline: auto;
  }
  .contact__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    align-items: center;
  }
  .contact__info {
    padding: 0;
    width: auto;
    margin: 0;
  }
  .contact__form {
    margin: 0;
    width: auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
  }
}

/* ========== FOOTER ========== */
.footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.7);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer__copy {
  font-size: 0.8rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
}

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

/* ========== SMALL TUNING ========== */
@media (max-width: 374px) {
  .hero__actions .btn {
    width: 100%;
  }
  .hero__badges {
    gap: 0.5rem;
  }
  .hero__badges li {
    font-size: 0.65rem;
  }
  .segmented__btn {
    font-size: 0.68rem;
    padding: 0.65rem 0.2rem;
  }
}

@media (min-width: 1440px) {
  .hero__title {
    font-size: 4.5rem;
  }
  .section-title {
    font-size: 3.5rem;
  }
}
