/* =============================================================================
   Hugs are Nice — Design System
   Mobile-first, CSS custom properties, fluid typography
   ============================================================================= */

/* ?? 1. Design Tokens ??????????????????????????????????????????????????????? */
:root {
  /* Palette */
  --c-coral:        #e8705a;
  --c-coral-light:  #f4a090;
  --c-coral-dark:   #c9523a;
  --c-navy:         #1a2744;
  --c-navy-light:   #2d3f6e;
  --c-cream:        #fdf8f4;
  --c-white:        #ffffff;
  --c-gray-100:     #f5f0eb;
  --c-gray-200:     #e8e0d6;
  --c-gray-400:     #b8aca0;
  --c-gray-600:     #7a6e68;
  --c-gray-800:     #3d3530;
  --c-success:      #2e7d52;
  --c-error:        #c0392b;

  /* Fonts */
  --font-heading: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale */
  --text-xs:   clamp(0.75rem,  1.8vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 2vw,   0.9375rem);
  --text-base: clamp(1rem,     2.5vw, 1.0625rem);
  --text-lg:   clamp(1.0625rem,2.8vw, 1.1875rem);
  --text-xl:   clamp(1.25rem,  3.2vw, 1.4375rem);
  --text-2xl:  clamp(1.5rem,   4vw,   1.875rem);
  --text-3xl:  clamp(1.875rem, 5vw,   2.5rem);
  --text-4xl:  clamp(2.25rem,  6vw,   3.25rem);
  --text-5xl:  clamp(2.75rem,  8vw,   4.25rem);

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --container-max:  1200px;
  --header-height:  68px;

  /* Effects */
  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   20px;
  --radius-full: 9999px;
  --shadow-sm:   0 1px 4px rgba(26,39,68,.08);
  --shadow-md:   0 4px 20px rgba(26,39,68,.12);
  --shadow-lg:   0 8px 40px rgba(26,39,68,.18);
  --transition:  0.22s ease;
}

/* ?? 2. Reset ??????????????????????????????????????????????????????????????? */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--c-navy);
  background: var(--c-cream);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--c-coral-dark); text-decoration: underline; }
a:hover { color: var(--c-coral); }

ul, ol { list-style: none; }

/* ?? 3. Typography ?????????????????????????????????????????????????????????? */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-navy);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 700; }

p { margin-block: 0; }
p + p { margin-top: var(--sp-4); }

strong { font-weight: 700; }

/* ?? 4. Layout utilities ???????????????????????????????????????????????????? */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

@media (min-width: 640px)  { .container { padding-inline: var(--sp-8); } }
@media (min-width: 1024px) { .container { padding-inline: var(--sp-12); } }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ?? 5. Buttons ????????????????????????????????????????????????????????????? */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--c-coral);
  color: var(--c-white);
  border-color: var(--c-coral);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--c-coral-dark);
  border-color: var(--c-coral-dark);
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(232,112,90,.35);
}

.btn-outline {
  background: transparent;
  color: var(--c-coral-dark);
  border-color: var(--c-coral);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--c-coral);
  color: var(--c-white);
}

.btn-nav {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--text-sm);
  background: var(--c-coral);
  color: var(--c-white);
  border-color: var(--c-coral);
}
.btn-nav:hover {
  background: var(--c-coral-dark);
  border-color: var(--c-coral-dark);
  color: var(--c-white);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); }

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--c-coral);
  outline-offset: 3px;
}

/* ?? 6. Site Header ????????????????????????????????????????????????????????? */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-height);
  background: rgba(253,248,244,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(253,248,244,.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--c-navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  line-height: 1;
}
.site-logo:hover { color: var(--c-coral-dark); }

.logo-heart {
  color: var(--c-coral);
  font-size: 1.25em;
  line-height: 1;
}

/* Desktop nav */
.site-nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-link {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--c-navy);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--c-coral-dark); background: var(--c-gray-100); }
.nav-link.is-active { color: var(--c-coral-dark); }

/* Hamburger toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: var(--sp-2);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--c-gray-100); }

.hamburger-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,39,68,.5);
  z-index: 800;
  backdrop-filter: blur(2px);
}
.nav-open .nav-backdrop { display: block; }

@media (max-width: 767px) {
  .site-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: min(85vw, 320px);
    height: 100vh;
    background: var(--c-white);
    box-shadow: var(--shadow-lg);
    z-index: 850;
    padding: calc(var(--header-height) + var(--sp-4)) var(--sp-6) var(--sp-8);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
  .nav-link {
    font-size: var(--text-lg);
    padding: var(--sp-3) var(--sp-4);
    width: 100%;
  }
  .nav-link--cta {
    margin-top: var(--sp-4);
    width: 100%;
    justify-content: center;
    font-size: var(--text-base);
    padding: var(--sp-3) var(--sp-6);
  }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
    transform: none;
    width: auto;
    overflow: visible;
  }
}

/* ?? 7. Page loading spinner ???????????????????????????????????????????????? */
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
}

