/* ============================================================
   Book Sculptures — Main Stylesheet
   Static HTML conversion | 2026
   ============================================================ */

/* ----------------------------------------------------------
   CSS Custom Properties
---------------------------------------------------------- */
:root {
  --color-bg: #f9f7f4;
  --color-dark: #1a1a1a;
  --color-mid: #4a4a4a;
  --color-light: #888;
  --color-accent: #8b6f47;
  --color-accent-light: #c4a882;
  --color-white: #ffffff;
  --color-border: #e0dbd3;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-nav: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --nav-height: 64px;
  --max-width: 1160px;
  --section-pad: 80px 24px;
  --radius: 3px;
  --transition: 0.3s ease;
}

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

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

body {
  background: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul, ol { list-style: none; }

/* ----------------------------------------------------------
   Typography
---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-mid); }
h5 { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); }

p { margin-bottom: 1.2rem; color: var(--color-mid); }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-mid);
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------
   Layout Utilities
---------------------------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad); }
.section--dark { background: var(--color-dark); }
.section--mid { background: #f2ede6; }
.section--white { background: var(--color-white); }

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.15em; }

.divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 1.2rem auto;
}
.divider--left { margin-left: 0; }

/* ----------------------------------------------------------
   Navigation
---------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(249, 247, 244, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--color-dark);
  font-weight: 400;
}
.nav-logo:hover { color: var(--color-accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links > li {
  position: relative;
  list-style: none;
}

.nav-links > li > a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-mid);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ---- Desktop dropdown (Work sub-menu) ---- */
.dropdown {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--color-bg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-top: 2px solid var(--color-accent);
  padding: 0.6rem 0;
  z-index: 1000;
  flex-direction: column;
  gap: 0;
  margin-top: 3px;
  list-style: none;
}
.dropdown li {
  display: block;
}
.dropdown a {
  display: block;
  padding: 0.55rem 1.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
  border-bottom: none;
  color: var(--color-mid);
  font-weight: 600;
  text-transform: uppercase;
}
.dropdown a:hover {
  background: rgba(0,0,0,0.03);
  color: var(--color-accent);
  border-bottom: none;
}
.nav-links > li:hover > .dropdown {
  display: flex !important;
}
/* Small arrow indicator next to "Work" */
.nav-links .has-dropdown > a::after {
  content: '';  /* Removed per client request */
  display: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}

/* ----------------------------------------------------------
   Hero Slider
---------------------------------------------------------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slider .slide.active { opacity: 1; }

.hero-slider .slide img {
  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.15) 0%, rgba(0,0,0,0.5) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 6rem);
  color: var(--color-white);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: var(--color-white);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}
.hero-cta:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--color-white);
  color: var(--color-white);
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.slider-dot.active {
  background: var(--color-white);
  transform: scale(1.3);
}

.slider-arrow {
  display: none;
}

/* ----------------------------------------------------------
   Page Hero (inner pages)
---------------------------------------------------------- */
.page-hero {
  margin-top: var(--nav-height);
  position: relative;
  height: 360px;
  overflow: hidden;
}
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.45));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 3rem;
}
.page-hero-overlay h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* ----------------------------------------------------------
   Breadcrumb
---------------------------------------------------------- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-light);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.5rem; }

/* ----------------------------------------------------------
   Work Grid (Home & Work page)
---------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  margin: 2px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.work-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

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

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card:hover img {
  transform: scale(1.06);
}

.work-card-info {
  padding: 1.2rem 1.5rem 1.5rem;
  text-align: center;
}

.work-card-info h3 {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  color: var(--color-dark);
}

.work-card-info p {
  color: var(--color-mid);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.work-card-info span {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

/* ----------------------------------------------------------
   Section: Artist (Home teaser)
---------------------------------------------------------- */
.artist-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.artist-teaser img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.artist-teaser-text h5 { margin-bottom: 0.5rem; }
.artist-teaser-text h2 { margin-bottom: 0.5rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  transition: background var(--transition), color var(--transition);
  margin-top: 1.5rem;
}
.btn:hover { background: var(--color-accent); color: var(--color-white); }
.btn--dark { border-color: var(--color-dark); color: var(--color-dark); }
.btn--dark:hover { background: var(--color-dark); color: var(--color-white); }

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding: 5rem 24px 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  font-weight: 400;
}

