/* BASE Group — brand: red #AF2A2B, ink #0A0A0A, white #FFFAF4, Archivo */

:root {
  --red: #AF2A2B;
  --red-dark: #8A2122;
  --red-light: #C94749;
  --ink: #0A0A0A;
  --ink-soft: #2B2826;
  --white: #FFFAF4;
  --paper: #F5F1E9;
  --line: #E4DDD0;
  --muted: #746E64;
  --shadow: 0 20px 50px -20px rgba(10, 10, 10, 0.35);
  --radius: 4px;
  --maxw: 1240px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Archivo', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: 'Archivo', Arial, sans-serif; font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1 { font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1em;
}
.eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--red); display: inline-block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .95em 1.9em;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline.on-dark { color: var(--white); border-color: var(--white); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 22px 0;
}
.site-header.solid {
  background: var(--white);
  box-shadow: 0 2px 24px rgba(10,10,10,.08);
  padding: 12px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); transition: color .25s ease; }
.site-header.solid .brand { color: var(--ink); }
.brand img { height: 42px; width: 42px; border-radius: 4px; transition: height .25s ease, width .25s ease; }
.site-header.solid .brand img { height: 36px; width: 36px; }
.brand-word { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1.1; }
.brand-word small { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .16em; color: var(--red-light); text-transform: uppercase; }
.site-header.solid .brand-word small { color: var(--red); }

.main-nav ul { display: flex; gap: 34px; align-items: center; }
.main-nav a {
  font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); position: relative; padding: 6px 0;
}
.site-header.solid .main-nav a { color: var(--ink); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--red);
  transition: width .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { padding: .8em 1.6em; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 2px solid currentColor; border-radius: 4px;
  background: transparent; color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.site-header.solid .nav-toggle { color: var(--ink); }

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative; min-height: 88vh; background: var(--ink); color: var(--white); overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.15s ease, visibility 0s linear 1.15s;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 1.15s ease; }
.hero-slide .hero-media { position: absolute; inset: 0; }
.hero-slide .hero-media img {
  width: 100%; height: 100%; object-fit: cover; opacity: .58;
  transform: scale(1.08); transition: transform 7s linear;
}
.hero-slide.active .hero-media img { transform: scale(1); }
.hero-slide .hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.35) 40%, rgba(10,10,10,.92) 100%);
}
.hero-slide-text { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; }
.hero-slide-text .container { padding-bottom: 116px; width: 100%; }
.hero-slide-text .eyebrow { color: var(--red-light); }
.hero-slide-text h1 { color: var(--white); max-width: 860px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hero-lede { max-width: 560px; font-size: 1.1rem; color: rgba(255,250,244,.86); }
.hero-actions { display: flex; gap: 16px; margin-top: 1.6em; flex-wrap: wrap; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,250,244,.4);
  background: rgba(10,10,10,.35); color: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: background .2s ease, border-color .2s ease;
}
.hero-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 6; display: flex; gap: 10px; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,250,244,.35); border: none; padding: 0;
  cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.hero-dot:hover { background: rgba(255,250,244,.6); }
.hero-dot.active { background: var(--red); transform: scale(1.3); }

.stat-strip .stat { min-width: 100px; }

.page-hero {
  position: relative; padding: 200px 0 90px; background: var(--ink); color: var(--white); overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.page-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.85)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: .2em; }
.page-hero p { color: rgba(255,250,244,.82); max-width: 640px; font-size: 1.05rem; }
.breadcrumb { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,250,244,.6); margin-bottom: 1em; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,250,244,.78); }
.section-paper { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head .lede { max-width: 520px; color: var(--muted); }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .num { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--red); margin-bottom: 14px; display: block; }
.service-card h3 { text-transform: uppercase; margin-bottom: .5em; }
.service-card p { font-size: .95rem; margin-bottom: 0; }

