/* =========================================================
   African Mosaic Company: site stylesheet
   ========================================================= */

:root {
  /* Color palette drawn from Janet's own stained-glass work */
  --ivory:        #faf7f2;
  --cream:        #f3ede2;
  --sand:         #e8dcc6;
  --charcoal:     #1c1917;
  --ink:          #2d2824;
  --muted:        #6b6358;
  --hairline:     #d9cfbe;

  --terracotta:   #c46a46;   /* primary accent (sunset elephants) */
  --terracotta-dk:#9a4e31;
  --savanna:      #c9a24a;   /* savanna gold */
  --teal:         #2e5a62;   /* deep teal (giraffe piece) */
  --mint:         #8cb5a8;

  --radius:       4px;
  --radius-lg:    10px;
  --shadow-sm:    0 1px 2px rgba(28,25,23,.06), 0 2px 4px rgba(28,25,23,.04);
  --shadow-md:    0 8px 24px rgba(28,25,23,.12);
  --shadow-lg:    0 24px 60px rgba(28,25,23,.18);

  --ease:         cubic-bezier(.2,.7,.2,1);

  --container:    1200px;
  --container-sm: 860px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-dk); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--terracotta); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }
p  { margin: 0 0 1.1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta-dk);
  margin-bottom: .75rem;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: var(--container-sm); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem;
  font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  text-decoration: none;
}
.btn-primary { background: var(--charcoal); color: var(--ivory); }
.btn-primary:hover { background: var(--terracotta-dk); color: var(--ivory); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(250,247,242,.92);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-nav.is-scrolled { border-color: var(--hairline); }
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 18px 24px;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: 1.3rem; color: var(--charcoal); letter-spacing: .01em;
}
.brand:hover { color: var(--charcoal); }
.brand .brand-mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--charcoal); color: var(--ivory);
  font-family: "Cormorant Garamond", serif; font-weight: 600; font-style: italic;
  font-size: 1.05rem;
}
.brand .brand-logo {
  width: 44px; height: 44px;
  display: inline-block; border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-size: .95rem; font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { background: var(--charcoal); color: var(--ivory) !important; padding: .55rem 1.1rem; border-radius: var(--radius); }
.nav-cta:hover { background: var(--terracotta-dk); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px; margin: -8px;
  color: var(--charcoal);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(1200px 600px at 70% 40%, rgba(196,106,70,.18), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(46,90,98,.14), transparent 60%),
    linear-gradient(180deg, #fbf8f3 0%, #f4ecdf 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(28,25,23,.05) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .5; pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.hero h1 .accent { color: var(--terracotta-dk); font-style: italic; font-family: "Cormorant Garamond", serif; }
.hero .lede { font-size: 1.2rem; max-width: 42ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-media {
  position: relative; aspect-ratio: 1 / 1;
  width: 100%; max-width: 460px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .6s var(--ease);
}
.hero-media:hover { transform: scale(1.015); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 24px; right: 50%;
  transform: translateX(50%);
  background: var(--ivory); color: var(--charcoal);
  padding: 10px 18px; border-radius: 999px;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
}

.hero-strip {
  position: relative; z-index: 2;
  margin-top: 48px; padding: 20px 0;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
  color: var(--muted); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-dark { background: var(--charcoal); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark .lede { color: rgba(255,255,255,.72); }
.section-dark .eyebrow { color: var(--savanna); }
.section-cream { background: var(--cream); }
.section-sand { background: var(--sand); }

.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

/* ---------- Category cards ---------- */
.categories {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.category {
  position: relative;
  background: var(--ivory);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category .img {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand);
}
.category .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category:hover .img img { transform: scale(1.05); }
.category .body { padding: 24px 28px 28px; }
.category h3 { margin-bottom: .3em; }
.category p { color: var(--muted); font-size: .95rem; margin-bottom: 1em; }
.category .more {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 600; font-size: .9rem; color: var(--charcoal);
}
.category .more:hover { color: var(--terracotta-dk); }

/* ---------- Gallery grid ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--sand);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: zoom-in;
  transition: transform .3s var(--ease);
}
.gallery-item:hover { transform: translateY(-2px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  color: #fff;
  opacity: 0; transition: opacity .2s var(--ease);
  font-size: .95rem;
}
.gallery-item:hover .cap { opacity: 1; }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: .55rem 1rem;
  font-size: .9rem;
  border-radius: 999px;
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--charcoal); }
.filter-btn.active { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }

/* ---------- Product cards ---------- */
.products {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.product {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product .img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.product .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product:hover .img img { transform: scale(1.04); }
.product .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 1.25rem; margin-bottom: .15em; }
.product .meta { font-size: .85rem; color: var(--muted); margin-bottom: .9em; }
.product .desc { font-size: .95rem; color: var(--ink); margin-bottom: 1.2em; flex: 1; }
.product .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product .price { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: var(--charcoal); }
.product .price small { font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; display: block; margin-top: -.25em; }

/* ---------- Quote / testimonial ---------- */
.quote {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.quote blockquote {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.45; margin: 0 0 1.2em; color: var(--charcoal);
}
.quote cite { font-style: normal; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

/* ---------- Process (Commissions) ---------- */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  counter-reset: step;
}
.step {
  position: relative; padding: 32px 24px 28px;
  background: var(--ivory); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 2.5rem; color: var(--terracotta);
  display: block; margin-bottom: .4em; line-height: 1;
}
.step h3 { font-size: 1.3rem; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px;
  background: var(--ivory); border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--charcoal);
  box-shadow: 0 0 0 3px rgba(28,25,23,.08);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Image bands for About ---------- */
.img-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.img-band img {
  aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Testimonial / story block ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.story-media img { aspect-ratio: 4/5; object-fit: cover; }
.story h2 { font-size: clamp(2rem, 4vw, 3rem); }
.signature {
  display: inline-block;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.4rem;
  color: var(--terracotta-dk); margin-top: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal); color: rgba(255,255,255,.7);
  padding: 70px 0 30px;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--savanna); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 50px;
}
.footer-brand h3 { color: var(--ivory); font-size: 1.6rem; margin-bottom: .3em; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .95rem; max-width: 38ch; }
.footer-logo {
  width: 96px; height: 96px;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.footer-col h4 {
  color: var(--savanna); font-family: "Inter", sans-serif; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 1em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--ivory);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.social-row a:hover { background: var(--savanna); color: var(--charcoal); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,12,10,.94);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-nav.prev { top: 50%; right: auto; left: 20px; transform: translateY(-50%); }
.lightbox-nav.next { top: 50%; transform: translateY(-50%); }
.lightbox-cap { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .9rem; text-align: center; max-width: 80%; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 80px 0 60px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 420px; margin: 0 auto; }
  .split, .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .categories, .gallery, .products { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .img-band { grid-template-columns: 1fr 1fr; }
  .section { padding: 70px 0; }

  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--hairline);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .25s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--hairline); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 16px 24px; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 8px 24px; text-align: center; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 600px) {
  .categories, .gallery, .products { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .img-band { grid-template-columns: 1fr; }
  .hero-strip { gap: 16px; font-size: .75rem; }
}
