/* ==========================================================
   Jetcasa marketing website — base
   Editorial / industrial / premium
   ========================================================== */
@import url('colors_and_type.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-strong);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section { padding: 144px 0; position: relative; }
.section.bg-alt { background: var(--grey-50); }
.section.bg-dark { background: #1A1A1A; color: #fff; }

/* ---------- Mono / eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px; background: currentColor;
}
.eyebrow.muted { color: var(--fg-muted); }

.tag-mono {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-muted);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--jet-grey); font-weight: 700; }
.section.bg-dark h1, .section.bg-dark h2, .section.bg-dark h3, .section.bg-dark h4 { color: #fff; }

.display {
  font-weight: 700;
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.h1 {
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.h2 { font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }
.h3 { font-weight: 600; font-size: 18px; line-height: 1.35; letter-spacing: -0.005em; }
p.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--fg-strong); max-width: 56ch; }

.serif-em {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic; font-weight: 400;
  color: var(--jet-grey); letter-spacing: -0.02em;
}
.section.bg-dark .serif-em { color: rgba(255,255,255,.94); }
.accent-mark { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  padding: 16px 24px; border-radius: 2px;
  transition: all 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent; letter-spacing: -0.005em;
  position: relative; overflow: hidden;
}
.btn .arrow { display: inline-block; transition: transform 320ms cubic-bezier(0.2,0.8,0.2,1); font-weight: 400; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,0.08);
  transform: translateY(101%); transition: transform 320ms cubic-bezier(0.2,0.8,0.2,1);
}
.btn-primary:hover::after { transform: translateY(0); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost { background: transparent; color: var(--jet-grey); border-color: var(--border); }
.btn-ghost:hover { background: var(--white); border-color: var(--jet-grey); }
.section.bg-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.section.bg-dark .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.6); }

.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--jet-grey); padding-bottom: 4px;
  position: relative;
}
.btn-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent); transform-origin: left;
  transition: transform 360ms cubic-bezier(0.2,0.8,0.2,1);
}
.btn-link:hover .arrow { transform: translateX(4px); }
.btn-link .arrow { display: inline-block; color: var(--accent); transition: transform 320ms cubic-bezier(0.2,0.8,0.2,1); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 7px 14px;
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  background: transparent; color: var(--accent);
  border: 1px solid currentColor; border-radius: 999px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Reveal animation primitive ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 720ms cubic-bezier(0.2,0.8,0.2,1),
              transform 720ms cubic-bezier(0.2,0.8,0.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal-mask {
  /* Text mask reveal — wraps a single line. Inner span is .reveal-mask-inner */
  overflow: hidden; display: block;
}
.reveal-mask .reveal-mask-inner {
  display: block; transform: translateY(102%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-mask.is-in .reveal-mask-inner { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-mask .reveal-mask-inner {
    opacity: 1; transform: none; transition: none;
  }
}

/* ---------- Photo placeholder (architectural plate) ---------- */
.photo-plate {
  position: relative; overflow: hidden;
  background: #e8e8e8;
  background-image:
    linear-gradient(135deg, rgba(26,26,26,.02) 0%, rgba(26,26,26,.16) 100%);
  border: 1px solid var(--border-soft);
}
.photo-plate::before {
  /* faint blueprint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(26,26,26,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,26,26,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}
.photo-plate::after {
  /* engineering dimension diagonals */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), rgba(26,26,26,.06) 50%, transparent calc(50% + .5px)),
    linear-gradient(to top left,  transparent calc(50% - .5px), rgba(26,26,26,.06) 50%, transparent calc(50% + .5px));
}
.photo-plate .photo-meta {
  position: absolute; left: 18px; top: 16px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted);
}
.photo-plate .photo-caption {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .04em; color: var(--fg-muted);
  display: flex; justify-content: space-between; align-items: end;
}

/* ---------- Misc ---------- */
.tick::before {
  content: "►"; color: var(--accent); font-weight: 700;
  margin-right: 10px; font-size: .72em; vertical-align: 2px;
}
.hairline { border-top: 1px solid var(--border-soft); }
