/* ==========================================================================
   Soap Designs Art Studio — Premium-Modern Minimal Refinement
   ========================================================================== */

:root {
  --cream:      #FDFBF7;
  --pure-white: #ffffff;
  --ink:        #1A1622;
  --ink-light:  #4E4659;
  --border-adj: rgba(26, 22, 34, 0.08);

  --bubblegum:  #FF6FA5;
  --sunshine:   #FFC93C;
  --sky:        #45C4E8;
  --lilac:      #B48EE0;
  --mint:       #6FCF97;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  --radius-blob-a: 38% 62% 55% 45% / 45% 53% 47% 55%;
  --radius-blob-b: 52% 48% 43% 57% / 51% 42% 58% 49%;
  --radius-blob-c: 45% 55% 52% 48% / 58% 45% 55% 42%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Ambient bubble field ---------- */
.bubble-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -140px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.05) 70%);
  opacity: 0.4;
  animation: float 24s linear infinite;
}

.b1 { left: 5%;  width: 50px; height: 50px; animation-duration: 20s; background-color: rgba(255,111,165,0.08); }
.b2 { left: 15%; width: 30px; height: 30px; animation-duration: 16s; animation-delay: 3s; background-color: rgba(69,196,232,0.08); }
.b3 { left: 35%; width: 75px; height: 75px; animation-duration: 26s; animation-delay: 1s; background-color: rgba(255,201,60,0.06); }
.b4 { left: 55%; width: 35px; height: 35px; animation-duration: 18s; animation-delay: 5s; background-color: rgba(180,142,224,0.08); }
.b5 { left: 70%; width: 60px; height: 60px; animation-duration: 22s; animation-delay: 2s; background-color: rgba(111,207,151,0.06); }
.b6 { left: 85%; width: 25px; height: 25px; animation-duration: 14s; animation-delay: 7s; background-color: rgba(255,159,111,0.08); }

@keyframes float {
  0%   { transform: translateY(0) scale(0.9) rotate(0deg); }
  50%  { transform: translateY(-50vh) scale(1.05) translateX(15px) rotate(180deg); }
  100% { transform: translateY(-110vh) scale(0.9) translateX(-10px) rotate(360deg); opacity: 0; }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,201,60,0.15), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(69,196,232,0.15), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(255,111,165,0.12), transparent 50%),
    var(--cream);
}

.hero-inner { max-width: 720px; }

.logo-mark { color: var(--ink); margin-bottom: 1.5rem; display: inline-flex; }

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--ink-light);
  margin: 0 auto 3rem;
  max-width: 38ch;
  line-height: 1.5;
}

.hero-actions { display: flex; justify-content: center; gap: 1rem; }

.btn-primary, .btn-secondary {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 4px 14px rgba(26, 22, 34, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 22, 34, 0.25);
  background: #2b2536;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(26, 22, 34, 0.2);
}

.btn-secondary:hover {
  background: rgba(26, 22, 34, 0.04);
  border-color: var(--ink);
}

/* ---------- Gallery Header ---------- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 6rem auto 4rem;
  padding: 0 1.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
}

.section-header p {
  color: var(--ink-light);
  font-size: 1.1rem;
  font-weight: 300;
  margin: 0;
}

/* ---------- Gallery Filters ---------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: transparent;
  color: var(--ink-light);
  border: 1px solid rgba(26,22,34,0.15);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover { border-color: var(--ink); }

.filter-btn.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ---------- Gallery Grid ---------- */
.gallery {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
}

.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-light);
  font-size: 1rem;
  padding: 3rem 0;
}

.tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  min-height: 0;
}

.tile-img-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--pure-white);
  border: 1px solid var(--border-adj);
  box-shadow: 0 10px 30px rgba(26, 22, 34, 0.04);
  cursor: zoom-in;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

.tile-video { cursor: default; }

