:root {
  color-scheme: light;
  --sand: #f6efe6;
  --olive: #3f4a3c;
  --tomato: #c6452e;
  --charcoal: #1f1e1c;
  --cream: #fff8f1;
  --shadow: 0 18px 45px rgba(31, 30, 28, 0.12);
  --radius: 24px;
}

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

body {
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  background: radial-gradient(circle at top, #fff 0%, var(--sand) 55%, #efe2d5 100%);
  color: var(--charcoal);
  line-height: 1.6;
}

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

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

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Header & Navigation */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 6vw 1rem;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(31, 30, 28, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  opacity: 0.9;
}

.logo-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(31, 30, 28, 0.1);
  box-shadow: 0 6px 18px rgba(31, 30, 28, 0.12);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.brand:hover .logo-wrapper {
  transform: rotate(5deg) scale(1.05);
}

.logo-mark:hover {
  transform: rotate(5deg) scale(1.05);
}

.brand-title {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.95rem;
  color: rgba(31, 30, 28, 0.7);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}

.nav a,
.mobile-nav a,
.footer-links a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tomato);
  transition: width 0.3s ease;
}

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

.nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--tomato);
}

.nav a.active {
  color: var(--tomato);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--charcoal);
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: var(--charcoal);
  color: white;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 6vw 1.5rem;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav.is-open {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn.primary {
  background: var(--tomato);
  color: white;
  box-shadow: 0 10px 20px rgba(198, 69, 46, 0.25);
}

.btn.ghost {
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 30, 28, 0.15);
}

.btn.primary:hover {
  box-shadow: 0 12px 24px rgba(198, 69, 46, 0.35);
  animation: pulse 0.6s ease;
}

.btn:active {
  transform: translateY(0);
}

/* Sections */
.section {
  padding: 3.5rem 6vw;
}

.section h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--olive);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Cards */
.card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(31, 30, 28, 0.15);
}

/* Fun decorative elements */
.pizza-decoration {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

/* Enhanced input styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px rgba(198, 69, 46, 0.1);
}

/* Footer */
.site-footer {
  padding: 2rem 6vw 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.footer-links a i {
  font-size: 1.1rem;
}

/* Utility Classes */
.fade-in {
  animation: fadeInUp 0.6s ease both;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger animation delays for grid items */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 2.5rem 6vw;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 1.5rem 6vw 0.5rem;
  }

  .section {
    padding: 2rem 6vw;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-tagline {
    font-size: 0.85rem;
  }

  .logo-mark {
    width: 50px;
    height: 50px;
  }
}

/* Enhanced touch targets for mobile */
@media (max-width: 900px) {
  .btn {
    min-height: 44px;
    padding: 0.875rem 1.5rem;
  }

  .nav a,
  .mobile-nav a {
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .filter-btn {
    min-height: 44px;
    padding: 0.625rem 1.5rem;
  }
}

/* Improved form inputs on mobile */
@media (max-width: 700px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
