:root{
  --tan: rgb(187,185,148);
  --dark: rgb(58,68,72);
  --light: #F5F3EB;
  --darkText: #1f2326;
  --linkGold: #C9B26A;

  --paperShadow: 0 18px 60px rgba(0,0,0,0.35);
  --softBorder: rgba(255,255,255,0.14);

  --sideW: clamp(120px, 14vw, 240px);
}

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   GLOBAL
========================= */
body{
  background: var(--tan);
  color: var(--light);
  font-family: "IM Fell DW Pica", serif;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

h1, h2, h3{
  font-family: "Cinzel Decorative", serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2{
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 28px;
  position: relative;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.18),
    0 10px 22px rgba(0,0,0,0.35);
}

h2::after{
  content: "✦ ✦ ✦";
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  letter-spacing: 0.7em;
  opacity: 0.6;
}

.emphasis{
  font-family: "Playfair Display", serif;
  font-style: italic;
  letter-spacing: 0.10em;
}

/* =========================
   SIDE ART (LEFT/RIGHT)
========================= */
body.has-side-art::before,
body.has-side-art::after{
  content:"";
  position: fixed;
  top: 0;
  height: 100vh;
  width: var(--sideW);
  z-index: 0;
  pointer-events: none;

  background-color: var(--tan);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.95;
  filter: saturate(0.95) contrast(1.05);
}

body.has-side-art::before{
  left: 0;
  background-image: url("images/side left background.png");
}
body.has-side-art::after{
  right: 0;
  background-image: url("images/side right background.png");
}

@media (max-width: 900px){
  body.has-side-art::before,
  body.has-side-art::after{ display: none; }
}

/* =========================
   CENTER PANEL
========================= */
.page-wrap{
  position: relative;
  z-index: 2;

  width: calc(100vw - (var(--sideW) * 2) - 24px);
  max-width: 1280px;

  margin: 12px auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--paperShadow);
  border: 1px solid rgba(0,0,0,0.18);
  background: var(--dark);
}

@media (max-width: 900px){
  .page-wrap{
    width: 94vw;
    margin: 14px auto;
    border-radius: 14px;
  }
}

/* =========================
   LOGO BANNER (artist pages)
========================= */
.logo-banner{
  background: var(--tan);
  text-align: center;
  padding: 15px 0;
}
.logo-banner img{
  max-width: 360px;
  width: 90%;
}

/* =========================
   HERO BANNER (OPTION B)
========================= */
.hero-banner{
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px;
}
.hero-banner img{
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.06) saturate(0.95);
  box-shadow: 0 28px 70px rgba(0,0,0,0.45);

  /* irregular artsy edge */
  clip-path: polygon(
    0% 2%, 6% 0%, 14% 2%, 24% 0%, 34% 2%, 46% 0%, 58% 2%, 70% 0%, 82% 2%, 94% 0%, 100% 2%,
    100% 98%, 94% 100%, 82% 98%, 70% 100%, 58% 98%, 46% 100%, 34% 98%, 24% 100%, 14% 98%, 6% 100%, 0% 98%
  );
}

/* =========================
   NAV
========================= */
.nav{
  background: rgba(20,24,26,0.86);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-links{
  list-style: none;
  display: flex;
  gap: 34px;
}

.nav-links a{
  color: var(--light);
  text-decoration: none;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 900;
  font-family: "Cinzel Decorative", serif;
  font-size: 0.90rem;
  padding: 8px 10px;
  position: relative;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:10px; right:10px; bottom:4px;
  height:2px;
  background: linear-gradient(90deg, transparent, var(--linkGold), transparent);
  opacity:0;
  transform: scaleX(.7);
  transition:.2s ease;
}
.nav-links a:hover::after{ opacity:1; transform: scaleX(1); }

.hamburger{
  display: none;
  position: absolute;
  right: 18px;
  font-size: 30px;
  color: var(--light);
  background: transparent;
  border: none;
  cursor: pointer;
}

/* =========================
   SECTIONS
========================= */
.section{
  padding: 56px 22px;
  text-align: center;
  position: relative;
  scroll-margin-top: 90px;
}

/* ink texture overlay */
.section::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity: 0.14;
  background:
    radial-gradient(circle at 15% 25%, rgba(0,0,0,0.25), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(0,0,0,0.28), transparent 48%),
    radial-gradient(circle at 35% 90%, rgba(0,0,0,0.18), transparent 60%);
  mix-blend-mode: multiply;
}

