﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --color-primary: #1a1a1a;
  --color-secondary: #d4a574;
  --color-accent: #8b6f47;
  --color-bg: #fafaf8;
  --color-bg-alt: #f2f0ea;
  --color-text: #2c2c2c;
  --color-text-light: #676767;
  --color-blueprint: #2e5266;
  --color-concrete: #bdbdbd;
  --color-white: #ffffff;

  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --font-technical: 'JetBrains Mono', monospace;

  --spacing-xs: 0.75rem;
  --spacing-sm: 1.5rem;
  --spacing-md: 3rem;
  --spacing-lg: 6rem;
  --spacing-xl: 10rem;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-subtle: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-dramatic: 0 20px 60px rgba(0, 0, 0, 0.12);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --container-max: 1240px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text);
  line-height: 1.65;
  background: radial-gradient(circle at top left, #f6f5ef 0%, var(--color-bg) 36%, #f8f7f3 100%);
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--color-primary);
  font-family: var(--font-primary);
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.3;
}

p {
  margin-top: 0;
  color: var(--color-text-light);
}

main {
  overflow: hidden;
}

.container {
  width: min(var(--container-max), 92vw);
  margin-inline: auto;
}

.technical-data {
  font-family: var(--font-technical);
  letter-spacing: 0.06em;
  font-size: 0.77rem;
  text-transform: uppercase;
}

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

.section {
  padding-block: var(--spacing-lg);
  position: relative;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-technical-bg {
  position: relative;
  background: var(--color-bg-alt);
}

.section-technical-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-concrete) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-concrete) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.08;
}

.section-header {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.section-header .technical-data {
  color: var(--color-secondary);
  display: inline-block;
  margin-bottom: 1rem;
}

.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-concrete) 20%, var(--color-concrete) 80%, transparent);
  margin: var(--spacing-lg) auto;
  width: min(1100px, 90vw);
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--color-secondary);
}

.section-divider::before {
  left: 12%;
}

.section-divider::after {
  right: 12%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(250, 250, 248, 0.84);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
}

.brand-mark {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
}

.brand-name {
  font-size: 0.86rem;
  color: var(--color-text-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--color-text-light);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

.nav-cta {
  text-decoration: none;
}

.menu-toggle {
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: transparent;
  color: var(--color-primary);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  cursor: pointer;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 999px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 0.92rem 1.65rem;
  color: var(--color-white);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--color-secondary);
  transform: translate(-50%, -50%);
  transition: width 0.55s ease, height 0.55s ease;
  z-index: 0;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  width: 310px;
  height: 310px;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 0.92rem 1.65rem;
  color: var(--color-primary);
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.54);
}

.btn-secondary:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-ghost {
  padding: 0.7rem 1.2rem;
  color: var(--color-text-light);
  border: 1px dashed rgba(0, 0, 0, 0.2);
  background: transparent;
}

.hero-architecture {
  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-architecture::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(26, 26, 26, 0.07) 0, rgba(26, 26, 26, 0.02) 35%, rgba(212, 165, 116, 0.06) 100%),
    radial-gradient(circle at 88% 12%, rgba(139, 111, 71, 0.17) 0, transparent 44%);
}

.geometric-accent {
  position: absolute;
  right: -120px;
  top: -170px;
  width: 430px;
  aspect-ratio: 1;
  border: 1px solid rgba(212, 165, 116, 0.46);
  border-radius: 50%;
  opacity: 0.8;
}

.geometric-accent::before {
  content: '';
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(46, 82, 102, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(46deg);
}

.hero-content {
  width: min(1320px, 94vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.25fr);
  gap: clamp(1.5rem, 3vw, 4rem);
  position: relative;
  z-index: 2;
}

.hero-label {
  color: var(--color-secondary);
  display: inline-block;
  margin-bottom: 1.4rem;
}

.hero-description {
  max-width: 52ch;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.text-accent {
  position: relative;
  display: inline-block;
}

.text-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 1s ease-out 0.45s forwards;
}

@keyframes underline-grow {
  to {
    transform: scaleX(1);
  }
}

.hero-image {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-dramatic);
}

