/* ============================================
   PAINT FROM MY PALETTE — Anne Mozian
   Design system: "Warm Editorial" (PT Serif)
   Rebuilt 2026-05-23 to match newsite-0[1-4] references.
   Single all-serif typeface, cream base, painterly hero,
   per-slide accent CTAs, clean rounded cards.
   ============================================ */

/* ============================================
   TOKENS
   ============================================ */
:root {
  --cream:    #FFF8E8;   /* page base, nav */
  --cream-2:  #FBF2DF;   /* subtle section contrast */
  --navy:     #2D3A47;   /* primary text + CTA */
  --gold:     #D1AC62;   /* accent / CTA */
  --blue:     #6FA9C7;   /* accent / CTA */
  --taupe:    #B8A495;   /* muted + CTA */
  --muted:    #6E6457;   /* body copy */
  --line:     rgba(45, 58, 71, 0.12);
  --white:    #ffffff;

  --maxw: 1180px;
  --pad: 28px;
  --radius: 10px;
  --ease: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PT Serif', Georgia, serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: var(--navy); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================
   NAVIGATION — logo left, links right
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 232, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--navy);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-links a {
  font-size: 0.98rem;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--ease);
  position: relative;
}

.nav-links a:hover { color: var(--gold); }

.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--ease);
}

/* ============================================
   BUTTONS — pill, solid-fill accent variants
   ============================================ */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.72rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(45,58,71,0.18); }

.btn-gold  { background: var(--gold);  color: var(--navy); }
.btn-blue  { background: var(--blue);  color: var(--white); }
.btn-navy  { background: var(--navy);  color: var(--cream); }
.btn-taupe { background: var(--taupe); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }

