/* 
   Artisanal Brew System - CSS Design System
   Based on DESIGN.md guidelines
*/

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-surface: #fff8f3;
  --color-surface-dim: #e2d9ce;
  --color-surface-bright: #fff8f3;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #fcf2e7;
  --color-surface-container: #f6ece1;
  --color-surface-container-high: #f1e7dc;
  --color-surface-container-highest: #ebe1d6;
  --color-on-surface: #1f1b14;
  --color-on-surface-variant: #4f4540;
  --color-inverse-surface: #353028;
  --color-inverse-on-surface: #f9efe4;
  --color-outline: #81756f;
  --color-outline-variant: #d3c3bd;
  --color-surface-tint: #705a4f;
  
  --color-primary: #25160e;
  --color-on-primary: #ffffff;
  --color-primary-container: #3c2a21;
  --color-on-primary-container: #aa9084;
  
  --color-secondary: #7d562d;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #ffca98;
  --color-on-secondary-container: #7a532a;
  
  --color-tertiary: #241707;
  --color-on-tertiary: #ffffff;
  --color-tertiary-container: #3b2b19;
  --color-on-tertiary-container: #a9927a;
  
  --color-error: #ba1a1a;
  --color-on-error: #ffffff;
  
  /* Border Radii */
  --rounded-sm: 0.125rem;     /* 2px */
  --rounded-default: 0.25rem; /* 4px */
  --rounded-md: 0.375rem;      /* 6px */
  --rounded-lg: 0.5rem;        /* 8px */
  --rounded-xl: 0.75rem;       /* 12px */
  --rounded-full: 9999px;
  
  /* Spacing */
  --spacing-base: 8px;
  --spacing-xs: 4px;
  --spacing-sm: 12px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 80px;
  --spacing-container-max: 1280px;
  --spacing-gutter: 24px;

  /* Fonts */
  --font-headline: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

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

body {
  background-color: var(--color-background, var(--color-surface));
  color: var(--color-on-surface);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* --- Typography --- */
.headline-xl {
  font-family: var(--font-headline);
  font-size: 64px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-headline);
  font-size: 48px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: -0.01em;
}

.headline-md {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.body-md {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.label-md {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label-sm {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

/* Section Header Styles */
.section-title-container {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title {
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-size: 42px;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: var(--rounded-full);
}

/* --- Layout & Container --- */
.container {
  width: 100%;
  max-width: var(--spacing-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-gutter);
  padding-right: var(--spacing-gutter);
}

.section-padding {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* --- Components --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: var(--rounded-default);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-secondary); /* Terracotta */
  color: var(--color-surface);
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-primary-container);
  transform: translateY(-2px);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
  transform: translateY(-2px);
}

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

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--color-on-surface-variant);
  padding: 6px 12px;
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background-color: var(--color-primary);
  transition: all 0.3s ease;
}

.btn-ghost:hover::after {
  width: 100%;
  left: 0;
}

/* Navigation Bar */
.navbar {
  background-color: rgba(255, 248, 243, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-surface-container-high);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-on-surface-variant);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: block;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-surface);
  text-align: center;
  margin-top: 0;
}

/* Background overlay gradient as per DESIGN.md */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(37, 22, 14, 0.45) 0%, rgba(37, 22, 14, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-family: var(--font-headline);
  font-size: 72px;
  font-weight: 700;
  line-height: 80px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  color: #ffffff;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: var(--color-inverse-on-surface);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 1.2s ease-out;
}

.hero-actions {
  animation: fadeInUp 1.4s ease-out;
}

.hero-actions .btn {
  padding: 16px 40px;
  font-size: 15px;
}

/* Review Section */
.reviews-section {
  background-color: var(--color-surface);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-gutter);
}

.review-card {
  background-color: var(--color-surface-container-low);
  padding: 36px;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--color-outline-variant);
  box-shadow: 0px 10px 30px rgba(60, 42, 33, 0.03);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 35px rgba(60, 42, 33, 0.08);
  border-color: var(--color-outline);
}

