@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;900&display=swap');

:root {
  --background: #475c7a;
  --accent-primary: #fcbb6d;
  --accent-secondary: #d8737f;
  --muted: #ab6c82;
  --text-dark: #685d79;
  --white: #f9f7f3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .site-header {
    transition: none;
  }
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #475c7a 0%, #685d79 55%, #ab6c82 110%);
  background-attachment: fixed;
  color: var(--white);
  line-height: 1.6;
}

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

main {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1.5rem 1rem;
  background: rgba(71, 92, 122, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease;
}

.site-header--hidden {
  transform: translateY(-120%);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav__group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav__group--secondary {
  gap: 0.5rem;
}

.main-nav__divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
}

.main-nav button {
  background: var(--accent-secondary);
  border: none;
  color: var(--white);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.main-nav button:hover,
.main-nav button:focus {
  background: var(--accent-primary);
  transform: translateY(-2px);
}

section {
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
}

section:first-of-type {
  padding-top: 8rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}

.hero-image {
  width: 100%;
  height: 60vh;
  position: relative;
  background-size: cover;
  background-position: center;
  background-blend-mode: screen;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(252, 187, 109, 0.45),
    rgba(216, 115, 127, 0.25)
  );
  pointer-events: none;
}

.hero-image--empty {
  background: rgba(171, 108, 130, 0.35);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 1.5rem;
  color: var(--accent-primary);
}

.gallery-section {
  background: linear-gradient(
    135deg,
    rgba(104, 93, 121, 0.35),
    rgba(171, 108, 130, 0.25)
  );
  border-radius: 1.5rem;
  margin-bottom: 4rem;
  box-shadow: 0 20px 45px rgba(54, 37, 68, 0.35);
  padding-bottom: 2rem;
}

.gallery-section--highlight {
  border: 2px solid rgba(252, 187, 109, 0.5);
  padding-bottom: 3rem;
}

.gallery-section--highlight .section-header h2 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: 0.04em;
}

.senior-banner {
  width: 100%;
  margin: 1rem 0 2rem;
  padding: 2rem;
  background: linear-gradient(120deg, #fcbb6d, #d8737f);
  color: var(--background);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
  font-size: clamp(1rem, 5vw, 1.6rem);
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gallery-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  min-height: 60vh;
  margin: 0;
  cursor: pointer;
  gap: 1.5rem;
}

.gallery-card + .gallery-card {
  margin-top: 0;
}

.gallery-card__image,
.gallery-card__details {
  min-height: inherit;
}

.gallery-card__image {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1.5rem 0 0 1.5rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.gallery-card__details {
  border-radius: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  min-height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background-image: radial-gradient(circle at top, rgba(252, 187, 109, 0.12), transparent);
}

.gallery-card--reverse {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card__image {
  order: 1;
}

.gallery-card__details {
  order: 2;
}

.gallery-card--reverse .gallery-card__image {
  order: 2;
}

.gallery-card--reverse .gallery-card__details {
  order: 1;
}

.gallery-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #1c1c1c;
}

.gallery-card__settings,
.gallery-card__subject,
.gallery-card__placeholder {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.gallery-card__settings {
  letter-spacing: 0.25em;
  color: var(--accent-primary);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.text-section {
  background: linear-gradient(
    145deg,
    rgba(104, 93, 121, 0.32),
    rgba(171, 108, 130, 0.2)
  );
  border-radius: 1.5rem;
  margin-bottom: 4rem;
  box-shadow: 0 20px 45px rgba(54, 37, 68, 0.35);
}

.text-section p {
  max-width: 600px;
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1rem;
}

.contact-form button {
  justify-self: start;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: var(--accent-secondary);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--accent-primary);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  width: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.lightbox .close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  color: var(--white);
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.admin-panel {
  position: fixed;
  inset: 0;
  background: rgba(28, 30, 41, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1.5rem;
}

.admin-panel.visible {
  display: flex;
}

.admin-panel__inner {
  background: rgba(71, 92, 122, 0.95);
  border-radius: 1.5rem;
  padding: 2rem;
  width: min(420px, 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

.admin-panel__inner h3 {
  margin-top: 0;
  color: var(--accent-primary);
}

.admin-panel__inner button.close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.5rem;
  color: var(--white);
  border: none;
  background: transparent;
  cursor: pointer;
}

.admin-panel__inner form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-panel__inner input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--white);
}

.admin-panel__inner button[type='submit'] {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  background: var(--accent-secondary);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
}

.admin-panel__inner button[type='submit']:hover {
  background: var(--accent-primary);
}

.admin-panel__hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.admin-panel__section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-panel__section-header h4 {
  margin: 0;
  color: var(--accent-primary);
}

.admin-panel__section-header p {
  margin: 0.2rem 0 1rem;
  color: var(--muted);
}

.admin-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.admin-metrics li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
}

.admin-metrics span {
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-metrics strong {
  font-size: 1.2rem;
  color: var(--white);
}

.admin-panel__empty {
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-inbox {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: 40vh;
  overflow-y: auto;
}

.admin-inbox li {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
}

.admin-inbox__meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.admin-inbox__message {
  margin: 0;
  color: var(--white);
  line-height: 1.4;
}

.contact-form .form-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent-primary);
}

.contact-form .form-status.error {
  color: var(--accent-secondary);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: repeat(12, 1fr);
  }

  .hero-image {
    grid-column: span 7;
    height: 70vh;
  }

  .hero-content {
    grid-column: span 5;
  }

  section {
    padding: 8rem 3rem 6rem;
  }
}

@media (min-width: 1200px) {
  section {
    padding-left: 8vw;
    padding-right: 8vw;
  }
}