.tan{ background: var(--tan); color: var(--darkText); }
.dark{ background: var(--dark); color: var(--light); }

/* =========================
   CORNER ORNAMENTS (About + Studio)
   Required filenames in /images:
   upper-left.png, upper-right.png, lower-left.png, lower-right.png
========================= */
#about.section.tan,
#studio.section.tan{
  background-color: var(--tan);
  background-image:
    url("images/upper-left.png"),
    url("images/upper-right.png"),
    url("images/lower-left.png"),
    url("images/lower-right.png");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: top left, top right, bottom left, bottom right;
  background-size: 200px auto, 200px auto, 200px auto, 200px auto;

  padding-top: 90px;
  padding-bottom: 90px;
}

/* Ensure content sits above ornaments + overlay */
#about.section.tan > *,
#studio.section.tan > *{
  position: relative;
  z-index: 1;
}

/* =========================
   ABOUT HEADING + MINI LOGOS (RESTORED)
========================= */
.about-heading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 18px;
  margin-bottom: 22px;
}

.mini-logo{
  width: 74px;
  height: auto;
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,0.35);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.about-text{
  max-width: 860px;
  margin: 0 auto 1.4em auto;
  font-size: 1.15rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* =========================
   ORNAMENT DIVIDER
========================= */
.ornament-divider{
  height: 62px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.25), transparent);
  opacity: 0.55;
}
.ornament-divider::before{
  content:"✢ ✢ ✢";
  letter-spacing: 1.0em;
  font-size: 1.1rem;
}

/* =========================
   ARTISTS GRID (homepage cards)
========================= */
.artist-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  justify-items:center;
}

.artist-link{ text-decoration:none; color: inherit; }

.artist-card{
  background: rgba(187,185,148,0.97);
  color: var(--darkText);
  border-radius: 10px;
  padding: 20px;
  max-width: 390px;
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,0.25),
    0 18px 45px rgba(0,0,0,0.35);
  position: relative;
  overflow:hidden;
  transition: 0.22s ease;
}

.artist-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0,0,0,0.15), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0,0,0,0.18), transparent 45%);
  opacity: 0.35;
  pointer-events:none;
}

.artist-card:hover{
  transform: translateY(-7px) rotate(-0.2deg);
}

.artist-card img{
  width:100%;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 2px solid rgba(0,0,0,0.22);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25);
  object-fit: cover;
  filter: contrast(1.08) saturate(0.92);
}

.artist-card h3{
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  margin: 10px 0 10px;
}

.artist-card p{
  font-size: 1.05rem;
  line-height: 1.7;
}

.see-more{
  display:inline-block;
  margin-top: 12px;
  font-family: "Cinzel Decorative", serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.85rem;
  color: #2c2410;
  border-bottom: 2px solid rgba(44,36,16,0.40);
}

/* =========================
   STUDIO CAROUSEL (homepage)
========================= */
.carousel{
  position: relative;
  width: min(900px, 92%);
  margin: 18px auto 0 auto;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.carousel-track{
  width:100%;
  height: 420px;
  position: relative;
}

.carousel-track img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  opacity:0;
  transition: opacity .25s ease;
  background: rgba(0,0,0,0.12);
  filter: contrast(1.06) saturate(0.92);
}

.carousel-track img.active{ opacity:1; }

.carousel-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  z-index: 50;

  border:none;
  cursor:pointer;
  padding: 10px 14px;
  font-size: 30px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: var(--light);
  border: 1px solid rgba(255,255,255,0.14);
}
.carousel-btn.prev{ left: 12px; }
.carousel-btn.next{ right: 12px; }
.carousel-btn:hover{ background: rgba(0,0,0,0.75); }

