:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #eee7dc;
  --text: #1f1d1a;
  --muted: #6c655d;
  --line: rgba(31, 29, 26, 0.12);
  --gold: #b88a44;
  --gold-dark: #7a5528;
  --dark: #11100f;
  --dark-2: #1d1a17;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(19, 16, 12, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: 240ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

.top-line {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), #e6c384);
  z-index: 1001;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 100vh;
}

.navbar {
  position: fixed;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 16, 15, 0.34);
  backdrop-filter: blur(18px);
  transition: var(--transition);
}

.navbar.scrolled {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold);
  background: rgba(184, 138, 68, 0.12);
}

.nav-menu .nav-cta {
  color: var(--white);
  background: var(--gold);
}

.nav-menu .nav-cta:hover {
  color: var(--white);
  background: var(--gold-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(184, 138, 68, 0.14);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 150px 0 90px;
  background: url("assets/img/hero-ecko.png") center/cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: rgba(184, 138, 68, 0.22);
  filter: blur(30px);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 16, 15, 0.86), rgba(17, 16, 15, 0.46), rgba(17, 16, 15, 0.16)),
    linear-gradient(180deg, rgba(17, 16, 15, 0.28), rgba(17, 16, 15, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1120px) / 2));
  color: var(--white);
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-tag::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  letter-spacing: -0.065em;
}

.hero p {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions,
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: var(--transition);
}

.btn-primary {
  color: var(--white);
  background: var(--gold);
  box-shadow: 0 18px 40px rgba(184, 138, 68, 0.24);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  color: var(--text);
  background: var(--white);
  transform: translateY(-2px);
}

.hero-card {
  position: absolute;
  right: max(20px, calc((100vw - 1120px) / 2));
  bottom: 70px;
  z-index: 2;
  width: min(350px, calc(100% - 40px));
  padding: 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(17, 16, 15, 0.48);
  backdrop-filter: blur(16px);
}

.hero-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.4rem;
  line-height: 1.2;
}

.hero-card p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section h2 {
  font-size: clamp(2.35rem, 4vw, 4.2rem);
  letter-spacing: -0.055em;
}

.section-heading p,
.about-content p,
.contact-info p,
.cta-box p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.03rem;
}

.about {
  background: var(--surface);
}

.about-grid,
.contact-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 68px;
  align-items: center;
}

.about-image {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.about-image::before {
  content: "";
  position: absolute;
  inset: 42px -18px -18px 42px;
  border: 1px solid rgba(184, 138, 68, 0.36);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.about-image img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
}

.about-highlights {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.about-highlights div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(247, 244, 239, 0.7);
}

.about-highlights i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--gold);
  border-radius: 50%;
  background: rgba(184, 138, 68, 0.12);
}

.about-highlights strong {
  line-height: 1.2;
}

.about-highlights span {
  color: var(--muted);
  font-size: 0.92rem;
}

.services {
  background: linear-gradient(180deg, var(--bg), #efe7db);
}

.cards-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 60px rgba(19, 16, 12, 0.06);
  transition: var(--transition);
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(184, 138, 68, 0.11);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(184, 138, 68, 0.32);
  box-shadow: var(--shadow);
}

.service-card:hover::after {
  transform: scale(1.45);
}

.service-card i {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  color: var(--gold);
  border-radius: 18px;
  background: rgba(184, 138, 68, 0.12);
  font-size: 1.4rem;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.process {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 16, 15, 0.94), rgba(17, 16, 15, 0.84)),
    url("assets/img/logo-ecko-dark.png") center/cover no-repeat;
}

.process .section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.timeline-item {
  min-height: 255px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
}

.timeline-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.timeline-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

.filter-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  border-color: var(--gold);
  background: var(--gold);
}

.project-filters {
  justify-content: center;
  margin: -20px 0 42px;
}

.project-card {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(19, 16, 12, 0.12);
  isolation: isolate;
  transition: var(--transition);
}

.project-card.hide {
  display: none;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  transition: transform 540ms ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17, 16, 15, 0.02), rgba(17, 16, 15, 0.82));
}

.project-info {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  padding: 28px;
  color: var(--white);
}

.project-info span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-info h3 {
  margin-top: 8px;
  font-size: 1.4rem;
}

.project-info p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
}

.cta-section {
  padding: 44px 0;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 42px;
  color: var(--white);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(17, 16, 15, 0.94), rgba(46, 34, 22, 0.86)),
    url("assets/img/cover-ecko.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.cta-box p {
  color: rgba(255, 255, 255, 0.74);
}

.faq {
  background: var(--surface);
}

.faq-grid {
  align-items: start;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--bg);
  text-align: left;
  font-weight: 800;
}

.accordion-item i {
  transition: var(--transition);
}

.accordion-item.active i {
  transform: rotate(180deg);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.accordion-content.open {
  grid-template-rows: 1fr;
}

.accordion-content p {
  overflow: hidden;
  padding: 0 22px;
  color: var(--muted);
}

.contact {
  background: linear-gradient(180deg, #efe7db, var(--bg));
}

.contact-grid {
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  transition: var(--transition);
}

.contact-list a:hover {
  color: var(--gold-dark);
  transform: translateX(4px);
}

.contact-list i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  border-radius: 50%;
  background: var(--gold);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 138, 68, 0.14);
}

.contact-form small {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer {
  color: var(--white);
  background: var(--dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 0;
}

.footer strong {
  font-size: 1.2rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px max(20px, calc((100% - 1120px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.floating-whatsapp,
.back-to-top {
  position: fixed;
  right: 22px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--white);
  z-index: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.floating-whatsapp {
  bottom: 22px;
  background: #25d366;
  font-size: 1.55rem;
}

.back-to-top {
  right: 84px;
  bottom: 22px;
  background: var(--dark);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  width: min(980px, 100%);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  transform: translateY(16px) scale(0.98);
  transition: var(--transition);
}

.lightbox.open .lightbox-content {
  transform: translateY(0) scale(1);
}

.lightbox-content img {
  width: 100%;
  max-height: 68vh;
  object-fit: cover;
}

.lightbox-text {
  padding: 24px;
}

.lightbox-text h3 {
  font-size: 1.7rem;
}

.lightbox-text p {
  margin-top: 8px;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 220ms;
}

.reveal-delay-3 {
  transition-delay: 320ms;
}

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

  .nav-menu {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translate(-50%, -8px);
    width: min(520px, calc(100vw - 34px));
    display: grid;
    gap: 8px;
    padding: 18px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.open {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 14px 16px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(760px, calc(100% - 40px));
    margin: 44px auto 0;
  }

  .about-grid,
  .contact-grid,
  .faq-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box,
  .footer-content,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .navbar {
    width: calc(100% - 22px);
    padding: 12px 14px;
    margin-top: 8px;
  }

  .brand span:last-child {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
    padding: 130px 0 62px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  .hero-actions,
  .project-filters {
    flex-direction: column;
  }

  .hero-actions .btn,
  .project-filters .filter-btn {
    width: 100%;
  }

  .section {
    padding: 78px 0;
  }

  .cards-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card img {
    min-height: 330px;
  }

  .cta-box {
    padding: 28px;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 82px;
  }
}
