/* =========================================
   LUMINA COLLECTIVE — Luxury Creative Agency
   Minimal Editorial Design System
   ========================================= */

/* ---------- Reset & Foundations ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg: #FAFAF8;
  --bg-warm: #F5F4F0;
  --text-primary: #0a0a0a;
  --text-secondary: #888888;
  --text-muted: #aaaaaa;
  --accent: #C9A96E;
  --accent-hover: #b8944f;
  --divider: #e0ddd7;
  --white: #ffffff;

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 160px);
  --side-pad: clamp(24px, 5vw, 120px);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-smooth);
}

.nav.scrolled {
  border-bottom-color: var(--divider);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--side-pad);
  max-width: 1440px;
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s var(--ease-smooth);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--side-pad) var(--section-pad);
  max-width: 1440px;
  margin: 0 auto;
}

.hero__headline {
  max-width: 900px;
  margin-bottom: 32px;
  overflow: hidden;
}

.hero__headline h1 {
  opacity: 0;
  transform: translateY(100%);
  animation: heroReveal 1.2s var(--ease-out) 0.3s forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

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

.hero__subtitle {
  transform: translateY(20px);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
  transform: translateY(20px);
  cursor: pointer;
  transition: color 0.3s;
}

.hero__cta:hover {
  color: var(--accent);
}

.hero__cta .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-smooth);
}

.hero__cta:hover .arrow {
  transform: translateY(4px);
}

/* ---------- Section Base ---------- */
.section {
  padding: var(--section-pad) var(--side-pad);
  max-width: 1440px;
  margin: 0 auto;
}

.section--full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.section__heading {
  margin-bottom: 56px;
}

/* ---------- Selected Work / Portfolio Grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 var(--side-pad);
  max-width: 1440px;
  margin: 0 auto;
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.work-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.work-card:hover .work-card__image {
  transform: scale(1.05);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.75) 0%,
    rgba(10, 10, 10, 0) 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.work-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--white);
  font-weight: 400;
}

/* ---------- About / Philosophy ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 120px);
  align-items: start;
}

.about__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.4;
  color: var(--text-primary);
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--accent);
}

.about__body p {
  margin-bottom: 24px;
}

.about__body p:last-child {
  margin-bottom: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--divider);
}

.stat {
  text-align: left;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ---------- Services ---------- */
.service-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--divider);
  transition: padding-left 0.4s var(--ease-out);
}

.service-item:first-child {
  border-top: 1px solid var(--divider);
}

.service-item:hover {
  padding-left: 16px;
}

.service-item__name {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  transition: color 0.3s;
}

.service-item:hover .service-item__name {
  color: var(--accent);
}

.service-item__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 480px;
}

/* ---------- Clients ---------- */
.clients {
  background: var(--bg-warm);
}

.clients__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.clients__name {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.clients__name:hover {
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 120px);
  align-items: start;
}

.contact__heading h2 {
  margin-bottom: 32px;
}

.contact__info {
  margin-top: 32px;
}

.contact__info p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 120px;
  line-height: 1.6;
}

.btn-submit {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 48px;
  border: 1px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

.btn-submit:hover {
  background: var(--text-primary);
  color: var(--bg);
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px var(--side-pad);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--divider);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: 32px;
}

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

.footer__social::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.footer__social:hover {
  color: var(--text-primary);
}

.footer__social:hover::after {
  width: 100%;
}

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

@media (max-width: 1024px) {
  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 48px;
    transition: right 0.5s var(--ease-out);
    box-shadow: -4px 0 24px rgba(0,0,0,0.06);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__link {
    font-size: 1rem;
  }

  .hero {
    min-height: 80vh;
    padding-top: 120px;
  }

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

  .work-card__overlay {
    opacity: 1;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.4rem;
  }

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

  .clients__grid {
    gap: 24px;
  }
}