.tile-video video {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.shape-a .tile-img-container { border-radius: var(--radius-blob-a); }
.shape-b .tile-img-container { border-radius: var(--radius-blob-b); }
.shape-c .tile-img-container { border-radius: var(--radius-blob-c); }

.tile:hover .tile-img-container,
.tile-img-container:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 22, 34, 0.08);
}

.tile:hover img { transform: scale(1.04); }

.tile figcaption { margin-top: 1.5rem; padding: 0 0.5rem; }

.tile figcaption h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.tile figcaption p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.4;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  opacity: 0.8;
}

/* ---------- About Section ---------- */
.about-section {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3.5rem;
  background: var(--pure-white);
  padding: 3.5rem;
  border-radius: 32px;
  border: 1px solid var(--border-adj);
  box-shadow: 0 20px 50px rgba(26, 22, 34, 0.03);
}

.about-image {
  flex: 0 0 150px;
  max-width: 150px;
  width: 150px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(26, 22, 34, 0.06);
}

.about-image img { width: 100%; height: auto; display: block; }

.about-content { flex: 1; }

.about-content .subheading {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bubblegum);
  display: block;
  margin-bottom: 0.75rem;
}

.about-content h2 { font-family: var(--font-display); font-size: 2.2rem; margin: 0 0 1.25rem; }

.about-content p { color: var(--ink-light); line-height: 1.6; font-size: 1rem; margin: 0 0 1.25rem; }

.studio-badges { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

.badge {
  background: var(--cream);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--border-adj);
}

.visit-callout {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: 16px;
  border: 1px dashed rgba(26, 22, 34, 0.15);
  text-align: left;
}

.visit-callout h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.visit-callout p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink-light); }

/* ---------- Contact Section ---------- */
.contact-section {
  padding: 5rem 2rem;
  background: var(--cream);
  border-top: 1px solid var(--border-adj);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: center;
}

.contact-details { text-align: left; }

.contact-details h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ink);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.contact-details > p {
  color: var(--ink-light);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item .icon-box {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(26, 22, 34, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.contact-item h4 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-light);
  font-weight: 600;
}

.contact-item .email-link {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.contact-item .email-link:hover { text-decoration: underline; }

.contact-item .address { margin: 0; font-size: 1.1rem; color: var(--ink); font-weight: 700; line-height: 1.3; }

.contact-map {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(26, 22, 34, 0.06);
  border: 1px solid rgba(26, 22, 34, 0.08);
}

.contact-map iframe { border: 0; filter: grayscale(0.2) contrast(1.1); }

.map-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.map-btn:hover { transform: scale(1.05); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--pure-white);
  color: var(--ink);
  border-top: 1px solid var(--border-adj);
  padding: 5rem 2rem 3rem;
}

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

.footer-mark { color: var(--ink); margin-bottom: 1.25rem; opacity: 0.8; }

.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin: 0 0 1.5rem; }

.footer-links {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid rgba(26, 22, 34, 0.15);
  border-radius: 50px;
  transition: all 0.25s ease;
}

.social-link:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }

.footer-note { font-size: 0.85rem; color: var(--ink-light); opacity: 0.6; margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(26, 22, 34, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox.open { display: flex; opacity: 1; }

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover { opacity: 1; }

#lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 35px 70px rgba(0,0,0,0.6);
  transform: scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.open #lightbox-img { transform: scale(1); }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .about-container { flex-direction: column; gap: 2rem; padding: 2.5rem; text-align: center; }
  .about-image { max-width: 150px; width: 150px; }
  .studio-badges { justify-content: center; }
  .visit-callout { text-align: center; }
  .contact-details { text-align: center; }
  .contact-item { justify-content: center; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 0.75rem; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; }
  .section-header { margin: 4rem auto 2.5rem; }
  .about-section { padding: 4rem 1rem; }
}

/* Accessibility Focus Marks */
a:focus-visible,
.tile-img-container:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.tile { min-width: 0; min-height: 0; }
.tile-video video { max-width: 100%; }
