/* Blanc Studio — Architecture Firm */
@import url('../shared.css');

/* ===== Tokens ===== */
:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --gold: #c8a97e;
  --muted: #888;
  --pad-x: 4rem;
  --section-y: 8rem;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* ===== Section Label (reusable) ===== */
.section-label {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 3.5rem;
}

/* ===================================================================
   1. NAV — sticky, gold underline on hover via ::after
   =================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem var(--pad-x);
  background: var(--bg);
}

.nav-brand {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===================================================================
   2. HERO — full-screen, clip-path reveal animation
   =================================================================== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero-text {
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  animation: heroReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  clip-path: inset(0 100% 0 0);
}

@keyframes heroReveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.hero-dot {
  color: var(--gold);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.8s 0.9s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================================
   3. SELECTED WORKS — 2x3 grid, hover overlay + zoom
   =================================================================== */
.works {
  padding: var(--section-y) var(--pad-x);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  background: #ede8e0;
  transition: transform 0.5s ease;
}

/* Varied warm-toned backgrounds via nth-child */
.work-item:nth-child(1) { background: #ede8e0; aspect-ratio: 4/3; }
.work-item:nth-child(2) { background: #e5ded4; aspect-ratio: 3/4; }
.work-item:nth-child(3) { background: #ddd6ca; aspect-ratio: 3/4; }
.work-item:nth-child(4) { background: #d8cfc2; aspect-ratio: 4/3; }
.work-item:nth-child(5) { background: #e0d9ce; aspect-ratio: 4/3; }
.work-item:nth-child(6) { background: #e8e1d6; aspect-ratio: 3/4; }

/* Simulated image zoom on hover */
.work-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform 0.6s ease;
  z-index: 0;
}

.work-item:hover::before {
  transform: scale(1.06);
}

/* Gold overlay that slides up */
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(200, 169, 126, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

.work-item:hover .work-overlay {
  opacity: 1;
  transform: translateY(0);
}

.work-cta {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

/* Info block at bottom */
.work-info {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.work-name {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.work-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ===================================================================
   4. SERVICES — 4 minimal cards, gold border top
   =================================================================== */
.services {
  padding: var(--section-y) var(--pad-x);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  border-top: 1px solid var(--gold);
  padding-top: 2rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.service-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-link:hover::after {
  transform: scaleX(1);
}

/* ===================================================================
   5. PROCESS — Horizontal 4-step numbered timeline
   =================================================================== */
.process {
  padding: var(--section-y) var(--pad-x);
}

.process-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.step-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.step-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.process-connector {
  width: 2px;
  flex: 0 0 2px;
  align-self: stretch;
  border-left: 1px dotted var(--gold);
  margin-top: 0.5rem;
  min-height: 80px;
}

/* ===================================================================
   6. AWARDS TICKER — CSS-only marquee
   =================================================================== */
.awards {
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.awards-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.awards-content {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.award-item {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.5rem;
}

.award-sep {
  color: var(--gold);
  font-weight: 300;
}

/* ===================================================================
   7. PHILOSOPHY — 2-column split
   =================================================================== */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: var(--section-y) var(--pad-x);
  max-width: 1200px;
  margin: 0 auto;
}

.philosophy-quote blockquote {
  font-size: 2.8rem;
  font-weight: 200;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

.philosophy-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* ===================================================================
   8. GALLERY — 4x2 grid of square blocks
   =================================================================== */
.gallery {
  padding: var(--section-y) var(--pad-x);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1/1;
  background: #e8e2d8;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.gallery-item:nth-child(2) { background: #ddd7cc; }
.gallery-item:nth-child(3) { background: #d5cec2; }
.gallery-item:nth-child(4) { background: #e0d9ce; }
.gallery-item:nth-child(5) { background: #ede8e0; }
.gallery-item:nth-child(6) { background: #d8d1c5; }
.gallery-item:nth-child(7) { background: #e3dcd2; }
.gallery-item:nth-child(8) { background: #dad3c7; }

/* Hover zoom */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform 0.5s ease;
}

.gallery-item:hover::before {
  transform: scale(1.08);
}

/* Gold border reveal on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ===================================================================
   9. TEAM — 3 founding partners
   =================================================================== */
.team {
  padding: var(--section-y) var(--pad-x);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.team-card {
  text-align: center;
}

.team-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.team-name {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.team-title {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

/* ===================================================================
   10. CONTACT
   =================================================================== */
.contact {
  padding: var(--section-y) var(--pad-x);
  text-align: center;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 200;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.contact-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
}

.contact-email:hover {
  color: var(--gold);
}

.contact-address {
  margin-top: 3rem;
}

.contact-address p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===================================================================
   11. FOOTER
   =================================================================== */
.site-footer {
  border-top: 1px solid var(--gold);
  padding: 2rem var(--pad-x);
  text-align: center;
}

.site-footer span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Murikual footer override for light pages */
.murikual-footer {
  background: var(--bg);
  border-top: 1px solid #e5e5e5;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --pad-x: 3rem;
  }

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

  .process-timeline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .process-connector {
    display: none;
  }

  .process-step {
    flex: 0 0 45%;
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --pad-x: 2rem;
    --section-y: 5rem;
  }

  .nav {
    padding: 1.4rem var(--pad-x);
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.72rem;
  }

  .hero-text {
    font-size: clamp(3.5rem, 14vw, 8rem);
  }

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

  .work-item:nth-child(n) {
    aspect-ratio: 4/3;
  }

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

  .process-step {
    flex: 0 0 100%;
  }

  .philosophy {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .philosophy-quote blockquote {
    font-size: 2rem;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-email {
    font-size: 1.2rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --pad-x: 1.25rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.65rem;
  }

  .hero-text {
    font-size: clamp(2.5rem, 14vw, 5rem);
  }

  .philosophy-quote blockquote {
    font-size: 1.5rem;
  }

  .philosophy {
    gap: 1.5rem;
  }

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

  .contact-email {
    font-size: 1rem;
    word-break: break-all;
  }
}
