/* ============================================================
   ALL'S WELL — Main Stylesheet
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-crimson: #B22234;
  --color-crimson-dark: #8B1A29;
  --color-gold: #c9963a;
  --color-gold-light: #e0b96e;
  --color-green: #1a5c2a;
  --color-wood: #2C1810;
  --color-wood-light: #4a3228;
  --color-cream: #FFF9F0;
  --color-cream-dark: #f5e8d0;
  --color-text: #2d2420;
  --color-text-light: #6b5e56;
  --color-white: #ffffff;
  --color-black: #0d0a08;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-height: 72px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 24px rgba(44, 24, 16, 0.12);
  --shadow-lg: 0 8px 40px rgba(44, 24, 16, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.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;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.section-label--light {
  color: var(--color-gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-wood);
  line-height: 1.2;
  margin-bottom: 24px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-crimson);
  color: var(--color-white);
  border: 2px solid var(--color-crimson);
}

.btn-primary:hover {
  background: var(--color-crimson-dark);
  border-color: var(--color-crimson-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178, 34, 52, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-cream);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.05rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 249, 240, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.header-logo-link {
  display: flex;
  align-items: center;
}

.header-logo-svg {
  height: 36px;
  width: auto;
}

/* Logo text color changes when scrolled */
.site-header:not(.scrolled) .header-logo-svg text {
  fill: var(--color-cream);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.site-header.scrolled .nav-link {
  color: var(--color-text);
}

.site-header.scrolled .nav-link:hover {
  color: var(--color-crimson);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: all var(--transition);
}

.site-header.scrolled .hamburger-line {
  background: var(--color-wood);
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   SIDEBAR (Mobile)
   ============================================================ */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 10, 8, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 1100;
  transition: opacity var(--transition), visibility var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--color-cream);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(44, 24, 16, 0.08);
}

.sidebar-logo-svg {
  height: 30px;
  width: auto;
}

.sidebar-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-light);
  transition: all var(--transition);
}

.sidebar-close:hover {
  background: rgba(44, 24, 16, 0.06);
  color: var(--color-crimson);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.sidebar-link {
  display: block;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-wood);
  transition: all var(--transition);
  position: relative;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--color-crimson);
  border-radius: 0 2px 2px 0;
  transition: height var(--transition);
}

.sidebar-link:hover {
  color: var(--color-crimson);
  background: rgba(178, 34, 52, 0.04);
}

.sidebar-link:hover::before {
  height: 60%;
}

.sidebar-footer {
  padding: 24px 32px;
  border-top: 1px solid rgba(44, 24, 16, 0.08);
}

.sidebar-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-crimson);
  margin-bottom: 8px;
}

.sidebar-hours-mini {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 10, 8, 0.55) 0%,
    rgba(44, 24, 16, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 24px;
  animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo {
  margin-bottom: 24px;
}

.stained-glass-logo {
  width: 320px;
  max-width: 80vw;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  animation: bounceDown 2s ease-in-out infinite;
}

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

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding: 100px 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-text .btn {
  margin-top: 12px;
}

/* ============================================================
   MENU CTA
   ============================================================ */
.menu-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
}

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

.menu-cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 24, 16, 0.88) 0%,
    rgba(13, 10, 8, 0.92) 100%
  );
}

.menu-cta-content {
  position: relative;
  z-index: 1;
}

.menu-cta-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 48px;
}

.menu-cta-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 48px;
}

.menu-cta-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-md);
  cursor: default;
}

.menu-cta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-cta-card:hover img {
  transform: scale(1.08);
}

.menu-cta-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   GALLERY / SLIDESHOW
   ============================================================ */
.gallery {
  background: var(--color-white);
  text-align: center;
}

.slideshow {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background: var(--color-black);
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slide-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.slide-btn--prev { left: 16px; }
.slide-btn--next { right: 16px; }

.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.slideshow-dot.active {
  background: var(--color-gold);
  transform: scale(1.2);
}

/* ============================================================
   HOURS & LOCATION
   ============================================================ */
.hours-location {
  background: var(--color-cream);
  text-align: center;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-top: 48px;
  text-align: left;
}

.hours-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 24, 16, 0.06);
}

.hours-card-icon {
  margin-bottom: 20px;
}

.hours-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-wood);
  margin-bottom: 24px;
}

.hours-list {
  margin-bottom: 20px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(44, 24, 16, 0.06);
  font-size: 0.95rem;
}

.hours-row span:first-child {
  font-weight: 700;
  color: var(--color-wood);
}

.hours-row span:last-child {
  color: var(--color-text-light);
}

.hours-note {
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-style: italic;
}

.hours-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 24, 16, 0.06);
  background: var(--color-white);
}

.map-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-info {
  padding: 20px 24px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-crimson);
  font-size: 1rem;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--color-crimson-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-wood);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo-svg {
  height: 30px;
  width: auto;
  margin-bottom: 12px;
}

.footer-logo-svg text {
  fill: var(--color-cream) !important;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-cream);
  margin-bottom: 16px;
}

.footer-links a,
.footer-contact a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-credit a {
  color: var(--color-gold);
  transition: color var(--transition);
}

.footer-credit a:hover {
  color: var(--color-gold-light);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(178, 34, 52, 0.2);
  color: var(--color-wood);
}

/* ============================================================
   SCROLLBAR (Webkit)
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-crimson);
}
