/* ============================================
   McKinney's Sweet Treats — Styles
   Palette: Forest Green + Off-White
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a2e1a;
  background-color: #FAFAF5;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: #0f2410;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #166534;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: #3d5c3d;
  max-width: 560px;
  line-height: 1.7;
}

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

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-accent {
  background: #166534;
  color: #F0FDF4;
  border-color: #166534;
}

.btn-accent:hover {
  background: #14532d;
  border-color: #14532d;
}

.btn-light {
  background: #F0FDF4;
  color: #166534;
  border-color: #F0FDF4;
}

.btn-light:hover {
  background: #dcfce7;
  border-color: #dcfce7;
}

.btn-outline-light {
  background: transparent;
  color: #F0FDF4;
  border-color: rgba(240, 253, 244, 0.6);
}

.btn-outline-light:hover {
  background: rgba(240, 253, 244, 0.12);
  border-color: #F0FDF4;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 101, 52, 0.1);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(15, 36, 16, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f2410;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: #166534;
  color: #F0FDF4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* --- Nav --- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2d4a2d;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-list a:hover {
  background: rgba(22, 101, 52, 0.08);
  color: #166534;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a2e1a;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger {
  position: relative;
  margin: 0 auto;
}

.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 {
  transform: translateY(7px) rotate(45deg);
}

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f2410;
}

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

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

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 36, 16, 0.72) 0%,
    rgba(15, 36, 16, 0.55) 50%,
    rgba(15, 36, 16, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 24px 100px;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.25rem, 6vw, 4rem);
  color: #F0FDF4;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(240, 253, 244, 0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(240, 253, 244, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator span {
  width: 3px;
  height: 8px;
  background: rgba(240, 253, 244, 0.6);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* --- Section Spacing --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: #EFF6FF;
  background: #EEF5E9;
}

/* --- About --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15, 36, 16, 0.12);
}

.about-content p {
  color: #3d5c3d;
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(22, 101, 52, 0.15);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #166534;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5a7d5a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Menu --- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.menu-card {
  background: #FAFAF5;
  border: 1px solid rgba(22, 101, 52, 0.12);
  border-radius: 12px;
  padding: 36px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.menu-card:hover {
  box-shadow: 0 12px 40px rgba(15, 36, 16, 0.1);
  transform: translateY(-2px);
}

.menu-card-icon {
  width: 52px;
  height: 52px;
  background: #166534;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #F0FDF4;
}

.menu-card-icon svg {
  width: 26px;
  height: 26px;
}

.menu-card-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: #0f2410;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(22, 101, 52, 0.08);
}

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

.menu-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a2e1a;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: #5a7d5a;
  text-align: right;
  flex-shrink: 0;
}

.menu-note {
  text-align: center;
  margin-top: 36px;
  font-size: 0.9rem;
  color: #5a7d5a;
  font-style: italic;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- Visit --- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 36, 16, 0.1);
}

.visit-map img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.visit-detail {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(22, 101, 52, 0.1);
}

.visit-detail:first-child {
  padding-top: 0;
}

.visit-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.visit-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(22, 101, 52, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #166534;
}

.visit-detail-icon svg {
  width: 22px;
  height: 22px;
}

.visit-detail strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #166534;
  margin-bottom: 6px;
}

.visit-detail p {
  font-size: 0.95rem;
  color: #3d5c3d;
  line-height: 1.65;
}

.visit-detail a {
  color: #166534;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.visit-detail a:hover {
  color: #14532d;
}

/* --- Contact --- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text .section-desc {
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a2e1a;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid rgba(22, 101, 52, 0.2);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1a2e1a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9db89d;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #166534;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: #dcfce7;
  color: #166534;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #bbf7d0;
}

.form-success.visible {
  display: block;
}

/* --- Footer --- */
.site-footer {
  background: #0f2410;
  color: rgba(240, 253, 244, 0.7);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand .logo {
  color: #F0FDF4;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #86efac;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(240, 253, 244, 0.65);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #F0FDF4;
}

.footer-contact p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 4px;
}

.footer-contact a {
  color: rgba(240, 253, 244, 0.65);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #F0FDF4;
}

.footer-bottom {
  border-top: 1px solid rgba(240, 253, 244, 0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(240, 253, 244, 0.4);
}

/* --- Mobile Menu --- */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 245, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(22, 101, 52, 0.1);
    box-shadow: 0 12px 32px rgba(15, 36, 16, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-list a {
    padding: 14px 16px;
    font-size: 1rem;
    width: 100%;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-2,
  .visit-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .about-image img {
    height: 360px;
  }

  .visit-map img {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }

  .hero-content {
    padding: 120px 20px 80px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .about-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