.rating-stars {
  color: var(--color-secondary);
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  gap: 4px;
}

.review-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--color-on-surface-variant);
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.review-author {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  text-transform: uppercase;
  border-top: 1px solid var(--color-outline-variant);
  padding-top: var(--spacing-sm);
  display: inline-block;
  width: 100%;
}

/* About Us Section */
.about-section {
  background-color: var(--color-surface-container-low);
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 30px;
  color: var(--color-on-surface-variant);
  margin-bottom: var(--spacing-md);
}

.about-text:last-child {
  margin-bottom: 0;
}

/* Location Section */
.location-section {
  background-color: var(--color-surface);
}

.location-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--spacing-lg);
  align-items: stretch;
}

.location-info-card {
  background-color: var(--color-surface-container-low);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--color-outline-variant);
  padding: 40px;
  box-shadow: 0px 10px 30px rgba(60, 42, 33, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-group {
  margin-bottom: var(--spacing-md);
}

.info-group:last-child {
  margin-bottom: 0;
}

.info-title {
  font-family: var(--font-headline);
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.info-detail {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-on-surface-variant);
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-detail svg {
  flex-shrink: 0;
  color: var(--color-secondary);
}

.map-container-wrapper {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--color-outline-variant);
  min-height: 380px;
  position: relative;
  box-shadow: 0px 10px 30px rgba(60, 42, 33, 0.03);
}

#map {
  width: 100%;
  height: 100%;
  background-color: var(--color-surface-container);
  z-index: 5;
}

/* Custom styles to style the Leaflet map in cream theme */
.leaflet-container {
  background-color: var(--color-surface-container-low) !important;
}

/* Contact Section */
.contact-section {
  background-color: var(--color-surface-container-low);
}

.contact-subtitle {
  text-align: center;
  font-family: var(--font-body);
  color: var(--color-on-surface-variant);
  margin-top: -12px;
  margin-bottom: var(--spacing-lg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-lg);
  padding: 32px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0px 10px 30px rgba(60, 42, 33, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 30px rgba(60, 42, 33, 0.06);
  border-color: var(--color-secondary);
}

.contact-icon-bg {
  width: 64px;
  height: 64px;
  border-radius: var(--rounded-full);
  background-color: var(--color-surface-container-low);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-secondary);
  transition: background-color 0.3s ease;
}

.contact-card:hover .contact-icon-bg {
  background-color: var(--color-secondary-container);
}

.contact-label {
  font-family: var(--font-headline);
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.contact-value {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-on-surface-variant);
}

/* Footer styling - Deep Dark variant */
.footer {
  background-color: #261C15; /* Dark surface tint as requested */
  color: var(--color-inverse-on-surface);
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--spacing-md);
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.footer-social-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.footer-social-link:hover {
  color: #ffffff;
}

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

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}



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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Media Queries --- */

/* Tablet & Smaller (Max 1279px) */
@media (max-width: 1279px) {
  .headline-xl {
    font-size: 54px;
    line-height: 60px;
  }
  
  .hero-title {
    font-size: 56px;
    line-height: 64px;
  }
  
  .reviews-grid {
    gap: 20px;
    padding: 0 10px;
  }
  
  .review-card {
    padding: 24px;
  }
}

/* Tablet (Max 1024px) */
@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
  }
  
  .map-container-wrapper {
    min-height: 320px;
  }
}

/* Mobile (Max 767px) */
@media (max-width: 767px) {
  .navbar {
    height: 70px;
  }
  
  .nav-cta {
    display: none;
  }
  
  .menu-toggle {
    display: block;
    z-index: 110;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-surface);
    border-left: 1px solid var(--color-outline-variant);
    box-shadow: -10px 0 40px rgba(37, 22, 14, 0.05);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 105;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-title {
    font-size: 38px;
    line-height: 46px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    line-height: 26px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .location-info-card {
    padding: 24px;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
