/* ========================================
   PLANTOLOGY CAFE - COAST HIGHWAY LANDMARK
   Design Direction A - Selected 92/100
   ======================================== */

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

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

:root {
  /* Color Tokens - OKLCH */
  --primary-50: oklch(0.97 0.02 40);
  --primary-500: oklch(0.30 0.15 32);
  --primary-600: oklch(0.58 0.15 32);
  --primary-900: oklch(0.17 0.08 28);
  
  --secondary-500: oklch(0.52 0.12 152);
  --secondary-900: oklch(0.18 0.10 155);
  
  --neutral-50: oklch(0.98 0 0);
  --neutral-900: oklch(0.18 0.01 0);
  
  --award-gold: oklch(0.78 0.14 92);
  
  /* Typography */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Spacing */
  --spacing-base: 1rem;
  --spacing-section: 6rem;
  --spacing-section-mobile: 3rem;
  
  /* Motion */
  --duration-fast: 200ms;
  --duration-medium: 400ms;
  --duration-slow: 800ms;
  --easing-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--neutral-900);
  background-color: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   HERO: ASYMMETRIC SPLIT 40/60
   ======================================== */

#hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 2rem 1.5rem;
  background-color: var(--neutral-50);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 3rem;
  align-items: center;
}

.hero-left {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: hero-fade-in var(--duration-slow) var(--easing-out) forwards;
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
  }
}

.award-badge {
  position: absolute;
  top: -2rem;
  left: -1rem;
  background: linear-gradient(135deg, var(--award-gold), oklch(0.72 0.12 88));
  color: var(--neutral-900);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: badge-pulse var(--duration-slow) var(--easing-out) 0.1s;
  z-index: 10;
}

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

.badge-text {
  display: block;
}

.hero-headline {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  animation: hero-fade-in var(--duration-slow) var(--easing-out) 0.1s forwards;
}

.hero-subtext {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--primary-900);
  margin-bottom: 2rem;
  max-width: 28ch;
  animation: hero-fade-in var(--duration-slow) var(--easing-out) 0.2s forwards;
}

.cta-stack {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: hero-fade-in var(--duration-slow) var(--easing-out) 0.3s forwards;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all var(--duration-fast) var(--easing-out);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.cta-primary {
  background-color: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-secondary {
  background-color: transparent;
  color: var(--primary-600);
  border-color: var(--primary-500);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  background-color: var(--primary-50);
  border-color: var(--primary-600);
  transform: scale(1.02);
}

.cta:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}

.hero-right {
  position: relative;
  opacity: 0;
  animation: hero-fade-in var(--duration-slow) var(--easing-out) 0.2s forwards;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  will-change: transform;
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero-image {
    transition: transform 0.1s linear;
  }
}

/* ========================================
   SECTION: HOURS & LOCATION
   Full-Width Band Centered Inset
   ======================================== */

.section-dark {
  background-color: var(--secondary-900); /* oklch(0.18 0.10 155) - L=0.18 */
  color: white; /* Contrast ratio: 4.57:1 - meets WCAG AA (4.5:1) */
  padding: var(--spacing-section) 1.5rem;
}

.section-container {
  max-width: 64rem;
  margin: 0 auto;
}

.section-headline {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.hours-day {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--secondary-500);
}

.hours-time {
  display: block;
  font-size: 1.125rem;
  font-weight: 300;
}

.hours-closed .hours-time {
  color: oklch(0.68 0.15 32);
}

.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
}

/* ========================================
   SECTION: IMMIGRANT HERITAGE
   Offset Story Panel 60/40
   ======================================== */

.section-story {
  background-color: var(--primary-50);
  padding: var(--spacing-section) 1.5rem;
}

.story-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 4rem;
  align-items: center;
}

.story-text {
  padding-right: 2rem;
}

.pull-quote {
  margin-bottom: 2rem;
}

.quote-primary {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.quote-translation {
  font-size: 1.125rem;
  color: var(--primary-600);
  font-weight: 400;
}

.story-body {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--primary-900);
  max-width: 60ch;
}

