/* ============================================
   UHEE HOME — Invent-style (dark architecture)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-card: #1a1a1a;
  --black-elev: #232323;
  --white: #ffffff;
  --off-white: #f5f5f0;
  --text-grey: #b8b8b8;
  --text-dim: #6b6b6b;
  --border: rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.05);
  --accent: #d1d1d1;

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;

  --max-w: 1280px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--black);
  color: var(--off-white);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Display typography (Invent's bold condensed sans) ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 9vw, 7rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h4 { font-size: 1.2rem; font-weight: 700; }

p {
  color: var(--text-grey);
  font-size: 0.95rem;
  line-height: 1.7;
}

.tiny {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-head h2 { margin-bottom: 1rem; }
.section-head p { max-width: 38rem; margin: 0 auto; }

/* ---------- Pill button (Invent's signature chat-bubble CTA) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem 0.6rem 1.4rem;
  background: var(--white);
  color: var(--black);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  border: none;
  transition: all 0.25s;
  font-family: var(--body);
  white-space: nowrap;
}
.pill:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(255,255,255,0.2);
}
.pill-icon {
  width: 22px; height: 22px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pill svg { transition: transform 0.3s; }
.pill:hover .pill-icon svg { transform: rotate(-45deg); }

.pill-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 0.55rem 1.15rem 0.55rem 1.4rem;
}
.pill-outline:hover { background: var(--white); color: var(--black); }
.pill-outline .pill-icon { background: var(--white); color: var(--black); }
.pill-outline:hover .pill-icon { background: var(--black); color: var(--white); }

.pill-dark {
  background: var(--black-card);
  color: var(--white);
  border: 1px solid var(--border);
}
.pill-dark .pill-icon { background: var(--white); color: var(--black); }
.pill-dark:hover { background: var(--white); color: var(--black); }
.pill-dark:hover .pill-icon { background: var(--black); color: var(--white); }

/* ---------- Top nav (pill-shaped floating bar) ---------- */
.nav {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 2 * var(--gutter));
  max-width: 1240px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 0.65rem 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-grey);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-burger {
  display: none;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--white);
}
.nav-burger span:nth-child(1) { top: 11px; }
.nav-burger span:nth-child(2) { bottom: 11px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 110%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--black-card);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    gap: 1rem;
  }
}

/* ---------- Hero (full-bleed photo with oversize headline) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg svg { width: 100%; height: 100%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.2) 50%, rgba(10,10,10,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-content h1 {
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
}
.hero-content p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: rgba(245, 245, 240, 0.85);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Services strip (4 dark cards) ---------- */
.services {
  background: var(--black);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 880px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  padding: 2rem 1.8rem;
  position: relative;
  transition: all 0.3s;
  border-radius: 4px;
}
.service-card:hover {
  background: var(--black-elev);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.service-card h4 {
  margin-bottom: 0.5rem;
  font-family: var(--display);
  font-size: 1.15rem;
}
.service-card p {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--text-dim);
}
.service-card .pill { font-size: 0.74rem; padding: 0.4rem 0.9rem 0.4rem 1rem; }
.service-card .pill .pill-icon { width: 18px; height: 18px; }

/* ---------- Projects (alternating left/right with photo + text) ---------- */
.projects { background: var(--black); }
.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.project-row:last-child { margin-bottom: 0; }
.project-row.reverse .project-image { order: 2; }
.project-row.reverse .project-text { order: 1; }
@media (max-width: 880px) {
  .project-row, .project-row.reverse { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-row.reverse .project-image { order: 1; }
  .project-row.reverse .project-text { order: 2; }
}

.project-image {
  aspect-ratio: 5/3;
  background: var(--black-card);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.project-image svg { width: 100%; height: 100%; }

.project-text h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: var(--display);
}
.project-text p {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

/* ---------- Marquee (asterisk-separated headline) ---------- */
.marquee {
  background: var(--black);
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-word {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
}
.marquee-star {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--text-dim);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Service icons grid (4 corners around centered image) ---------- */
.services-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 880px) { .services-grid-2 { grid-template-columns: 1fr 1fr; } }

.service-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.service-block {
  background: var(--black-card);
  border: 1px solid var(--border);
  padding: 1.8rem 1.5rem;
  border-radius: 4px;
  text-align: center;
  flex: 1;
}
.service-block .service-icon {
  margin: 0 auto 1rem;
}
.service-block h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.service-block p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.service-center {
  background: var(--white);
  border-radius: 4px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-center svg { width: 80%; height: 80%; }

/* ---------- Pricing ---------- */
.pricing { background: var(--black); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  text-align: left;
}
.price-card.featured {
  background: var(--white);
  color: var(--black);
}
.price-card.featured .price-label,
.price-card.featured .price-num,
.price-card.featured h4 { color: var(--black); }
.price-card.featured .price-features li { color: rgba(0,0,0,0.7); }
.price-card.featured .price-features li::before { background: var(--black); }

.price-card h4 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 1.5rem;
  color: var(--text-grey);
}
.price-num {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.price-num small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  font-family: var(--body);
}
.price-features {
  margin: 1.8rem 0;
  display: grid;
  gap: 0.7rem;
}
.price-features li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-grey);
}
.price-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
}

