/* ==========================================================================
   WEBSITE FRAMEWORK - MAIN STYLESHEET
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES
   Customize these for each client project
   ========================================================================== */
:root {
  /* Brand Colors - Update these for each client */
  --color-primary: #eea931;
  --color-primary-dark: #d89420;
  --color-primary-light: #f5c563;
  --color-secondary: #e74c1a;
  --color-secondary-dark: #c53d0f;
  --color-secondary-light: #f26b3d;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Typography */
  --font-primary: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Alfa Slab One', 'Arial Black', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Breakpoints (for reference in media queries) */
  /* sm: 640px */
  /* md: 768px */
  /* lg: 1024px */
  /* xl: 1280px */
  /* 2xl: 1536px */
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

/* Remove default margins and set base font */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-gray-900);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove button styles */
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Remove list styles */
ul, ol {
  list-style: none;
}

/* Anchor tags */
a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  color: var(--color-gray-900);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  h3 {
    font-size: var(--text-2xl);
  }
}

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-sm {
  max-width: var(--container-sm);
}

.container-md {
  max-width: var(--container-md);
}

.container-lg {
  max-width: var(--container-lg);
}

.container-full {
  max-width: 100%;
}

/* Section spacing */
.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-lg {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section-sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
  
  .section-lg {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
  
  .section-sm {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-column {
  display: flex;
  flex-direction: column;
}

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

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* ==========================================================================
   BUTTON COMPONENTS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  text-align: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-gray-700);
}

.btn-ghost:hover {
  background-color: var(--color-gray-100);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* ==========================================================================
   CARD COMPONENT
   ========================================================================== */

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.card-text {
  color: var(--color-gray-600);
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   NAVIGATION COMPONENT
   ========================================================================== */

.navbar {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.navbar-logo {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar-link {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
  transition: color var(--transition-fast);
}

.navbar-link:hover {
  color: var(--color-primary);
}

.navbar-link.active {
  color: var(--color-primary);
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2);
}

.navbar-toggle-line {
  width: 24px;
  height: 2px;
  background-color: var(--color-gray-700);
  transition: all var(--transition-base);
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-16) var(--space-6);
    box-shadow: var(--shadow-xl);
    transition: left var(--transition-base);
  }
  
  .navbar-menu.active {
    left: 0;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .navbar-toggle.active .navbar-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .navbar-toggle.active .navbar-toggle-line:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-toggle.active .navbar-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ==========================================================================
   HERO COMPONENT
   ========================================================================== */

.hero {
  text-align: center;
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.hero-title {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
}

/* ==========================================================================
   PAGE HEADER COMPONENT (For Sub-Pages)
   ========================================================================== */

.page-header {
  background-color: var(--color-gray-100);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  text-align: center;
}

.page-header-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  color: var(--color-gray-900);
}

.page-header-subtitle {
  font-size: var(--text-xl);
  color: var(--color-gray-600);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .page-header {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .page-header-title {
    font-size: var(--text-3xl);
  }

  .page-header-subtitle {
    font-size: var(--text-lg);
  }
}

/* ==========================================================================
   FORM COMPONENTS
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
  color: var(--color-gray-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-error {
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.form-helper {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */

.footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-300);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-section-title {
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: var(--color-gray-300);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-700);
  text-align: center;
  color: var(--color-gray-400);
  font-size: var(--text-sm);
}

/* ==========================================================================
   CONTENT BAND COMPONENT
   Two-column layout with text on left (in container) and image on right (extends to screen edge)
   ========================================================================== */

.content-band {
  overflow: hidden;
}

.content-band-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 500px;
}

.content-band-content {
  padding: var(--space-20) var(--space-8) var(--space-20) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: var(--space-12);
}

.content-band-content h2 {
  margin-bottom: var(--space-6);
}

.content-band-content p {
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.content-band-content p:last-of-type {
  margin-bottom: var(--space-8);
}

.content-band-image {
  position: relative;
  min-height: 100%;
}

.content-band-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reverse variant - image on left, text on right */
.content-band-reverse .content-band-wrapper {
  grid-template-columns: 1fr 1fr;
}

.content-band-reverse .content-band-content {
  order: 2;
  margin-left: var(--space-12);
  margin-right: auto;
}

.content-band-reverse .content-band-image {
  order: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .content-band-wrapper,
  .content-band-reverse .content-band-wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .content-band-content {
    padding: var(--space-12) var(--space-4);
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    order: 1;
  }

  .content-band-image {
    min-height: 300px;
    position: relative;
    order: 2;
  }

  .content-band-image img {
    position: relative;
    height: 300px;
  }

  /* Reset order and margins on mobile - content always on top */
  .content-band-reverse .content-band-content {
    order: 1;
    margin-left: 0;
    margin-right: 0;
  }

  .content-band-reverse .content-band-image {
    order: 2;
  }
}

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

/* Text alignment */
.text-center {
  text-align: center;
}

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

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

/* Text colors */
.text-primary {
  color: var(--color-primary);
}

.text-gray {
  color: var(--color-gray-600);
}

.text-white {
  color: var(--color-white);
}

/* Background colors */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-gray {
  background-color: var(--color-gray-100);
}

.bg-white {
  background-color: var(--color-white);
}

/* Spacing utilities */
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-12 { margin-bottom: var(--space-12); }

/* Display utilities */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .hidden-desktop {
    display: none;
  }
}

/* ==========================================================================
   CUSTOM AWEFUL WAFFLE STYLES
   ========================================================================== */

/* Enhance hero section for retro feel */
.hero {
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

/* Make headings more prominent with retro style */
h1, h2, h3 {
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

/* Add slight text shadow to hero title for retro depth */
.hero-title {
  color: var(--color-gray-900);
  text-shadow: 2px 2px 0px rgba(238, 169, 49, 0.2);
}

/* Style the menu card headers to stand out */
.card h3 {
  color: var(--color-secondary);
}

/* Enhance button hover states for more playful interaction */
.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Add retro feel to primary color usage */
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
}