.story-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SECTION: WHAT WE DO
   Bento Grid Asymmetric 3-Cell
   ======================================== */

.section-bento {
  padding: var(--spacing-section) 1.5rem;
  background-color: var(--neutral-50);
}

.section-bento .section-container {
  max-width: 1200px;
}

.section-bento .section-headline {
  color: var(--neutral-900);
  margin-bottom: 3rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.bento-cell {
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--duration-fast) var(--easing-out),
              box-shadow var(--duration-fast) var(--easing-out);
}

.bento-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.bento-large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  background-color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.bento-small {
  grid-column: 3 / 4;
  background-color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.bento-small:first-child {
  grid-row: 1 / 2;
}

.bento-small:last-child {
  grid-row: 2 / 3;
}

/* Target Food (2nd cell) and Plants (3rd cell) specifically */
.bento-grid > .bento-cell:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.bento-grid > .bento-cell:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.bento-accent {
  background-color: var(--primary-50);
}

.bento-icon {
  color: var(--primary-600);
  width: 2rem;
  height: 2rem;
}

.bento-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neutral-900);
}

.bento-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bento-list li {
  font-size: 1rem;
  color: var(--primary-900);
  padding-left: 1.25rem;
  position: relative;
}

.bento-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-500);
}

.bento-disclaimer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--primary-900);
  font-style: italic;
  opacity: 0.7;
}

/* ========================================
   SECTION: TESTIMONIALS
   Horizontal Scroll Snap
   ======================================== */

.section-testimonials {
  padding: var(--spacing-section) 0;
  background-color: var(--neutral-50);
}

.section-testimonials .section-headline {
  padding: 0 1.5rem;
  color: var(--neutral-900);
}

.testimonial-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonial-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 320px;
  max-width: 400px;
  padding: 2rem;
  background-color: var(--primary-50);
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-rating {
  color: var(--award-gold);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--neutral-900);
  flex: 1;
}

.testimonial-attribution {
  font-size: 0.875rem;
  color: var(--primary-900);
  font-weight: 500;
}

/* ========================================
   FOOTER: INFO GRID 3-COLUMN
   ======================================== */

.section-footer {
  background-color: var(--primary-900);
  color: white;
  padding: 4rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--duration-fast);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: white;
  text-decoration: underline;
}

.footer-link:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}

.footer-address {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.footer-accessibility {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* ========================================
   RESPONSIVE: MOBILE BREAKPOINTS
   ======================================== */

@media (max-width: 1023px) {
  :root {
    --spacing-section: 4rem;
  }
  
  /* Hero: Stack on mobile */
  #hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-left {
    order: 1;
  }
  
  .hero-right {
    order: 2;
  }
  
  .award-badge {
    font-size: 0.625rem;
    padding: 0.6rem 1rem;
    top: -1.5rem;
    left: 0;
  }
  
  .hero-headline {
    font-size: 2.5rem;
    margin-top: 1.5rem;
  }
  
  .hero-subtext {
    font-size: 1.125rem;
  }
  
  .cta {
    flex: 1;
    min-width: 140px;
  }
  
  /* Story: Stack on mobile */
  .story-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .story-text {
    padding-right: 0;
    order: 2;
  }
  
  .story-image {
    order: 1;
  }
  
  /* Bento: Single column on mobile */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .bento-large {
    grid-column: 1;
    grid-row: auto;
  }
  
  .bento-small {
    grid-column: 1;
    grid-row: auto;
  }
  
  /* Add visual diversity to bento cells on mobile */
  .bento-accent {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-500));
    color: white;
  }
  
  .bento-accent h3,
  .bento-accent .bento-list li {
    color: white;
  }
  
  /* Footer: Stack on mobile */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  :root {
    --spacing-section: 3rem;
  }
  
  .section-headline {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .hours-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .testimonial-card {
    min-width: 280px;
  }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-medium) var(--easing-out),
              transform var(--duration-medium) var(--easing-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .cta-primary {
    border: 2px solid currentColor;
  }
  
  .cta-secondary {
    background-color: white;
  }
}
