/* =========================================
   Mermaid Song Art
   Minimal cinematic homepage + elegant inner pages
   ========================================= */

:root {
  --text: #f8f3ec;
  --muted: rgba(248, 243, 236, 0.88);
  --gold: #d7b56d;
  --glass: rgba(11, 30, 45, 0.18);
  --glass-strong: rgba(11, 30, 45, 0.32);
  --border: rgba(255,255,255,0.16);
  --shadow: 0 20px 55px rgba(0,0,0,0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background-color: #0c2233;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Backgrounds */
body.home-page,
body.inner-page {
  background-image:
    linear-gradient(rgba(6, 16, 25, 0.08), rgba(6, 16, 25, 0.18)),
    url("../images/mermaid-soul-bg.jpg");
  background-size: cover;
  background-position: center 58%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.inner-page {
  background-image:
    linear-gradient(rgba(6, 16, 25, 0.30), rgba(6, 16, 25, 0.42)),
    url("../images/mermaid-soul-bg.jpg");
}

/* Layout */
.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 28px 24px 40px;
}

.content-wrap {
  display: block;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0 0 24px;
  position: relative;
  z-index: 10;
}

.brand {
  color: #f8f3ec;
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

/* Homepage */
.hero-shell {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: flex-end;
}

.hero-card {
  width: min(420px, calc(100% - 48px));
  margin: 0 0 40px 28px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28ch;
  text-shadow: 0 2px 8px rgba(0,0,0,0.20);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--gold);
  color: #132330;
  font-weight: 700;
  border: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

/* Inner page cards */
.content-card,
.gallery-shell,
.about-card,
.contact-card {
  width: min(1200px, 100%);
  margin: 0 auto 26px;
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(
    to bottom right,
    rgba(10, 33, 48, 0.42),
    rgba(10, 33, 48, 0.58)
  );
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.content-card h1,
.gallery-shell h1,
.about-card h1,
.contact-card h1 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
}

.content-card h2,
.gallery-shell h2,
.about-card h2,
.contact-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  margin: 24px 0 10px;
}

.content-card p,
.gallery-shell p,
.about-card p,
.contact-card p,
.content-card li,
.about-card li,
.contact-card li {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 24px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.24);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-meta {
  padding: 18px 20px 20px;
}

.gallery-meta h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.gallery-meta p {
  margin: 0;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 10, 18, 0.84);
  backdrop-filter: blur(12px);
  z-index: 999;
}

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

.lightbox-figure {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: min(92vw, 1200px);
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 20px;
}

.lightbox figcaption {
  color: #fff;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Forms */
form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.66);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

/* Utility */
.reveal-card {
  animation: riseIn 500ms ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    width: min(420px, calc(100% - 20px));
    margin-left: 10px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 18px 14px 28px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 10px;
  }

  .main-nav a {
    padding: 10px 16px;
  }

  .hero-shell {
    min-height: calc(100vh - 80px);
    align-items: flex-end;
  }

  .hero-card {
    width: 100%;
    margin: 0 0 18px;
  }

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

  .content-card,
  .gallery-shell,
  .about-card,
  .contact-card {
    padding: 22px 20px;
  }
}