.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--c-gray-200);
  border-top-color: var(--c-coral);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ?? 8. Generic section styles ?????????????????????????????????????????????? */
.section {
  padding-block: var(--sp-16);
}

.section--alt { background: var(--c-gray-100); }
.section--dark {
  background: var(--c-navy);
  color: var(--c-cream);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--c-white); }

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-8);
  color: var(--c-navy);
}

.section-title--centered { text-align: center; }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--c-gray-600);
  margin-top: calc(-1 * var(--sp-4));
  margin-bottom: var(--sp-8);
}

/* Page header for inner views */
.page-header {
  padding-top: calc(var(--header-height) + var(--sp-12));
  padding-bottom: var(--sp-12);
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-light) 100%);
  color: var(--c-white);
  text-align: center;
}

.page-header h1 { color: var(--c-white); margin-bottom: var(--sp-4); }

.page-intro {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.85);
  max-width: 680px;
  margin-inline: auto;
}

/* ?? 9. Hero Carousel ??????????????????????????????????????????????????????? */
.hero {
  position: relative;
  height: 100svh;
  min-height: 480px;
  max-height: 860px;
  overflow: hidden;
  margin-top: 0; /* header is fixed */
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.carousel-slides {
  position: relative;
  width: 100%; height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--c-navy); /* fallback while image loads */
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-slide.is-active { opacity: 1; }

/* Gradient fallback when no images are available */
.carousel-slide--gradient {
  background: linear-gradient(135deg, var(--c-coral) 0%, var(--c-coral-dark) 40%, var(--c-navy-light) 100%);
  opacity: 1;
}

/* Darkening overlay for text contrast */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(26,39,68,.25) 0%,
    rgba(26,39,68,.15) 40%,
    rgba(26,39,68,.65) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding-bottom: var(--sp-16);
  text-align: center;
}

.hero-title {
  font-size: var(--text-5xl);
  color: var(--c-white);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin-bottom: var(--sp-3);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* Carousel controls */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: var(--c-white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.carousel-prev { left: var(--sp-4); }
.carousel-next { right: var(--sp-4); }
.carousel-prev:hover,
.carousel-next:hover { background: rgba(255,255,255,.35); }

.carousel-dots {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--sp-2);
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  padding: 0;
}
.carousel-dot.is-active {
  background: var(--c-white);
  border-color: var(--c-white);
}

/* ?? 10. Mission section ???????????????????????????????????????????????????? */
.mission-section { background: var(--c-white); }

.mission-text {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--c-navy);
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

/* ?? 11. Video section ?????????????????????????????????????????????????????? */
.video-section { background: var(--c-cream); }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin-inline: auto;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ?? 12. Instagram section ?????????????????????????????????????????????????? */
.instagram-section { background: var(--c-white); }

.instagram-intro-text {
  font-size: var(--text-lg);
  color: var(--c-gray-600);
  text-align: center;
  margin-bottom: var(--sp-8);
}

.instagram-widget-wrap {
  margin-bottom: var(--sp-8);
  min-height: 200px;
}

.instagram-fallback {
  text-align: center;
  padding: var(--sp-8);
  background: var(--c-gray-100);
  border-radius: var(--radius-lg);
  color: var(--c-gray-600);
}

.instagram-link-wrap { text-align: center; margin-top: var(--sp-6); }

/* ?? 13. Action tabs ???????????????????????????????????????????????????????? */
.tabs-section { background: var(--c-gray-100); }

.tabs-wrapper {
  max-width: 800px;
  margin-inline: auto;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  border-bottom: 2px solid var(--c-gray-200);
  padding-bottom: 0;
}

.tab-btn {
  padding: var(--sp-3) var(--sp-5);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--c-gray-600);
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--c-coral-dark); }
.tab-btn.is-active {
  color: var(--c-coral-dark);
  border-bottom-color: var(--c-coral);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadein .2s ease; }

@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.tab-intro {
  font-style: italic;
  color: var(--c-gray-600);
  margin-bottom: var(--sp-4);
}

.tab-panel ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.tab-panel li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  line-height: 1.6;
}
.tab-panel li::before {
  content: '?';
  color: var(--c-coral);
  flex-shrink: 0;
  font-size: 0.9em;
  margin-top: 0.2em;
}

/* ?? 14. Contact form section ??????????????????????????????????????????????? */
.contact-section { background: var(--c-white); }

