/* ---------- Design tokens ---------- */
:root {
  --rose: #ffb5c9;
  --rose-dark: #e8618a;
  --sky: #aee1f5;
  --sky-dark: #4fa9cf;
  --sun: #ffe28a;
  --sun-dark: #e8a93c;
  --mint: #b8f0d6;
  --lavender: #dccdf5;
  --cream: #fffaf6;
  --cream-dark: #fdf0e4;
  --plum: #4a3a63;
  --plum-dark: #362a49;
  --ink: #55506a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(74, 58, 99, 0.14);
  --shadow-soft: 0 4px 14px rgba(74, 58, 99, 0.1);
  --max-width: 1160px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Trebuchet MS', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--plum);
  margin: 0 0 .5em;
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: .6em;
}

@keyframes slamCrack {
  0%   { transform: scale(4.2) translateY(-60px) rotate(-16deg); opacity: 0; letter-spacing: .8em; }
  38%  { transform: scale(0.75) translateY(4px) rotate(5deg); opacity: 1; letter-spacing: .03em; }
  50%  { transform: scale(1.4) translateY(-6px) rotate(-7deg); letter-spacing: .26em; }
  62%  { transform: scale(0.85) translateY(3px) rotate(4deg); letter-spacing: .07em; }
  74%  { transform: scale(1.18) translateY(-3px) rotate(-2.5deg); letter-spacing: .19em; }
  85%  { transform: scale(0.95) translateY(1px) rotate(1.5deg); letter-spacing: .1em; }
  93%  { transform: scale(1.04) translateY(0) rotate(-.5deg); letter-spacing: .15em; }
  100% { transform: scale(1) translateY(0) rotate(0deg); opacity: 1; letter-spacing: .14em; }
}

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

.eyebrow.slam {
  transform-origin: left center;
  animation: slamCrack 1.15s cubic-bezier(.22,1,.36,1) .35s both;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--white);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head p {
  color: var(--ink);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--rose);
  color: var(--plum-dark);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--rose-dark); color: var(--white); }

.btn--ghost {
  background: transparent;
  border-color: var(--plum);
  color: var(--plum);
}
.btn--ghost:hover { background: var(--plum); color: var(--white); }

.btn--dark {
  background: var(--plum);
  color: var(--white);
}
.btn--dark:hover { background: var(--plum-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74,58,99,.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 66px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--plum);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--rose-dark);
  transition: width .2s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.owner-link {
  border: 0;
  background: transparent;
  color: var(--plum);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 2px;
}

.owner-link:hover { color: var(--rose-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--rose) 0%, var(--sky) 100%);
  color: var(--plum);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  color: var(--plum);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: .35em;
  animation: fadeUp .6s ease-out 1.5s both;
}

.hero .eyebrow {
  color: var(--plum-dark);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  margin-bottom: .8em;
}

