/* ============================================
   TOKENS
   ============================================ */
:root {
  --ink: #12181F;
  --ink-soft: #232B35;
  --limestone: #EDE7DB;
  --limestone-dim: #DED5C2;
  --brass: #9C7A46;
  --brass-light: #C9A96E;
  --signal: #3D6B63;
  --white: #FDFCFA;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1180px;
  --edge: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 231, 220, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 24, 31, 0.08);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--brass);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--limestone);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  flex-shrink: 0;
}
.btn-whatsapp:hover { background: var(--signal); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--limestone);
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary:hover { background: var(--signal); transform: translateY(-1px); }
.btn-primary.light { background: var(--limestone); color: var(--ink); }
.btn-primary.light:hover { background: var(--white); }

.btn-ghost {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid rgba(18,24,31,0.25);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(18,24,31,0.04); }
.btn-ghost.light { border-color: rgba(253,252,250,0.35); color: var(--limestone); }
.btn-ghost.light:hover { border-color: var(--limestone); background: rgba(253,252,250,0.08); }
.btn-ghost.center { display: table; margin: 48px auto 0; }

/* ============================================
   HERO
   ============================================ */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 90px) var(--edge) clamp(40px, 6vw, 70px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 26px;
}
.hero-title span { display: block; }

.line-outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
  opacity: 0.85;
}
.line-solid {
  color: var(--ink);
  font-style: italic;
  color: var(--brass);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-drawing {
  display: flex;
  align-items: center;
  justify-content: center;
}
.blueprint-svg { width: 100%; max-width: 400px; height: auto; }

.bp-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.55;
}
.bp-fill-1, .bp-fill-2, .bp-fill-3 {
  fill: transparent;
  stroke-width: 1.4;
  transition: fill 1.2s var(--ease);
}
.bp-fill-1 { stroke: var(--brass); }
.bp-fill-2 { stroke: var(--ink); opacity: 0.9; }
.bp-fill-3 { stroke: var(--signal); }

.bp-fill-1.filled { fill: var(--brass); fill-opacity: 0.22; }
.bp-fill-2.filled { fill: var(--ink); fill-opacity: 0.1; }
.bp-fill-3.filled { fill: var(--signal); fill-opacity: 0.22; }

.bp-ground { stroke: var(--ink); stroke-width: 1.4; opacity: 0.7; }
.bp-dim { stroke: var(--brass); stroke-width: 1; opacity: 0.6; }
.bp-dim-text {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.12em;
  fill: var(--brass);
  text-anchor: middle;
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
  background: var(--ink);
  color: var(--limestone);
  padding: 40px var(--edge);
}
.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--brass-light);
  margin-bottom: 6px;
}
.trust-label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) var(--edge);
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

/* ============================================
   SERVICES
   ============================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(18,24,31,0.12);
  border: 1px solid rgba(18,24,31,0.12);
}
.service-card {
  background: var(--limestone);
  padding: 36px 28px;
  transition: background 0.25s var(--ease);
}
.service-card:hover { background: var(--white); }
.service-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brass);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================
   PROJECTS TEASER
   ============================================ */
.project-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(18,24,31,0.25);
}
.project-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ph-1 { background: linear-gradient(135deg, #9C7A46 0%, #C9A96E 100%); }
.ph-2 { background: linear-gradient(135deg, #3D6B63 0%, #5C8A80 100%); }
.ph-3 { background: linear-gradient(135deg, #232B35 0%, #12181F 100%); }
.project-body { padding: 24px; }
.project-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 10px;
}
.project-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.project-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.project-price {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brass);
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
  text-align: center;
  max-width: 780px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  position: relative;
}
.testimonial cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ============================================
   INSIGHTS TEASER
   ============================================ */
.insight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.insight-card {
  display: block;
  padding: 28px 0;
  border-top: 1px solid rgba(18,24,31,0.15);
  transition: transform 0.25s var(--ease);
}
.insight-card:hover { transform: translateX(4px); }
.insight-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}
.insight-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.3;
}
.insight-date {
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: var(--ink);
  color: var(--limestone);
  text-align: center;
  padding: clamp(64px, 8vw, 100px) var(--edge);
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(253,252,250,0.75);
  margin-bottom: 34px;
  font-size: 1.05rem;
}
.cta-band .hero-cta { justify-content: center; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink-soft);
  color: var(--limestone);
  padding: 64px var(--edge) 28px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(253,252,250,0.12);
}
.footer-brand .logo { color: var(--limestone); }
.footer-brand p { margin-top: 12px; opacity: 0.75; font-size: 0.92rem; }
.footer-license { font-size: 0.78rem !important; opacity: 0.55 !important; margin-top: 16px !important; }
.footer-links { display: flex; gap: 64px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
  transition: opacity 0.2s var(--ease);
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  opacity: 0.55;
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--signal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(18,24,31,0.4);
  z-index: 90;
  transition: transform 0.2s var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.08); }

/* ============================================
   SCROLL REVEAL (CSS-driven; visible by default,
   JS only adds the entrance animation)
   ============================================ */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .reveal-in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-drawing { order: -1; max-width: 280px; margin: 0 auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-row, .insight-row { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 72%;
    max-width: 320px;
    background: var(--limestone);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px var(--edge);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    font-size: 1.1rem;
    box-shadow: -20px 0 40px -20px rgba(0,0,0,0.15);
  }
  .nav-links.open { transform: translateX(0); }
  .btn-whatsapp span { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 40px; }
}
