/*
Theme Name: Tacos Carlito's Way
Theme URI: https://tacoscarlitosway.ca
Author: Your Name
Author URI: https://yourwebsite.com
Description: A vibrant, playful WordPress theme for Tacos Carlito's Way - an authentic Mexican food truck. Features custom blocks for menu items, events calendar, and catering inquiries.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tacos-carlitos-way
Tags: food-truck, restaurant, mexican, vibrant, responsive, block-theme, full-site-editing
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ========================================
   BASE STYLES
   ======================================== */

:root {
  /* Brand Colors */
  --brand-green: #7AA85D;
  --brand-yellow: #F2B706;
  --brand-orange: #E66A1F;
  --brand-red: #C41E3A;
  --brand-teal: #2F9AAA;
  --brand-brown: #2B1F0F;
  --brand-taupe: #6B5A45;
  --brand-cream: #F6F2EA;
  
  /* WordPress Presets */
  --wp--preset--color--background: var(--brand-cream);
  --wp--preset--color--foreground: var(--brand-brown);
  --wp--preset--color--primary: var(--brand-green);
  --wp--preset--color--secondary: var(--brand-yellow);
  --wp--preset--color--tertiary: var(--brand-orange);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Coda:wght@400;800&family=Open+Sans:wght@400;500;600;700&display=swap');

/* Base Typography */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--brand-cream);
  color: var(--brand-brown);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Card Shadow */
.shadow-card {
  box-shadow: 0 18px 40px rgba(43, 31, 15, 0.14);
}

.shadow-card-hover:hover {
  box-shadow: 0 22px 48px rgba(43, 31, 15, 0.18);
}

/* Sticker Shadow */
.shadow-sticker {
  box-shadow: 0 8px 24px rgba(43, 31, 15, 0.2);
}

/* Border Radius */
.rounded-4xl {
  border-radius: 36px;
}

.rounded-3xl {
  border-radius: 28px;
}

.rounded-2xl {
  border-radius: 22px;
}

.rounded-pill {
  border-radius: 999px;
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Confetti Pattern */
.confetti-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F2B706' fill-opacity='0.15'%3E%3Ccircle cx='10' cy='10' r='3'/%3E%3Ccircle cx='30' cy='40' r='2'/%3E%3Ccircle cx='50' cy='20' r='2.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background-color: var(--brand-brown);
  color: var(--brand-yellow);
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 31, 15, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background-color: var(--brand-green);
  color: white;
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 168, 93, 0.35);
}

/* ========================================
   MENU ITEM STYLES
   ======================================== */

.menu-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.menu-item:hover {
  background-color: rgba(122, 168, 93, 0.08);
  transform: translateX(4px);
}

.menu-item:not(:last-child) {
  border-bottom: 1px solid rgba(43, 31, 15, 0.05);
}

.menu-item-price {
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-green);
  flex-shrink: 0;
}

/* ========================================
   EVENT CARD STYLES
   ======================================== */

.event-card {
  position: relative;
  background-color: var(--brand-cream);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(43, 31, 15, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(43, 31, 15, 0.18);
}

.event-date-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: white;
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  border-bottom-right-radius: 28px;
}

@media (min-width: 640px) {
  .event-date-badge {
    width: 96px;
    height: 96px;
  }
}

.event-date-badge .month {
  font-size: 0.875rem;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .event-date-badge .month {
    font-size: 1rem;
  }
}

.event-date-badge .day {
  font-size: 2rem;
  line-height: 1;
}

@media (min-width: 640px) {
  .event-date-badge .day {
    font-size: 2.5rem;
  }
}

/* Event Type Colors */
.event-type-festival { background-color: var(--brand-orange); }
.event-type-private { background-color: var(--brand-teal); }
.event-type-regular { background-color: var(--brand-green); }
.event-type-special { background-color: var(--brand-red); }

/* ========================================
   STICKER STYLES
   ======================================== */

.sticker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  box-shadow: 0 8px 24px rgba(43, 31, 15, 0.2);
  padding: 0.5rem;
}

.sticker-sm { width: 64px; height: 64px; font-size: 10px; }
.sticker-md { width: 96px; height: 96px; font-size: 12px; }
.sticker-lg { width: 128px; height: 128px; font-size: 14px; }

@media (min-width: 640px) {
  .sticker-lg { width: 160px; height: 160px; font-size: 16px; }
}

/* Sticker Colors */
.sticker-green { background-color: var(--brand-green); color: white; }
.sticker-yellow { background-color: var(--brand-yellow); color: var(--brand-brown); }
.sticker-orange { background-color: var(--brand-orange); color: white; }
.sticker-red { background-color: var(--brand-red); color: white; }
.sticker-teal { background-color: var(--brand-teal); color: white; }

/* ========================================
   SPECIALTY CARD STYLES
   ======================================== */

.specialty-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(43, 31, 15, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(43, 31, 15, 0.18);
}

.specialty-card-image {
  height: 280px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .specialty-card-image {
    height: 320px;
  }
}

.specialty-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.specialty-card:hover .specialty-card-image img {
  transform: scale(1.1);
}

.specialty-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.specialty-card-title {
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .specialty-card-title {
    font-size: 1.75rem;
  }
}

.specialty-card-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.specialty-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.specialty-card:hover .specialty-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
}

.site-header.scrolled {
  background-color: rgba(246, 242, 234, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(43, 31, 15, 0.14);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-header:not(.scrolled) {
  background-color: transparent;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(43, 31, 15, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--brand-brown);
  background-color: white;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-green);
}

.form-input::placeholder {
  color: rgba(107, 90, 69, 0.5);
}

.form-label {
  display: block;
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--brand-brown);
  margin-bottom: 0.5rem;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B5A45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
  background-color: var(--brand-brown);
  color: var(--brand-cream);
}

.site-footer a {
  color: rgba(246, 242, 234, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--brand-yellow);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes stickerPop {
  0% {
    transform: scale(0) rotate(-12deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.1) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.animate-sticker-pop {
  animation: stickerPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* ========================================
   WORDPRESS BLOCK OVERRIDES
   ======================================== */

/* Ensure blocks use our brand colors */
.wp-block-button__link {
  border-radius: 999px;
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
}

.wp-block-group {
  padding: 0;
}

/* Navigation block styling */
.wp-block-navigation-item a {
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.wp-block-navigation-item a:hover {
  background-color: rgba(122, 168, 93, 0.1);
}

/* Cover block overlay */
.wp-block-cover__background {
  background-color: rgba(43, 31, 15, 0.4) !important;
}