.hero p.lead {
  color: var(--ink);
  font-size: 1.12rem;
  max-width: 46ch;
  margin-bottom: 2em;
  animation: fadeUp .6s ease-out 1.65s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp .6s ease-out 1.8s both;
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(2px);
  border: 2px dashed var(--rose-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.hero-art .stitch-frame {
  color: var(--plum);
  font-size: .92rem;
}

.hero-art svg { width: 96px; height: 96px; margin-bottom: 14px; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(74,58,99,.18);
}

.stat h3 {
  color: var(--rose-dark);
  font-size: 2rem;
  margin-bottom: .1em;
}

.stat span {
  color: var(--ink);
  font-size: .88rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-card {
  background: linear-gradient(160deg, var(--lavender), var(--sky));
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.about-card svg { width: 130px; height: 130px; display:block; margin: 0 auto; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.pillar {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(74,58,99,.1);
}

.pillar h4 {
  font-family: var(--font-heading);
  color: var(--plum);
  margin: .3em 0 .3em;
}

.pillar p { font-size: .92rem; color: var(--ink); margin: 0; }

.pillar .icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--rose);
  color: var(--plum-dark);
  font-weight: 700;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(74,58,99,.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--plum);
  color: var(--sun);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 0; }

.service-card p { color: var(--ink); font-size: .93rem; margin: 0; flex-grow: 1; }

.price {
  font-family: var(--font-heading);
  color: var(--rose-dark);
  font-size: 1.3rem;
  font-weight: 700;
}

.price small {
  font-family: var(--font-body);
  font-size: .7rem;
  color: #9891a8;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.pricing-note {
  text-align: center;
  margin-top: 36px;
  color: var(--ink);
  font-size: .92rem;
}

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(74,58,99,.18);
  background: var(--white);
  color: var(--plum);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-admin {
  margin: -20px 0 28px;
  padding: 18px 22px;
  border: 1px solid rgba(74,58,99,.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow-soft);
}

.gallery-admin:not([hidden]) { display: block; }

.gallery-admin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-admin strong { color: var(--plum-dark); }
.gallery-admin span { display: block; color: var(--ink); font-size: .8rem; margin-top: 2px; }
.gallery-admin p { margin: 12px 0 0; color: var(--ink); font-size: .86rem; max-width: 62ch; }
.gallery-status { min-height: 24px; margin-bottom: 10px; color: var(--plum); font-weight: 600; font-size: .88rem; }
.gallery-status.is-error { color: #9b3434; }

.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: var(--white);
  font-weight: 600;
  font-size: .92rem;
  background: linear-gradient(160deg, var(--rose), var(--sun));
  isolation: isolate;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.gallery-item.has-photo::before { opacity: 0; }

.gallery-caption {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gallery-caption__title { font-weight: 700; font-size: .95rem; }
.gallery-caption__text { font-weight: 500; font-size: .8rem; line-height: 1.45; opacity: .92; }

.gallery-empty {
  margin: 8px 0 0;
  padding: 40px 20px;
  border: 1px dashed rgba(74,58,99,.22);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--ink);
}

.gallery-controls {
  position: absolute;
  inset: 10px 10px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.gallery-controls__group { display: flex; gap: 6px; }

.gallery-control {
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(54,42,73,.88);
  color: var(--white);
  padding: 7px 11px;
  font: inherit;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(54,42,73,.2);
}

.gallery-control:hover { background: var(--rose-dark); }
.gallery-control:disabled { cursor: wait; opacity: .65; }

.gallery-item:nth-child(4n+2) { background: linear-gradient(160deg, var(--sky), var(--mint)); }
.gallery-item:nth-child(4n+3) { background: linear-gradient(160deg, var(--sun), var(--rose)); }
.gallery-item:nth-child(4n+4) { background: linear-gradient(160deg, var(--mint), var(--lavender)); }

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .4;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.4) 0 2px, transparent 2px 12px);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(54,42,73,.82) 100%);
}

.gallery-item span { position: relative; }

.owner-dialog {
  width: min(92vw, 480px);
  border: 0;
  border-radius: 28px;
  padding: 0;
  color: var(--plum-dark);
  box-shadow: 0 30px 90px rgba(54,42,73,.32);
}

.owner-dialog::backdrop { background: rgba(34,27,48,.62); backdrop-filter: blur(5px); }
.owner-form { position: relative; padding: 42px; background: var(--cream); }
.owner-form h2 { margin: 6px 0 8px; font-size: 2rem; }
.owner-form > p { margin: 0 0 24px; color: var(--ink); }
.owner-form .btn { width: 100%; justify-content: center; }
.dialog-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; color: var(--plum); font-size: 2rem; line-height: 1; cursor: pointer; }
.owner-error { display: none; margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; color: #8b2e2e; background: #f9dede; font-size: .86rem; }
.owner-error:not(:empty) { display: block; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
}

.contact-info {
  background: linear-gradient(160deg, var(--lavender), var(--sky));
  color: var(--plum);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info h3 { color: var(--plum); }

.contact-info .eyebrow { color: var(--plum-dark); }

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 16px; }

.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink); }

.contact-list .icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.6);
  color: var(--rose-dark);
  display: flex; align-items: center; justify-content: center;
}

.social-row { display: flex; gap: 12px; margin-top: 28px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  color: var(--plum);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.social-row a:hover { background: var(--rose-dark); color: var(--white); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(74,58,99,.18);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--cream);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose-dark);
  box-shadow: 0 0 0 3px rgba(232,97,138,.2);
}

.field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: .8rem; color: #9891a8; margin-top: 10px; }

.form-success {
  display: none;
  background: #e3f7ec;
  border: 1px solid #b7e4c7;
  color: #1e5631;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: .9rem;
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-dark);
  color: var(--ink);
  padding: 40px 0;
  border-top: 1px solid rgba(74,58,99,.1);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--plum); font-weight: 600; }
.footer-brand img { height: 40px; }

.footer-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.footer-links a:hover { color: var(--rose-dark); }

.footer-fine { font-size: .78rem; color: #a49dba; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(74,58,99,.08);
  }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero .eyebrow { font-size: clamp(1.1rem, 5.5vw, 1.5rem); }
  .gallery-admin:not([hidden]) { align-items: flex-start; flex-direction: column; gap: 8px; }
  .owner-form { padding: 38px 24px 28px; }
}
