/* ============================================
   Happy Garden Cafe - Styles
   Colors: Leaf Green #4a7c59, Warm Peach #f0c5a0, Light Cream #faf9f4
   Fonts: Amatic SC (headings), Cabin (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #4a7c59;
  --green-dark: #3a6347;
  --green-light: #5e9970;
  --peach: #f0c5a0;
  --peach-light: #f7dcc4;
  --cream: #faf9f4;
  --text-dark: #2c2c2c;
  --text-medium: #555;
  --text-light: #888;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Cabin', sans-serif;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-dark);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--peach);
  margin: 16px auto;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-family: 'Cabin', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

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

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

.btn-peach {
  background: var(--peach);
  color: var(--green-dark);
  border-color: var(--peach);
}

.btn-peach:hover {
  background: var(--peach-light);
  border-color: var(--peach-light);
  color: var(--green-dark);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 249, 244, 0.95);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(250, 249, 244, 0.98);
  box-shadow: var(--shadow);
  border-bottom-color: rgba(74, 124, 89, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Amatic SC', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--peach);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: rgba(74, 124, 89, 0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 100px 0 0;
  font-size: 0.9rem;
}

.breadcrumbs .container {
  padding-top: 16px;
  padding-bottom: 8px;
}

.breadcrumbs a {
  color: var(--text-light);
}

.breadcrumbs a:hover {
  color: var(--green);
}

.breadcrumbs .separator {
  margin: 0 8px;
  color: var(--text-light);
}

.breadcrumbs .current {
  color: var(--green);
  font-weight: 500;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.85) 0%, rgba(58, 99, 71, 0.9) 100%),
              url('images/primer-featured.jpg') center/cover no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 120px 20px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(240, 197, 160, 0.1);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(240, 197, 160, 0.08);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.hero .tagline {
  font-family: 'Cabin', sans-serif;
  font-size: 1.2rem;
  color: var(--peach-light);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero .btn {
  margin: 0 8px 12px;
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 140px 20px 60px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--peach-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- About Preview / About Page --- */
.about-preview {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-medium);
  margin-bottom: 16px;
}

.about-image {
  border-radius: var(--radius);
  min-height: 350px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  min-height: 350px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-card h4 {
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* --- Menu Section --- */
.menu-section {
  background: var(--white);
}

.menu-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.menu-category-btn {
  padding: 8px 20px;
  border: 2px solid var(--green);
  border-radius: 30px;
  background: transparent;
  color: var(--green);
  font-family: 'Cabin', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.menu-category-btn:hover,
.menu-category-btn.active {
  background: var(--green);
  color: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.menu-item {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  transition: box-shadow var(--transition);
}

.menu-item:hover {
  box-shadow: var(--shadow);
}

.menu-item-info h4 {
  font-family: 'Cabin', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.menu-item-info p {
  color: var(--text-medium);
  font-size: 0.9rem;
}

.menu-item-price {
  font-family: 'Amatic SC', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.menu-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 6px;
}

.menu-tag.gf {
  background: rgba(74, 124, 89, 0.12);
  color: var(--green);
}

.menu-tag.organic {
  background: rgba(240, 197, 160, 0.4);
  color: #8a6530;
}

.menu-tag.bestseller {
  background: rgba(200, 60, 60, 0.1);
  color: #b33;
}

.menu-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--peach-light);
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 124, 89, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-family: 'Amatic SC', cursive;
  font-size: 1.5rem;
  font-weight: 700;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-style: italic;
  padding: 20px;
  text-align: center;
  min-height: 200px;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  line-height: 1;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.contact-info-card h3 {
  margin-bottom: 16px;
}

.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-detail .icon {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
  padding-top: 2px;
}

.contact-detail .info h4 {
  font-family: 'Cabin', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.contact-detail .info p {
  color: var(--text-medium);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0ddd6;
  border-radius: var(--radius);
  font-family: 'Cabin', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--transition);
}

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

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

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* --- Hours Table --- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid #eee;
}

.hours-table td {
  padding: 8px 0;
  font-size: 0.9rem;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-medium);
}

/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  transition: all var(--transition);
  font-size: 1.1rem;
}

.social-link:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--peach-light);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-family: 'Cabin', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-brand {
  font-family: 'Amatic SC', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--peach);
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--peach);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--peach);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.4rem; }
  .hero h1 { font-size: 3.5rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 12px 20px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

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

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 1rem; }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .menu-item {
    flex-direction: column;
  }
}
