/* ============================================================
   ANA MONROE — Portfolio CSS
   Minimal, elegant, image-forward artist site
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

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

:root {
  /* Palette */
  --cream:        #f5f1eb;
  --warm-white:   #faf8f5;
  --charcoal:     #1e1c1a;
  --warm-gray:    #6b6560;
  --light-tan:    #c8bdb0;
  --accent:       #8b7355;
  --divider:      #e0d8d0;

  /* Typography */
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Jost', system-ui, sans-serif;

  /* Spacing */
  --section-pad:  100px;
  --gutter:       clamp(20px, 4vw, 60px);
  --max-w:        1320px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: block;
  margin-bottom: 24px;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(245, 241, 235, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--divider);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--warm-white);
  transition: color 0.4s ease;
}

.site-nav.scrolled .nav-logo {
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.85);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.site-nav.scrolled .nav-links a {
  color: var(--warm-gray);
}

.nav-links a:hover {
  color: var(--warm-white);
  opacity: 1;
}

.site-nav.scrolled .nav-links a:hover {
  color: var(--charcoal);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--warm-white);
  transition: background 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}

.site-nav.scrolled .nav-hamburger span {
  background: var(--charcoal);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--charcoal);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--warm-white);
  transition: opacity 0.2s ease;
}

.nav-mobile a:hover {
  opacity: 0.6;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.0) 40%,
    rgba(0,0,0,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: clamp(40px, 7vh, 80px);
  color: var(--warm-white);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.05;
  color: var(--warm-white);
  text-shadow: 0 2px 30px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.75);
  margin-top: 16px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(250, 248, 245, 0.4);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ── Featured Works (Home) ────────────────────────────────── */
.section-featured {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 20px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.section-link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  border-bottom: 1px solid var(--light-tan);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.section-link:hover {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

/* 3-column featured grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.artwork-card {
  cursor: pointer;
}

.artwork-card .image-wrap {
  overflow: hidden;
  position: relative;
  background: var(--divider);
}

.artwork-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.artwork-card:hover img {
  transform: scale(1.04);
}

.artwork-info {
  padding: 16px 0 0;
}

.artwork-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.artwork-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--warm-gray);
  margin-top: 5px;
  letter-spacing: 0.05em;
}

/* ── Quote ────────────────────────────────────────────────── */
.section-quote {
  padding: 90px 0;
  background: var(--cream);
  text-align: center;
}

.quote-text {
  font-family: var(--serif);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  max-width: 780px;
  margin: 0 auto;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.quote-text::before { content: '\201C'; }
.quote-text::after  { content: '\201D'; }

.quote-author {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-top: 28px;
}

/* ── About ────────────────────────────────────────────────── */
.section-about {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
  scroll-margin-top: 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image-wrap::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid var(--divider);
  z-index: -1;
}

.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  line-height: 1.2;
}

.about-text p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--warm-gray);
  margin-bottom: 20px;
}

.about-text p:last-of-type {
  margin-bottom: 36px;
}

.btn-outline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  padding: 14px 32px;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--warm-white);
}

/* ── Works / Gallery ─────────────────────────────────────── */
.section-works {
  padding: var(--section-pad) 0;
  background: var(--cream);
  scroll-margin-top: 80px;
}

/* 3-column gallery grid — uniform square cells for clean rhythm */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid .artwork-card img {
  aspect-ratio: 1 / 1;
}

.gallery-filter {
  display: flex;
  gap: 28px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

/* ── Second Quote ─────────────────────────────────────────── */
.section-quote-2 {
  padding: 80px 0;
  background: var(--charcoal);
  text-align: center;
}

.section-quote-2 .quote-text {
  color: var(--cream);
  opacity: 0.88;
}

.section-quote-2 .quote-author {
  color: var(--light-tan);
  opacity: 0.6;
}

/* ── Contact ──────────────────────────────────────────────── */
.section-contact {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
  scroll-margin-top: 80px;
}

.contact-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.contact-inner .intro {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.75;
  margin-bottom: 48px;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--warm-gray);
  margin-bottom: 32px;
  transition: color 0.3s ease;
}

.ig-link:hover {
  color: var(--charcoal);
}

.ig-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.ig-link span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

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

.form-group label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.form-group input,
.form-group textarea {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--divider);
  padding: 10px 0;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease;
}

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

.form-group textarea {
  resize: none;
  height: 120px;
  line-height: 1.7;
}

.contact-form .btn-submit {
  margin-top: 12px;
  align-self: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
  padding: 16px 48px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-form .btn-submit:hover {
  background: transparent;
  color: var(--charcoal);
}

.contact-email {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
}

.contact-email a {
  border-bottom: 1px solid var(--light-tan);
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}

.contact-email a:hover {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  padding: 52px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--warm-white);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.45);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--warm-white);
}

.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(250, 248, 245, 0.3);
  letter-spacing: 0.06em;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.artwork-card {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 16, 0.94);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: lbFadeIn 0.25s ease;
}

.lightbox.open {
  display: flex;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  animation: lbZoomIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes lbZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox-caption {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(250, 248, 245, 0.7);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

.lightbox-caption span {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 245, 0.4);
  margin-top: 5px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(250, 248, 245, 0.55);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
  z-index: 201;
}

.lightbox-close:hover {
  color: var(--warm-white);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(250, 248, 245, 0.45);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 16px 20px;
  transition: color 0.2s ease;
  z-index: 201;
  user-select: none;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--warm-white);
}

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 26px;
    padding: 12px 14px;
  }

  .lightbox-caption {
    font-size: 14px;
    bottom: 20px;
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-image-wrap::after { display: none; }
}

@media (max-width: 640px) {
  :root { --section-pad: 56px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

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

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

  .section-header {
    flex-direction: column;
    gap: 16px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .hero-name {
    font-size: 42px;
  }
}