/* ---------- About / video band ---------- */
.video-band {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
.video-band-bg {
  position: absolute;
  inset: 0;
}
.video-band-bg svg { width: 100%; height: 100%; }
.video-band .container { position: relative; z-index: 2; text-align: center; }
.video-play {
  width: 80px; height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.video-play:hover { transform: scale(1.1); }
.video-play::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent var(--black);
  margin-left: 4px;
}

/* ---------- Team ---------- */
.team { background: var(--black); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  text-align: center;
}
.team-photo {
  aspect-ratio: 4/5;
  background: var(--black-card);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.team-photo svg { width: 100%; height: 100%; }
.team-card h4 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}
.team-card .role {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: capitalize;
}

/* ---------- Gallery mosaic ---------- */
.gallery { background: var(--black); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 1rem;
}
@media (max-width: 880px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 220px);
  }
}
.gallery-item {
  border-radius: 4px;
  overflow: hidden;
  background: var(--black-card);
  position: relative;
}
.gallery-item svg { width: 100%; height: 100%; }
.gallery-item:nth-child(1) { grid-row: span 2; }
@media (max-width: 880px) { .gallery-item:nth-child(1) { grid-row: span 1; } }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--black); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  text-align: center;
}
.testimonial-card .quote-mark {
  font-family: var(--display);
  font-size: 3rem;
  color: var(--text-dim);
  line-height: 0.5;
  margin-bottom: 1rem;
  display: block;
}
.testimonial-card p {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  color: var(--text-grey);
}
.testimonial-card .author {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.testimonial-card .author-role {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: capitalize;
}

/* ---------- News grid ---------- */
.news { background: var(--black); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 880px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: transparent;
  transition: transform 0.3s;
}
.news-card:hover { transform: translateY(-4px); }
.news-image {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--black-card);
}
.news-image svg { width: 100%; height: 100%; }
.news-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.news-card h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  padding: 5rem 0 2rem;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.footer-bg svg { width: 100%; height: 100%; opacity: 0.4; }
.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.85), rgba(10,10,10,1));
  z-index: 1;
}
footer .container { position: relative; z-index: 2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.footer-brand .brand-mark { width: 40px; height: 40px; }

.footer-grid h4 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.footer-grid ul li {
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-grey);
}
.footer-grid ul li a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-grey);
  align-items: flex-start;
}
.footer-contact-item svg {
  color: var(--white);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Page hero (subpage) ---------- */
.page-hero {
  position: relative;
  padding: 12rem 0 5rem;
  text-align: center;
  background: var(--black);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(255,255,255,0.08), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin-bottom: 1rem;
}
.page-hero p {
  max-width: 38rem;
  margin: 0 auto;
}
.page-hero .breadcrumb {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 1.5rem;
}
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Floating chat bubble (Invent's Monster Bot) ---------- */
.chat-bubble {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  background: var(--white);
  color: var(--black);
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s;
}
.chat-bubble:hover { transform: translateY(-2px); }
.chat-bubble-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #d4af8a, #b08a5c);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}
.chat-bubble-text { white-space: nowrap; }
@media (max-width: 500px) {
  .chat-bubble { padding: 0.5rem; }
  .chat-bubble-text { display: none; }
}