.carousel-dots{
  position:absolute;
  bottom: 10px;
  left:50%;
  transform: translateX(-50%);
  display:flex;
  gap: 7px;
  z-index: 50;
}

.carousel-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(245,243,235,0.45);
}
.carousel-dot.active{ background: rgba(245,243,235,0.95); }

/* =========================
   SOCIAL LINKS (artist pages)
========================= */
.socials a,
.ad-card a{
  color: var(--linkGold);
  text-decoration: none;
}
.socials a:hover,
.ad-card a:hover{
  color: var(--light);
  text-decoration: underline;
}

/* =========================
   PROMOTIONS AREA (RESTORED)
========================= */
.ads-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.ad-card{
  background: var(--dark);
  border-radius: 12px;
  overflow: hidden;
  height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--light);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.ad-card > img{
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.ad-text{
  padding: 14px 16px;
  width: 100%;
  flex: 1 1 auto;
  overflow-y: auto;
}

.ad-text h3{ margin-bottom: 6px; }
.ad-text p{ margin: 0; line-height: 1.5; }

/* ===== Ad Carousel (RESTORED) ===== */
.ad-carousel{
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}

.ad-slides{
  width: 100%;
  height: 100%;
}

.ad-slides img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: rgba(0,0,0,0.25);
}

.ad-slides img.active{ display: block; }

.ad-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 22px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  color: var(--light);
}

.ad-prev{ left: 10px; }
.ad-next{ right: 10px; }

.ad-dots{
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.ad-dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(245,243,235,0.45);
  border: none;
  cursor: pointer;
}
.ad-dot.active{ background: rgba(245,243,235,0.95); }

/* =========================
   GALLERY (RESTORED)
========================= */
.gallery-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 15px;
}

.gallery-grid img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

/* =========================
   FAQ (RESTORED)
========================= */
.faq-wrap{
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item{
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(58,68,72,0.35);
}

.faq-question{
  width: 100%;
  text-align: left;
  background: var(--tan);
  color: var(--darkText);
  padding: 16px 18px;
  cursor: pointer;
  border: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}

.faq-icon{
  font-size: 1.3rem;
  line-height: 1;
  margin-left: 12px;
  flex-shrink: 0;
}

.faq-answer{
  display: none;
  background: #d6d3b3;
  color: var(--darkText);
  padding: 16px 18px;
  text-align: left;
  line-height: 1.6;
}

.faq-answer p{ margin: 0 0 12px 0; }
.faq-answer ul{ margin: 0 0 12px 0; padding-left: 22px; }
.faq-answer li{ margin-bottom: 8px; }

.faq-item.open .faq-answer{ display: block; }

/* =========================
   MAP/IFRAME
========================= */
iframe{
  width: 92%;
  height: 320px;
  border: none;
  margin-top: 20px;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.10);
}

/* =========================
   SCROLL TO TOP
========================= */
#scrollTop{
  position: fixed;
  bottom: 22px;
  right: 22px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.55);
  color: var(--light);
  border-radius: 999px;
  display: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
  .ads-grid{ grid-template-columns: repeat(2, 1fr); }
  .artist-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .nav{
    background: rgba(20,24,26,0.98);
    justify-content: flex-end;
    padding-right: 54px;
  }

  .nav-links{
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    width: 100%;
    background: rgba(20,24,26,0.98);
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .hamburger{ display: block; }

  .mini-logo{ width: 60px; }

  /* Keep corner ornaments on mobile, just smaller */
  #about.section.tan,
  #studio.section.tan{
    background-size: 120px auto, 120px auto, 120px auto, 120px auto;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .carousel-track{ height: 260px; }
  .faq-wrap{ width: 100%; padding: 0 10px; }
  .faq-question{ padding: 14px 14px; font-size: 0.98rem; }
  .faq-answer{ padding: 14px 14px; }
  .faq-answer ul{ padding-left: 18px; }

  .gallery-grid{ grid-template-columns: 1fr; }
  .ads-grid{ grid-template-columns: 1fr; }
}