.hero-image picture,
.project-image picture,
.philosophy-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-architecture:hover .hero-image img {
  transform: scale(1.05);
}

.blueprint-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
  background: linear-gradient(to bottom right, rgba(46, 82, 102, 0.11), rgba(255, 255, 255, 0));
}

.blueprint-lines {
  width: 100%;
  height: 100%;
}

.hero-image:hover .blueprint-overlay {
  opacity: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.4rem;
  left: 3.6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  opacity: 0.6;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 58px;
  background: linear-gradient(to bottom, var(--color-text), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  50% {
    transform: translateY(11px);
    opacity: 1;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-number {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-technical);
  font-size: clamp(1.8rem, 2.7vw, 2.5rem);
  color: var(--color-secondary);
  letter-spacing: 0.02em;
}

.stat-number::after {
  content: attr(data-suffix);
  font-size: 1.1rem;
  margin-left: 0.18rem;
}

.stat-card p {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
}

.project-large {
  grid-column: span 2;
  grid-row: span 2;
}

.project-vertical {
  grid-row: span 2;
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #ece8dd, #dad4c5);
}

.project-large .project-image {
  aspect-ratio: 16 / 9;
}

.project-vertical .project-image {
  aspect-ratio: 3 / 4;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.6rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--color-secondary);
  margin-bottom: 0.7rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 500;
  margin-top: 0.5rem;
}

.project-link svg {
  transition: transform var(--transition-fast);
}

.project-link:hover svg {
  transform: translateX(4px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.service-card {
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-subtle);
  padding: 1.6rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 165, 116, 0.7);
}

.service-icon {
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(212, 165, 116, 0.2);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.4;
}

.service-includes {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--color-text-light);
}

.philosophy-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  gap: clamp(1rem, 2.8vw, 3rem);
  align-items: center;
}

.philosophy-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  min-height: 340px;
  background: linear-gradient(145deg, #2e5266, #8b6f47);
}

.philosophy-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.92;
}

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

.timeline-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.step-number {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  font-family: var(--font-technical);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.7rem;
}

.testimonial-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
  color: var(--color-text);
}

.testimonial-card cite {
  display: inline-block;
  font-style: normal;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.cta-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(130deg, rgba(26, 26, 26, 0.94), rgba(20, 20, 20, 0.9)),
    radial-gradient(circle at top right, rgba(212, 165, 116, 0.26), transparent 55%);
  color: var(--color-white);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
}

.cta-panel h2,
.cta-panel p {
  color: var(--color-white);
}

.page-hero {
  padding-top: var(--spacing-md);
}

.page-hero .container {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.75), rgba(240, 236, 225, 0.7));
  padding: clamp(1.4rem, 3vw, 2.6rem);
  position: relative;
  overflow: hidden;
}

.page-hero .container::after {
  content: '';
  position: absolute;
  right: -42px;
  top: -66px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(212, 165, 116, 0.45);
  border-radius: 50%;
}

.muted-link {
  color: var(--color-text-light);
}

.site-footer {
  margin-top: var(--spacing-lg);
  background: #1b1a18;
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 1.2rem;
  padding-block: 2.4rem;
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

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

.site-footer a:hover {
  color: var(--color-secondary);
}

.footer-nav,
.footer-contact {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.95rem 0 1.15rem;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.65);
}

[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #20c35a;
  box-shadow: 0 10px 24px rgba(24, 150, 68, 0.42);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 25px;
  height: 25px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-large,
  .project-vertical {
    grid-column: span 1;
    grid-row: span 1;
  }

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

@media (max-width: 920px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-image {
    aspect-ratio: 16 / 10;
  }

  .scroll-indicator {
    display: none;
  }

  .services-grid,
  .philosophy-layout {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    background: rgba(250, 250, 248, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 4vw 1.4rem;
    display: grid;
    gap: 0.6rem;
    transform: translateY(-130%);
    transition: transform var(--transition-normal);
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: grid;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: 4.3rem;
  }

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

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 44px;
    height: 44px;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
  }
}
