/* ============================================
   CLIFTON'S REPUBLIC — Stylesheet
   Palette: Charcoal (#1C1C1E) + Coral (#E8634A)
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
  --charcoal: #1C1C1E;
  --charcoal-light: #2C2C2E;
  --charcoal-mid: #3A3A3C;
  --coral: #E8634A;
  --coral-dark: #D1523A;
  --coral-light: #F28A76;
  --cream: #F5F0EC;
  --cream-dark: #EDE7E0;
  --white: #FFFFFF;
  --text-dark: #1C1C1E;
  --text-light: #F5F0EC;
  --text-muted: #8E8E93;
  --text-muted-dark: #636366;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --section-pad: clamp(4rem, 10vw, 8rem);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

address {
  font-style: normal;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 99, 74, 0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   SECTION TAGS & TITLES
   ============================================ */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

.section-tag.light {
  color: var(--coral-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.section-title.light {
  color: var(--white);
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted-dark);
  max-width: 560px;
  line-height: 1.7;
}

.section-sub.light {
  color: rgba(245, 240, 236, 0.75);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header .section-sub {
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) 0;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(28, 28, 30, 0.97);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 6px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 240, 236, 0.78);
  border-radius: 6px;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 28, 30, 0.7) 0%,
    rgba(28, 28, 30, 0.55) 50%,
    rgba(28, 28, 30, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8rem 1.25rem 4rem;
  max-width: 860px;
}

.hero-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--coral);
}

.hero-accent {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(245, 240, 236, 0.7);
  margin-top: 0.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(245, 240, 236, 0.8);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(245, 240, 236, 0.5);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
}

.about-image-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 40%;
  background: var(--coral);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.2;
}

.about-content p {
  color: var(--text-muted-dark);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cream-dark);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   MENU
   ============================================ */
.menu {
  background: var(--cream);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 2px 16px rgba(28, 28, 30, 0.06);
  border: 1px solid rgba(28, 28, 30, 0.06);
  transition: var(--transition);
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28, 28, 30, 0.12);
}

.menu-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--cream);
}

.menu-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--charcoal);
  border-radius: var(--radius);
  color: var(--coral);
  flex-shrink: 0;
}

.menu-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.menu-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--cream);
}

.menu-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-item-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
}

.menu-item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.menu-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   SPACE (GALLERY)
   ============================================ */
.space {
  background: var(--charcoal);
  color: var(--white);
}

.space-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.space-photo {
  border-radius: var(--radius);
  overflow: hidden;
}

.space-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.space-photo:hover img {
  transform: scale(1.04);
}

.space-photo.large {
  grid-column: 1 / 8;
  grid-row: 1 / 2;
}

.space-photo.large img {
  aspect-ratio: 4/3;
}

.space-photo.tall {
  grid-column: 8 / 10;
  grid-row: 1 / 3;
}

.space-photo.tall img {
  aspect-ratio: 5/7;
}

.space-photo:not(.large):not(.tall) img {
  aspect-ratio: 5/4;
}

/* ============================================
   EVENTS
   ============================================ */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.events-content p {
  color: var(--text-muted-dark);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.events-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.events-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--charcoal);
}

.events-features svg {
  color: var(--coral);
  flex-shrink: 0;
}

.events-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.events-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 6/7;
  border-radius: var(--radius-lg);
}

/* ============================================
   INFO (HOURS / LOCATION / CONTACT)
   ============================================ */
.info {
  background: var(--cream);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.info-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(28, 28, 30, 0.06);
  border: 1px solid rgba(28, 28, 30, 0.06);
}

.info-block-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--cream);
  font-size: 0.9375rem;
}

.hours-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.day {
  font-weight: 600;
  color: var(--charcoal);
}

.time {
  color: var(--text-muted);
}

.info-block address p {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.info-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--charcoal);
}

.contact-list a {
  transition: color var(--transition);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--coral);
}

.contact-list svg {
  color: var(--coral);
  flex-shrink: 0;
}

/* ============================================
   MAP
   ============================================ */
.map-section {
  height: 400px;
  background: var(--charcoal-light);
}

.map-section iframe {
  filter: grayscale(0.4) contrast(1.05);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-form-wrap {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232, 99, 74, 0.12);
}

.form-group select {
  appearance: none;
  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='%238E8E93' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.form-success svg {
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  color: var(--text-light);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand p {
  color: rgba(245, 240, 236, 0.6);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.9375rem;
  color: rgba(245, 240, 236, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--coral);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 236, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(245, 240, 236, 0.4);
  text-align: center;
}

/* ============================================
   SCROLL REVEAL (below fold only)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

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

  .space-photo.large {
    grid-column: 1 / -1;
  }

  .space-photo.tall {
    grid-column: 1 / 2;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 28, 30, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem 1.25rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .main-nav a {
    font-size: 1.125rem;
    padding: 0.875rem 1rem;
  }

  .main-nav li:last-child {
    margin-top: 1rem;
  }

  .main-nav li:last-child a {
    text-align: center;
  }

  .about-grid,
  .events-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrap {
    order: -1;
  }

  .about-image-accent {
    display: none;
  }

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

  .menu-card:last-child {
    max-width: none;
  }

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

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

  .space-photo.large,
  .space-photo.tall {
    grid-column: auto;
  }

  .space-photo.tall img {
    aspect-ratio: 4/3;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .about-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .about-stats {
    flex-direction: column;
    gap: 1.25rem;
  }
}