/* small arrow text-link ("READ FULL BIO →") */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--navy);
  text-decoration: none;
  transition: gap var(--ease), color var(--ease);
}
.text-link::after { content: '→'; transition: transform var(--ease); }
.text-link:hover { color: var(--gold); }
.text-link:hover::after { transform: translateX(4px); }

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.eyebrow {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--taupe);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.lead {
  font-style: italic;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

/* ============================================
   HERO CAROUSEL — split: text + painterly art
   ============================================ */
.hero {
  position: relative;
  min-height: 80vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* keep document height: first slide holds the box, others stack over it */
.hero-slide:first-child { position: relative; }

.hero-text {
  padding: 2rem clamp(1.5rem, 4vw, 4rem) 2rem max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.5px;
  margin-bottom: 1.4rem;
}
.hero-title.italic { font-style: italic; font-weight: 400; }

.hero-intro {
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 34ch;
  margin-bottom: 2rem;
}

/* artwork panel: colored wash with a brushy, feathered left edge */
.hero-art {
  position: relative;
  height: 80vh;
  background: var(--art-bg, var(--cream-2));
  overflow: hidden;
}
.hero-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* feather the left edge into the wash + soften top/bottom for a painted look */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,0.4) 8%, #000 22%),
    radial-gradient(140% 120% at 65% 50%, #000 60%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,0.4) 8%, #000 22%),
    radial-gradient(140% 120% at 65% 50%, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* placeholder fallback when no <img> provided */
.hero-art-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: rgba(45,58,71,0.35);
  font-size: 0.9rem;
}

/* carousel dots */
.hero-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 5;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(45,58,71,0.28);
  cursor: pointer;
  padding: 0;
  transition: var(--ease);
}
.hero-dot.is-active { background: var(--navy); transform: scale(1.25); }

/* ============================================
   SECTION SHELL
   ============================================ */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* ============================================
   ABOUT — circular photo + text
   ============================================ */
.about {
  display: grid;
  grid-template-columns: clamp(240px, 32vw, 360px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-2);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-heading {
  font-style: italic;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.about-body { color: var(--muted); margin-bottom: 1.6rem; max-width: 62ch; }

/* ============================================
   WORK GRID — 3 cards (Live Events, etc.)
   ============================================ */
.work-head { margin-bottom: 2.2rem; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.work-card-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  margin-bottom: 1.1rem;
}
.work-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease); }
.work-card:hover .work-card-media img { transform: scale(1.04); }
.work-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.work-card-desc {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

/* generic placeholder block (cards / gallery) */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #EFE7D6, #F7F1E4 60%, #EAE0CE);
  color: rgba(45,58,71,0.35);
  font-style: italic;
  font-size: 0.85rem;
}

/* ============================================
   BRANDS — "Trusted by Amazing Brands"
   Seamless right-to-left logo marquee. Two identical
   logo sets + translateX(-50%); even spacing comes from
   per-logo margin (not flex gap) so the wrap has no seam.
   ============================================ */
.brands { text-align: center; }
.brands-label {
  font-style: italic;
  color: var(--taupe);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}
.brands-marquee {
  overflow: hidden;
  width: 100%;
  /* fade both edges so logos enter/exit softly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: brands-scroll 36s linear infinite;
}
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brand-logo {
  height: 30px;
  width: auto;
  flex: 0 0 auto;
  margin: 0 clamp(1.6rem, 4vw, 3rem);
  filter: grayscale(1);
  opacity: 0.45;
  transition: opacity var(--ease);
}
.brand-logo:hover { opacity: 0.8; }
@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brands-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

/* ============================================
   PAGE HEADER (sub-pages)
   ============================================ */
.page-header {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0 1rem;
}
.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
}
.page-header .lead { margin: 1rem auto 0; max-width: 52ch; }

/* ============================================
   GALLERY GRID — portfolio
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.gallery-item {}
.gallery-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  aspect-ratio: var(--ratio, 4 / 5);
}
.gallery-media img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity 0.4s ease, transform var(--ease); }
.gallery-item:hover .gallery-media img { transform: scale(1.04); }
.gallery-cap { margin-top: 0.7rem; }
.gallery-cap-title { font-weight: 700; font-size: 1.02rem; }
.gallery-cap-sub { color: var(--taupe); font-style: italic; font-size: 0.92rem; }

/* masonry mosaic — JS distributes items across columns left -> right,
   each item stacking under the previous in its column (variable heights) */
.gallery-masonry {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
/* skeleton shimmer while each image loads (space reserved by --ratio) */
.gallery-media.is-loading img { opacity: 0; }
.gallery-media.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--cream-2) 30%, rgba(255, 255, 255, 0.65) 50%, var(--cream-2) 70%);
  background-size: 200% 100%;
  animation: gallery-skeleton 1.2s ease-in-out infinite;
}
@keyframes gallery-skeleton {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.gallery-more { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }
.gallery-more .btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .gallery-media.is-loading::after { animation: none; }
}

/* ============================================
   SERVICES — Work With Me cards
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  border: 1px solid var(--line);
  transition: transform var(--ease), box-shadow var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(45,58,71,0.08); }
.service-card h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); margin-bottom: 1.3rem; }

/* ============================================
   SHOP — product grid
   ============================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.product-media {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease); }
.product:hover .product-media img { transform: scale(1.04); }
.product-name { font-weight: 700; margin-top: 0.7rem; font-size: 1rem; }
.product-price { color: var(--gold); font-style: italic; }

/* ============================================
   CONTACT FORM
   ============================================ */
.form-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--taupe);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ============================================
   FOOTER — navy
   ============================================ */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { font-size: 1.4rem; font-weight: 700; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.8;
  font-size: 0.95rem;
  transition: opacity var(--ease);
}
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-copy { width: 100%; font-size: 0.82rem; opacity: 0.55; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ease);
  }
  .nav-links.open { max-height: 380px; }
  .nav-links a { padding: 0.95rem var(--pad); width: 100%; border-top: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }

  /* hero stacks: text, then art */
  .hero { min-height: auto; }
  .hero-slide { position: absolute; grid-template-columns: 1fr; }
  .hero-slide:first-child { position: relative; }
  .hero-text { padding: 2.5rem var(--pad) 1.5rem; order: 1; }
  .hero-intro { max-width: none; }
  .hero-art { height: 56vw; order: 2; }
  .hero-dots { bottom: 0.8rem; }

  .about { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .about-body { max-width: none; }

  .work-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