.contact-inner {
  display: grid;
  gap: var(--sp-12);
}

@media (min-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-intro .section-title { margin-bottom: var(--sp-4); }
.contact-intro p { color: var(--c-gray-600); line-height: 1.8; }

/* ?? 15. Generic form styles ???????????????????????????????????????????????? */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-5);
}

label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--c-navy);
}

label span { color: var(--c-coral); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--c-navy);
  background: var(--c-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--c-coral);
  box-shadow: 0 0 0 3px rgba(232,112,90,.18);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--c-error);
}

.field-error {
  font-size: var(--text-xs);
  color: var(--c-error);
  margin-top: var(--sp-1);
}

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

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6e68' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
}

/* Honeypot: visually hidden but not screen-reader-invisible */
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Form row (two-column on wider screens) */
.form-row {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* Form section (fieldset) */
.form-section {
  border: none;
  padding: 0;
  margin-bottom: var(--sp-8);
}

.form-section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--c-navy);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--c-gray-200);
}

/* Checkbox grid for Join Us form */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
@media (min-width: 480px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--c-gray-800);
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.checkbox-label:hover { background: var(--c-gray-100); }

input[type="checkbox"],
input[type="radio"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--c-coral);
  cursor: pointer;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--text-base);
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition);
}
.radio-label:hover { border-color: var(--c-coral-light); background: var(--c-gray-100); }
.radio-label input[type="radio"] { width: 20px; height: 20px; flex-shrink: 0; }
.radio-label.is-selected {
  border-color: var(--c-coral);
  background: rgba(232,112,90,.06);
}

/* Form success */
.form-success {
  padding: var(--sp-6);
  background: rgba(46,125,82,.08);
  border: 2px solid rgba(46,125,82,.3);
  border-radius: var(--radius-md);
  color: var(--c-success);
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
}

/* Join form revealed section */
.join-rest { animation: fadein .3s ease; }

/* ?? 16. Partners section ??????????????????????????????????????????????????? */
.partners-section { background: var(--c-cream); }

.partners-intro {
  text-align: center;
  color: var(--c-gray-600);
  margin-bottom: var(--sp-10);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
}

.partner-item img {
  height: 70px;
  width: auto;
  filter: grayscale(60%);
  opacity: .8;
  transition: filter var(--transition), opacity var(--transition);
}
.partner-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partners-empty {
  text-align: center;
  color: var(--c-gray-400);
  font-style: italic;
}

/* ?? 17. About page ????????????????????????????????????????????????????????? */
.about-body { background: var(--c-white); }

.about-sections {
  display: grid;
  gap: var(--sp-12);
  max-width: 780px;
  margin-inline: auto;
  margin-top: var(--sp-12);
}

.about-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-4);
  color: var(--c-coral-dark);
}

.about-section p {
  color: var(--c-gray-600);
  line-height: 1.8;
}

/* ?? 18. Gallery page ??????????????????????????????????????????????????????? */
.gallery-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-8);
}

.social-card {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid var(--c-gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--c-navy);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.social-card:hover {
  border-color: var(--c-coral);
  background: var(--c-coral);
  color: var(--c-white);
}
.social-card svg { width: 18px; height: 18px; fill: currentColor; }

.gallery-instagram-section { background: var(--c-white); }

.gallery-hashtag-cta {
  text-align: center;
  margin-top: var(--sp-8);
}
.gallery-hashtag-cta p { color: var(--c-gray-600); margin-bottom: var(--sp-4); }

/* ?? 19. Join Us page ??????????????????????????????????????????????????????? */
.join-section { background: var(--c-white); padding-top: var(--sp-12); }

.join-form-wrap {
  max-width: 680px;
  margin-inline: auto;
  margin-top: var(--sp-10);
}

/* ?? 20. Footer ????????????????????????????????????????????????????????????? */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,.7);
  padding-block: var(--sp-12);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--c-white);
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
}

.social-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon:hover {
  background: var(--c-coral);
  color: var(--c-white);
}

.footer-hashtag a {
  color: var(--c-coral-light);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
}
.footer-hashtag a:hover { color: var(--c-coral); }

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
}

/* ?? 21. Toast notifications ???????????????????????????????????????????????? */
#toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--c-white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px) scale(.95);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: all;
  max-width: 360px;
}
.toast.is-visible {
  opacity: 1;
  transform: none;
}
.toast-error   { background: var(--c-error); }
.toast-success { background: var(--c-success); }
.toast-info    { background: var(--c-navy-light); }

/* ?? 22. Reduced motion ????????????????????????????????????????????????????? */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .carousel-slide { transition: none; }
}
