/* Susie Treats — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --teal: #14717a;
  --teal-dark: #0c4d54;
  --teal-light: #e3f2f2;
  --pink: #ee1b85;
  --pink-dark: #c4116a;
  --pink-darker: #9d0e55;
  --pink-light: #fce3f0;
  --cream: #f7f0e2;
  --cream-dark: #efe3c9;
  --border-muted: #5f8a8f;
  --ink: #24302e;
  --max-width: 1100px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 113, 122, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Poppins', system-ui, sans-serif;
  color: var(--teal-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--pink-dark);
}

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

img {
  max-width: 100%;
  display: block;
  transition: transform 0.2s ease;
}

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

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  top: -50px;
  left: 12px;
  z-index: 200;
  background: var(--teal-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: #fff;
  border-bottom: 4px solid var(--pink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  height: 56px;
  aspect-ratio: 1290 / 1266;
}

.brand-logo {
  position: absolute;
  top: 0;
  left: 0;
  height: 112px;
  width: auto;
  max-width: none;
  border-radius: 8px;
  z-index: 1;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--teal-dark);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: var(--pink-light);
  color: var(--pink-dark);
}

.site-nav a.active {
  background: var(--teal);
  color: #fff;
  border: 2px solid var(--pink);
}

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

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--teal-dark);
  border-radius: 3px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: min(70vh, 560px);
  object-fit: cover;
  filter: brightness(0.78); /* was 0.62 */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 55%, transparent 80%);
}

.hero-overlay .container {
  max-width: 780px;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.35);
}

.hero .tagline {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--pink-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

.hero .lede {
  font-size: 1.15rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-pink {
  background: var(--pink-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(238, 27, 133, 0.35);
}

.btn-pink:hover {
  background: var(--pink-darker);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 113, 122, 0.3);
}

.btn-teal:hover {
  background: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* ---------- Sections / Cards ---------- */

.section {
  padding: 64px 0;
}

.section-alt {
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 0.3em;
}

.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.4em;
  color: #4a5654;
}

.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
}

.page-hero .tagline {
  font-family: 'Baloo 2', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pink-light);
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.prose::after {
  content: "";
  display: table;
  clear: both;
}

.framed-photo {
  float: left;
  width: 200px;
  margin: 0 24px 16px 0;
}

.framed-photo--right {
  float: right;
  margin: 0 0 16px 24px;
}

.framed-photo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.susan-young-img {
  max-width: 280px;
  width: 100%;
  margin: 20px auto 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.gallery-heading {
  margin-top: 0;
  text-align: center;
  scroll-margin-top: 120px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.gallery-img--wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
}

/* Portrait flyers: full row, centered, shown uncropped */
.gallery-img--flyer {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  max-width: 420px;
  margin: 0 auto;
}

.gallery-grid img {
  cursor: zoom-in;
}

.gallery-grid img:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  border: none;
  background: transparent;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lightbox::backdrop {
  background: rgba(12, 30, 32, 0.9);
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.lightbox-img {
  max-width: min(calc(100vw - 180px), 1400px);
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Controls are pinned to the screen so they stay put as photos of
   different shapes are shown */
.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lightbox-nav,
.lightbox-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  background: var(--teal);
}

.lightbox-nav:hover {
  background: var(--pink-dark);
}

.lightbox-close:hover {
  background: var(--teal-dark);
}

.lightbox-nav:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.framed-photo figcaption {
  margin-top: 12px;
  text-align: center;
  background: var(--cream);
  color: var(--teal-dark);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
}

.prose-frame {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  overflow: hidden;
  border-top: 1px solid var(--teal);
  border-right: 1px solid var(--teal);
  border-bottom: 1px solid var(--pink);
  border-left: 1px solid var(--pink);
}

.prose-frame::before,
.prose-frame::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
}

.prose-frame::before {
  top: 0;
  right: 0;
  background: var(--teal);
  clip-path: path('M90,0 L0,0 Q59,31 90,90 Z');
}

.prose-frame::after {
  bottom: 0;
  left: 0;
  background: var(--pink);
  clip-path: path('M0,0 L0,90 L90,90 Q31,59 0,0 Z');
}

.prose-frame .prose {
  position: relative;
  z-index: 1;
}

.prose h2 {
  margin-top: 1.4em;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--pink);
}

.card h3 {
  color: var(--pink-dark);
}

.card.teal-top {
  border-top-color: var(--teal);
}

.card.teal-top h3 {
  color: var(--teal-dark);
}

/* Upcoming / past events sit side by side when there's room, and wrap to stacked otherwise */
.event-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
}

