@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --color-red: #F2071B;
  --color-magenta: #BF0F90;
  --color-orange: #F28705;
  --color-brown: #400101;
  --color-black: #0D0D0D;
  --color-surface: #fff7f3;
  --color-border: rgba(64, 1, 1, 0.12);
  --shadow: 0 24px 80px rgba(13, 13, 13, 0.16);
  --radius: 24px;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-black);
  background: url('/public/images/background.webp') center / cover fixed no-repeat;
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.alt-section {
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 244, 0.72);
  backdrop-filter: blur(3px);
  z-index: -1;
}

#gallery.section::before {
  background: rgba(191, 15, 144, 0.75);
  backdrop-filter: blur(10px);
}

#contact.section::before {
  background: rgba(242, 135, 5, 0.75);
  backdrop-filter: blur(10px);
}

#studio.section::before,
#where-to-buy.section::before {
  background: transparent;
  backdrop-filter: none;
}

#studio.alt-section,
#where-to-buy.alt-section {
  border-top: 0;
  border-bottom: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--color-magenta);
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-top: 0;
}

.button,
.text-button,
.site-nav a,
.social-link,
.pagination a,
.admin-card,
.gallery-trigger {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  text-decoration: none;
  background: #400101;
  color: #fff;
  box-shadow: 0 12px 30px rgba(13, 13, 13, 0.18);
  cursor: pointer;
}

.button:hover,
.text-button:hover,
.site-nav a:hover,
.social-link:hover,
.pagination a:hover,
.admin-card:hover,
.gallery-trigger:hover {
  transform: translateY(-2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 247, 0.82);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(96px, 13vw, 140px);
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a,
.social-link {
  text-decoration: none;
  font-weight: 600;
  color: #400101;
}

.site-nav a:hover,
.social-link:hover {
  color: #f28705;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(64, 1, 1, 0.42);
  display: inline-grid;
  place-items: center;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.studio-grid,
.buying-grid,
.contact-grid {
  display: grid;
  gap: 32px;
}

.studio-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.hero-section {
  min-height: min(85vh, 780px);
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(rgba(13, 13, 13, 0.42), rgba(13, 13, 13, 0.46)), url('/public/images/hero.webp') center 28% / cover no-repeat;
  background-attachment: fixed;
}

.hero-section::before {
  inset: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  max-width: 760px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius);
  background: rgba(64, 1, 1, 0.1);
  border: 1px solid rgba(64, 1, 1, 0.1);
}

.hero-copy .eyebrow {
  color: #fff;
}

.hero-copy h1 {
  text-wrap: balance;
  max-width: 14ch;
  margin-bottom: 16px;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
}

.hero-copy p,
.studio-copy p,
.contact-grid p,
.note {
  font-size: 1.05rem;
  max-width: 60ch;
}

.studio-copy,
.buying-grid > div {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 24px;
}

.placeholder-card,
.gallery-card,
.info-card,
.auth-card,
.admin-card,
.admin-row,
.contact-form,
.info-card,
.admin-panel,
.flash {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(13, 13, 13, 0.07);
}

.placeholder-card {
  padding: 20px;
}

.placeholder-card img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
}

.studio-media.placeholder-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.studio-media.placeholder-card img {
  border-radius: var(--radius);
}

.gallery-controls,
.search-bar {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}

.gallery-controls {
  margin-bottom: 24px;
}

.gallery-controls label {
  min-width: 220px;
  flex: 1;
}

.gallery-controls label,
.stack-form label,
.search-bar input,
.search-bar select {
  display: grid;
  gap: 8px;
}

input,
textarea,
select {
  border: 1px solid rgba(64, 1, 1, 0.15);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(242, 7, 27, 0.35);
  border-color: var(--color-red);
}

.section-heading,
.panel-heading,
.admin-nav,
.footer-inner,
.gallery-meta,
.row-actions,
.admin-shell,
.admin-grid {
  display: flex;
  gap: 16px;
}

.section-heading,
.panel-heading {
  align-items: end;
  justify-content: flex-start;
  margin-bottom: 28px;
}

.gallery-grid,
.admin-grid {
  display: grid;
  gap: 20px;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  overflow: hidden;
}

.gallery-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-trigger img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-meta {
  flex-direction: column;
  padding: 18px;
  gap: 4px;
}

.stack-list,
.admin-list,
.stack-form {
  display: grid;
  gap: 16px;
}

.info-card,
.admin-row,
.auth-card,
.contact-form,
.admin-panel {
  padding: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 700;
  color: var(--color-brown);
}

.admin-row,
.admin-nav,
.footer-inner,
.row-actions,
.admin-shell,
.admin-grid {
  align-items: center;
}

.admin-row {
  justify-content: space-between;
}

.admin-row img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 18px;
}

.row-actions {
  align-items: center;
}

.row-actions a,
.row-actions button,
.admin-nav a,
.pagination a {
  text-decoration: none;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: var(--color-brown);
  font-weight: 700;
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pagination a {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

.pagination a.active {
  background: var(--color-brown);
  color: #fff;
}

.flash {
  margin: 14px 0;
  padding: 14px 18px;
}

.flash-success {
  border-color: rgba(34, 139, 77, 0.25);
}

.flash-error {
  border-color: rgba(242, 7, 27, 0.25);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 13, 13, 0.84);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(880px, 100%);
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: #fff;
  font-weight: 700;
}

.contact-form .button {
  width: fit-content;
}

.form-status {
  min-height: 1.5rem;
  color: var(--color-brown);
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.image-preview img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
}

.image-preview-grid img {
  width: 96px;
  height: 96px;
}

.site-footer {
  padding: 32px 0 56px;
  background: #bf0f90;
  color: #fff;
}

.footer-inner {
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  padding-top: 20px;
}

.auth-page,
.error-page {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(520px, 100%);
}

.admin-shell {
  flex-direction: column;
  align-items: stretch;
  padding-top: 28px;
  padding-bottom: 56px;
}

.admin-nav {
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
}

.admin-panel {
  margin-top: 18px;
}

.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-card {
  padding: 24px;
  text-decoration: none;
  font-weight: 700;
}

.inline-form {
  display: inline;
}

@media (max-width: 900px) {
  .studio-grid,
  .contact-grid,
  .section-heading,
  .panel-heading,
  .admin-row,
  .footer-inner,
  .header-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .gallery-controls {
    flex-wrap: wrap;
  }

  .gallery-controls label {
    min-width: 0;
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  body,
  .hero-section {
    background-attachment: scroll;
  }

  .hero-copy p,
  .studio-copy p,
  .contact-grid p,
  .note {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------
   Coming soon page
   - Full-viewport, no scroll
   - Shared header kept (menu hidden), footer removed
   - Same background image as the home page (body background.webp)
   --------------------------------------------------------------- */
.coming-soon-tag {
  display: none;
}

.coming-soon-page .site-nav {
  display: none;
}

.coming-soon-page .coming-soon-tag {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #400101;
}

.coming-soon-page .coming-soon-tag:hover {
  color: var(--color-orange);
}

.coming-soon-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.coming-soon-page .site-header {
  flex: 0 0 auto;
  position: static;
}

.coming-soon-page .header-inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.coming-soon-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.coming-soon-hero {
  position: relative;
  height: 100%;
  padding: clamp(16px, 4vw, 48px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.coming-soon-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.coming-soon-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .coming-soon-page .header-inner {
    flex-direction: row;
    align-items: center;
  }
}