/* ===================== Variables ===================== */
/* Brand theme sampled directly from the PicMe! logo:
   teal #2cccc7, near-black #0c0f14, white #ffffff */
:root{
  --bg: #0c0f14;
  --bg-alt: #121720;
  --card: #171d27;
  --card-border: #2a3340;
  --text: #ffffff;
  --text-dim: #a7b3c1;
  --teal: #2cccc7;
  --teal-dim: #1aa8a3;
  --pink: #7fe9e0;
  --radius: 16px;
  --max: 1140px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,0.7);
}

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

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3{
  font-family: 'Playfair Display', serif;
  margin: 0 0 0.4em;
  line-height: 1.15;
}

p{ margin: 0 0 1em; color: var(--text-dim); }

a{ color: var(--teal); text-decoration: none; }
a:hover{ color: var(--pink); }

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

ul{ padding-left: 1.1em; color: var(--text-dim); }
ul li{ margin-bottom: 0.4em; }

/* ===================== Background sparkle canvas ===================== */
#sparkle-canvas{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ===================== Layout helpers ===================== */
.section{
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 24px;
}
.section-alt{
  max-width: none;
  background: linear-gradient(180deg, transparent, rgba(44,204,199,0.03), transparent);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.section-alt > *{ max-width: var(--max); margin-left:auto; margin-right:auto; }
.section-alt .pricing-grid{ display:grid; }
/* [hidden] must win over the rule above, otherwise both pricing panels show at once */
[hidden]{ display:none !important; }

.section-head{ text-align:center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow{
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-head h2{ font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-sub{ font-size: 1rem; }

/* ===================== Reveal on scroll ===================== */
.reveal{
  opacity: 0;
  transform: translateY(34px);
  /* springy easing so things settle with a little bounce instead of a flat fade */
  transition: opacity 0.75s cubic-bezier(.22,.68,.32,1.2),
              transform 0.75s cubic-bezier(.22,.68,.32,1.2);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

/* Panel swap animation (pricing postcard <-> bookmark) */
@keyframes panelIn{
  from{ opacity:0; transform: translateY(16px) scale(0.985); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
.pricing-grid:not([hidden]){ animation: panelIn 0.45s cubic-bezier(.22,.68,.32,1.15) both; }

/* Gallery items animating back in after a filter change */
@keyframes filterIn{
  from{ opacity:0; transform: translateY(18px) scale(0.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
.gallery-event.filtering{ animation: filterIn 0.45s cubic-bezier(.22,.68,.32,1.15) both; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal{ opacity:1; transform:none; }
}

/* ===================== Buttons ===================== */
.btn{
  display: inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: #06231f;
  box-shadow: 0 10px 30px -8px rgba(44,204,199,0.55);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 16px 36px -8px rgba(44,204,199,0.7); color:#06231f; }
/* light sweeps across the button on hover */
.btn-primary::after{
  content:'';
  position:absolute;
  top:0; left:-120%;
  width: 60%; height:100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after{ left: 140%; }
.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); transform: translateY(-3px); }
.btn-outline{
  background: transparent;
  border-color: var(--teal-dim);
  color: var(--teal);
  width: 100%;
}
.btn-outline:hover{ background: var(--teal); color:#06231f; transform: translateY(-3px); }
.btn-block{ width: 100%; }

/* ===================== Nav ===================== */
.nav{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12,15,20,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding 0.3s ease, background 0.3s ease;
}
.nav.scrolled{ background: rgba(12,15,20,0.9); }
.nav-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}
.brand:hover{ color: var(--text); }
.brand em{ color: var(--teal); font-style: normal; }
.brand-logo{
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
}
.nav-links{ display:flex; align-items:center; gap: 28px; }
.nav-links a{
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}
.nav-links a:not(.nav-cta)::after{
  content:'';
  position:absolute;
  left:0; bottom:-6px;
  width:0%;
  height:2px;
  background: var(--teal);
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after{ width:100%; }
.nav-links a:not(.nav-cta):hover{ color: var(--teal); }
.nav-cta{
  background: var(--teal);
  color: #06231f !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(44,204,199,0.6); }

.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(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===================== Hero ===================== */
.hero{
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 140px 24px 80px;
  background:
    radial-gradient(circle at 20% 20%, rgba(44,204,199,0.14), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(127,233,224,0.12), transparent 45%),
    var(--bg);
}
.hero-content{ max-width: 780px; }
.hero h1{
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 0.5em;
}
.highlight{
  background: linear-gradient(135deg, var(--teal), var(--pink), var(--teal));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 6s ease-in-out infinite;
}
@keyframes shimmerText{
  0%, 100%{ background-position: 0% center; }
  50%{ background-position: 100% center; }
}

/* Hero elements drift in on load, one after another */
@keyframes heroIn{
  from{ opacity:0; transform: translateY(26px); }
  to{ opacity:1; transform: translateY(0); }
}
.hero-content > *{ animation: heroIn 0.9s cubic-bezier(.22,.68,.32,1.1) both; }
.hero-content > .eyebrow{ animation-delay: 0.05s; }
.hero-content > h1{ animation-delay: 0.18s; }
.hero-content > .hero-sub{ animation-delay: 0.32s; }
.hero-content > .hero-actions{ animation-delay: 0.46s; }
.hero-content > .hero-stats{ animation-delay: 0.6s; }
.hero-sub{
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2em;
}
.hero-actions{
  display:flex;
  gap: 16px;
  justify-content:center;
  flex-wrap: wrap;
  margin-bottom: 3em;
}
.hero-stats{
  display:flex;
  gap: 40px;
  justify-content:center;
  flex-wrap: wrap;
}
.hero-stats div{ display:flex; flex-direction:column; align-items:center; }
.hero-stats strong{ font-size: 1.6rem; color: var(--teal); font-family:'Playfair Display', serif; }
.hero-stats span{ font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

.scroll-cue{
  position:absolute;
  bottom: 28px;
  left:50%;
  transform: translateX(-50%);
}
.scroll-cue span{
  display:block;
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  position: relative;
}
.scroll-cue span::before{
  content:'';
  position:absolute;
  top:6px; left:50%;
  width:4px; height:4px;
  margin-left:-2px;
  background: var(--teal);
  border-radius:50%;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot{
  0%{ transform: translateY(0); opacity:1; }
  70%{ transform: translateY(14px); opacity:0; }
  100%{ opacity:0; }
}

/* ===================== Services ===================== */
/* flex + centering so an odd number of cards centres its last row
   instead of leaving an orphan hanging on the left */
.services-grid{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.services-grid .service-card{
  flex: 1 1 260px;
  max-width: 340px;
}
.service-card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover{
  transform: translateY(-8px);
  border-color: var(--teal-dim);
  box-shadow: var(--shadow);
}
.service-icon{
  font-size: 2rem;
  margin-bottom: 14px;
  display:inline-block;
  transition: transform 0.4s cubic-bezier(.22,.68,.32,1.4);
}
.service-card:hover .service-icon{ transform: scale(1.22) rotate(-8deg); }
.service-card h3{ font-size: 1.15rem; color: var(--text); }
.service-card p{ font-size: 0.92rem; margin: 0; }

/* ===================== Backdrop colors ===================== */
.backdrop-grid{
  display:flex;
  flex-wrap: wrap;
  justify-content:center;
  gap: 28px;
}
.swatch{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--card-border);
  cursor: pointer;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding-bottom: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.swatch:hover{
  transform: translateY(-8px) scale(1.07);
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.swatch.active{
  border-color: var(--teal);
  box-shadow: 0 0 0 5px rgba(44,204,199,0.22);
  animation: swatchPop 0.45s cubic-bezier(.22,.68,.32,1.5);
}
@keyframes swatchPop{
  0%{ transform: scale(1); }
  45%{ transform: scale(1.14); }
  100%{ transform: scale(1.05); }
}
.swatch.active{ transform: scale(1.05); }
.swatch-label{
  background: rgba(0,0,0,0.68);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1.25;
  max-width: 108%;
  text-align: center;
}

/* ===================== Prints compare (postcard vs bookmark) ===================== */
.prints-compare{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 48px;
}
.prints-compare-item{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prints-compare-item:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.prints-compare-item img{
  width: 100%;
  height: 230px;
  object-fit: cover;
  margin-bottom: 18px;
}
.prints-compare-item h4{
  font-family: 'Playfair Display', serif;
  margin: 0 0 4px;
  padding: 0 22px;
  color: var(--teal);
  font-size: 1.15rem;
}
.prints-compare-item p{
  margin: 0;
  padding: 0 22px;
  font-size: 0.88rem;
}
.print-size{
  display:inline-block;
  margin: 0 0 10px !important;
  padding: 4px 14px !important;
  border: 1px solid var(--teal-dim);
  border-radius: 999px;
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--teal) !important;
}

/* ===================== Pricing ===================== */
.pricing-toggle{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin-bottom: 48px;
}
.toggle-btn{
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  padding: 12px 26px;
  border-radius: 999px;
  cursor:pointer;
  font-family:'Poppins',sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}
.toggle-btn.active, .toggle-btn:hover{
  background: var(--teal);
  color: #06231f;
  border-color: var(--teal);
}
.toggle-btn:hover{ transform: translateY(-2px); }
.toggle-btn.active{ box-shadow: 0 8px 22px -6px rgba(44,204,199,0.55); }
.toggle-btn em{
  font-style: normal;
  opacity: 0.75;
  font-weight: 500;
  margin-left: 4px;
}

.pricing-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card{
  position:relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align:center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card{ transition: transform 0.35s cubic-bezier(.22,.68,.32,1.15), box-shadow 0.35s ease, border-color 0.35s ease; }
.price-card:hover{ transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--teal-dim); }
.price-card .price{ transition: transform 0.35s cubic-bezier(.22,.68,.32,1.4); }
.price-card:hover .price{ transform: scale(1.08); }
.price-card h3{ font-size: 1.2rem; color: var(--text-dim); font-family:'Poppins',sans-serif; font-weight:600; text-transform:uppercase; letter-spacing:1px; font-size:0.85rem; }
.price-card .price{
  font-family:'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--teal);
  margin: 6px 0 22px;
}
.price-card ul{ text-align:left; margin-bottom: 26px; font-size: 0.9rem; list-style: none; padding:0; }
.price-card ul li{ padding-left: 22px; position:relative; }
.price-card ul li::before{
  content: '✓';
  position:absolute; left:0; top:0;
  color: var(--teal);
  font-weight:700;
}
.price-card-featured{
  border-color: var(--teal);
  background: linear-gradient(180deg, rgba(44,204,199,0.08), var(--card));
  transform: scale(1.03);
}
.price-card-featured:hover{ transform: scale(1.03) translateY(-8px); }
.badge{
  position:absolute;
  top: -14px; left:50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal), var(--pink));
  color:#06231f;
  font-size: 0.72rem;
  font-weight:700;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.pricing-note{ text-align:center; margin-top: 40px; font-size: 0.92rem; }
.pricing-note + .pricing-note{ margin-top: 8px; }
.ast{ color: var(--teal); font-weight: 700; }

/* ===================== Gallery ===================== */
.gallery-filters{
  display:flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.gallery-events{
  display:flex;
  flex-direction: column;
  gap: 26px;
}
.gallery-event{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.22,.68,.32,1.15),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
.gallery-event:hover{
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: var(--teal-dim);
}
.gallery-event.hidden{ display:none; }
.gallery-event-media{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 2px;
  background: var(--card-border);
}
.gallery-candid, .gallery-template{
  width:100%;
  height: 320px;
  object-fit: cover;
  display:block;
  transition: transform 0.5s ease;
}
.gallery-event-media:hover .gallery-candid,
.gallery-event-media:hover .gallery-template{ transform: scale(1.04); }
.gallery-event-caption{
  padding: 18px 22px;
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.gallery-event-caption h4{
  margin:0;
  font-family:'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text);
  transition: color 0.3s ease;
}
.gallery-event:hover .gallery-event-caption h4{ color: var(--teal); }
.gallery-event-caption span{
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

/* ===================== FAQ ===================== */
.faq-list{ max-width: 760px; margin: 0 auto; }
details{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
details summary{
  cursor:pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
details summary::-webkit-details-marker{ display:none; }
details summary::after{
  content: '+';
  color: var(--teal);
  font-size: 1.3rem;
  margin-left: 12px;
  transition: transform 0.25s ease;
}
details[open] summary::after{ transform: rotate(45deg); }
details p{ margin: 14px 0 0; font-size: 0.92rem; }

/* ===================== Booking form ===================== */
.booking-form{
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field{ margin-bottom: 20px; }
.form-field label{
  display:block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.req{ color: var(--pink); font-weight: 700; }
.optional{ color: #8d7c6b; font-weight: 400; font-size: 0.8rem; }
/* keep the "Choose one…" placeholder visually muted vs a real selection */
.form-field select:invalid{ color: #8d7c6b; }
.form-field select option{ color: var(--text); background: var(--bg-alt); }
.required-note{
  text-align:center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0 0 22px;
}
.form-field input, .form-field select, .form-field textarea{
  width:100%;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-family:'Poppins',sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(44,204,199,0.15);
}
.form-note{ text-align:center; font-size: 0.85rem; margin-top: 16px; margin-bottom:0; }

/* ===================== Footer ===================== */
.footer{
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  padding: 50px 24px 30px;
  text-align:center;
}
.footer-brand{ justify-content:center; margin-bottom: 10px; }
.footer-links{
  display:flex;
  justify-content:center;
  gap: 24px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.footer-copy{ font-size: 0.8rem; color: #6b7078; margin-top: 20px; }

/* ===================== Responsive ===================== */
@media (max-width: 860px){
  .form-row{ grid-template-columns: 1fr; }
  .pricing-grid{ grid-template-columns: 1fr; }
  .price-card-featured{ transform: none; order:-1; }
  .price-card-featured:hover{ transform: translateY(-8px); }
  .prints-compare{ grid-template-columns: 1fr; }
  .gallery-event-media{ grid-template-columns: 1fr; }
  .gallery-candid, .gallery-template{ height: 260px; }
}

@media (max-width: 760px){
  .nav-links{
    position: fixed;
    top: 72px; right: 0;
    height: calc(100vh - 72px);
    width: 240px;
    background: rgba(12,15,20,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 26px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--card-border);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display:flex; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .hero-stats{ gap: 24px; }
  .booking-form{ padding: 28px 20px; }
}