.event-column {
  flex: 1 1 360px;
  max-width: 480px;
}

.event-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--teal);
  border-top: 6px solid var(--pink);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.event-card-logo {
  max-width: 220px;
  width: 100%;
  margin: 0 auto 20px;
}

.event-flyer {
  max-width: 320px;
  width: 100%;
  margin: 0 auto 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.event-card p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.event-card p + p {
  margin-top: 12px;
}

.event-name {
  margin: 0 0 12px;
}

.event-date {
  display: block;
  width: fit-content;
  margin: 0 auto 20px;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
}

.event-ics-btn {
  display: inline-block;
  margin-bottom: 24px;
}

/* Past events: a more compact version of the event card */
.event-card--past {
  max-width: 340px;
  padding: 24px 20px;
}

.event-card--past .event-card-logo {
  max-width: 150px;
  margin-bottom: 14px;
}

.event-card--past .event-flyer {
  max-width: 220px;
  margin-bottom: 14px;
}

.event-card--past .event-name {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.event-card--past .event-date {
  font-size: 0.85rem;
  padding: 4px 14px;
  margin-bottom: 14px;
  white-space: nowrap;
}

.event-card--past .event-ics-btn {
  margin-bottom: 16px;
}

.event-card--past p {
  font-size: 0.95rem;
}

.stat-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: center;
  padding: 40px 0;
}

.stat-strip .stat-num {
  font-family: 'Baloo 2', sans-serif;
  font-size: 2.6rem;
  color: var(--pink);
  font-weight: 700;
}

.stat-strip .stat-label {
  color: var(--teal-dark);
  font-weight: 600;
}

.cta-banner {
  background: var(--pink-dark);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius);
  margin: 0 24px;
}

.cta-banner h2 {
  color: #fff;
}

.quote-block {
  background: var(--cream-dark);
  border-left: 6px solid var(--pink);
  padding: 20px 26px;
  border-radius: 8px;
  font-style: italic;
  color: var(--teal-dark);
}

/* ---------- Forms ---------- */

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.form-row .required {
  color: var(--pink);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border-muted);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background: var(--cream);
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-row .form-label {
  display: block;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

/* A preset value shown to the visitor but not editable (submitted via a hidden input) */
.form-row .fixed-value {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
}

.form-row textarea {
  min-height: 130px;
  resize: vertical;
}

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

.checkbox-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--pink);
}

.checkbox-row label {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}

.captcha-box {
  background: var(--teal-light);
  border: 2px dashed var(--teal);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.captcha-box .captcha-question {
  font-weight: 700;
  color: var(--teal-dark);
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.1rem;
}

.captcha-box input {
  width: 90px !important;
}

/* honeypot field — hidden from real visitors, catches bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-msg {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-msg.success {
  background: #e3f5ea;
  color: #1c7a44;
  border: 2px solid #a6e3bf;
}

.form-msg.error {
  background: var(--pink-light);
  color: var(--pink-dark);
  border: 2px solid var(--pink);
}

.contact-info {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 640px;
}

/* ---------- Tabs ---------- */

.tab-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 6px;
  background: var(--teal-light);
  border-radius: 999px;
}

.tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--teal-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab:hover {
  background: #fff;
}

.tab[aria-selected="true"] {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(238, 27, 133, 0.3);
}

.tab:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* When linked to directly (e.g. contact.html#looking-to-book), leave room
   for the sticky header and the tab bar above the panel */
.tab-panel {
  scroll-margin-top: 220px;
}

.tab-panel[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .tab-list {
    border-radius: 16px;
  }

  .tab {
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-dark);
  color: #f2ece0;
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-inner {
  text-align: center;
}

.footer-name {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 2px;
}

.footer-tagline {
  color: var(--pink-light);
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-quote {
  max-width: 620px;
  margin: 0 auto 18px;
  font-style: italic;
  color: #d9ece9;
  font-size: 0.95rem;
  border: none;
  padding: 0;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #a9c7c4;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 4px solid var(--pink);
    display: none;
  }

  .site-nav.open {
    display: block;
    z-index: 20;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 12px 24px 20px;
  }

  .site-nav a {
    display: block;
  }

  .cta-banner {
    margin: 0 12px;
  }
}

@media (max-width: 600px) {
  .framed-photo {
    float: none;
    margin: 0 auto 24px;
  }

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

  /* On phones, float the arrows over the bottom corners so the photo gets the full width */
  .lightbox-img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 160px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .lightbox-caption {
    bottom: 38px;
  }
}