.project-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.project-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.07); }
.project-card .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,.92) 100%);
}
.project-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-light); margin-bottom: .4em; display: block; }
.project-card h3 { color: var(--white); text-transform: none; margin-bottom: 0; font-size: 1.15rem; }
.project-card .loc { color: rgba(255,250,244,.7); font-size: .82rem; margin-top: .3em; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-bar a {
  padding: .6em 1.3em; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft);
}
.filter-bar a:hover { border-color: var(--red); color: var(--red); }
.filter-bar a.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.team-card { text-align: left; }
.team-card .photo { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: var(--paper); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: filter .2s ease; }
.team-card:hover .photo img { filter: grayscale(0); }
.team-card .photo .avatar-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white); font-size: 2.4rem; font-weight: 800;
}
.team-card h3 { text-transform: none; margin-bottom: .15em; font-size: 1.15rem; }
.team-card .role { color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .7em; display: block; }
.team-card p { font-size: .92rem; }

.value-card { border-left: 3px solid var(--red); padding-left: 24px; }
.value-card h3 { text-transform: uppercase; font-size: 1.05rem; letter-spacing: .04em; }
.value-card p { font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split img { border-radius: var(--radius); }
.split-media { position: relative; }
.split-media .accent-box {
  position: absolute; bottom: -22px; right: -22px; width: 55%; height: 55%;
  border: 3px solid var(--red); border-radius: var(--radius); z-index: -1;
}

.stat-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip .stat b { display: block; font-size: 2.6rem; font-weight: 800; color: var(--red); }
.stat-strip .stat span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.cta-band { background: var(--red); color: var(--white); text-align: center; padding: 90px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,250,244,.85); max-width: 560px; margin: 0 auto 2em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-info-item .ic {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800;
}
.contact-info-item h4 { margin: 0 0 .2em; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.contact-info-item p { margin: 0; font-size: .92rem; }
.contact-info-item a:hover { color: var(--red); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 130px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 28px; }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Alerts ---------- */
.alert { padding: 16px 20px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #E4F4E9; color: #1E6B3A; border: 1px solid #B6E1C4; }
.alert-error { background: #FBE6E6; color: var(--red-dark); border: 1px solid #F2C1C1; }
.alert-info { background: #EAF1FB; color: #1F4E8C; border: 1px solid #C9DCF4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,250,244,.8); padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,250,244,.12); }
.footer-grid img { height: 40px; margin-bottom: 18px; }
.footer-grid p { color: rgba(255,250,244,.6); font-size: .92rem; }
.footer-col h4 { color: var(--white); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2em; }
.footer-col ul li { margin-bottom: .8em; }
.footer-col a { color: rgba(255,250,244,.68); font-size: .92rem; }
.footer-col a:hover { color: var(--red-light); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid rgba(255,250,244,.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; padding: 26px 0; font-size: .82rem; color: rgba(255,250,244,.5); flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Project detail ---------- */
.project-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 40px 0; }
.project-meta .m span { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .4em; }
.project-meta .m b { font-size: 1rem; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.project-gallery img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tag { display: inline-block; background: var(--paper); color: var(--ink-soft); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .4em 1em; border-radius: 999px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { min-height: 82vh; }
  .hero-slide-text .container { padding-bottom: 90px; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw); background: var(--ink);
    transform: translateX(100%); transition: transform .3s ease; padding: 100px 32px 32px; z-index: 99; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 26px; }
  .main-nav a, .site-header.solid .main-nav a { color: var(--white); font-size: 1rem; }
  .nav-toggle { display: flex; }
  .site-header .container { flex-wrap: nowrap; }
  .brand-word small { display: none; }
  .header-cta { gap: 10px; }
  .header-cta .btn { padding: .6em 1em; font-size: .72rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .hero-slider { min-height: 78vh; }
  .hero-slide-text .container { padding-bottom: 68px; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 18px; }
  .hero-actions { margin-top: 1.2em; }
  .stat-strip { justify-content: flex-start; gap: 40px; }
}
@media (max-width: 400px) {
  .site-header .container { padding: 0 16px; }
  .brand img { height: 34px; width: 34px; }
  .brand-word { font-size: .95rem; }
  .header-cta .btn { padding: .55em .8em; font-size: .66rem; letter-spacing: .02em; }
}