.footer-col h4 {
  color: var(--color-accent-light);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ----------------------------------------------------------
   Gallery / Lightbox
---------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--color-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.08);
}

.lightbox-caption {
  display: none;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ----------------------------------------------------------
   Work Nav (sub-page series switcher)
---------------------------------------------------------- */
.work-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 3rem 0;
}
.work-subnav a {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem 1.5rem;
  color: var(--color-light);
  border-right: 1px solid var(--color-border);
  transition: color var(--transition), background var(--transition);
}
.work-subnav a:first-child { border-left: 1px solid var(--color-border); }
.work-subnav a:hover,
.work-subnav a.active {
  color: var(--color-accent);
  background: rgba(139,111,71,0.06);
}

/* ----------------------------------------------------------
   Raw Material / Process Section
---------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.process-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 0.75rem;
}
.process-item p {
  font-size: 0.85rem;
  color: var(--color-light);
}

/* ----------------------------------------------------------
   Artist Page
---------------------------------------------------------- */
.artist-bio {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}
.artist-bio img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.insight-item h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

.motivation-block {
  background: var(--color-dark);
  padding: 5rem 24px;
  text-align: center;
}
.motivation-block blockquote {
  border: none;
  padding: 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.85);
  max-width: 860px;
  margin: 0 auto 1.5rem;
}
.motivation-block cite {
  color: var(--color-accent-light);
}

/* ----------------------------------------------------------
   Press Page
---------------------------------------------------------- */
.press-highlight {
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
}
.press-highlight:last-child { border-bottom: none; }
.press-highlight h3 {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.press-highlight h3 em { font-style: normal; color: var(--color-accent); }
.press-highlight p { margin-bottom: 0.75rem; }
.press-highlight a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
}
.press-highlight a:hover { text-decoration: underline; }

.press-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}
.press-index-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.press-index-list li:last-child { border-bottom: none; }
.press-index-list strong { color: var(--color-dark); }

/* ----------------------------------------------------------
   Contact Page
---------------------------------------------------------- */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.contact-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-email {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-accent);
  display: block;
  margin-top: 1rem;
}
.contact-email:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */
@media (max-width: 960px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .artist-teaser { grid-template-columns: 1fr; gap: 2.5rem; }
  .artist-bio { grid-template-columns: 1fr; }
  .artist-bio img { max-width: 320px; }
  .insight-grid { grid-template-columns: 1fr; }
  .appreciation-grid { grid-template-columns: 1fr; }
  .press-columns { grid-template-columns: 1fr; gap: 2rem; }
  .contact-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  :root { --nav-height: 56px; }
  .work-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; min-height: calc(100vh - var(--nav-height)); overflow-y: auto; z-index: 999; background: var(--color-bg); align-items: center; justify-content: flex-start; padding-top: 2rem; gap: 2rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  /* On mobile, hide the dropdown entirely — Work link navigates to the Work index page */
  .dropdown { display: none !important; }
  .nav-links > li:hover > .dropdown { display: none !important; }

  .nav-links > li > a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
  /* Hide the dropdown arrow on mobile since it navigates directly */
  .has-dropdown > a::after { display: none !important; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .work-subnav a { padding: 0.75rem 1rem; font-size: 0.62rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 70vh; }
  .page-hero { height: 240px; }
}

/* ----------------------------------------------------------
   Animations
---------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

/* ----------------------------------------------------------
   Video embeds
---------------------------------------------------------- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ----------------------------------------------------------
   Utility: Scroll reveal
---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
