/* ===========================
   JANET@WORK — Global Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5F2EC;
  --cream-dark: #EDE9E0;
  --dark: #1A1A18;
  --mid: #6B6860;
  --light: #A8A59E;
  --accent: #C8A882;
  --white: #FAFAF7;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: rgba(245, 242, 236, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,26,24,0.07);
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--mid);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--dark); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: all 0.3s;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(26,26,24,0.15);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.6rem;
  border-radius: 2rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--cream);
}
.btn-light {
  background: var(--cream);
  color: var(--dark);
}
.btn-light:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--mid);
  border: 1px solid rgba(26,26,24,0.2);
  font-size: 0.78rem;
}
.btn-ghost:hover {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

/* ---- FOOTER ---- */
footer {
  padding: 3.5rem 3rem 2.5rem;
  background: var(--dark);
  color: var(--cream);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-cta h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  max-width: 380px;
  margin-bottom: 1.75rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  padding-top: 0.25rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(245,242,236,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(245,242,236,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span {
  font-size: 0.72rem;
  color: rgba(245,242,236,0.35);
  letter-spacing: 0.04em;
}

/* ---- WORKS GRID ---- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.work-card {
  cursor: pointer;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.work-card:hover { transform: translateY(-3px); }

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

.work-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work-card:hover .work-card-thumb img { transform: scale(1.04); }

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,24,0.7) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.work-card:hover .work-card-overlay { opacity: 1; }
.work-card-overlay span {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--cream);
  font-weight: 400;
}
.work-card-meta {
  padding: 0.75rem 1rem 0.9rem;
}
.work-card-meta h4 {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.work-card-meta p {
  font-size: 0.68rem;
  color: var(--mid);
  letter-spacing: 0.03em;
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--dark);
  color: var(--cream);
  padding: 0.55rem 1.3rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 1.1rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; gap: 1rem; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--cream);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(26,26,24,0.08);
  }
  .nav-hamburger { display: flex; }

  footer { padding: 3rem 1.5rem 2rem; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

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